:root{
  --bg:#2e2e2e;
  --panel:#363636;
  --bar:#363636;

  --border:#575757;
  --accent:#737373;

  --text:#e6e6e6;

  --s-1:8px;
  --s-2:12px;
  --s-3:16px;
  --s-4:24px;

  /* Modern DAW: hard corners */
  --r-1:0px;
  --r-2:0px;

  --shadow:0 10px 28px rgba(0,0,0,.45);
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;

  /* Logic-ish accent */
  --logic-blue:#4fb0ff;
  --logic-blue-dim:rgba(79,176,255,.55);

  /* Transport-driven accent (LED selector should drive this) */
  --transport-accent:var(--logic-blue);
  --transport-accent-dim:var(--logic-blue-dim);

  /* Digital windows */
  --window:#111214;
  --window-border:#2a2c30;
  --window-inset:rgba(255,255,255,.06);

  /* Transport hardware */
  --slab:#2b2c2e;               /* darker than row */
  --slab-hi:rgba(255,255,255,.06);
  --slab-lo:rgba(0,0,0,.45);
  --cap:rgba(255,255,255,.035); /* endcap sliver */
  --cap-line:rgba(0,0,0,.35);

  /* Metronome digital stack */
  --display-digital:"DS-Digital", "Digital-7", "Seven Segment", var(--mono);
}

/* Theme follows LED active state (CSS-only) */
:root:has(.led-blue.is-active){
  --transport-accent:#4fb0ff;
  --transport-accent-dim:rgba(79,176,255,.55);
}
:root:has(.led-green.is-active){
  --transport-accent:#4cd964;
  --transport-accent-dim:rgba(76,217,100,.55);
}
:root:has(.led-purple.is-active){
  --transport-accent:#a86bff;
  --transport-accent-dim:rgba(168,107,255,.55);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

/* Global: most controls are bold by default */
button{font-weight:750;}

/* -------------------------
   Gate (Login)
-------------------------- */

.gate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:var(--s-4);
  background:
    radial-gradient(circle at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.9) 100%),
    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.85)),
    url("/assets/img/gate-bg.png") center/cover no-repeat;
}

.gate-card{
  width:min(720px,100%);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--r-2);
  padding:32px;
  display:grid;
  gap:22px;
  box-shadow:var(--shadow);
}

.gate-top{display:grid;justify-items:center;gap:14px}

.seal-img{width:210px;height:auto;opacity:.95}

.gate-title{text-align:center;letter-spacing:.12em}
.gate-kicker{font-size:13px;opacity:.85}
.gate-sub{font-size:22px;font-weight:650;letter-spacing:.10em}

.gate-form{display:grid;gap:12px}
.gate-label{font-size:12px;letter-spacing:.12em;opacity:.7}

.gate-row{
  display:grid;
  grid-template-columns:1fr 120px;
  gap:10px;
}

.gate-row input{
  height:44px;
  padding:0 12px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--r-1);
  color:var(--text);
  outline:none;
  font-weight:650;
}

.gate-row input:focus{border-color:var(--accent)}

.gate-row button{
  height:44px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--r-1);
  color:var(--text);
  letter-spacing:.08em;
  cursor:pointer;
}

.gate-row button:hover{border-color:var(--accent)}

.gate-error{min-height:18px;font-size:13px;color:#ff6b6b}
.gate-foot{display:flex;justify-content:center}
.gate-muted{font-size:12px;opacity:.30}

/* -------------------------
   Warmup Splash (Logic-style)
-------------------------- */

.warmup{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:48px 24px;
  background:var(--bg);
}

.warmup-splash{
  width:min(760px,100%);
  min-height:360px;
  background:linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.04));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:34px;
  display:grid;
  grid-template-columns:170px 1fr;
  gap:26px;
  align-items:start;
}

.warmup-icon{display:grid;place-items:start center}
.warmup-icon img{
  width:200px;height:200px;
  object-fit:contain;
  display:block;
  opacity:.95;
  margin-top:6px;
}

.warmup-info{
  display:grid;
  gap:10px;
  align-content:start;
  padding-top:6px;
}

.warmup-mark{
  width:100px;height:100px;
  object-fit:contain;
  display:block;
  opacity:.88;
  margin-bottom:2px;
}

.warmup-title{
  font-size:34px;
  line-height:1.12;
  font-weight:650;
  letter-spacing:.02em;
}

.warmup-version{
  font-size:15px;
  letter-spacing:.06em;
  opacity:.75;
  margin-top:-4px;
}

.warmup-status{
  margin-top:14px;
  font-size:14px;
  letter-spacing:.02em;
  color:rgba(230,230,230,.62);
  position:relative;
  padding-bottom:14px;
  overflow:hidden;
}

.warmup-status::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:6px;
  border:1px solid rgba(87,87,87,.55);
  background:rgba(0,0,0,.10);
  border-radius:3px;
}

.warmup-status::before{
  content:"";
  position:absolute;
  left:0;bottom:1px;
  height:4px;width:28%;
  background:rgba(230,230,230,.20);
  border-radius:2px;
  transform:translateX(-120%);
  animation:warmup-scan 1.25s linear infinite;
}

@keyframes warmup-scan{
  0%{transform:translateX(-120%);opacity:.40}
  50%{opacity:.80}
  100%{transform:translateX(420%);opacity:.40}
}

.warmup-login{
  font-size:14px;
  color:rgba(230,230,230,.62);
  line-height:1.5;
}

.warmup-login.is-ready{animation:warmup-pop 420ms ease-out 1}

@keyframes warmup-pop{
  0%{transform:translateY(6px);opacity:0}
  100%{transform:translateY(0);opacity:1}
}

.warmup-login a{
  display:inline-block;
  margin-left:6px;
  padding:6px 10px;
  border:1px solid rgba(87,87,87,.65);
  background:rgba(0,0,0,.12);
  border-radius:6px;
  color:rgba(230,230,230,.90);
  text-decoration:none;
  letter-spacing:.04em;
  font-weight:700;
}

.warmup-login a:hover{
  border-color:var(--accent);
  color:var(--text);
}

.warmup-login a.is-nudging{animation:warmup-nudge 1.15s ease-in-out infinite}

@keyframes warmup-nudge{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}

.warmup-legal{
  margin-top:14px;
  font-size:12px;
  color:rgba(230,230,230,.45);
  line-height:1.45;
}

