/* Audio Studio on the Studios shell */
[data-studio=audio-studio]{--au-head:150px;--au-playhead:#FFD27A}
[data-studio=audio-studio] .st-shell-stage{display:flex;flex-direction:column;gap:10px;padding:10px}
.au-timeline{display:grid;gap:0;border:1px solid var(--line-2);border-radius:12px;background:color-mix(in srgb,var(--deep) 70%,var(--card));overflow:hidden;flex:none}
.au-transport{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px;border-bottom:1px solid var(--line-2);background:var(--st-panel)}
.au-tgroup{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--deep) 60%,transparent)}
.au-spacer{flex:1 1 0}
.au-time{min-width:5.6ch;padding:2px 12px;font-size:1.9rem;font-weight:700;line-height:1.1;letter-spacing:.01em;font-variant-numeric:tabular-nums;color:var(--au-playhead);border:1px solid color-mix(in srgb,var(--au-playhead) 30%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--deep) 80%,black)}
.st-shell.st-modern .au-play{width:44px;height:40px;background:var(--st-acc);color:var(--deep);border-color:var(--st-acc)}
.st-shell.st-modern .au-play:hover{background:color-mix(in srgb,var(--st-acc) 82%,white);color:var(--deep)}
.au-bpm{display:flex;align-items:center;gap:6px;padding-inline:6px;font-size:.78rem;color:var(--ink-2)}
.st-shell.st-modern .au-bpm input{width:4.4rem;min-height:34px;padding:2px 6px;border:1px solid var(--line-2);border-radius:6px;background:var(--field);color:var(--cream);font:inherit;font-size:1rem;font-variant-numeric:tabular-nums;text-align:center}
.au-meter{width:min(160px,28vw);height:10px;border-radius:5px;background:var(--field);border:1px solid var(--line);overflow:hidden}
.au-meter i{display:block;height:100%;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,var(--st-acc) 0 62%,#F4BA52 62% 85%,#FF8087 85%)}
.au-rulerrow{display:grid;grid-template-columns:var(--au-head) minmax(0,1fr);border-bottom:1px solid var(--line)}
.au-corner{display:flex;align-items:center;padding-inline:6px;border-inline-end:1px solid var(--line)}
.au-ruler{display:block;width:100%;height:26px;cursor:col-resize;touch-action:pan-y}
.au-lane{display:grid;grid-template-columns:var(--au-head) minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden;border-bottom:1px solid var(--line)}
.au-lane.is-sel{background:color-mix(in srgb,var(--c) 7%,transparent)}
.au-head{display:grid;align-content:center;gap:6px;padding:8px;border-inline-end:1px solid var(--line);background:color-mix(in srgb,var(--c) 12%,var(--st-panel))}
.st-shell.st-modern .au-head input[type=text]{width:100%;min-width:0;min-height:30px;padding:2px 6px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--c);font:inherit;font-size:.84rem;font-weight:700;text-overflow:ellipsis}
.st-shell.st-modern .au-head input[type=text]:hover,.st-shell.st-modern .au-head input[type=text]:focus{border-color:var(--line-2);background:var(--field)}
.au-head-btns{display:flex;gap:4px}
.st-shell.st-modern .au-head-btns button{width:34px;height:30px;min-height:30px;padding:0;border:1px solid var(--line-2);border-radius:5px;background:var(--field);color:var(--ink);font:inherit;font-size:.74rem;font-weight:750;cursor:pointer}
.st-shell.st-modern .au-head-btns button[aria-pressed=true]{background:var(--c);border-color:var(--c);color:var(--deep)}
.au-wave{display:block;width:100%;height:100%;min-height:0;touch-action:pan-y}
.au-scroll{width:100%;margin:0;min-height:22px;accent-color:var(--st-acc)}
.au-scroll[hidden]{display:none}
.au-deck{flex:none;border:1px solid var(--line-2);border-radius:12px;background:var(--st-panel);overflow:hidden}
.au-deck-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line)}
.au-panel{display:grid;gap:12px;padding:12px}
.au-opts{display:flex;flex-wrap:wrap;align-items:end;gap:8px 14px}
.au-opts .st-control{grid-template-columns:auto auto;gap:8px}
.st-shell.st-modern .au-opts .st-control select,.st-shell.st-modern .au-opts .st-control input{min-height:36px;padding:2px 8px;border:1px solid var(--line-2);border-radius:6px;background:var(--field);color:var(--cream);font:inherit;width:auto;max-width:11rem}
.st-shell.st-modern .au-opts .st-control-number input{width:4.5rem}
.au-piano{position:relative;height:clamp(112px,22vw,150px);user-select:none;touch-action:manipulation}
.au-whites{display:flex;height:100%;gap:2px}
.st-shell.st-modern .au-key{display:flex;align-items:end;justify-content:center;padding:0 0 6px;border:1px solid #0000;cursor:pointer;font:inherit}
.st-shell.st-modern .au-key small{font-size:.7rem;font-weight:700;pointer-events:none}
.st-shell.st-modern .au-key.is-white{flex:1 1 0;min-width:0;border-radius:0 0 6px 6px;background:linear-gradient(#f7efe6,#e6d7c3);color:#4a3340;border-color:#bca88f}
.st-shell.st-modern .au-key.is-black{position:absolute;top:0;z-index:1;width:calc(100%/15*.58);height:62%;margin-inline-start:calc(100%/15*-.29 + 1px);border-radius:0 0 5px 5px;background:linear-gradient(#3a2230,#1a0f15);color:#d8c7d0;border-color:#0b0508}
.st-shell.st-modern .au-key:is(.is-down,:active){background:var(--st-acc);color:var(--deep)}
.st-shell.st-modern .au-key:focus-visible{outline:2px solid var(--mint);outline-offset:-3px;z-index:2}
.st-shell.st-modern .au-steps{display:grid;gap:5px;overflow:auto;padding-bottom:2px}
.st-shell.st-modern .au-step-row{display:grid;grid-template-columns:4.2rem repeat(16,minmax(20px,1fr));gap:3px;align-items:center;min-width:430px}
.st-shell.st-modern .au-step-name{font-size:.78rem;font-weight:650;color:var(--c)}
.st-shell.st-modern .au-step{height:32px;min-height:32px;padding:0;border:1px solid var(--line-2);border-radius:5px;background:var(--field);cursor:pointer}
.st-shell.st-modern .au-step.is-beat{background:color-mix(in srgb,var(--c) 8%,var(--field))}
.st-shell.st-modern .au-step[aria-pressed=true]{background:var(--c);border-color:var(--c)}
.st-shell.st-modern .au-step.is-now{outline:2px solid var(--au-playhead);outline-offset:-1px}
.st-shell.st-modern .au-pads{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:8px}
.st-shell.st-modern .au-pad{display:grid;place-items:center;gap:3px;min-height:64px;padding:8px;border:1px solid color-mix(in srgb,var(--c) 55%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--c) 14%,var(--card));color:var(--cream);font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation}
.st-shell.st-modern .au-pad .st-ico{color:var(--c)}
.st-shell.st-modern .au-pad small{font-size:.72rem;color:var(--c);font-weight:700}
.st-shell.st-modern .au-pad:is(.is-down,:active){background:var(--c);color:var(--deep)}.st-shell.st-modern .au-pad:is(.is-down,:active) :is(.st-ico,small){color:var(--deep)}
.au-chords{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}
.au-actions{display:flex;flex-wrap:wrap;gap:6px}
.au-hint{margin:0;color:var(--ink-2);font-size:.8rem}
.au-spectrum{display:block;width:100%;height:84px;border:1px solid var(--line);border-radius:6px;background:var(--field)}
@media(max-width:760px){
  [data-studio=audio-studio]{--au-head:92px}
  [data-studio=audio-studio] .st-shell-stage{padding:6px;gap:8px}
  .au-time{font-size:1.5rem}
  .au-meter{display:none}
  .au-head{padding:6px 5px;gap:4px}
  .st-shell.st-modern .au-head-btns button{width:36px;height:34px;min-height:34px}
  .au-corner{padding-inline:2px}
  .au-step-row{grid-template-columns:3.6rem repeat(16,minmax(20px,1fr))}
}
