/* studio-lane-r3 (reference-aligned layout; OpenArt public create panel measured 2026-11-27, see studio-lane-r2/ref/TARGETS.md).
   1) three columns from 961 px (232 sidebar + 420 panel + results); tabs only <= 960 px (threshold moved from 1100 in studio.html,
      studio-perf-r3-late.css, studio-oa-panel.js, studio-oa-flyout.js, studio-motion-panel.js, studio-responsive-workspace.js);
   2) Audio + Output as paired half-width tiles (js/studio-r3-audio-tile.js);  3) phone tab bar order/raised Create;  4) model row 50 px. */
@media(min-width:961px) and (max-width:1100px){html.soa{--panel-w:420px}}
@media(min-width:961px){html.soa .tool-panel>#modelsLink{min-height:50px;height:50px;box-sizing:border-box}}

html.soa .s3-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
html.soa .s3-pair>*{min-width:0}
html.soa .s3-pair>.s3-audio-tile{display:flex;align-items:center;gap:10px;min-height:56px;box-sizing:border-box;padding:7px 10px 7px 8px;border:1px solid var(--soa-line,rgba(210,211,242,.10));border-radius:12px;background:var(--soa-surface,#16161f);color:var(--text,#e8e8f0)}
html.soa .s3-audio-tile .s3-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.05);color:var(--soa-accent,#a5a0ff)}
html.soa .s3-audio-tile .s3-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
html.soa .s3-audio-tile .s3-lbl{font-size:12px;line-height:16px;font-weight:500;color:var(--soa-text-2,#c4c4d4)}
html.soa .s3-audio-tile .s3-val{font-size:14px;line-height:18px;font-weight:600}
html.soa .s3-audio-tile .s3-sw{flex:none;position:relative;width:40px;height:24px;padding:0;border:0;border-radius:999px;background:#3a3a4e;cursor:pointer;transition:background .15s}
html.soa .s3-audio-tile .s3-sw::after{content:"";position:absolute;inset:-10px -4px}/* 44 px touch height */
html.soa .s3-audio-tile .s3-knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
html.soa .s3-audio-tile .s3-sw[aria-checked="true"]{background:var(--soa-accent,#7d73ff)}
html.soa .s3-audio-tile .s3-sw[aria-checked="true"] .s3-knob{transform:translateX(16px)}
html.soa .s3-audio-tile .s3-sw:focus-visible{outline:2px solid var(--accent,#6c63ff);outline-offset:3px}
html.soa .s3-audio-tile .s3-sw:disabled{opacity:.5;cursor:not-allowed}
html.soa .s3-pair .soa-out-row{min-height:56px}
html.soa .s3-pair .soa-out-row *{min-width:0}
@media(max-width:360px){html.soa .s3-audio-tile .s3-ic{display:none}}

@media(max-width:520px){
  html.el-has-tabs .el-tabbar[data-s3-order]{overflow:visible}
  html.el-has-tabs .el-tabbar[data-s3-order] a[data-tab="create"]{position:relative}
  html.el-has-tabs .el-tabbar[data-s3-order] a[data-tab="create"] svg{box-sizing:content-box;width:24px;height:24px;padding:11px;margin-top:-26px;border-radius:50%;background:#1b1b27;border:1px solid #3a3a52;box-shadow:0 0 0 4px rgba(10,10,15,.92);color:#cfcbff}
  html.el-has-tabs .el-tabbar[data-s3-order] a[data-tab="create"][aria-current="page"] svg{background:#6c63ff;border-color:#a59dff;color:#fff}
  html.el-has-tabs .el-tabbar[data-s3-order] a[data-tab="create"]::before{display:none}
  html.soa .tool-panel>.gen-bar{padding-bottom:20px}
}
