/* Scoped workspace styles: the existing Somora shell and player stay independent. */
.ks{--ks-color-0:#dcf880;--ks-color-1:#b7a0fa;--ks-color-2:#6cddc4;--ks-color-3:#f3bd76;--ks-color-4:#ec94b6;--ks-color-5:#83c2fc;--ks-line:#303037;--ks-surface:#1d1c23;--ks-soft:#9995aa;max-width:1680px;margin:0 auto;color:#f2f0f6;min-width:0}.ks [hidden]{display:none!important}.ks button,.ks input,.ks select{font-family:inherit}.ks button{touch-action:manipulation}.ks-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:7px 0 27px}.ks-eyebrow{display:flex;align-items:center;gap:8px;color:#d9f984;font-size:10px;letter-spacing:2px;font-weight:700}.ks-eyebrow i,.ks-footer>span:first-child i{width:6px;height:6px;background:#d9f984;border-radius:100%;box-shadow:0 0 12px #d9f98480}.ks-eyebrow span{letter-spacing:.8px;border:1px solid #665b3c;border-radius:4px;font-size:8px;padding:3px 5px;color:#e5c18b;margin-left:6px}.ks-heading h1{font-size:clamp(23px,2.7vw,36px);font-weight:500;letter-spacing:-1.1px;margin:11px 0 8px}.ks-heading p{font-size:12px;color:var(--ks-soft)}.ks-heading p>span{margin:0 8px;color:#55505f}.ks-header-tools{display:flex;gap:9px}.ks-button,.ks-project-actions button,.ks-dialog button,.ks-clip-actions button{border:1px solid #38353f;background:#27252e;border-radius:7px;min-height:35px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.ks-button:hover,.ks-dialog button:hover{background:#34303f;border-color:#787084}.ks-button>span[aria-hidden]{font-size:15px;line-height:1;font-weight:400}.ks-header-tools [data-ks-action=export]{background:#dcf880;color:#262b19;border-color:#dcf880;padding:12px 18px}.ks-header-tools [data-ks-action=help]{width:40px;font-size:16px}.ks-shell{border:1px solid #39353f;border-radius:14px;overflow:hidden;background:#17161d;box-shadow:0 28px 75px #0003}.ks-projectbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--ks-line);background:#201e27}.ks-project-name{display:flex;flex-direction:column;min-width:100px;gap:5px}.ks-project-name input{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline-offset:2px!important;border-radius:0!important;width:100%;font-weight:600;font-size:15px;min-height:20px!important;max-width:340px;color:#f5f1ff!important}.ks-save-status{font-size:9px;color:#84cfa4;display:flex;gap:5px;align-items:center}.ks-save-status:before{content:'';height:4px;width:4px;border-radius:50%;background:currentColor}.ks-save-status.dirty{color:#aaa3b8}.ks-project-actions{display:flex;gap:7px}.ks-project-actions [data-ks-action=save]{color:#dcf880;border-color:#dcf88040;background:#dcf8800c}.ks-transport{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 20px;background:#19181e;border-bottom:1px solid var(--ks-line);font-size:9px}.ks-play-controls{display:flex;align-items:center;gap:6px}.ks-play-controls button{height:36px;width:37px;padding:8px}.ks-play-controls [data-ks-action=play]{color:#dcf880;border-color:#62733c;background:#dcf8800b}.ks-play-controls [data-ks-action=play].playing{background:#dcf880;color:#222a19}.ks-time{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:24px;letter-spacing:-.7px;min-width:114px;text-align:center;color:#e8e3f2}.ks-meter{height:5px;width:42px;border-radius:4px;background:#303039;display:block;overflow:hidden}.ks-meter i{display:block;width:0;height:100%;background:#bddd75;transition:width .05s}.ks-meter i.clip{background:#f39176}.ks input:not([type=range]):not([type=checkbox]):not([type=file]),.ks select{padding:7px 9px;min-height:31px;border-radius:5px;background:#121117;border:1px solid #38323e;font-size:11px;color:#dfd9eb;width:100%;max-width:100%;outline:0}.ks input:focus-visible,.ks select:focus-visible{border-color:#d3ed80!important;box-shadow:0 0 0 2px #dcf88020}.ks input[type=checkbox]{accent-color:#dcf880;width:13px;height:13px;margin:0 7px 0 0}.ks input[type=range]{width:100%;accent-color:#ccdf90;height:4px;min-height:4px;border:0;padding:0;margin:9px 0;cursor:pointer;background:transparent}.ks-bpm{display:flex;flex-direction:column;gap:5px;color:#90899c;letter-spacing:1px}.ks-bpm input{width:59px!important;font-size:12px!important}.ks-loop{display:flex;gap:8px;align-items:center;border-left:1px solid #37313e;padding-left:17px}.ks-loop>label:first-child{display:flex;align-items:center;white-space:nowrap;color:#b2aabf}.ks-loop .ks-field{width:59px;gap:3px}.ks-loop .ks-field>span{font-size:8px}.ks-loop input[type=number]{padding:5px;font-size:10px}.ks-edit-controls{display:flex;gap:7px;align-items:center;margin-left:auto}.ks-edit-controls>.ks-button{padding:6px 9px;min-height:30px;font-size:16px}.ks-edit-controls>label{display:flex;flex-direction:column;gap:5px;color:#90899c;font-size:8px;margin-left:3px}.ks-edit-controls select{padding:5px;min-height:25px;width:74px;font-size:10px}.ks-edit-controls input[type=range]{width:71px;margin:10px 0}.ks-arrange-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;background:#1b1922;border-bottom:1px solid #35303b}.ks-arrange-toolbar>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ks-arrange-toolbar strong{font-size:9px;letter-spacing:1.6px;color:#b1aabb}.ks-track-count{font-size:8px;padding:3px 5px;margin-left:7px;border-radius:3px;background:#2c2733;color:#8f879e}.ks-arrange-toolbar .ks-button{font-size:10px;min-height:30px;padding:7px 9px;background:transparent}.ks-arrange-toolbar select{width:auto;max-width:155px;font-size:10px}.ks-arrange-toolbar [data-ks-action=record]{color:#f5a29d}.ks-arrangement{display:flex;position:relative;min-height:205px;background:#141319}.ks-track-headers{flex:0 0 175px;width:175px;background:#1e1c25;position:relative;z-index:4;box-shadow:7px 0 13px #0002}.ks-ruler-corner{height:39px;padding:13px 15px;color:#aaa4b5;font-size:10px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3b3442}.ks-ruler-corner>span{color:#6d6679;font-size:8px;text-transform:uppercase;letter-spacing:1.2px}.ks-track-header{height:90px;padding:14px 13px;position:relative;border-bottom:1px solid #35303b;display:flex;flex-direction:column;justify-content:center;gap:8px;border-left:3px solid transparent}.ks-track-header.selected{background:#2e283a;border-left-color:var(--track-color)}.ks-track-title{background:none;border:0;display:grid;grid-template-columns:7px minmax(0,1fr);column-gap:7px;row-gap:2px;padding:0;text-align:left;width:100%;color:#e4ddeb;align-items:center;line-height:1.25}.ks-track-title i{grid-row:span 2;height:23px;width:3px;border-radius:3px;background:var(--track-color)}.ks-track-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.ks-track-title small{font-size:8px;color:#91879f}.ks-track-header>div{display:flex;gap:4px}.ks-track-header>div>button{width:22px;height:19px;border-radius:3px;border:1px solid #4b4253;background:#211d29;color:#91869f;font-size:9px;font-weight:700;padding:0}.ks-track-header button[aria-pressed=true]{color:#181b12;background:var(--track-color);border-color:var(--track-color)}.ks-track-header>div>button:last-child{margin-left:auto;border-color:transparent;background:none;font-size:14px;font-weight:400;color:#a493ab}.ks-timeline-scroll{flex:1;overflow-x:auto;overflow-y:hidden;min-width:0;scrollbar-color:#5f536c #1f1a27;scrollbar-width:thin}.ks-timeline{position:relative;min-width:100%;min-height:205px;background-image:linear-gradient(to right,#56506444 1px,transparent 1px),linear-gradient(to right,#3b35472d 1px,transparent 1px);background-size:var(--bar-width) 100%,var(--beat-width) 100%}.ks-ruler{position:relative;height:39px;border-bottom:1px solid #3b3442;background:#211d29;cursor:crosshair;z-index:2;overflow:hidden}.ks-ruler>span{position:absolute;top:5px;border-left:1px solid #51495d;padding-left:5px;display:flex;flex-direction:column;gap:2px;user-select:none;font-size:9px;color:#c1b3d0;font-family:ui-monospace,monospace;pointer-events:none}.ks-ruler small{font-size:7px;color:#706478}.ks-track-lane{height:90px;position:relative;border-bottom:1px solid #332c3c;overflow:hidden}.ks-track-lane.selected{background-color:#b59cd807}.ks-audio-clip{position:absolute;top:8px;height:73px;padding:0;border:1px solid color-mix(in srgb,var(--track-color),transparent 30%);border-radius:5px;background:color-mix(in srgb,var(--track-color) 18%,#1a1e1d);overflow:hidden;cursor:grab;touch-action:none;text-align:left;min-width:6px;user-select:none;z-index:2;box-shadow:0 2px 7px #0003}.ks-audio-clip:active{cursor:grabbing}.ks-audio-clip.selected{outline:1px solid var(--track-color);outline-offset:1px}.ks-audio-clip>span{display:block;font-size:9px;color:var(--track-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;height:23px;padding:5px 8px;background:#0002;font-weight:600}.ks-audio-clip canvas{height:48px;width:100%;opacity:.8;display:block;pointer-events:none}.ks-audio-clip>.ks-fade-in,.ks-audio-clip>.ks-fade-out{position:absolute;top:23px;height:48px;background:#1118;pointer-events:none}.ks-fade-in{left:0;clip-path:polygon(0 0,100% 0,0 100%)}.ks-fade-out{right:0;clip-path:polygon(0 0,100% 0,100% 100%)}.ks-timeline-note{position:absolute;height:4px;background:var(--track-color);opacity:.8;border-radius:1px;pointer-events:none}.ks-playhead{position:absolute;top:0;bottom:0;width:1px;background:#f5d57a;z-index:3;pointer-events:none;box-shadow:0 0 5px #f5d57a35}.ks-playhead>i{position:absolute;top:0;left:-4px;height:8px;width:9px;background:#f5d57a;clip-path:polygon(0 0,100% 0,100% 40%,50% 100%,0 40%)}.ks-loop-region{position:absolute;top:35px;bottom:0;border-top:3px solid #d4bc77;background:#ffe6a011;pointer-events:none;z-index:1}.ks-empty{position:absolute;left:30px;top:70px;width:min(420px,75vw);pointer-events:none;padding:8px 0}.ks-empty strong{font-size:14px;font-weight:500;color:#b9b1c7}.ks-empty p{font-size:11px;color:#797083;margin-top:8px;line-height:1.7;max-width:345px}.ks-timeline-hint{font-size:9px;color:#8a8096;padding:10px 20px;background:#1d1925;border-bottom:1px solid #35303b}.ks-bottom{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(280px,1.15fr)}.ks-mixer,.ks-inspector{padding:20px;min-width:0}.ks-mixer{border-right:1px solid #35303b;background:#1b1822}.ks-inspector{background:#19171f}.ks-panel-title{display:flex;align-items:center;justify-content:space-between;gap:15px;letter-spacing:1.5px;color:#b6acc5;font-size:9px;font-weight:600;margin-bottom:19px}.ks-panel-title>span{text-transform:none;letter-spacing:0;color:#776c85;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}.ks-master{border-bottom:1px solid #302939;padding-bottom:8px;margin-bottom:12px}.ks-range{display:flex;flex-direction:column;min-width:0}.ks-range>span{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#a295b3}.ks-range output{color:#c7bcd4;font-family:ui-monospace,monospace;font-size:8px}.ks-master .ks-range>span{color:#c4d68f;font-size:8px}.ks-mixer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 18px;margin-top:17px}.ks-field{display:flex;flex-direction:column;gap:6px;min-width:0}.ks-field>span{font-size:9px;color:#9d91ad;line-height:1.35}.ks-inspector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 11px;margin-top:15px}.ks-inspector-empty{min-height:224px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#877993;text-align:center}.ks-inspector-empty>span{font-size:43px;color:#73607e}.ks-inspector-empty p{font-size:12px;color:#b4a6c0}.ks-inspector-empty small{font-size:10px;line-height:1.6;max-width:280px}.ks-clip-actions{display:flex;gap:6px;flex-wrap:wrap}.ks-clip-actions .ks-button{font-size:9px;padding:6px 9px;min-height:28px}.ks-checkbox{display:flex;align-items:center;font-size:9px;color:#b1a4bf;padding-top:17px}.ks-small{font-size:9px;line-height:1.7;color:#8b7b9a;margin-top:16px}.ks-sequencer{border-top:1px solid #39303f;padding:20px;background:#18151f}.ks-sequencer .ks-panel-title{margin-bottom:13px}.ks-sequencer-actions{display:flex;align-items:center;gap:7px;margin:10px 0 14px;flex-wrap:wrap}.ks-sequencer-actions>label{display:flex;align-items:center;gap:10px;font-size:10px;color:#ae9bbd;margin-right:auto}.ks-sequencer-actions select{width:100px}.ks-sequencer-actions button{font-size:9px;min-height:30px;padding:6px 9px}.ks-note-scroll{overflow:auto;max-height:365px;scrollbar-color:#5f536c #1f1a27;scrollbar-width:thin}.ks-note-grid{min-width:480px;border:1px solid #3e3249;border-radius:4px;overflow:hidden}.ks-note-heading,.ks-note-row{display:grid;grid-template-columns:62px repeat(16,minmax(0,1fr));gap:2px;background:#1d1726;padding:1px 2px;min-height:19px}.ks-note-heading>span{font-size:7px;color:#8b739e;text-align:center;padding:5px 0}.ks-note-row>span{font-size:8px;color:#b098c1;display:flex;align-items:center;padding-left:8px}.ks-note-row.black>span{background:#100e15;color:#82708e}.ks-note-row button{min-height:17px;min-width:0;padding:0;border:0;background:#30283c;border-radius:1px}.ks-note-row button.beat{background:#3c3049}.ks-note-row button:hover{background:#675077}.ks-note-row button.on{background:#d5ee8b;box-shadow:inset 0 1px #eef9ca40}.ks-footer{display:flex;align-items:center;gap:16px;padding:12px 20px;border-top:1px solid #332b3c;background:#17131d;font-size:8px;color:#76677f;line-height:1.5}.ks-footer>span:first-child{display:flex;align-items:center;gap:6px;letter-spacing:1px;white-space:nowrap}.ks-footer>span:first-child i{height:4px;width:4px;box-shadow:none}.ks-status{margin-left:auto;text-align:right}.ks-dialog{width:min(620px,calc(100vw - 32px));max-height:85vh;padding:24px;border:1px solid #5c486b;border-radius:14px;background:#211a2c;color:#e9ddf4;box-shadow:0 24px 100px #0009;font-family:inherit}.ks-dialog::backdrop{background:#0c0912bb;backdrop-filter:blur(6px)}.ks-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.ks-dialog-heading h2{font-size:20px;font-weight:500}.ks-dialog-heading button{font-size:22px;padding:0;height:30px;width:30px;background:transparent;border:0}.ks-dialog>p{font-size:12px;line-height:1.8;color:#b5a3c4;margin:13px 0}.ks-dialog h3{font-size:14px;font-weight:500;margin:26px 0 12px;color:#d5c0e6}.ks-dialog .ks-shortcuts{padding:14px;background:#15101e;border-radius:8px;border:1px solid #483254;color:#c9b9d5}.ks-item-list{display:flex;flex-direction:column;gap:7px}.ks-item-list>article{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #40324a;border-radius:8px;background:#17121e}.ks-item-list>article>div{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.ks-item-list strong{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ks-item-list small{font-size:9px;color:#927da1}.ks-item-list button{font-size:10px;padding:7px 10px;min-height:30px}.ks-item-list>p{font-size:11px;color:#9e8dae}.ks-record-status{display:flex;align-items:center;justify-content:center;gap:12px;padding:30px;color:#94829f}.ks-record-status>span{font-size:21px}.ks-record-status>span.active{color:#ed928e;animation:ks-pulse 1s infinite}.ks-record-status>output{font-family:ui-monospace,monospace;font-size:29px;color:#e5d9ed}.ks-dialog audio{width:100%;margin:8px 0 20px}.ks-record-buttons{display:flex;justify-content:center;gap:9px}.ks-record-buttons [data-ks-action=record-use]{background:#d6ed8a;color:#263119;border-color:#d6ed8a}.ks-loading,.ks-locked{padding:70px 24px;text-align:center;font-size:14px;color:#b3a3c1}.ks-locked p{margin-top:16px}.ks.dragging .ks-arrangement{outline:2px dashed #dcf880;outline-offset:-3px}.ks button:disabled,.ks input:disabled,.ks select:disabled{opacity:.42;cursor:not-allowed}@keyframes ks-pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.ks *{animation:none!important;transition:none!important}}
@media(min-width:1500px){.ks-mixer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ks-inspector-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ks-bottom{grid-template-columns:1fr 1fr}.ks-track-headers{flex-basis:190px;width:190px}.ks-arrange-toolbar{padding-top:19px;padding-bottom:19px}}
@media(max-width:1050px){.ks-transport{gap:13px}.ks-edit-controls{margin-left:0}.ks-arrange-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.ks-mixer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ks-inspector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ks-track-headers{flex-basis:150px;width:150px}.ks-header-tools [data-ks-action=export]{font-size:10px;padding:10px 12px}.ks-heading{align-items:flex-start}.ks-heading p{font-size:10px;line-height:1.7}.ks-heading p>span{margin:0 3px}.ks-loop{padding-left:12px}.ks-footer .ks-status{font-size:7px}}
@media(max-width:680px){.ks-heading{margin-top:2px;margin-bottom:20px;flex-wrap:wrap;gap:14px}.ks-heading h1{font-size:24px;margin-top:10px}.ks-heading p{font-size:10px}.ks-header-tools{width:100%;justify-content:flex-end}.ks-header-tools [data-ks-action=export]{margin-left:auto;padding:10px 17px}.ks-header-tools [data-ks-action=help]{order:2}.ks-projectbar{padding:15px 12px;gap:12px;align-items:flex-start;flex-direction:column}.ks-project-name{width:100%}.ks-project-name input{max-width:none}.ks-project-actions{width:100%;justify-content:flex-end}.ks-project-actions button{font-size:10px;padding:6px 10px}.ks-project-actions button:first-child{margin-right:auto}.ks-transport{padding:13px 12px;gap:12px}.ks-play-controls{flex:1}.ks-time{font-size:22px;min-width:105px}.ks-meter{width:28px}.ks-bpm{align-items:flex-end}.ks-bpm input{width:54px!important}.ks-loop{border:0;padding:0;flex:1}.ks-loop>.ks-field{width:54px}.ks-edit-controls{flex-wrap:wrap;width:100%;justify-content:flex-end;border-top:1px solid #302738;padding-top:10px}.ks-edit-controls>label{margin-left:10px}.ks-edit-controls>.ks-button:first-child{margin-right:auto}.ks-arrange-toolbar{padding:14px 12px;gap:11px}.ks-arrange-toolbar>div:last-child{display:grid;grid-template-columns:1fr 1fr;width:100%}.ks-arrange-toolbar .ks-button{font-size:9px;justify-content:flex-start;padding:8px}.ks-arrange-toolbar select{max-width:none;font-size:9px;width:100%}.ks-track-headers{width:105px;flex-basis:105px}.ks-track-header{padding:12px 7px}.ks-track-title>span{font-size:9px}.ks-track-title small{font-size:7px}.ks-track-header>div>button{width:20px}.ks-ruler-corner{padding:10px 9px;font-size:8px}.ks-ruler-corner span{font-size:6px;letter-spacing:0}.ks-bottom{grid-template-columns:minmax(0,1fr)}.ks-mixer{border-right:0;border-bottom:1px solid #332b3d}.ks-mixer,.ks-inspector{padding:17px 13px}.ks-mixer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ks-inspector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ks-inspector-empty{min-height:140px}.ks-timeline-hint{font-size:8px;padding:10px 12px;line-height:1.7}.ks-empty{left:18px;max-width:calc(100vw - 185px);top:62px}.ks-empty strong{font-size:11px}.ks-empty p{font-size:9px;line-height:1.6}.ks-footer{padding:10px 12px;align-items:flex-start;flex-direction:column;gap:7px}.ks-footer .ks-status{text-align:left;margin-left:0;font-size:8px}.ks-sequencer{padding:17px 13px}.ks-sequencer-actions{gap:5px}.ks-sequencer-actions>label{width:100%;margin-bottom:6px}.ks-dialog{padding:20px 15px}.ks-dialog-heading h2{font-size:18px}.ks-dialog>p{font-size:11px}}
.ks-preview-transport{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 17px;background:linear-gradient(105deg,#31422230,#231d2d);border:1px solid #71834f55;border-radius:9px;margin-bottom:9px}.ks-preview-title{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:600;color:#d4ec9c;min-width:150px}.ks-preview-title small{color:#8f9c79;font-size:9px;font-weight:400}.ks-preview-buttons{display:flex;align-items:center;gap:6px}.ks-preview-buttons button{width:36px;height:34px;min-height:34px;padding:6px;background:#181d16;border-color:#536139;color:#d1eb94}.ks-preview-buttons [data-ks-action=preview-play].playing{background:#d7ee92;border-color:#d7ee92;color:#242e18}.ks-preview-time{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;color:#d6dfc7;min-width:81px;margin-left:4px}.ks-preview-meter{height:4px;width:37px;display:block;background:#32392b;border-radius:3px;overflow:hidden}.ks-preview-meter i{display:block;height:100%;width:0;background:#d7ee92;transition:width .05s}.ks-preview-scope{display:flex;flex-direction:column;gap:5px;color:#9e9c91;font-size:8px;margin-left:auto}.ks-preview-scope select{width:140px}.ks-preview-loop{display:flex;align-items:center;color:#b9bba9;font-size:10px;white-space:nowrap}.ks-preview-message{font-size:9px;color:#94869e;line-height:1.7;margin:8px 0 17px;max-width:900px}.ks-note-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:15px;margin:18px 0 15px;padding-top:14px;border-top:1px solid #392f43}.ks-note-tools>label,.ks-bar-select>label{display:flex;flex-direction:column;gap:6px;color:#a294ad;font-size:9px}.ks-note-tools select{min-width:90px}.ks-bar-select{display:flex;align-items:flex-end;gap:5px;margin-right:auto}.ks-bar-select button{width:27px;height:31px;padding:0;border:1px solid #4c3c58;border-radius:4px;background:#282030;color:#c6b7d2;font-size:20px}.ks-bar-select button:hover{border-color:#c0d17e}.ks-bar-select [data-ks-action=bar-cursor]{font-size:18px;margin-left:3px}.ks-bar-select input{width:65px!important}.ks-note-velocity{min-width:156px}.ks-note-velocity>span{display:flex;align-items:center;gap:10px;min-height:31px}.ks-note-velocity output{min-width:31px;color:#d5c8de;text-align:right;font-family:ui-monospace,monospace;font-size:10px}.ks-note-row button.sustain{background:#d5ee8b4a;box-shadow:inset 0 -2px #d5ee8b85}.ks-note-row button.ks-step-active{outline:1px solid #f8d475;outline-offset:-1px;background:#8c783a55}.ks-note-row button.on.ks-step-active{background:#f9e8aa;box-shadow:inset 0 0 8px #ffedbc88}.ks-note-heading>span.ks-step-active{background:#e6c47330;color:#f5d887}.ks-note-row>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:8px;padding-right:4px}.ks-sequencer-actions>label>select{width:150px;max-width:190px}.ks-note-row,.ks-note-heading{grid-template-columns:85px repeat(16,minmax(0,1fr))}
@media(max-width:1050px){.ks-preview-transport{gap:13px}.ks-preview-title{min-width:140px;flex:1}.ks-preview-scope{margin-left:0}.ks-note-tools{gap:12px}.ks-note-velocity{min-width:130px}.ks-sequencer-actions>label>select{width:135px}}
@media(max-width:680px){.ks-preview-transport{padding:13px 11px;gap:13px 10px}.ks-preview-title{width:100%;flex-basis:100%;font-size:12px}.ks-preview-buttons{width:100%;gap:7px}.ks-preview-time{font-size:21px;margin-left:7px;flex:1}.ks-preview-meter{width:47px;margin-right:4px}.ks-preview-scope{flex:1;min-width:0}.ks-preview-scope select{width:100%;max-width:155px}.ks-preview-loop{font-size:9px}.ks-preview-message{font-size:9px;margin-bottom:15px}.ks-note-tools{gap:13px 12px}.ks-bar-select{width:100%;margin-right:0}.ks-bar-select>label{flex:1}.ks-bar-select input{width:100%!important}.ks-note-tools>label{flex:1;min-width:95px;font-size:8px}.ks-note-tools>.ks-note-velocity{flex-basis:100%}.ks-note-velocity input{max-width:none}.ks-sequencer-actions>label>select{width:auto;min-width:160px}.ks-note-row,.ks-note-heading{grid-template-columns:74px repeat(16,minmax(0,1fr))}.ks-note-row>span{padding-left:5px;font-size:7px}.ks-note-grid{min-width:520px}}
.ks-clip-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 20px;background:#19171f;border-bottom:1px solid #332c3c}.ks-clip-toolbar>span{font-size:9px;color:#91849e;margin:0 auto 0 5px;white-space:nowrap}.ks-clip-toolbar .ks-button{font-size:9px;min-height:28px;padding:6px 9px}.ks-clip-toolbar [data-ks-action=multi-select][aria-pressed=true]{color:#d9ed9f;border-color:#a9c07088;background:#a9c07017}.ks-group-inspector{display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-height:205px;justify-content:center}.ks-group-inspector strong{font-size:19px;font-family:var(--heading);font-weight:500;color:#d6e7ac}.ks-group-inspector p{font-size:11px;line-height:1.8;color:#a796b8;max-width:420px}.ks-track-tools{display:flex;gap:5px;align-items:center;margin:0 0 13px}.ks-track-tools .ks-button{font-size:9px;min-height:28px;padding:6px 9px}.ks-track-tools .ks-button:nth-child(2){margin-left:auto}.ks-metronome{display:flex;flex-direction:column;gap:5px;min-width:86px;max-width:104px}.ks-metronome>label{display:flex;align-items:center;font-size:9px;color:#ac9eb9;white-space:nowrap}.ks-metronome input[type=range]{margin:5px 0 3px;height:3px}.ks-note-operations{border-top:1px solid #372d41;margin:16px 0 0;padding:14px 0 10px}.ks-note-edit-toggle{display:flex;align-items:center;font-size:10px;color:#c2aed3;margin-bottom:13px}.ks-bar-operations{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ks-bar-operations>span{color:#8a7799;font-size:9px;margin-right:auto}.ks-bar-operations .ks-button{min-height:29px;font-size:9px;padding:6px 9px}.ks-bar-operations>select{width:66px;font-size:10px}.ks-transpose{display:flex;align-items:center;gap:3px;padding:0 4px}.ks-transpose>span{font-size:9px;color:#9b84ac;margin-right:5px}.ks-transpose>button{font-size:9px;background:#302638;color:#cbb7d9;border:1px solid #52405f;border-radius:3px;min-height:28px;min-width:27px;padding:5px}.ks-note-edit-help{margin:0 0 13px!important;font-size:9px;line-height:1.7}.ks-note-inspector{display:flex;align-items:flex-end;gap:11px;flex-wrap:wrap;background:#d8efa209;border:1px solid #7a8e4c55;padding:13px;border-radius:7px;margin:4px 0 16px}.ks-note-inspector>strong{color:#c0d593;font-size:10px;font-weight:500;margin-right:auto;align-self:center}.ks-note-inspector>.ks-field{width:116px}.ks-note-inspector .ks-button{font-size:10px;padding:7px 12px;min-height:31px}.ks-note-row button.note-selected{outline:2px solid #b797ee;outline-offset:-2px;background:#e7dcfa}.ks-export-options{display:grid;grid-template-columns:1fr 1fr;gap:17px 15px;margin:22px 0}.ks-export-options .ks-field:first-child{grid-column:1/-1}.ks-export-options .ks-checkbox{grid-column:1/-1;padding:5px 0;font-size:11px}.ks-export-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.ks-export-actions [data-ks-action=export-confirm]{background:#d8ef99;color:#243016;border-color:#d8ef99}
@media(max-width:1050px){.ks-bar-operations>span{width:100%;margin-bottom:4px}.ks-note-inspector>strong{width:100%;margin-bottom:3px}.ks-note-inspector>.ks-field{flex:1;min-width:90px}.ks-clip-toolbar>span{margin-right:10px}.ks-metronome{max-width:91px}}
@media(max-width:680px){.ks-clip-toolbar{padding:10px 12px;gap:6px}.ks-clip-toolbar .ks-button{font-size:8px;padding:6px 8px;min-height:29px}.ks-clip-toolbar>span{margin-right:auto;font-size:8px}.ks-clip-toolbar [data-ks-action=copy-clips]{margin-left:0}.ks-metronome{min-width:85px;margin-right:auto}.ks-group-inspector{min-height:160px;gap:14px}.ks-group-inspector strong{font-size:17px}.ks-group-inspector p{font-size:10px}.ks-bar-operations{gap:6px}.ks-bar-operations .ks-button{font-size:8px;padding:5px 7px}.ks-transpose{order:2;padding:5px 0 0;flex-basis:100%}.ks-transpose>span{margin-right:auto}.ks-transpose>button{min-width:34px}.ks-note-inspector{gap:11px;padding:12px}.ks-note-inspector>.ks-field{width:auto;min-width:76px;flex:1}.ks-note-inspector>.ks-field span{font-size:8px}.ks-note-inspector>.ks-button{margin-left:auto}.ks-export-options{gap:15px 12px}.ks-export-options .ks-checkbox{font-size:10px}}
.ks-cloud-warning{padding:12px 18px;background:rgba(251,190,74,.09);border-bottom:1px solid rgba(251,190,74,.25);color:#f1c879;font-size:12px;line-height:1.6}.ks-save-status{max-width:440px;white-space:normal;line-height:1.4}
.ks-roll-options{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 16px}.ks-roll-options>label:first-child{display:flex;align-items:center;gap:10px;color:#c5b5d3;font-size:10px}.ks-roll-options select{width:80px}.ks-audition-toggle{display:flex;align-items:center;color:#b9c79c;font-size:10px;gap:4px;margin-left:auto}.ks-note-detail{margin:12px 0}.ks-no-note{margin:8px 0 14px}.ks-roll-scroll{overflow:auto;max-height:438px;border:1px solid #4a3e54;border-radius:7px;background:#1c1822;scrollbar-width:thin;scrollbar-color:#675873 #1c1822;overscroll-behavior:contain}.ks-piano-roll{display:grid;grid-template-columns:98px minmax(550px,1fr);grid-template-rows:31px auto;min-width:650px;position:relative}.ks-roll-corner{position:sticky;left:0;top:0;z-index:7;background:#292231;border-right:1px solid #52445e;border-bottom:1px solid #52445e;display:flex;align-items:center;padding:0 12px;color:#a090b0;font-size:9px;text-transform:uppercase;letter-spacing:1px}.ks-roll-ruler{position:sticky;top:0;z-index:5;background:#282131;border-bottom:1px solid #52445e;height:31px;overflow:hidden}.ks-roll-ruler>span{position:absolute;height:100%;font-size:10px;color:#baabc7;padding:8px 7px;border-left:1px solid #54426080;user-select:none}.ks-roll-ruler>span.ks-step-active{background:#d5eb8a35;color:#edffb4}.ks-roll-keys{position:sticky;left:0;z-index:4;background:#292531;border-right:1px solid #5a4a67}.ks-roll-key{height:26px;min-height:26px;width:100%;padding:0 10px;border:0;border-bottom:1px solid #938b9844;border-radius:0;background:linear-gradient(90deg,#c5c0ca,#b8b2be);color:#302c36;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:4px;touch-action:manipulation;font-weight:600}.ks-roll-key>span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ks-roll-key>small{font-size:7px;opacity:.55}.ks-roll-key.black{background:linear-gradient(90deg,#38333e 0%,#2b2632 90%,#201b28 90%);color:#c4bacc;border-bottom-color:#18151d}.ks-roll-key:hover,.ks-roll-key:focus-visible{background:#d9ef9a;color:#283214;outline:1px solid #e8ffc0;outline-offset:-2px}.ks-roll-grid{position:relative;height:calc(var(--roll-rows)*26px);min-width:0;background:#262030;isolation:isolate;overflow:hidden;user-select:none}.ks-roll-row{position:absolute;left:0;width:100%;height:26px;border-bottom:1px solid #453a5088;cursor:crosshair;background-image:linear-gradient(to right,#806f8d55 1px,transparent 1px),linear-gradient(to right,#6658743b 1px,transparent 1px);background-size:var(--roll-beat) 100%,var(--roll-grid) 100%;touch-action:pan-x pan-y}.ks-roll-row.black{background-color:#1e192680}.ks-roll-row:hover{background-color:#e3f5aa09}.ks-roll-row:focus-visible{outline:1px solid #aecc72;outline-offset:-2px;background-color:#c3d59214}.ks-roll-notes{position:absolute;inset:0;pointer-events:none;z-index:2}.ks-roll-note{position:absolute;height:20px;min-height:20px;min-width:2px;padding:0;border:1px solid #adcd7799;border-radius:3px;background:linear-gradient(180deg,#b6d884,#8eaf63);color:#27361e;pointer-events:auto;touch-action:none;cursor:grab;user-select:none;overflow:hidden;box-shadow:0 2px 3px #0003;display:flex;align-items:center;text-align:left}.ks-roll-note.selected{border-color:#f3ffd6;box-shadow:0 0 0 1px #d4eaab88,0 2px 5px #0006;background:linear-gradient(180deg,#e0f4b5,#bcd88d);z-index:3}.ks-roll-note:active{cursor:grabbing}.ks-roll-note:focus-visible{outline:2px solid #c4a2ed;outline-offset:1px;z-index:4}.ks-roll-note-label{font-size:8px;line-height:1;padding:0 9px;white-space:nowrap;overflow:hidden;text-overflow:clip;pointer-events:none;font-weight:600}.ks-roll-note>i{position:absolute;bottom:0;left:0;height:2px;background:#527638;opacity:.65;pointer-events:none}.ks-note-handle{position:absolute;top:0;bottom:0;width:8px;z-index:2;cursor:ew-resize;background:#2c482a0d;touch-action:none}.ks-note-handle:hover{background:#39541f44}.ks-note-handle.start{left:0;border-right:1px solid #34522a2a}.ks-note-handle.end{right:0;border-left:1px solid #34522a2a}.ks-roll-note.trim-left{border-left:2px dashed #4d692d;border-top-left-radius:0;border-bottom-left-radius:0}.ks-roll-note.trim-right{border-right:2px dashed #4d692d;border-top-right-radius:0;border-bottom-right-radius:0}.ks-roll-note[hidden]{display:none}.ks-roll-playhead{position:absolute;top:0;bottom:0;width:1px;background:#f6d87c;z-index:3;pointer-events:none;box-shadow:0 0 7px #efd37588}.ks-roll-drag-info{display:block;min-height:17px;font-family:ui-monospace,monospace;font-size:9px;color:#c5d4ac;margin-top:9px;line-height:1.6}.ks-roll-help{margin-top:5px;line-height:1.85}.ks-note-inspector>.ks-field{width:102px}
@media(max-width:680px){.ks-piano-roll{grid-template-columns:82px minmax(550px,1fr);min-width:632px}.ks-roll-scroll{max-height:368px}.ks-roll-corner{font-size:8px;padding:0 8px}.ks-roll-key{padding:0 6px}.ks-roll-key>span{font-size:8px}.ks-roll-key>small{font-size:6px}.ks-roll-options{gap:12px}.ks-audition-toggle{margin-left:0;font-size:9px}.ks-roll-options>label:first-child{font-size:9px}.ks-roll-note-label{font-size:8px;padding:0 10px}.ks-note-handle{width:10px}.ks-roll-drag-info{font-size:8px}.ks-roll-help{font-size:9px}.ks-note-inspector>.ks-field{min-width:105px}}
/* Production tools keep a full-width touch target on narrow screens. */
.ks-production{margin:16px 0;padding:16px;border:1px solid var(--border,#3a4448);border-radius:12px;background:#151b1d}.ks-production summary{cursor:pointer;font-weight:650;padding:8px}.ks-production-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ks-production-tools button{min-height:44px}.ks-automation{display:block;touch-action:none;cursor:crosshair;width:100%;height:160px;background:linear-gradient(#ffffff08 1px,transparent 1px),#111719;background-size:100% 25%;border:1px solid #56646a;border-radius:8px;margin:16px 0}.ks-analysis{padding:12px 0;border-top:1px solid #3a4448}.ks-analysis audio,.ks-dialog audio{width:100%}.ks-analysis p{line-height:1.7;font-variant-numeric:tabular-nums}@media(max-width:600px){.ks-production-tools{display:grid;grid-template-columns:1fr}.ks-production-tools button{width:100%;white-space:normal}.ks-dialog .ks-item-list article{flex-wrap:wrap}}