@media (max-width:720px){
  .warmup-splash{
    grid-template-columns:1fr;
    min-height:0;
    text-align:center;
    justify-items:center;
    padding:28px 18px;
  }
  .warmup-icon{place-items:center}
  .warmup-info{justify-items:center}
}

/* -------------------------
   Console Shell
-------------------------- */

.console{min-height:100vh;background:var(--bg)}

.topbar{
  min-height:56px;
  height:auto;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  padding:10px var(--s-4);
  border-bottom:1px solid var(--border);
  background:var(--bar);
}

.topbar-title{
  padding-top:10px;
  font-size:13px;
  letter-spacing:.14em;
  opacity:.85;
  font-weight:750;
}

/* existing lock styles (kept) */
.topbar-lock{
  height:34px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:var(--r-1);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  letter-spacing:.10em;
  font-size:12px;
  font-weight:750;
}
.topbar-lock:hover{border-color:var(--transport-accent)}

.lock-icon{
  width:12px;height:12px;
  border:1px solid rgba(230,230,230,.7);
  border-radius:2px;
  position:relative;
  opacity:.85;
}
.lock-icon::before{
  content:"";
  position:absolute;
  width:8px;height:6px;
  left:50%;top:-6px;
  transform:translateX(-50%);
  border:1px solid rgba(230,230,230,.7);
  border-bottom:none;
  border-radius:6px 6px 0 0;
}

/* -------------------------
   TOP RIGHT STACK
-------------------------- */

.topbar-rightstack{
  width:300px;
  display:grid;
  gap:10px;
  justify-items:stretch;
  align-content:start;
}

.topbar-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* Sign-in button matches lock button vibe */
.topbar-signin{
  height:34px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:var(--r-1);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  letter-spacing:.10em;
  font-size:12px;
  font-weight:750;
}
.topbar-signin:hover{border-color:var(--transport-accent)}

/* CSS-only profile icon */
.profile-icon{
  width:12px;
  height:12px;
  position:relative;
  display:inline-block;
  opacity:.88;
}
.profile-icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:-1px;
  transform:translateX(-50%);
  width:6px;
  height:6px;
  border:1px solid rgba(230,230,230,.75);
  border-radius:999px;
}
.profile-icon::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  transform:translateX(-50%);
  width:10px;
  height:7px;
  border:1px solid rgba(230,230,230,.75);
  border-top:none;
  border-radius:0 0 999px 999px;
}

/* Date/time readout block */
.topbar-datetime{
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
  display:grid;
  gap:4px;
  justify-items:end;
}

.topbar-date,
.topbar-time{
  font-family:inherit;
  letter-spacing:.08em;
  color:var(--text);
  text-shadow:none;
  line-height:1.15;
}

.topbar-date{
  font-size:12px;
  opacity:.70;
  font-weight:550;
}

.topbar-time{
  font-size:13px;
  opacity:.88;
  font-weight:650;
}

/* -------------------------
   Transport Row
-------------------------- */

.transport-row{
  display:grid;
  grid-template-columns:240px 1fr 300px;
  border-bottom:1px solid var(--border);
  background:var(--bar);
}

.transport-spacer{
  border-right:1px solid var(--border);
  background:var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
}

.transport-spacer{
  border-right:1px solid var(--border);
  background:var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  position:relative;
  overflow:hidden;
}

.transport-spacer::after{
  content:"";
  position:absolute;
  inset:18px 28px;
  border-radius:999px;
  background:var(--transport-accent-dim);
  filter:blur(22px);
  opacity:.28;
  pointer-events:none;
}

.transport-spacer img{
  position:relative;
  z-index:1;
  max-width:180px;
  max-height:72px;
  width:auto;
  height:auto;
  opacity:.90;
  filter:grayscale(1) contrast(1.05);
}

/* Transport lives ONLY in center column */
.transport.transport--daw{
  grid-column:2 / 3;
  height:96px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 14px;
  position:relative;
  transform:none;
}

/* Right corner actions container (SIGN IN / LOCK moved into transport row) */
.transport-corner{
  grid-column:3 / 4;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding:10px var(--s-4) 0 var(--s-4);
}
.transport-corner .topbar-actions{justify-content:flex-end}

/* -------------------------
   TRANSPORT UNIT (clean)
-------------------------- */

.transport-unit{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(0,0,0,.14));
  background-color:var(--slab);
  border:1px solid rgba(0,0,0,.55);
  border-top-color:rgba(255,255,255,.10);
  border-left-color:rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.40);
  padding:10px 18px;
}

/* Left group: meter window + toggles */
.transport-left{
  display:flex;
  align-items:center;
  gap:12px;
  justify-self:end;
  flex-wrap:nowrap;
}

/* Right group: metronome module + practice timer */
.transport-right{
  display:flex;
  align-items:center;
  justify-self:start;
  flex-wrap:nowrap;
}

/* practice lane spacing */
.transport-right.transport-right--practice{
  gap:12px;
}

/* keep transport pieces from crushing each other */
.transport-bar,
.transport-bar__toggles,
.metronome-module,
.practice-timerlane,
.transport-leds{
  flex-shrink:0;
}

/* -------------------------
   DAW Buttons
-------------------------- */

.daw-btn{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid rgba(0,0,0,.55);
  border-top-color:rgba(255,255,255,.10);
  border-left-color:rgba(255,255,255,.08);
  background:linear-gradient(to bottom, rgba(255,255,255,.10), rgba(0,0,0,.18));
  color:var(--text);
  cursor:pointer;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-size:12px;
  font-weight:750;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35);
}

/* hover "lights" follow transport accent */
.daw-btn:hover{
  border-color:var(--transport-accent-dim);
}
.daw-btn:active{
  transform:translateY(1px);
  background:linear-gradient(to bottom, rgba(0,0,0,.22), rgba(255,255,255,.06));
}

.daw-ico--met{
  width:34px;
  height:34px;
  background:url("/assets/img/click.png") center/contain no-repeat;
  opacity:.95;
}

.daw-ico--tuner{
  width:34px;
  height:34px;
  background:url("/assets/img/tuner.png") center/contain no-repeat;
  opacity:.95;
}

/* -------------------------
   Metronome Module
-------------------------- */

