:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#eeeae2;background:#101111;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #101111;--surface: #171918;--surface-raised: #1d201e;--surface-hover: #252a27;--border: rgba(238, 234, 226, .1);--border-strong: rgba(238, 234, 226, .2);--text: #eeeae2;--muted: #888d87;--faint: #555b55;--coral: #ef6a59;--aqua: #54c7c0;--lime: #d7df65;--shadow: 0 22px 60px rgba(0, 0, 0, .24);--radius-sm: 8px;--radius-md: 14px;--ease: .16s ease}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{color:inherit}html,body,#root{max-width:100%;overflow-x:hidden}body{background:var(--bg)}button{border:0;cursor:pointer}button,[role=button]{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation}button:focus:not(:focus-visible),[role=button]:focus:not(:focus-visible){outline:none}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid var(--text);outline-offset:4px}.app-shell{display:grid;grid-template-rows:auto minmax(520px,1fr) auto auto;gap:22px;min-height:100vh;padding:28px 34px 26px}.topbar,.workspace,.transport-panel,.bottom-sheet{width:min(1420px,100%);margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between}.brand-lockup,.topbar-actions,.transport-actions,.sheet-actions{display:flex;align-items:center}.brand-lockup{gap:12px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;color:var(--coral);border:1px solid var(--border-strong);border-radius:50%;font-size:25px;line-height:1}.eyebrow{margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.18em;line-height:1}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:19px;font-weight:700;letter-spacing:.22em}h2{margin-bottom:0;font-size:16px;font-weight:600}.topbar-actions{gap:18px}.transport-status{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;cursor:pointer;color:var(--muted);font-size:12px}.transport-status.is-live{color:var(--text)}.status-dot,.meta-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--faint)}.is-live .status-dot{background:var(--coral);box-shadow:0 0 0 4px #ef6a591a}.icon-button,.tiny-button{display:inline-grid;place-items:center;background:transparent;color:var(--muted);transition:color var(--ease),background var(--ease)}.icon-button{width:36px;height:36px;border:1px solid var(--border);border-radius:50%}.icon-button:hover,.tiny-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.workspace{position:relative;display:grid;grid-template-columns:clamp(148px,14vw,190px) minmax(0,1fr);gap:34px;align-items:center}.arranger-panel{align-self:center;width:100%;padding:18px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:#171918b8}.panel-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:0 6px 16px}.layer-count{color:var(--faint);font-size:11px}.layer-list{display:grid;gap:4px}.layer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;min-height:64px;border:1px solid transparent;border-radius:var(--radius-sm);transition:border-color var(--ease),background var(--ease);cursor:grab}.layer-row:active{cursor:grabbing}.layer-row.is-selected{border-color:var(--border-strong);background:var(--surface-raised)}.layer-row.is-muted{opacity:.5}.layer-row.is-drag-over{border-color:var(--aqua);background:#54c7c014}.layer-select{display:grid;grid-template-columns:16px 8px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 4px 9px 6px;background:transparent;text-align:left}.drag-handle{color:var(--faint)}.layer-swatch{width:8px;height:30px;border-radius:4px}.layer-rhythm{align-self:center;color:var(--muted);font-size:13px;font-weight:700}.layer-index{color:var(--faint);font-size:9px;font-weight:700}.layer-actions{display:flex;flex-direction:column;justify-content:center;gap:1px;padding-right:4px}.tiny-button{width:23px;height:19px;border-radius:4px}.arranger-note{margin:16px 6px 2px;color:var(--faint);font-size:10px;line-height:1.5}.sequencer-stage{position:relative;display:grid;place-items:center;min-width:0;overflow:hidden}.sequencer-meta,.sequencer-footer{position:absolute;display:flex;align-items:center;justify-content:space-between;width:min(600px,75%);color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;pointer-events:none}.sequencer-meta{top:3%}.sequencer-footer{bottom:3%}.sequencer-meta span:first-child,.footer-value{display:inline-flex;align-items:center;gap:7px}.ratio-readout{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.02em}.sequencer-svg{display:block;width:min(720px,100%);max-height:calc(100vh - 300px);overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none}.sequencer-halo{fill:#1719188c;stroke:#eeeae209;stroke-width:1}.sequencer-ring,.sequencer-inner-ring{fill:none;stroke:var(--border);stroke-width:1}.sequencer-inner-ring{stroke:#eeeae20d;stroke-dasharray:1 8}.beat-dot circle:first-child{fill:var(--faint);transition:fill var(--ease),r var(--ease)}.beat-dot.is-active circle:first-child{fill:var(--text)}.beat-pulse{fill:none;stroke:var(--text);stroke-width:1;opacity:.18}.rhythm-shape{cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:none;transition:opacity var(--ease)}.rhythm-shape-hit-area{fill:transparent;stroke:transparent;stroke-width:28;pointer-events:all}.rhythm-shape-fill{fill-opacity:.2;stroke:none;pointer-events:none;transition:fill-opacity var(--ease)}.rhythm-shape-outline{fill:none;stroke-width:2;stroke-opacity:.72;pointer-events:none;transition:stroke-width var(--ease),stroke-opacity var(--ease)}.rhythm-shape.is-selected .rhythm-shape-fill{fill-opacity:.32}.rhythm-shape.is-selected .rhythm-shape-outline{stroke-width:3;stroke-opacity:1}.rhythm-shape.is-muted{opacity:.45}.shape-vertex{stroke:var(--bg);stroke-width:2;pointer-events:none}.shape-vertex.is-start{stroke:var(--text);stroke-width:2.5}.shape-vertex.is-triggered{stroke:var(--text);stroke-width:3;filter:drop-shadow(0 0 5px currentColor)}.sequencer-center{fill:var(--text);opacity:.7}.transport-panel{display:grid;grid-template-columns:145px minmax(180px,1fr) auto;gap:30px;align-items:center;padding:14px 18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.speed-copy{display:grid;gap:5px}.speed-value{font-size:17px;font-weight:600}.speed-value small{color:var(--muted);font-size:10px;font-weight:400}.speed-slider{width:100%;accent-color:var(--coral)}.transport-actions{gap:8px}.transport-button,.sheet-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--muted);font-size:11px;transition:color var(--ease),border-color var(--ease),background var(--ease)}.transport-button:hover:not(:disabled),.sheet-action:hover:not(:disabled){border-color:var(--border-strong);color:var(--text)}.transport-button.primary{border-color:var(--coral);background:var(--coral);color:#17100f}.bottom-sheet{position:fixed;z-index:5;right:0;bottom:16px;left:50%;width:min(1420px,calc(100% - 48px));margin:0;height:var(--sheet-height, 58px);max-height:50vh;overflow:hidden;transform:translate(-50%);display:grid;grid-template-rows:25px minmax(0,1fr);gap:0;padding:8px 0 0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow);transition:height .22s ease}.bottom-sheet.is-dragging{transition:none}.bottom-sheet.is-collapsed .sheet-body{visibility:hidden;opacity:0;pointer-events:none}.sheet-handle{display:grid;place-items:center;width:100%;min-height:25px;padding:0;background:transparent;cursor:grab;touch-action:none}.sheet-handle:active{cursor:grabbing}.sheet-handle span{width:42px;height:4px;border-radius:99px;background:var(--border-strong)}.sheet-handle:hover span,.bottom-sheet.is-expanded .sheet-handle span{background:var(--muted)}.sheet-body{display:grid;gap:15px;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 18px 16px;scrollbar-width:thin}.sheet-header,.sheet-controls,.sheet-layer-tabs{display:flex;align-items:center}.sheet-header{justify-content:space-between;gap:20px}.sheet-layer-tabs{gap:5px}.layer-tab{display:inline-flex;align-items:center;gap:6px;min-height:29px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:10px}.layer-tab:hover,.layer-tab.is-selected{border-color:var(--border-strong);background:var(--surface-hover);color:var(--text)}.layer-tab span{width:6px;height:6px;border-radius:50%}.sheet-controls{flex-wrap:wrap;gap:10px}.control-field,.rotation-control{display:grid;gap:5px;color:var(--muted);font-size:10px}.shape-actions{display:flex;align-items:center;align-self:end;gap:7px;min-height:32px}.text-button{padding:0 4px;background:transparent;color:var(--muted);font-size:10px}.text-button:hover{color:var(--text)}.text-button.is-danger{color:var(--coral)}.control-field select{min-width:116px;min-height:32px;padding:0 9px;border:1px solid var(--border);border-radius:6px;outline:none;background:var(--surface-raised);color:var(--text);font-size:11px}.control-field select:focus-visible{border-color:var(--border-strong)}.rotation-control{grid-template-columns:1fr auto;align-items:center;gap:7px;min-height:32px;padding-top:15px}.sheet-warning,.validation-warning{color:var(--coral);font-size:11px}.modal-scrim{position:fixed;z-index:10;inset:0;display:grid;place-items:center;padding:20px;background:#090a0ac7}.shape-editor{width:min(540px,100%);max-height:min(760px,94vh);overflow:auto;padding:22px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.editor-header,.editor-footer,.editor-fields{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-fields{align-items:flex-end;margin-top:22px}.editor-fields .control-field{flex:1}.control-field input{min-height:32px;padding:0 9px;border:1px solid var(--border);border-radius:6px;outline:none;background:var(--surface-raised);color:var(--text);font-size:11px}.editor-stage{position:relative;display:grid;place-items:center;margin:18px 0 8px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.editor-svg{display:block;width:min(360px,100%)}.editor-ring{fill:none;stroke:var(--border-strong);stroke-width:1}.editor-preview{fill:#54c7c033;stroke:var(--aqua);stroke-width:2}.editor-beat{cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:none}.editor-beat circle{fill:var(--faint);stroke:var(--bg);stroke-width:2;transition:fill var(--ease),r var(--ease)}.editor-beat text{fill:var(--faint);font-size:7px;pointer-events:none}.editor-beat.is-selected circle{fill:var(--aqua)}.editor-beat.is-selected text{fill:var(--text)}.editor-count{color:var(--muted);font-size:11px}.editor-count strong{color:var(--text)}.editor-status{min-height:17px;margin:0 0 18px;color:var(--muted);font-size:11px}.editor-status.has-error{color:var(--coral)}.editor-footer{justify-content:flex-end}.validation-warning{width:min(1420px,100%);margin:-6px auto 0;text-align:center}.sheet-intro{display:grid;gap:5px}.sheet-intro strong{font-size:14px;font-weight:600}.sheet-hint{color:var(--muted);font-size:11px}.sheet-actions{gap:8px}.sheet-action.add-layer{border-color:#d7df6566;color:var(--lime)}@media(max-width:900px){.app-shell{grid-template-rows:auto minmax(440px,1fr) auto auto;padding:20px 18px 18px}.workspace{grid-template-columns:clamp(136px,19vw,160px) minmax(0,1fr);gap:15px}.arranger-panel{padding:clamp(12px,2vw,18px) clamp(8px,1.5vw,12px)}.sequencer-svg{max-height:none}}@media(max-width:680px){.app-shell{display:block;padding:16px 12px 14px;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.topbar{margin-bottom:16px}.transport-status{display:none}.workspace{display:block}.arranger-panel{position:absolute;top:50%;left:0;z-index:2;width:clamp(112px,30vw,138px);margin:0;padding:clamp(10px,3vw,14px) 6px;transform:translateY(-50%)}.panel-heading{padding:0 4px 10px}.layer-row{min-height:clamp(42px,11vw,54px)}.layer-select{grid-template-columns:13px 6px minmax(0,1fr) auto;gap:clamp(5px,2vw,8px);padding-inline:4px}.layer-rhythm{font-size:clamp(11px,3vw,13px)}.layer-index{font-size:clamp(8px,2.4vw,10px)}.layer-swatch{height:clamp(20px,7vw,28px)}.sequencer-stage{min-height:470px}.sequencer-svg{width:100%}.sequencer-meta,.sequencer-footer{width:82%;font-size:9px}.transport-panel,.bottom-sheet{margin-top:0}.transport-panel{grid-template-columns:1fr auto;gap:12px}.speed-slider{grid-column:1 / -1;grid-row:2}.bottom-sheet{right:0;bottom:0;left:0;width:100%;border-right:0;border-bottom:0;border-left:0;border-radius:16px 16px 0 0;transform:none}.sheet-header,.sheet-controls{width:100%}.shape-actions{grid-column:1 / -1;justify-self:start}.sheet-header{align-items:flex-start;flex-direction:column}.sheet-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.control-field select{width:100%;min-width:0}.sheet-actions{width:100%}.sheet-action{flex:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
