@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Keep the studio palette and controls separate from the shared site bars. */
body.studio-page { background: #111719; }
.studio-shell h1 { display: block; position: static; padding: 0; text-transform: none; }
.studio-shell h2 { line-height: normal; }
.studio-shell p { margin: 1em 0; }
.studio-shell a { text-decoration: underline; }
.studio-shell{color-scheme:dark;--bg:#111719;--panel:#1b2225;--line:#354044;--ink:#f3f4ec;--muted:#a6b3b5;--lime:#d2f86a;--orange:#ffae78;--blue:#83c5ed}.studio-shell *{box-sizing:border-box}.studio-shell{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:16px}.studio-shell{max-width:1180px;margin:auto;padding:32px 40px}.studio-shell button,.studio-shell input,.studio-shell select{font:inherit}.studio-shell button,.studio-shell a,.studio-shell input,.studio-shell select{touch-action:manipulation}.studio-shell button{cursor:pointer}.studio-shell button:disabled{cursor:wait;opacity:.55}.studio-shell a{color:inherit}.studio-shell button{color:inherit}.studio-shell button:focus-visible,.studio-shell a:focus-visible,.studio-shell input:focus-visible,.studio-shell select:focus-visible,.studio-shell summary:focus-visible{outline:3px solid var(--lime);outline-offset:4px}.studio-shell header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:25px}.studio-shell .brand{text-decoration:none;font-weight:700;letter-spacing:.13em;font-size:14px;display:flex;align-items:center;gap:12px}.studio-shell .logo{color:var(--lime);font-size:30px;line-height:1}.studio-shell .badge,.studio-shell .eyebrow{font-size:12px;letter-spacing:.12em;color:var(--muted);font-weight:700}.studio-shell .badge{border:1px solid var(--line);padding:8px 10px;border-radius:4px}.studio-shell .intro{display:flex;justify-content:space-between;align-items:center;padding:36px 0 28px;gap:20px}.studio-shell .eyebrow{margin:0 0 12px}.studio-shell h1,.studio-shell h2{font-family:'Space Grotesk',sans-serif;margin:0;font-weight:500}.studio-shell h1{font-size:clamp(40px,5.5vw,64px);letter-spacing:-.065em;line-height:1.1}.studio-shell h1 span{color:var(--lime)}.studio-shell .sub{color:var(--muted);margin:14px 0 0}.studio-shell .panel{background:var(--panel);border:1px solid var(--line);border-radius:12px}.studio-shell .transport{display:flex;gap:25px;align-items:center;padding:20px;margin-bottom:22px}.studio-shell .play{background:var(--lime);border:0;border-radius:7px;color:#192014;padding:18px 22px;min-width:162px;font-weight:700}.studio-shell .secondary{background:transparent;border:1px solid #5b696d;border-radius:7px;padding:12px 16px;font-size:14px;font-weight:600}.studio-shell .secondary:hover{background:#2c373b}.studio-shell .position{flex:1;min-width:80px}.studio-shell .position span{font-size:12px;letter-spacing:.12em;color:var(--muted);font-variant-numeric:tabular-nums}.studio-shell .meter{height:5px;border-radius:4px;background:#3d484b;margin-top:13px;overflow:hidden}.studio-shell .meter i{display:block;width:0;height:100%;background:var(--lime)}.studio-shell .tempo{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.1em}.studio-shell .tempo span{display:flex;align-items:baseline;gap:5px}.studio-shell .tempo input{width:76px;border:0;background:transparent;color:var(--ink);font-family:'Space Grotesk',sans-serif;font-size:28px;padding:0;letter-spacing:-.05em}.studio-shell .tempo small{font-size:12px}.studio-shell .workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.studio-shell .sequencer,.studio-shell .mixer{padding:26px}.studio-shell .section-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.studio-shell h2{font-size:22px;letter-spacing:-.035em}.studio-shell .bar-tabs{display:flex;gap:4px;padding:4px;background:#101719;border-radius:7px}.studio-shell .bar-tabs button{font-size:13px;padding:9px 11px;background:transparent;border:0;border-radius:4px;white-space:nowrap;color:var(--muted)}.studio-shell .bar-tabs .selected{background:#3b484d;color:white}.studio-shell .bar-tabs .playing{box-shadow:inset 0 -2px var(--lime)}.studio-shell .preset-row{display:flex;gap:10px;align-items:center;margin:30px 0 22px;font-size:14px}.studio-shell .preset-row label{color:var(--muted)}.studio-shell select{background:#242e32;border:1px solid var(--line);padding:9px 30px 9px 10px;border-radius:5px;color:var(--ink);font-size:14px;max-width:190px}.studio-shell .text-button{padding:6px 0;background:none;border:0;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.studio-shell .preset-row .text-button{margin-left:auto}.studio-shell .lane{margin:18px 0}.studio-shell .lane-head{display:flex;justify-content:space-between;margin-bottom:9px;align-items:center}.studio-shell .lane-name{font-size:14px;font-weight:600}.studio-shell .lane-head small{color:var(--muted);font-size:12px}.studio-shell .pads,.studio-shell .counts{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:5px}.studio-shell .pad{height:42px;border:1px solid #4a585c;background:#263135;border-radius:4px;position:relative;padding:0;min-width:0}.studio-shell .pad:nth-child(4n+1){border-left:2px solid #8a969a}.studio-shell .pad[data-level="1"]{background:#688442;border-color:#94b261}.studio-shell .pad[data-level="2"]{background:var(--lime);border-color:var(--lime)}.studio-shell .lane[data-track="kick"] .pad[data-level="1"]{background:#94694c}.studio-shell .lane[data-track="kick"] .pad[data-level="2"]{background:var(--orange);border-color:var(--orange)}.studio-shell .lane[data-track="snare"] .pad[data-level="1"]{background:#466e86}.studio-shell .lane[data-track="snare"] .pad[data-level="2"]{background:var(--blue);border-color:var(--blue)}.studio-shell .pad.active{box-shadow:0 0 0 2px white;transform:translateY(-3px)}.studio-shell .counts{font-size:12px;color:var(--muted);text-align:center;margin-top:8px}.studio-shell .counts span:nth-child(4n+1){color:white}.studio-shell .legend{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted);margin:23px 0}.studio-shell .legend span{display:flex;gap:6px;align-items:center}.studio-shell .dot{width:9px;height:9px;border-radius:2px;display:inline-block}.studio-shell .off{background:#263135;border:1px solid #6a787d}.studio-shell .soft{background:#688442}.studio-shell .accent{background:var(--lime)}.studio-shell .legend .hint{margin-left:auto}.studio-shell .swing{padding-top:20px;border-top:1px solid var(--line)}.studio-shell .swing label{display:flex;justify-content:space-between;font-size:14px}.studio-shell .swing p{font-size:13px;color:var(--muted);margin:5px 0 0}.studio-shell input[type=range]{accent-color:var(--lime);width:100%;height:26px;cursor:pointer;margin:8px 0}.studio-shell .mixer h2{margin-bottom:25px}.studio-shell .channel{margin-bottom:22px}.studio-shell .channel-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.studio-shell .mute{border:0;background:transparent;font-size:14px;padding:0;color:var(--ink);text-align:left}.studio-shell .mute[aria-pressed="true"]{color:#79878c;text-decoration:line-through}.studio-shell .channel output{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.studio-shell .channel[data-track=kick] input{accent-color:var(--orange)}.studio-shell .channel[data-track=snare] input{accent-color:var(--blue)}.studio-shell .note{color:var(--muted);font-size:13px;line-height:1.65;border-top:1px solid var(--line);padding-top:18px;margin:10px 0 0}.studio-shell footer{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:13px;color:var(--muted);padding:15px 0}.studio-shell footer p{max-width:60%}.studio-shell footer div{display:flex;gap:18px;align-items:center}.studio-shell footer a{font-size:14px}.studio-shell details{border-top:1px solid var(--line);padding-top:20px;font-size:14px;color:var(--muted);line-height:1.7}.studio-shell summary{cursor:pointer;color:var(--ink)}.studio-shell details p{max-width:750px}.studio-shell .error{color:#ffb8aa!important}@media(max-width:900px){.studio-shell{padding:25px}.studio-shell .workspace{grid-template-columns:1fr}.studio-shell .mixer{display:block}.studio-shell .mixer h2{margin-bottom:20px}.studio-shell #mixer{display:grid;grid-template-columns:1fr 1fr;column-gap:30px}.studio-shell .note{margin:0}.studio-shell .transport{gap:16px}}@media(max-width:560px){.studio-shell{padding:20px 15px}.studio-shell .intro{align-items:flex-start;flex-direction:column;padding:28px 0 22px;gap:18px}.studio-shell .intro .secondary{padding:10px 14px}.studio-shell .transport{display:grid;grid-template-columns:1fr auto;padding:16px;gap:17px}.studio-shell .play{min-width:0;padding:16px}.studio-shell .position{grid-row:2;grid-column:1}.studio-shell .tempo{grid-column:2;grid-row:1}.studio-shell .transport>.secondary{grid-row:2;grid-column:2;padding:9px 10px;font-size:13px}.studio-shell .sequencer,.studio-shell .mixer{padding:18px}.studio-shell .section-head{align-items:flex-start}.studio-shell h2{font-size:20px}.studio-shell .section-head .eyebrow{font-size:11px}.studio-shell .bar-tabs button{padding:8px;font-size:12px}.studio-shell .pads,.studio-shell .counts{gap:4px;grid-template-columns:repeat(8,minmax(0,1fr))}.studio-shell .pad{height:36px}.studio-shell .counts{display:none}.studio-shell .lane-head small::after{content:' · 2 rows of 8'}.studio-shell .lane{margin:22px 0}.studio-shell .legend{gap:10px;flex-wrap:wrap}.studio-shell .legend .hint{margin-left:0}.studio-shell .preset-row{gap:7px;margin-top:22px}.studio-shell .preset-row select{max-width:155px;padding-right:12px}.studio-shell .preset-row .text-button{font-size:12px}.studio-shell footer{align-items:flex-start;flex-direction:column;gap:2px}.studio-shell footer p{max-width:100%}.studio-shell .badge{font-size:10px}.studio-shell .brand{font-size:12px}.studio-shell #mixer{column-gap:20px}.studio-shell details{margin-top:10px}}

/* The ticker adds its own body offset; reserve the navigation height here. */
.studio-shell { margin-top: 3.5rem; scroll-margin-top: calc(var(--dealflow-height, 0px) + 3.5rem); }
.studio-shell .share-tools { width: min(100%, 330px); }
.studio-shell .share-tools p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 10px 0; }
.studio-shell .share-tools label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 5px; }
.studio-shell #session-link { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); padding: 9px; font-size: 12px; }
.studio-shell .saved-mix { margin-top: 20px; }
.studio-shell #load-mix { max-width: 100%; margin-top: 10px; }
.studio-shell [hidden] { display: none !important; }