.metronome-module{
  width:238px;
  height:60px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:stretch;
  gap:8px;

  padding:0 10px 0 12px;

  background:var(--window);
  border:1px solid var(--window-border);
  border-radius:var(--r-1);

  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.metronome-display{
  min-width:0;
  display:grid;
  grid-template-rows:10px 1fr auto;
  align-items:center;
  justify-items:center;
  padding:5px 0 4px;
}

.metronome-led{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--transport-accent);
  box-shadow:
    0 0 6px var(--transport-accent),
    0 0 12px rgba(255,255,255,.06);
  opacity:.95;
}

.metronome-bpm{
  font-family:var(--display-digital);
  font-size:28px;
  line-height:1;
  letter-spacing:.08em;
  color:var(--transport-accent);
  text-shadow:0 0 10px rgba(79,176,255,.12);
  font-weight:750;
  white-space:nowrap;
}

.metronome-meta{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  font-family:var(--mono);
  font-size:10px;
  line-height:1;
  letter-spacing:.14em;
  color:var(--transport-accent);
  text-shadow:0 0 10px rgba(79,176,255,.10);
  font-weight:750;
}

.metronome-timesig,
.metronome-mode{
  display:inline-block;
  min-width:22px;
  text-align:center;
}

.metronome-controls{
  height:100%;
  display:grid;
  grid-template-columns:40px 24px 24px;
  grid-template-rows:1fr 1fr;
  gap:6px;
  align-content:center;
  padding:6px 0;
}

.metronome-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:4px;
  font-size:9px;
  line-height:1;
  padding:0 6px;
  min-width:0;
  text-align:center;
}

.metronome-btn--primary{
  color:var(--transport-accent);
}

.metronome-btn--secondary{
  font-size:8px;
  opacity:.88;
  padding:0 4px;
}

#metronome-start{
  grid-column:1;
  grid-row:1;
}

#metronome-bpm-down{
  grid-column:2;
  grid-row:1;
}

#metronome-bpm-up{
  grid-column:3;
  grid-row:1;
}

#metronome-tap{
  grid-column:1;
  grid-row:2;
}

#metronome-timesig-select{
  grid-column:2;
  grid-row:2;
}

#metronome-mode-select{
  grid-column:3;
  grid-row:2;
}

/* Button press feedback */

.metronome-btn:active{
  color:#fff;
  border-color:var(--transport-accent);
  background:var(--transport-accent);

  box-shadow:
    0 0 8px var(--transport-accent-dim),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.45);
}

/* Metronome START running state */

#metronome-start.is-running{
  color:#fff;
  border-color:var(--transport-accent);
  background:var(--transport-accent);
  box-shadow:
    0 0 8px var(--transport-accent-dim),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.45);
}

/* -------------------------
   Window 1 (Meter + Date/Time)
-------------------------- */

.transport-bar{
  height:76px;
  display:grid;
  grid-template-columns:auto;
  grid-template-rows:auto auto;
  align-items:stretch;
}

/* top half */
.transport-bar__meters{
  display:flex;
  align-items:flex-end;

  padding:8px 12px 6px;
  background:var(--window);
  border:1px solid var(--window-border);
  border-bottom:none;

  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.meters{
  height:35px;
  display:inline-flex;
  align-items:flex-end;
  gap:3px;
}

.meter{
  width:3px;
  height:6px;
  background:var(--transport-accent);
  opacity:.85;
  border-radius:1px;
  transform-origin:bottom;
  animation:meterPulse 900ms ease-in-out infinite;
}

.meter:nth-child(1){animation-delay:0ms}
.meter:nth-child(2){animation-delay:80ms}
.meter:nth-child(3){animation-delay:160ms}
.meter:nth-child(4){animation-delay:240ms}
.meter:nth-child(5){animation-delay:320ms}
.meter:nth-child(6){animation-delay:400ms}
.meter:nth-child(7){animation-delay:480ms}
.meter:nth-child(8){animation-delay:560ms}
.meter:nth-child(9){animation-delay:640ms}
.meter:nth-child(10){animation-delay:720ms}
.meter:nth-child(11){animation-delay:120ms}
.meter:nth-child(12){animation-delay:300ms}
.meter:nth-child(13){animation-delay:520ms}
.meter:nth-child(14){animation-delay:180ms}
.meter:nth-child(15){animation-delay:420ms}
.meter:nth-child(16){animation-delay:660ms}

@keyframes meterPulse{
  0%{transform:scaleY(.45);opacity:.65}
  35%{transform:scaleY(1.85);opacity:.95}
  70%{transform:scaleY(.80);opacity:.80}
  100%{transform:scaleY(.55);opacity:.65}
}

/* bottom half */
.transport-time{
  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:6px 12px 8px;

  background:var(--window);
  border:1px solid var(--window-border);
  border-top:none;

  min-height:28px;

  box-shadow:
    inset 0 1px 0 rgba(0,0,0,.55),
    inset 0 -1px 0 rgba(255,255,255,.05);
}

.clock--transport,
#live-clock,
#live-date{
  display:block;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.14em;
  line-height:1.15;
  color:var(--transport-accent);
  text-shadow:0 0 10px rgba(79,176,255,.12);
  font-weight:750;
  opacity:1;
}

#live-date{opacity:.92}

/* -------------------------
   Toggles (between windows)
-------------------------- */

.transport-bar__toggles{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.transport-toggle{
  height:38px;
  min-width:74px;
  padding:0 10px;
  border-radius:4px;
}

/* -------------------------
   Window 2 (Ticker)
-------------------------- */

.transport-tickerlane{
  height:60px;
  display:flex;
  align-items:center;

  padding:0 14px;

  background:var(--window);
  border:1px solid var(--window-border);
  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);

  overflow:hidden;
  position:relative;

  justify-self:stretch;
}

.transport-tickerlane::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:1px;
  background:rgba(87,87,87,.85);
}

.ticker{
  width:100%;
  overflow:hidden;
  white-space:nowrap;
  display:flex;
  align-items:center;
}

.ticker-track{
  display:inline-block;
  will-change:transform;
  animation:tickerClean 18s linear infinite;
}

.ticker-text{
  display:inline-block;
  letter-spacing:.12em;
  font-size:12px;
  padding-right:80px;

  color:var(--transport-accent);
  opacity:.92;
  text-shadow:0 0 10px rgba(79,176,255,.10);
  font-weight:750;
}

@keyframes tickerClean{
  0%{transform:translateX(100%)}
  100%{transform:translateX(-100%)}
}

