/* Fixed transport sits inside the foremost dialog, above its scrolling content. */
:root{--studio-bar-height:80px}
html.has-studio-bar body{padding-top:var(--studio-bar-height)}
#studio-bar{box-sizing:border-box;position:fixed;inset:0 0 auto;z-index:1000;display:flex;align-items:center;gap:18px;width:100%;margin:0;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:#3c3b34;color:#f7efdf;border:0;border-bottom:1px solid #5b574b;box-shadow:0 3px 14px #2e2c2520;font:14px/1.2 system-ui,-apple-system,sans-serif;isolation:isolate;overflow:visible}
#studio-bar *{box-sizing:border-box}#studio-bar button{font:600 13px/1.2 system-ui,-apple-system,sans-serif;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#studio-bar #studio-play{display:flex;align-items:center;justify-content:center;gap:13px;min-width:152px;min-height:56px;padding:12px 24px;border:1px solid #ca8d61;border-radius:10px;background:#bc754c;color:#fff9ee;font-size:20px;flex-shrink:0;box-shadow:0 2px 0 #20251e55}
#studio-bar #studio-play:hover{background:#ce875a}#studio-bar.is-playing #studio-play{background:#748b72;border-color:#94aa8b}#studio-bar.is-pending #studio-play{background:#79684c;border-color:#ae946e}#studio-bar #studio-play:disabled{opacity:.45;cursor:default}#studio-bar .studio-play-icon{font-size:22px;width:23px;text-align:center}#studio-bar button:focus-visible{outline:3px solid #f3d298;outline-offset:3px}
#studio-bar .studio-now{display:grid;gap:3px;flex:1 1 160px;min-width:0;max-width:330px}#studio-context{font-size:9px;letter-spacing:1.5px;color:#c9bfaa}#studio-now-name{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#studio-now-tempo{font-size:10px;color:#d6c5a8;font-variant-numeric:tabular-nums}
#studio-bar nav{display:flex;align-self:stretch;gap:5px;margin-left:auto;min-width:0}#studio-bar nav button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:9px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:#ded5c4;white-space:nowrap}#studio-bar nav button>span{font-size:21px;color:#c4b391;line-height:1}#studio-bar nav button:hover{background:#514e42}#studio-bar nav button[aria-current=page]{background:#5a594b;color:#fff8e8;border-color:#77715c}#studio-bar nav button[aria-current=page]>span{color:#efcc90}
#studio-bar .studio-now{position:relative;padding-right:38px}#studio-bar #studio-menu-open{position:absolute;right:0;top:50%;transform:translateY(-50%);width:34px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:#d4c8b0;font-size:25px}#studio-bar #studio-menu-open:hover{background:#514e42}
#studio-bar nav{gap:3px}#studio-bar nav button{padding-left:10px;padding-right:10px}
html.has-studio-bar body :is(dialog,#synth-xy-dialog)[open]{box-sizing:border-box;top:var(--studio-bar-height);bottom:0;max-height:calc(100dvh - var(--studio-bar-height) - 24px)}
html.has-studio-bar body #editor[open],html.has-studio-bar body #synth-dialog[open]{top:var(--studio-bar-height);bottom:0;height:calc(100dvh - var(--studio-bar-height));max-height:calc(100dvh - var(--studio-bar-height));margin:0}
html.has-studio-bar body #pads-dialog[open]{height:calc(100dvh - var(--studio-bar-height));max-height:calc(100dvh - var(--studio-bar-height))}
html.has-studio-bar body #loops-dialog[open]{top:var(--studio-bar-height);height:calc(100dvh - var(--studio-bar-height));max-height:calc(100dvh - var(--studio-bar-height));margin:0}
html.has-studio-bar #editor .studio-library{top:var(--studio-bar-height);height:calc(100dvh - var(--studio-bar-height))}
@media(max-width:1150px){#studio-bar{gap:12px;padding-left:12px;padding-right:12px}#studio-bar nav button{padding:9px 10px;font-size:12px}#studio-bar .studio-now{max-width:210px}#studio-bar #studio-play{min-width:132px}}
@media(max-width:760px){:root{--studio-bar-height:122px}#studio-bar{display:grid;grid-template-columns:144px minmax(0,1fr);gap:8px 14px;padding:9px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left));padding-top:max(9px,env(safe-area-inset-top))}#studio-bar #studio-play{min-width:0;width:144px;min-height:52px;font-size:20px;padding:10px 16px}#studio-bar .studio-now{max-width:none}#studio-bar nav{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0}#studio-bar nav button{flex-direction:column;gap:4px;min-height:46px;padding:5px 1px;font-size:10px;letter-spacing:-.15px}#studio-bar nav button>span{font-size:19px}#studio-now-name{font-size:12px}#studio-context{font-size:8px;letter-spacing:1px}html.has-studio-bar body #pads-dialog[open]{height:calc(100dvh - var(--studio-bar-height));max-height:calc(100dvh - var(--studio-bar-height));margin:0}html.has-studio-bar body #synth-xy-dialog[open]{max-height:calc(100dvh - var(--studio-bar-height) - 12px)}html.has-studio-bar #synth-xy-dialog #synth-xy-pad{height:clamp(160px,34dvh,330px)}}
@media(orientation:landscape) and (max-height:520px){#studio-bar{display:flex;gap:8px;padding:5px 10px}#studio-bar #studio-play{width:auto;min-width:105px;min-height:44px;padding:6px 12px;font-size:17px}#studio-bar .studio-now{max-width:160px;gap:2px}#studio-context{display:none}#studio-bar nav{display:flex;width:auto;gap:3px}#studio-bar nav button{min-height:44px;padding:4px 8px;font-size:9px}#studio-bar nav button>span{font-size:17px}}
@media(max-width:760px) and (orientation:portrait){#studio-bar nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}#studio-bar nav button{font-size:9px;padding-left:0;padding-right:0}}
