
    :root { --ui-surface:#151b28; --ui-surface-raised:#1b2231; --ui-line:#394153; --ui-gold:#f1c875; --ui-muted:#a8afbf; }
    .studio { gap:6px; }
    .keyboard { height:min(330px,11.5vw,calc(100dvh - 640px)); }
    .score-panel { height:clamp(285px,37vh,350px); padding:11px 13px 13px; border-color:#394153; border-radius:14px; background:linear-gradient(145deg,#171d2b,#121722); box-shadow:0 12px 28px #05070b55,inset 0 1px #ffffff0a; }
    .instrument-deck { min-height:190px; padding:11px; border-color:var(--ui-line); border-radius:20px 20px 12px 12px; background:linear-gradient(145deg,#1a2030,#141a26 56%,#111722); box-shadow:inset 0 1px #ffffff0b,0 12px 28px #05070b55; }
    .instrument-deck::before { opacity:.14; background:linear-gradient(120deg,transparent 0 34%,#f1c87512 34.2%,transparent 66%); }
    .deck-screen { gap:7px; padding:11px 13px 10px; border-color:#3a4355; border-radius:13px 7px 7px 7px; background:linear-gradient(145deg,#1b2231,#171d29); box-shadow:inset 0 1px #ffffff09; }
    .screen-kicker,.action-label,.song-label { color:#a8afbf; }
    .screen-status { color:#d8dce5; }
    .screen-status::before { background:var(--ui-gold); box-shadow:0 0 0 3px #f1c87520; }
    #songSelect { height:37px; border-color:#424b5e; border-radius:8px; color:#f5f2eb; background:#121722; box-shadow:none; }
    .select-wrap::after { border-color:#cbd0da; }
    .screen-metrics { padding-top:6px; border-color:#394153; }
    .screen-metrics .tempo-control { color:#d1d5df; }
    #tempoBpm { height:29px; border-color:#635638; border-radius:7px; color:#fff0c7; background:#202431; }
    #tempoBpm { appearance:textfield; -moz-appearance:textfield; transition:border-color .16s,box-shadow .16s,background .16s; }
    #tempoBpm::-webkit-inner-spin-button,#tempoBpm::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
    #tempoBpm.tempo-committed { border-color:#f1c875; background:#292719; box-shadow:0 0 0 2px #f1c87538,0 0 12px #f1c87538; }
    .screen-metrics .tempo-control span,.screen-meter { color:#a8afbf; }
    .meter-display { color:var(--ui-gold); }
    .metronome-beat { background:#505767; }
    .metronome-beat.accent { background:#927a4c; }
    .metronome-beat.active { background:var(--ui-gold); box-shadow:0 0 7px #f1c87570; }
    .metronome-beat.accent.active { background:#fff0c7; }
    .play-button,.stop-button,.sample-test-button { min-height:34px; border-color:#434c5e; border-radius:8px; color:#e7e9ef; background:linear-gradient(180deg,#292f3d,#222835); box-shadow:none; }
    .screen-transport .play-button,.screen-transport .stop-button { min-width:68px; }
    .play-button { border-color:#e1b65f; color:#171923; background:linear-gradient(180deg,#f6d58e,#e8bd68); }
    .play-button:hover:not(:disabled) { background:linear-gradient(180deg,#ffe4a8,#f0cb7d); }
    .stop-button:hover:not(:disabled),.sample-test-button:hover:not(:disabled) { border-color:#b99857; color:#fff1ce; background:#303647; }
    .play-button:disabled,.stop-button:disabled,.sample-test-button:disabled { opacity:.42; }
    .deck-actions { gap:8px 10px; padding:10px 12px; border-color:#394153; }
    .action-label { font-size:.59rem; }
    .action-buttons { gap:6px; }
    .loop-button.active { border-color:#d4ad61; color:#ffebbe; background:#342f25; box-shadow:inset 0 0 0 1px #f1c87519; }
    .tutor-button.active,#metronomePlay[aria-pressed="true"] { border-color:#fff0c7; color:#171923; background:linear-gradient(180deg,#f6d58e,#e8bd68); box-shadow:0 5px 16px #f1c87545; }
    .tutor-button.active:hover:not(:disabled),#metronomePlay[aria-pressed="true"]:hover:not(:disabled) { background:linear-gradient(180deg,#ffe4a8,#f0cb7d); }
    .loop-status { color:var(--ui-gold); }
    .midi-status,.tutor-status { color:#b8bfcd; }
    .deck-settings { gap:10px 13px; padding:11px 13px 11px 15px; }
    .volume { color:#e3e6ed; }
    input[type=range] { accent-color:var(--ui-gold); }
    .metro-buttons .sample-test-button { min-height:32px; }
    #metronomePlay::before { content:"♩"; margin-right:6px; font-size:.85em; }
    .metronome-status { color:var(--ui-muted); }
    .toggle { color:#e3e6ed; }
    .toggle input { border-color:#515a6b; background:#2c3341; }
    .toggle input:checked { border-color:#d7b264; background:#b18d43; }
    .toggle input:checked::after { background:#fff4d7; }
    .sound-hint { color:#a8afbf; }
    .loop-button.active { border-color:#d4ad61; color:#ffebbe; background:#342f25; }
    #sampleTest { display:none !important; }
    @media(max-width:1120px) {
      .score-panel { height:clamp(250px,36vh,320px); }
      .instrument-deck { min-height:184px; }
    }
    @media(max-width:800px) {
      .score-panel { height:clamp(220px,33vh,280px); }
      .instrument-deck { min-height:0; }
      .deck-screen { gap:5px; }
    }
    @media(max-width:640px) {
      .score-panel { height:clamp(195px,30vh,245px); }
      .instrument-deck { padding:7px; }
      .deck-screen { gap:5px; padding:8px; }
      .screen-transport .play-button,.screen-transport .stop-button { min-height:29px; }
      .deck-actions { gap:5px; }
      .deck-settings { gap:5px; }
      .keyboard { height:clamp(56px,min(145px,22vh,calc(100dvh - 570px)),145px); }
      .deck-settings .screen-metrics .tempo-control { flex-wrap:wrap; gap:3px; font-size:.57rem; }
      .deck-settings #tempoBpm { width:48px; height:27px; font-size:.73rem; }
      .deck-settings .screen-meter { gap:1px 5px; font-size:.56rem; }
      .deck-settings .meter-display { font-size:.85rem; }
      .deck-settings .metronome-beats { gap:3px; min-height:23px; padding-top:4px; }
      .deck-settings .metronome-beat { flex-basis:18px; width:18px; height:20px; border-radius:6px; font-size:.58rem; }
    }
    @media(max-height:640px) {
      .score-panel { height:clamp(170px,30vh,220px); }
      .keyboard { height:clamp(48px,min(150px,24vh,calc(100dvh - 560px)),150px); }
    }
    @media(max-width:640px) and (max-height:420px) {
      .score-panel { height:130px; }
      .keyboard { height:56px; }
    }
  