/* -------------------------
   Practice Timer (Transport)
-------------------------- */

.practice-timerlane{
  height:60px;
  display:flex;
  align-items:center;
  gap:10px;

  padding:0 12px;

  background:var(--window);
  border:1px solid var(--window-border);
  border-radius:var(--r-1);

  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.practice-readout{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:86px;
}

.practice-label{
  font-size:10px;
  letter-spacing:.14em;
  opacity:.60;
  font-weight:650;
  margin-bottom:2px;
}

.practice-time{
  font-family:var(--display-digital);
  letter-spacing:.10em;
  color:var(--transport-accent);
  text-shadow:0 0 10px rgba(79,176,255,.12);
  font-weight:750;
  font-size:18px;
  line-height:1.05;
}

.practice-controls{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Compact timer buttons */
.practice-btn{
  height:24px;
  padding:0 10px;
  min-width:76px;
  border-radius:4px;
  font-size:10px;
  letter-spacing:.12em;
  font-weight:750;
  text-transform:uppercase;
}

/* -------------------------
   Transport Accent LEDs
-------------------------- */

.transport-leds{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin-left:2px;
}

.led-btn{
  -webkit-appearance:none;
  appearance:none;
  width:12px;
  height:12px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35);
  cursor:pointer;
  outline:none;
}

/* OFF colors */
.led-blue{background:#1f3a52;}
.led-green{background:#1f4028;}
.led-purple{background:#3b274a;}

.led-btn:hover{border-color:var(--transport-accent-dim)}
.led-btn:active{transform:translateY(1px)}

/* ON state */
.led-btn.is-active{
  border-color:rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.38),
    0 0 6px currentColor,
    0 0 14px rgba(255,255,255,.06);
}

.led-blue.is-active{background:#4fb0ff; color:#4fb0ff;}
.led-green.is-active{background:#4cd964; color:#4cd964;}
.led-purple.is-active{background:#a86bff; color:#a86bff;}

/* -------------------------
   Console Grid
-------------------------- */

.console-grid{
  display:grid;
  grid-template-columns:240px 1fr 300px;
  min-height:calc(100vh - 56px);
}

.nav{
  border-right:1px solid var(--border);
  background:var(--panel);
  padding:var(--s-3);
}

.nav-head,
.right-head{
  font-size:12px;
  letter-spacing:.14em;
  opacity:.55;
  padding:6px 8px;
  font-weight:650;
}

/* Center workspace: FL-style watermark layer */
.center{
  padding:var(--s-4);
  position:relative;
  overflow:hidden;
}
.center::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    url("/assets/img/pick-grey.png") center 46%/min(520px, 62%) no-repeat;
  opacity:.10;
  filter:contrast(1.05);
  pointer-events:none;
  z-index:0;
}
.center > *{position:relative; z-index:1;}

.right{
  border-left:1px solid var(--border);
  background:var(--panel);
  padding:var(--s-3);
  display:grid;
  gap:12px;
  align-content:start;
}

.right-panel{
  display:grid;
  gap:10px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:var(--r-2);
  background:rgba(0,0,0,.08);
}

/* -------------------------
   SESSION TOOLS
-------------------------- */

.tool-btn{
  -webkit-appearance:none;
  appearance:none;

  width:100%;
  height:64px;

  display:grid;
  grid-template-columns:72px 1fr;
  align-items:center;

  padding:0 10px;

  background:linear-gradient(to bottom, rgba(115,115,115,.18), rgba(46,46,46,.22));
  border:1px solid var(--border);
  border-radius:var(--r-2);

  color:var(--text);
  cursor:pointer;
  text-align:left;
  overflow:hidden;

  flex:0 0 auto;
  margin:0;
}

.right-panel .tool-btn + .tool-btn{border-top:none}

.tool-btn:hover{
  border-color:var(--transport-accent);
  background:linear-gradient(to bottom, rgba(115,115,115,.24), rgba(46,46,46,.26));
}

.tool-btn:active{transform:translateY(1px)}
.tool-btn:disabled{opacity:.4;cursor:not-allowed}

.tool-ico{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.10);
  border:1px solid rgba(230,230,230,.10);
  border-radius:var(--r-1);
}

.tool-ico-img{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
  opacity:.95;
}

.tool-label{
  padding-left:10px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.92;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:750;
}

/* -------------------------
   Panels
-------------------------- */

.panel{
  border:1px solid var(--border);
  border-radius:var(--r-2);
  background:var(--panel);
  padding:16px;
}

.panel-muted{background:rgba(54,54,54,.7)}

.panel-title{
  font-size:13px;
  letter-spacing:.10em;
  opacity:.90;
  font-weight:750;
}

/* board body + bullets should NOT be bold */
.panel-body{
  margin-top:10px;
  opacity:.80;
  font-size:14px;
  line-height:1.5;
  font-weight:450;
}

.panel-list{
  margin:10px 0 0 18px;
  padding:0;
  opacity:.82;
  line-height:1.6;
  font-weight:450;
}
.panel-list li{font-weight:450}

/* -------------------------
   Gear Tracks
-------------------------- */

.nav.gear-tracks{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
  gap:0;
  padding:var(--s-3);
}

.nav.gear-tracks .nav-head{
  flex:0 0 auto;
  margin-bottom:10px;
}

/*
  IMPORTANT: When gear is "hidden", we do NOT remove the panel from the grid.
  We keep the column reserved so the center doesn't smash left.
*/
#gear-panel[hidden]{
  display:block !important;
  visibility:hidden;
  pointer-events:none;
  user-select:none;
  border-right-color:transparent;
  background:transparent;
  padding:0;
}
#gear-panel[hidden] .nav-head{display:none;}
#gear-panel[hidden] .gear-track{display:none;}

.gear-track{
  -webkit-appearance:none;
  appearance:none;

  width:100%;
  height:56px;

  display:grid;
  grid-template-columns:72px 1fr 12px;
  align-items:center;

  padding:0 10px;

  background:linear-gradient(to bottom, rgba(115,115,115,.18), rgba(46,46,46,.22));
  border:1px solid var(--border);
  border-radius:var(--r-2);

  color:var(--text);
  cursor:pointer;
  text-align:left;
  overflow:hidden;

  flex:0 0 auto;
  margin:0;
}

.nav.gear-tracks .gear-track + .gear-track{border-top:none}

.gear-track:hover{
  border-color:var(--transport-accent);
  background:linear-gradient(to bottom, rgba(115,115,115,.24), rgba(46,46,46,.26));
}

.gear-track:active{transform:translateY(1px)}

.gear-track .track-icon{
  width:56px;height:56px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.10);
  border:1px solid rgba(230,230,230,.10);
  border-radius:var(--r-1);
}

.gear-track .track-icon img{
  width:50px;height:50px;
  object-fit:contain;
  display:block;
}

.gear-track .track-name{
  padding-left:10px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.92;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:750;
}

.gear-track .track-color{
  justify-self:end;
  width:6px;
  height:30px;
  border-radius:999px;
  background:var(--accent);
  opacity:.95;
}

/* -------------------------
   Learn
-------------------------- */

.learn-cat{
  border:none;
  border-radius:var(--r-2);
  background:transparent;
  margin:10px 0;
  overflow:hidden;
}

.learn-cat > summary::-webkit-details-marker{display:none}

.learn-sum{
  cursor:pointer;
  user-select:none;

  height:56px;
  padding:0 10px;

  display:flex;
  align-items:center;
  gap:10px;

  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:750;
  opacity:.95;

  background:linear-gradient(to bottom, rgba(115,115,115,.18), rgba(46,46,46,.22));
  border:1px solid var(--border);
  border-radius:var(--r-2);

  list-style:none;
}

.learn-sum:hover{
  border-color:var(--transport-accent);
  background:linear-gradient(to bottom, rgba(115,115,115,.24), rgba(46,46,46,.26));
}

.learn-cat[open] .learn-sum{border-bottom:none}

.learn-dot{
  margin-left:auto;
  width:10px;height:10px;
  border-radius:999px;
  background:var(--transport-accent);
  box-shadow:0 0 0 2px rgba(0,0,0,.25);
}

.learn-links{
  border:1px solid var(--border);
  border-top:none;
  padding:10px 12px 12px;
  display:grid;
  gap:8px;
  background:rgba(0,0,0,.08);
}

.learn-link{
  display:block;
  width:100%;
  padding:10px 12px;

  border:1px solid rgba(87,87,87,.65);
  border-radius:var(--r-1);
  background:rgba(0,0,0,.08);

  text-align:left;
  cursor:pointer;

  color:rgba(140, 210, 255, .95);
  font-size:13px;
  letter-spacing:.02em;
  line-height:1.25;
  text-decoration:none;

  font-weight:500;
}

.learn-link:hover{
  border-color:var(--transport-accent-dim);
  background:rgba(79,176,255,.08);
  color:rgba(230,230,230,.96);
}

.learn-link:active{transform:translateY(1px)}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width:980px){
  .transport-row,
  .console-grid{grid-template-columns:200px 1fr}

  .transport-spacer{display:none}

  .transport{grid-column:1 / 2;border-left:none}

  .right{display:none}

  .transport.transport--daw{
    grid-column:1 / 2;
    justify-content:flex-start;
  }

  .transport-unit{
    grid-template-columns:auto minmax(420px, 1fr) auto;
  }

  .topbar-rightstack{display:none}
  .topbar{align-items:center}
  .topbar-title{padding-top:0}

  .transport-corner{display:none}
}

@media (orientation:portrait){
  .console-grid{grid-template-columns:1fr 300px}
  .nav.gear-tracks{display:none}

  .transport-row{grid-template-columns:1fr 300px}
  .transport-spacer{display:none}

  .transport.transport--daw{
    grid-column:1 / 2;
    justify-content:flex-start;
  }

  .transport-unit{
    grid-template-columns:auto minmax(420px, 1fr) auto;
  }

  .topbar-rightstack{display:none}
  .topbar{align-items:center}
  .topbar-title{padding-top:0}

  .transport-corner{display:none}
}

/* --- LABEL FIT FIXES (minimal) --- */

/* 1) LEFT: make Gear Guide column a bit wider so labels fit */
.transport-row{
  grid-template-columns:260px 1fr 300px;
}
.console-grid{
  grid-template-columns:260px 1fr 300px;
}

/* 2) RIGHT: Session Tools labels wrap (2-line clamp), no width change */
.tool-label{
  white-space:normal;
  overflow:hidden;
  text-overflow:clip;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;

  line-height:1.15;
}

/* keeps the text vertically centered nicely when wrapping */
.tool-btn{align-items:center;}


/* =================================
   MOBILE / TABLET CONSOLE
================================= */

.console-shell--desktop{display:block}
.console-shell--mobile{display:none}

/* ---------- MOBILE SHELL BASE ---------- */

.console-shell--mobile{
  --transport-main-btn-w:88px;
  --transport-aux-btn-w:58px;
  --transport-main-btn-h:46px;
  --transport-aux-btn-h:24px;
  --transport-btn-gap:8px;
  --transport-controls-w:calc(var(--transport-main-btn-w) + (var(--transport-aux-btn-w) * 2) + (var(--transport-btn-gap) * 2));
  --transport-toprail-w:244px;
  --transport-panel-max:760px;
  --practice-readout-min:86px;

  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  position:relative;
  overflow:hidden;
}

.console-shell--mobile > *{
  position:relative;
  z-index:1;
}

/* ---------- PRACTICE ANCHOR / TRANSPORT ---------- */

.mobile-practice-anchor{
  display:grid;
  grid-template-rows:auto auto auto;
  gap:10px;
  padding:12px;
  border-bottom:1px solid var(--border);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.03), rgba(0,0,0,.10)),
    var(--bar);
}

.mobile-practice-main{
  display:block;
  min-width:0;
}

.mobile-practice-toprow{
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--transport-toprail-w);
  gap:8px;
  align-items:stretch;
  min-width:0;
}

/* ---------- TOP ROW: METER ---------- */

.mobile-meterbridge{
  min-width:0;
  min-height:54px;
  display:flex;
  align-items:flex-end;
  padding:9px 8px 8px;
  overflow:hidden;
  background:var(--window);
  border:1px solid var(--window-border);
  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.mobile-meterbridge .meters{
  width:100%;
  height:24px;
  display:flex;
  align-items:flex-end;
  gap:2px;
  min-width:0;
}

.mobile-meterbridge .meter{
  flex:1 1 0;
  min-width:0;
}

/* ---------- TOP ROW: PRACTICE TIMER ---------- */

.mobile-practice-timerlane{
  width:100%;
  min-width:0;
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(var(--practice-readout-min),1fr) var(--transport-aux-btn-w) var(--transport-aux-btn-w);
  grid-template-rows:auto auto;
  grid-template-areas:
    "readout icons icons"
    "readout start reset";
  column-gap:var(--transport-btn-gap);
  row-gap:5px;
  align-items:stretch;
  padding:8px 10px 8px 12px;
  position:relative;
  overflow:hidden;
  background:var(--window);
  border:1px solid var(--window-border);
  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.mobile-practice-timerlane .practice-readout{
  grid-area:readout;
  min-width:0;
  align-self:start;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding-top:1px;
}

.mobile-practice-timerlane .practice-label{
  margin:0 0 4px;
}

.mobile-practice-timerlane .practice-time{
  font-size:24px;
  line-height:1;
}

.practice-controls-wrap{
  display:contents;
}

.practice-admin-icons{
  grid-area:icons;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
  min-height:16px;
  align-self:start;
  padding-right:4px;
  overflow:visible;
}

.transport-icon-btn{
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
  padding:0;
  margin:0;
  border:none;
  background:transparent;
  color:var(--text);
  opacity:.78;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.transport-icon-btn:hover{
  opacity:1;
}

.transport-icon-btn:focus-visible{
  outline:1px solid rgba(255,255,255,.45);
  outline-offset:2px;
  border-radius:3px;
}

.transport-icon{
  width:14px;
  height:14px;
  display:block;
  background:currentColor;
  opacity:.92;
}

.transport-icon--signin{
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/></svg>") center / contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/></svg>") center / contain no-repeat;
}

.transport-icon--lock{
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 9h-1V7a4 4 0 1 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-6 0V7a2 2 0 1 1 4 0v2h-4z'/></svg>") center / contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 9h-1V7a4 4 0 1 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-6 0V7a2 2 0 1 1 4 0v2h-4z'/></svg>") center / contain no-repeat;
}

.mobile-practice-timerlane .practice-controls{
  display:contents;
}

.mobile-practice-timerlane #mobile-timer-start,
.mobile-practice-timerlane #mobile-timer-reset{
  width:var(--transport-aux-btn-w);
  min-width:var(--transport-aux-btn-w);
  max-width:var(--transport-aux-btn-w);
  height:var(--transport-aux-btn-h);
  min-height:var(--transport-aux-btn-h);
  max-height:var(--transport-aux-btn-h);
  font-size:9px;
  line-height:1;
  padding:0 6px;
  align-self:end;
  justify-self:stretch;
}

.mobile-practice-timerlane #mobile-timer-start{grid-area:start}
.mobile-practice-timerlane #mobile-timer-reset{grid-area:reset}

/* ---------- METRONOME ---------- */

.mobile-metronome-module{
  width:100%;
  min-width:0;
  min-height:102px;
  height:auto;
  display:grid;
  grid-template-columns:minmax(136px,1fr) var(--transport-controls-w);
  gap:8px;
  align-items:stretch;
  padding:8px 10px 8px 12px;
}

.mobile-metronome-module .metronome-display{
  min-width:0;
  display:grid;
  grid-template-rows:12px 1fr auto;
  align-items:center;
  justify-items:center;
  padding:4px 0 3px;
}

.mobile-metronome-module .metronome-bpm{
  font-size:36px;
  line-height:1;
}

.mobile-metronome-module .metronome-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:11px;
}

.mobile-metronome-module .metronome-controls{
  min-width:0;
  width:var(--transport-controls-w);
  display:grid;
  grid-template-columns:var(--transport-main-btn-w) var(--transport-aux-btn-w) var(--transport-aux-btn-w);
  grid-template-areas:
    "start down up"
    "tap ts mode";
  gap:var(--transport-btn-gap);
  align-content:start;
  align-items:start;
  justify-items:start;
}

.mobile-metronome-module #mobile-metronome-start{grid-area:start}
.mobile-metronome-module #mobile-metronome-bpm-down{grid-area:down}
.mobile-metronome-module #mobile-metronome-bpm-up{grid-area:up}
.mobile-metronome-module #mobile-metronome-tap{grid-area:tap}
.mobile-metronome-module #mobile-metronome-timesig-select{grid-area:ts}
.mobile-metronome-module #mobile-metronome-mode-select{grid-area:mode}

.mobile-metronome-module .metronome-controls > #mobile-metronome-start,
.mobile-metronome-module .metronome-controls > #mobile-metronome-tap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:var(--transport-main-btn-w);
  min-width:var(--transport-main-btn-w);
  max-width:var(--transport-main-btn-w);
  height:var(--transport-main-btn-h);
  min-height:var(--transport-main-btn-h);
  max-height:var(--transport-main-btn-h);
  padding:0 8px;
  margin:0;
  font-size:11px;
  line-height:1;
  border-radius:6px;
  aspect-ratio:auto;
  transform:none;
}

.mobile-metronome-module .metronome-controls > #mobile-metronome-bpm-down,
.mobile-metronome-module .metronome-controls > #mobile-metronome-bpm-up,
.mobile-metronome-module .metronome-controls > #mobile-metronome-timesig-select,
.mobile-metronome-module .metronome-controls > #mobile-metronome-mode-select{
  display:flex;
  align-items:center;
  justify-content:center;
  width:var(--transport-aux-btn-w);
  min-width:var(--transport-aux-btn-w);
  max-width:var(--transport-aux-btn-w);
  height:var(--transport-aux-btn-h);
  min-height:var(--transport-aux-btn-h);
  max-height:var(--transport-aux-btn-h);
  padding:0 6px;
  margin:0;
  font-size:9px;
  line-height:1;
  border-radius:6px;
  aspect-ratio:auto;
  transform:none;
}

/* Metronome START running state */

#mobile-metronome-start.is-running{
  color:#fff;
  border-color:var(--transport-accent);
  background:var(--transport-accent);
  box-shadow:
    0 0 8px var(--transport-accent-dim),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.45);
}

/* ---------- LED + TICKER ROW ---------- */

.mobile-console-signalrow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  gap:8px;
  align-items:stretch;
}

.mobile-tickerlane{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 12px;
  overflow:hidden;
  background:var(--window);
  border:1px solid var(--window-border);
  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.mobile-tickerlane .ticker{
  width:100%;
  min-width:0;
  overflow:hidden;
}

.mobile-tickerlane .ticker-track{
  width:max-content;
  min-width:100%;
}

.mobile-practice-leds-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 0;
  background:var(--window);
  border:1px solid var(--window-border);
  box-shadow:
    inset 0 1px 0 var(--window-inset),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.mobile-practice-leds-row .led-btn{
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
}

/* ---------- HANDEDNESS SWITCH ROW ---------- */

.mobile-hand-switch-row{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px 4px;
  position:relative;
  z-index:2;
}

.mobile-hand-switch-row::before{
  content:"";
  position:absolute;
  width:78px;
  height:28px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.35);
  border-radius:6px;
  z-index:0;
}

.mobile-hand-switch-row > *{
  position:relative;
  z-index:1;
}

.mobile-hand-switch-btn{
  width:30px;
  min-width:30px;
  height:22px;
  padding:0;
  margin:0 6px;
  font-size:13px;
  line-height:1;
  border-radius:4px;
}

/* ---------- DRAWERS / DARKER MOBILE FIELD ---------- */

.mobile-console-home{
  display:grid;
  gap:10px;
  padding:12px;
  position:relative;
  z-index:1;
  background:transparent;
  isolation:isolate;
  overflow:visible;
}

.mobile-console-home::before{
  content:"";
  position:absolute;
  left:50%;
  top:148px;
  width:min(280px, 52vw);
  height:min(280px, 52vw);
  transform:translateX(-50%);
  background:url("/assets/img/pick-grey.png") center / contain no-repeat;
  opacity:.06;
  filter:
    contrast(1.02)
    drop-shadow(0 0 10px var(--logic-blue-dim))
    drop-shadow(0 0 18px rgba(79,176,255,.12));
  pointer-events:none;
  z-index:0;
}

.mobile-console-home > *{
  position:relative;
  z-index:1;
}

.mobile-console-drawers{
  align-content:start;
}

.mobile-home-section{
  display:grid;
  gap:6px;
  position:relative;
  z-index:1;
}

.mobile-section-head{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  text-align:center;
}

.mobile-section-head .panel-title{
  width:100%;
  margin:0;
  text-align:center;
  pointer-events:none;
}

.mobile-section-toggle{
  position:absolute;
  right:0;
  height:30px;
  min-width:58px;
  padding:0 10px;
  border-radius:4px;
  font-size:10px;
}

.mobile-section-body[hidden]{
  display:none !important;
}

.mobile-section-body{
  position:relative;
  z-index:1;
  background:rgba(10,12,16,.42);
  backdrop-filter:blur(1px);
}

.mobile-panel{
  padding:14px;
  background:rgba(10,12,16,.34);
}

.mobile-panel .panel-body{
  margin-top:0;
}

.mobile-home-section .right-panel{
  padding:0;
  border:none;
  background:rgba(10,12,16,.34);
}

.mobile-home-section .tool-btn{
  height:66px;
}

.mobile-home-section .tool-btn + .tool-btn{
  border-top:none;
}

.mobile-home-section .gear-track + .gear-track{
  border-top:none;
}

.mobile-gear-list{
  display:grid;
  gap:0;
  position:relative;
  z-index:1;
  background:rgba(10,12,16,.34);
}

.mobile-home-section .learn-cat{
  margin:10px 0 0;
}

.mobile-home-section .learn-sum{
  min-height:52px;
  height:auto;
  padding:10px 10px;
}

.mobile-home-section .learn-links{
  padding:10px 12px 12px;
}

/* ---------- HANDEDNESS ---------- */

.console-shell--mobile.is-left-handed .mobile-practice-toprow{
  grid-template-columns:var(--transport-toprail-w) minmax(0,1fr);
}

.console-shell--mobile.is-left-handed .mobile-meterbridge{
  order:2;
}

.console-shell--mobile.is-left-handed .mobile-practice-timerlane{
  order:1;
}

.console-shell--mobile.is-left-handed .mobile-metronome-module{
  grid-template-columns:var(--transport-controls-w) minmax(136px,1fr);
}

.console-shell--mobile.is-left-handed .mobile-metronome-module .metronome-display{
  order:2;
}

.console-shell--mobile.is-left-handed .mobile-metronome-module .metronome-controls{
  order:1;
}

.console-shell--mobile.is-left-handed .mobile-console-signalrow{
  grid-template-columns:36px minmax(0,1fr);
}

.console-shell--mobile.is-left-handed .mobile-tickerlane{
  order:2;
}

.console-shell--mobile.is-left-handed .mobile-practice-leds-row{
  order:1;
}

.console-shell--mobile.is-left-handed .mobile-section-toggle{
  right:auto;
  left:0;
}

/* ---------- BREAKPOINTS ---------- */

@media (max-width:1100px){
  .console-shell--desktop{display:none !important}
  .console-shell--mobile{display:block !important}
}

@media (min-width:600px){
  .mobile-practice-anchor{
    width:min(100%, var(--transport-panel-max));
    margin-inline:auto;
  }

  .mobile-meterbridge .meters{
    height:18px;
  }
}

@media (max-width:900px){
  .console-shell--mobile{
    --transport-main-btn-w:82px;
    --transport-aux-btn-w:54px;
    --transport-main-btn-h:42px;
    --transport-toprail-w:230px;
    --transport-controls-w:calc(var(--transport-main-btn-w) + (var(--transport-aux-btn-w) * 2) + (var(--transport-btn-gap) * 2));
  }

  .mobile-practice-timerlane .practice-time{
    font-size:22px;
  }

  .mobile-metronome-module .metronome-bpm{
    font-size:32px;
  }
}

@media (max-width:680px){
  .console-shell--mobile{
    --transport-main-btn-w:74px;
    --transport-aux-btn-w:50px;
    --transport-main-btn-h:40px;
    --transport-aux-btn-h:22px;
    --transport-btn-gap:6px;
    --transport-toprail-w:212px;
    --transport-controls-w:calc(var(--transport-main-btn-w) + (var(--transport-aux-btn-w) * 2) + (var(--transport-btn-gap) * 2));
    --practice-readout-min:74px;
  }

  .mobile-practice-anchor{
    padding:10px;
    gap:8px;
  }

  .mobile-practice-timerlane{
    padding:8px 8px 8px 10px;
  }

  .mobile-practice-timerlane .practice-time{
    font-size:20px;
  }

  .practice-admin-icons{
    gap:4px;
    padding-right:3px;
  }

  .transport-icon-btn{
    width:15px;
    height:15px;
    min-width:15px;
    min-height:15px;
  }

  .transport-icon{
    width:13px;
    height:13px;
  }

  .mobile-metronome-module{
    min-height:90px;
    padding:8px 9px 8px 10px;
  }

  .mobile-metronome-module .metronome-bpm{
    font-size:29px;
  }

  .mobile-metronome-module .metronome-meta{
    font-size:10px;
    gap:10px;
  }

  .mobile-hand-switch-row::before{
    width:74px;
    height:26px;
  }

  .mobile-hand-switch-btn{
    width:28px;
    min-width:28px;
    height:21px;
    margin:0 5px;
  }

  .mobile-console-home{
    padding:10px;
    gap:10px;
  }

  .mobile-console-home::before{
    top:144px;
    width:min(250px,50vw);
    height:min(250px,50vw);
  }

  .mobile-section-toggle{
    min-width:54px;
    height:28px;
    padding:0 8px;
    font-size:9px;
  }

  .mobile-home-section .tool-btn{
    grid-template-columns:64px 1fr;
    height:62px;
  }

  .mobile-home-section .tool-ico{
    width:50px;
    height:50px;
  }

  .mobile-home-section .tool-ico-img{
    width:40px;
    height:40px;
  }

  .mobile-home-section .gear-track{
    grid-template-columns:64px 1fr 12px;
    height:58px;
  }

  .mobile-home-section .gear-track .track-icon{
    width:50px;
    height:50px;
  }

  .mobile-home-section .gear-track .track-icon img{
    width:42px;
    height:42px;
  }

  .mobile-home-section .learn-link{
    font-size:12px;
  }

  .mobile-meterbridge .meters{
    height:17px;
  }
}

@media (max-width:480px){
  .console-shell--mobile{
    --transport-main-btn-w:72px;
    --transport-aux-btn-w:50px;
    --transport-main-btn-h:38px;
    --transport-aux-btn-h:22px;
    --transport-btn-gap:6px;
    --transport-toprail-w:210px;
    --transport-controls-w:calc(var(--transport-main-btn-w) + (var(--transport-aux-btn-w) * 2) + (var(--transport-btn-gap) * 2));
    --practice-readout-min:66px;
  }

  .mobile-practice-anchor{
    padding:10px;
  }

  .mobile-meterbridge{
    min-height:46px;
    padding:8px 8px 7px;
  }

  .mobile-meterbridge .meters{
    height:18px;
  }

  .mobile-practice-timerlane{
    min-height:46px;
    padding:7px 7px 7px 9px;
  }

  .mobile-practice-timerlane .practice-label{
    margin-bottom:3px;
  }

  .mobile-practice-timerlane .practice-time{
    font-size:18px;
  }

  .practice-admin-icons{
    gap:3px;
    min-height:14px;
    padding-right:2px;
  }

  .transport-icon-btn{
    width:14px;
    height:14px;
    min-width:14px;
    min-height:14px;
  }

  .transport-icon{
    width:12px;
    height:12px;
  }

  .mobile-metronome-module{
    min-height:86px;
    padding:8px 8px 8px 9px;
  }

  .mobile-metronome-module .metronome-display{
    padding:4px 0 2px;
  }

  .mobile-metronome-module .metronome-bpm{
    font-size:27px;
  }

  .mobile-metronome-module .metronome-meta{
    font-size:10px;
    gap:8px;
  }

  .mobile-console-signalrow{
    grid-template-columns:minmax(0,1fr) 30px;
    gap:7px;
  }

  .mobile-practice-leds-row{
    padding:6px 0;
  }

  .mobile-practice-leds-row .led-btn{
    width:16px;
    height:16px;
    min-width:16px;
    min-height:16px;
  }

  .mobile-tickerlane{
    min-height:40px;
    padding:0 10px;
  }

  .mobile-hand-switch-row{
    padding:7px 10px 3px;
  }

  .mobile-hand-switch-row::before{
    width:70px;
    height:25px;
  }

  .mobile-hand-switch-btn{
    width:27px;
    min-width:27px;
    height:20px;
    margin:0 4px;
    font-size:12px;
  }

  .mobile-console-home::before{
    top:140px;
    width:min(220px,48vw);
    height:min(220px,48vw);
  }
}

@media (max-width:375px){
  .console-shell--mobile{
    --transport-main-btn-w:68px;
    --transport-aux-btn-w:48px;
    --transport-main-btn-h:36px;
    --transport-aux-btn-h:21px;
    --transport-btn-gap:6px;
    --transport-toprail-w:198px;
    --transport-controls-w:calc(var(--transport-main-btn-w) + (var(--transport-aux-btn-w) * 2) + (var(--transport-btn-gap) * 2));
    --practice-readout-min:60px;
  }

  .mobile-practice-anchor{
    padding:8px;
    gap:8px;
  }

  .mobile-practice-timerlane{
    min-height:44px;
    padding:7px 6px 7px 8px;
  }

  .mobile-practice-timerlane .practice-time{
    font-size:17px;
  }

  .practice-admin-icons{
    gap:2px;
    padding-right:1px;
  }

  .transport-icon-btn{
    width:13px;
    height:13px;
    min-width:13px;
    min-height:13px;
  }

  .transport-icon{
    width:11px;
    height:11px;
  }

  .mobile-metronome-module{
    min-height:82px;
    padding:7px 7px 7px 8px;
  }

  .mobile-metronome-module .metronome-bpm{
    font-size:25px;
  }

  .mobile-metronome-module .metronome-meta{
    font-size:9px;
    gap:7px;
  }

  .mobile-console-signalrow{
    grid-template-columns:minmax(0,1fr) 28px;
    gap:6px;
  }

  .mobile-practice-leds-row .led-btn{
    width:15px;
    height:15px;
    min-width:15px;
    min-height:15px;
  }

  .mobile-tickerlane{
    min-height:38px;
    padding:0 9px;
  }

  .mobile-hand-switch-row::before{
    width:66px;
    height:24px;
  }

  .mobile-hand-switch-btn{
    width:25px;
    min-width:25px;
    height:19px;
    margin:0 4px;
    font-size:11px;
  }

  .mobile-console-home::before{
    top:136px;
    width:min(200px,46vw);
    height:min(200px,46vw);
    opacity:.05;
  }
}
