/* LIL Session theme.
   The look of the Lessons in Live plug-ins and apps: black anodised metal, raised brushed plates with
   screws, silk-screened titles with an LED, glass displays, hardware keys that light up, knobs with a
   dotted LED ring. The lights are the two colours of the logo's ring: gold and blue.
   In this room GOLD = MUSIC (DAW sound, screen sound, the stage) and BLUE = VOICE (mic, camera, talking).
   Red is only for "off", "leave" and recording. No green anywhere.
   Every colour in the app comes from the tokens below. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg: #050608;           /* the dark behind everything */
  --chassis-hi: #17191d;   /* the case: black anodised metal */
  --chassis: #0e0f12;
  --plate-hi: #24272d;     /* raised plates */
  --plate: #181a1f;
  --plate-lo: #121418;
  --key-hi: #2c3037;       /* keys and pads */
  --key: #1a1d22;
  --well: #05060a;         /* recessed areas: meters, slots */
  --glass-hi: #0b111d;     /* display glass: blue-black */
  --glass: #070b14;
  --line: #2a2e36;
  --text: #ffffff;
  --cream: #e6e8ec;
  --print: #cfd4dc;        /* silk-screened labels */
  --muted: #9aa1ad;
  --gold: #fbb716;         /* Lessons in Live gold = music */
  --gold-hi: #ffd04d;
  --gold-lo: #e9a50c;
  --blue: #4f8fe0;         /* the logo's blue = voice */
  --blue-hi: #8cb4ec;
  --ink: #111111;          /* text on a lit key */
  --orange: #ff7a2f;
  --danger: #ff4d4d;
  --radius: 12px;
  --font: "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* materials */
  --brushed: repeating-linear-gradient(0deg, rgba(255,255,255,.024) 0 1px, transparent 1px 3px);
  --glare: linear-gradient(180deg, rgba(255,255,255,.055), transparent 44%);
  --screw: radial-gradient(circle at 38% 32%, #a3a9b3 0, #4a4f58 36%, #17191d 62%, #000 70%, transparent 74%);
  --ring: linear-gradient(180deg, #f5d418, #f9bc17 26%, #d3a353 37%, #a1897e 50%, #70749b 63%, #4168b2 75%, #5090cd);
  --ring-h: linear-gradient(90deg, #f5d418, #f9bc17 26%, #d3a353 37%, #a1897e 50%, #70749b 63%, #4168b2 75%, #5090cd);
  --lit: linear-gradient(#ffdc6b, var(--gold) 55%, var(--gold-lo));
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--cream); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

.view { height: 100%; }
/* home and the "before you join" screen: the case, lit gold from above and blue from below like the logo's ring */
.center { display: grid; place-items: center; padding: 24px;
  background: var(--brushed),
    radial-gradient(900px 480px at 50% -12%, rgba(251,183,22,.10), transparent 62%),
    radial-gradient(900px 480px at 50% 112%, rgba(79,143,224,.11), transparent 62%),
    linear-gradient(var(--chassis), var(--bg)); }

/* nameplate: the logo badge + the product name, like on the plug-ins */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand .logo { width: 36px; height: 36px; flex: none; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.brand .words { display: grid; line-height: 1; text-align: left; }
.brand .name { font-weight: 700; font-size: 19px; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.brand .name em { font-style: normal; color: var(--gold); margin-right: .18em; }
.brand .sub { font-weight: 600; font-size: 8px; letter-spacing: .34em; color: var(--muted); margin-top: 6px; text-transform: uppercase; white-space: nowrap; }
.brand.big { gap: 18px; }
.brand.big .logo { width: 76px; height: 76px; }
.brand.big .name { font-size: 34px; } .brand.big .sub { font-size: 10.5px; margin-top: 10px; }
/* the logo's ring, laid flat: a thin gold-to-blue line */
.ring-line { height: 2px; border-radius: 2px; background: var(--ring-h); margin: 26px 0 0; box-shadow: 0 0 12px rgba(251,183,22,.18); }

/* silk-screened label */
.eyebrow { font-weight: 700; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--print); }

/* a raised plate of brushed metal (cards, settings sections). Add "screws" for the four corner screws. */
.card, .plate { position: relative; border: 1px solid #000; border-radius: 16px;
  background: var(--brushed), linear-gradient(180deg, var(--plate-hi), var(--plate) 110px, var(--plate-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.035), inset 0 -2px 0 rgba(0,0,0,.5), 0 26px 70px rgba(0,0,0,.7), 0 3px 0 #000; }
.plate { border-radius: 13px; padding: 16px 18px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.11), inset 0 0 0 1px rgba(255,255,255,.03), inset 0 -2px 0 rgba(0,0,0,.5), 0 8px 18px rgba(0,0,0,.5), 0 2px 0 #000; }
.screws::before, .screws::after { content: ""; position: absolute; left: 9px; right: 9px; height: 9px; pointer-events: none;
  background: var(--screw) left center / 9px 9px no-repeat, var(--screw) right center / 9px 9px no-repeat; }
.screws::before { top: 9px; } .screws::after { bottom: 9px; }

.hero { width: min(580px, 100%); padding: 48px 46px 40px; text-align: center; }
.lead { font-size: 16.5px; color: var(--cream); margin: 26px 0 28px; }
.lead b { color: var(--text); font-weight: 700; }
.joinrow { display: flex; gap: 8px; margin-top: 12px; }
.joinrow input { flex: 1; }

/* keys: dark until they are lit */
.btn { border: 1px solid #000; background: linear-gradient(var(--key-hi), var(--key)); color: var(--text); border-radius: 9px; padding: 10px 18px; cursor: pointer;
  font-weight: 700; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 0 #000, 0 4px 8px rgba(0,0,0,.45);
  transition: transform .08s, box-shadow .12s, filter .12s, color .12s; }
.btn:hover { color: var(--gold-hi); filter: brightness(1.12); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.35), 0 0 0 #000; }
.btn.primary { background: var(--lit); color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 0 #000, 0 0 26px rgba(251,183,22,.32); }
.btn.primary:hover { color: var(--ink); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.2), 0 2px 0 #000, 0 0 38px rgba(251,183,22,.5); }
.btn.wide { width: 100%; padding: 16px; font-size: 13px; }
.btn.small { padding: 9px 15px; font-size: 10.5px; }
.btn svg, .ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.small svg { width: 15px; height: 15px; }

/* fields are little glass displays */
input, select { width: 100%; border: 1px solid #000; border-radius: 9px; padding: 11px 14px; outline: none; color: var(--text);
  background: var(--glare), linear-gradient(var(--glass), var(--glass-hi));
  box-shadow: inset 0 2px 7px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.09); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%), var(--glare), linear-gradient(var(--glass), var(--glass-hi));
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%, 0 0, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%, 100% 100%; background-repeat: no-repeat; }
input::placeholder { color: #5f6875; }
input:focus, select:focus { border-color: var(--gold); box-shadow: inset 0 2px 7px rgba(0,0,0,.9), 0 0 0 3px rgba(251,183,22,.2); }
.btn:focus-visible, .ctl:focus-visible, .x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label { display: block; color: var(--print); font-weight: 700; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; margin: 16px 0 0; }
label input, label select { margin-top: 7px; font: 400 14px var(--font); letter-spacing: 0; text-transform: none; }
.note { color: var(--muted); font-size: 12.5px; margin: 14px 0; }
.note b { color: var(--gold-hi); font-weight: 600; }
.note + .note { margin-top: -4px; }

.pre { width: min(940px, 100%); display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; padding: 34px; }
.roomline { margin: 18px 0 2px; }
/* LCD readouts */
.lcd, .count { font: 600 12.5px var(--mono); background: var(--glare), linear-gradient(var(--glass), var(--glass-hi)); border: 1px solid #000; border-radius: 7px; padding: 5px 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.09); white-space: nowrap; }
.lcd { color: var(--gold-hi); text-shadow: 0 0 8px rgba(251,183,22,.55); overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; vertical-align: middle; }
.count { color: var(--blue-hi); text-shadow: 0 0 8px rgba(79,143,224,.6); }
.preview { position: relative; aspect-ratio: 4/3; background: #000; border-radius: var(--radius); overflow: hidden; border: 2px solid #1d2025; box-shadow: 0 0 0 1px #000, inset 0 0 30px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07); }
.preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(168deg, rgba(255,255,255,.07), transparent 24%); }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.avatar-fill { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  background: var(--brushed), radial-gradient(circle at 50% 38%, #1b1e23, #0b0c0f 70%); }
.preview-meter { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 3px; background: rgba(0,0,0,.72); padding: 5px; border-radius: 6px; z-index: 1; }
@media (max-width: 760px) { .pre { grid-template-columns: 1fr; } }

/* segmented LED meters: gold, then orange, then red */
.meter { height: 7px; background: rgba(0,0,0,.75); border-radius: 2px; overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); }
.meter i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold) 0 72%, var(--orange) 86%, var(--danger)); background-size: 100vw 100%; transition: width .06s linear; }
.meter-wrap { background: var(--well); padding: 3px; border-radius: 4px; box-shadow: inset 0 1px 4px #000, 0 1px 0 rgba(255,255,255,.07); }
.meter-row { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 8px; color: var(--print); font: 700 10px var(--font); margin-top: 8px; }

/* ROOM: the whole room is one device. A top strip, the screens, a control strip. */
#room { display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden; background: var(--bg); }
.top, .bar { position: relative; background: var(--brushed), linear-gradient(var(--chassis-hi), var(--chassis)); padding-left: 26px; padding-right: 26px; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #000; z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.55); }
.top > :last-child { justify-self: end; }
.top-mid { display: flex; align-items: center; gap: 9px; min-width: 0; }
/* case screws at both ends of the strips */
.top::before, .top::after, .bar::before, .bar::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--screw); pointer-events: none; }
.top::before, .bar::before { left: 8px; } .top::after, .bar::after { right: 8px; }
.scope { width: 190px; height: 30px; background: var(--glare), linear-gradient(var(--glass), var(--glass-hi)); border: 1px solid #000; border-radius: 7px; box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.09); }

.floor { min-height: 0; padding: 14px; display: grid; gap: 12px; box-shadow: inset 0 12px 26px rgba(0,0,0,.6), inset 0 -12px 26px rgba(0,0,0,.5); }
.floor.grid { grid-template-columns: 1fr; }
.floor.staged { grid-template-columns: minmax(0, 1fr) 252px; }
/* the stage and the tiles are screens set in the case: a dark bezel, glass on top */
.stage { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; min-height: 0; border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px #000, 0 0 34px rgba(251,183,22,.13), 0 10px 24px rgba(0,0,0,.55); }
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage-label { position: absolute; left: 12px; top: 12px; background: rgba(5,6,10,.84); border: 1px solid rgba(255,255,255,.09); color: var(--gold-hi); padding: 5px 11px; border-radius: 7px; font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 0 8px rgba(251,183,22,.45); }

.tiles { min-height: 0; display: grid; gap: 12px; }
.grid .tiles { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.staged .tiles { grid-auto-rows: 156px; align-content: start; overflow-y: auto; padding: 1px; }

.tile { position: relative; background: #0b0c0f; border: 2px solid #1d2025; border-radius: var(--radius); overflow: hidden; min-height: 0; cursor: pointer;
  box-shadow: 0 0 0 1px #000, 0 10px 24px rgba(0,0,0,.55); transition: border-color .15s, box-shadow .15s; }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;   /* glass */
  background: linear-gradient(168deg, rgba(255,255,255,.07), transparent 24%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 44px rgba(0,0,0,.3); }
.tile:hover { border-color: #3d424c; }
.tile.music { border-color: var(--gold); box-shadow: 0 0 0 1px #000, 0 0 26px rgba(251,183,22,.17), 0 10px 24px rgba(0,0,0,.55); }
.tile.pinned { border-color: var(--blue); box-shadow: 0 0 0 1px #000, 0 0 26px rgba(79,143,224,.25), 0 10px 24px rgba(0,0,0,.55); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.self video { transform: scaleX(-1); }
.tile .avatar { position: absolute; inset: 0; display: grid; place-items: center; background: var(--brushed), radial-gradient(circle at 50% 38%, #1c1f24, #0b0c0f 72%); }
/* someone without a camera wears the logo's ring */
.tile .avatar b { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 29px; font-weight: 700; letter-spacing: .06em; color: var(--text);
  border: 3px solid transparent; background: linear-gradient(#0a0b0e, #0a0b0e) padding-box, var(--ring) border-box; box-shadow: 0 8px 18px rgba(0,0,0,.65); }
.staged .tile .avatar b { width: 58px; height: 58px; font-size: 18px; border-width: 2.5px; }
.tile .foot { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; align-items: center; gap: 6px; pointer-events: none; z-index: 1; }
.tile .name { position: relative; min-width: 0; background: rgba(5,6,10,.84); border: 1px solid rgba(255,255,255,.09); color: var(--text); padding: 4px 10px 4px 22px; border-radius: 7px; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .name::before { content: ""; position: absolute; left: 8px; top: 50%; margin-top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 8px var(--blue); }   /* mic on: the voice light */
.tile .name.muted::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.tile.host .name::after { content: "TEACHER"; font-weight: 700; font-size: 8.5px; letter-spacing: .18em; color: var(--gold); margin-left: 7px; }
.badge { flex: none; background: var(--lit); color: var(--ink); font-weight: 800; font-size: 9px; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 12px rgba(251,183,22,.3); }
.tile .tmeter { position: absolute; left: 9px; right: 9px; top: 9px; display: grid; gap: 3px; background: rgba(5,6,10,.8); border: 1px solid rgba(255,255,255,.07); padding: 5px; border-radius: 6px; z-index: 1; }
.tile .tmeter .meter { height: 5px; }

/* control strip: a plate of pads with LEDs, and a plate with the two listening knobs */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 11px; border-top: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 -8px 18px rgba(0,0,0,.55); }
.pads, .knobs { position: relative; border: 1px solid #000; border-radius: 13px; padding: 23px 11px 10px;
  background: var(--brushed), linear-gradient(var(--plate-hi), var(--plate-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), inset 0 0 0 1px rgba(255,255,255,.03), inset 0 -2px 0 rgba(0,0,0,.45), 0 2px 0 #000, 0 6px 12px rgba(0,0,0,.45); }
.pads { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; --led: var(--gold); }
.knobs { display: flex; gap: 16px; justify-self: end; padding-left: 18px; padding-right: 18px; --led: var(--blue-hi); }
/* the plate's silk-screened title with its LED */
.pads::before, .knobs::before { content: attr(data-title); position: absolute; left: 24px; top: 6px; font-weight: 700; font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--print); line-height: 12px; }
.pads::after, .knobs::after { content: ""; position: absolute; left: 14px; top: 7px; width: 3px; height: 10px; border-radius: 1px; background: var(--led); box-shadow: 0 0 7px var(--led); }

.ctl { position: relative; min-width: 92px; display: grid; justify-items: center; gap: 5px; padding: 16px 10px 8px; border-radius: 10px; border: 1px solid #000; cursor: pointer;
  background: linear-gradient(var(--key-hi), var(--key)); color: var(--cream); font-weight: 700; font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 0 rgba(0,0,0,.35), 0 3px 0 #000, 0 5px 8px rgba(0,0,0,.4); transition: transform .08s, box-shadow .08s, filter .12s; }
.ctl:hover { filter: brightness(1.14); }
.ctl:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.35), 0 1px 0 #000; }
.ctl::before { content: ""; position: absolute; top: 7px; left: 50%; width: 16px; height: 4px; margin-left: -8px; border-radius: 2px; background: #3a3f48; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); } /* LED */
.ctl .slash { display: none; }
/* mic and camera are on: the blue voice light */
.ctl.live::before { background: var(--blue-hi); box-shadow: 0 0 10px var(--blue), 0 0 2px #fff; }
/* mic or camera is off */
.ctl.off { color: var(--danger); }
.ctl.off::before { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.ctl.off .slash { display: block; }
/* sharing your screen or your DAW sound: the whole key lights up gold */
.ctl.on { background: var(--lit); color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 0 #000, 0 0 22px rgba(251,183,22,.38); }
.ctl.on::before { background: #fff; box-shadow: 0 0 8px #fff; }
.ctl.danger { color: var(--danger); }
/* recording: the key lights up red and its LED blinks */
.ctl.rec.on { background: linear-gradient(#ff7a7a, var(--danger) 55%, #d93a3a); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 0 #000, 0 0 22px rgba(255,77,77,.45); font-family: var(--mono); letter-spacing: .08em; font-size: 10.5px; }
.ctl.rec.on::before { animation: blink 1.2s steps(2, start) infinite; }
.recflag { font: 700 11px var(--mono); letter-spacing: .1em; color: #fff; background: linear-gradient(#ff7a7a, var(--danger) 55%, #d93a3a); border: 1px solid #000; border-radius: 7px; padding: 5px 10px 5px 22px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 14px rgba(255,77,77,.5); }
.recflag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* The knobs, like on the plug-ins. Back to front: a ring of LED dots cut into the plate, a knurled skirt
   that turns, a dark dished cap that catches the light from above, and a white pointer.
   Voice has blue lights, Music has gold. */
.knob { --led: var(--gold-hi); display: grid; justify-items: center; gap: 4px; font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--print); user-select: none; touch-action: none; cursor: ns-resize; }
.knob[data-knob="voice"] { --led: var(--blue-hi); }
.knob span { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.knob em { font: 600 10px var(--mono); font-style: normal; letter-spacing: 0; color: var(--led); min-width: 3ch; text-align: right; text-shadow: 0 0 7px var(--led); }
.knob .dial { --v: 1; position: relative; width: 54px; height: 54px; border-radius: 50%; }
.knob .dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%;      /* LED dots */
  background: conic-gradient(from 225deg, var(--led) 0, var(--led) calc(var(--v) * 270deg), #343840 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 85%, #000 87% 97%, transparent 99%), repeating-conic-gradient(from 225deg, #000 0 5deg, transparent 5deg 10deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle closest-side, transparent 0 85%, #000 87% 97%, transparent 99%), repeating-conic-gradient(from 225deg, #000 0 5deg, transparent 5deg 10deg);
  mask-composite: intersect; }
.knob .dial b { position: absolute; inset: 7px; border-radius: 50%;                       /* knurled skirt */
  background: repeating-conic-gradient(#30343c 0 4deg, #0d0e11 4deg 8deg);
  box-shadow: 0 6px 9px rgba(0,0,0,.85), 0 2px 2px rgba(0,0,0,.9), inset 0 0 0 1px rgba(0,0,0,.7);
  transform: rotate(calc(-135deg + var(--v) * 270deg)); }
.knob .dial::after { content: ""; position: absolute; inset: 11px; border-radius: 50%;    /* dished cap */
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.17), transparent 52%), radial-gradient(circle at 50% 125%, rgba(255,255,255,.07), transparent 55%), linear-gradient(#30343b, #14161a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 5px rgba(0,0,0,.7), 0 0 0 1px #000, 0 1px 3px rgba(0,0,0,.8); }
.knob .dial i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 2.5px; height: 11px; margin: -15px 0 0 -1.25px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 5px var(--led); transform-origin: 50% 15px; transform: rotate(calc(-135deg + var(--v) * 270deg)); }
.knob:hover .dial::after { filter: brightness(1.2); }
.knob:active { color: var(--text); }

/* settings: a side panel of the case, one plate per subject */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(404px, 100%); padding: 14px 14px 22px; overflow-y: auto; z-index: 40; border-left: 1px solid #000;
  background: var(--brushed), linear-gradient(var(--chassis-hi), var(--chassis)); box-shadow: inset 1px 0 0 rgba(255,255,255,.09), -30px 0 70px rgba(0,0,0,.7); display: grid; gap: 12px; align-content: start; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 4px 10px; }
.drawer h2 { margin: 0; font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: .28em; text-transform: uppercase; text-shadow: 0 1px 0 #000; }
.drawer .ring-line { margin: 0 6px 4px; }
.plate { --led: var(--print); }
.plate.voice { --led: var(--blue-hi); } .plate.music { --led: var(--gold); }
.plate h3 { margin: 0 0 4px; padding: 0 12px; font-weight: 700; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.plate h3::before { content: ""; width: 4px; height: 13px; border-radius: 1.5px; background: var(--led); box-shadow: 0 0 8px var(--led); flex: none; }
.plate > label:first-of-type { margin-top: 14px; }
.tag { font-weight: 800; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--lit); border-radius: 5px; padding: 3px 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.x { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #000; border-radius: 9px; background: linear-gradient(var(--key-hi), var(--key)); font-size: 22px; cursor: pointer; color: var(--print); line-height: 1; padding: 0 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 0 #000; }
.x:hover { color: var(--gold-hi); }
.x:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }

/* messages: a lit strip above the control strip */
.toast { position: fixed; left: 50%; bottom: 138px; z-index: 60; transform: translateX(-50%); background: var(--lit); color: var(--ink); padding: 10px 18px; border: 1px solid #000; border-radius: 9px; font-weight: 700; font-size: 13px; max-width: min(720px, 90vw); text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 30px rgba(0,0,0,.6), 0 0 26px rgba(251,183,22,.3); }

/* settings: sliders, small rows of keys, the recordings folder */
label .val { float: right; font: 600 10.5px var(--mono); letter-spacing: 0; color: var(--gold-hi); text-shadow: 0 0 7px rgba(251,183,22,.5); }
.plate.voice label .val { color: var(--blue-hi); text-shadow: 0 0 7px rgba(79,143,224,.6); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; padding: 0; margin-top: 6px; border: 0; background: none; box-shadow: none; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--well); box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255,255,255,.08); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; margin-top: -8px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(90deg, transparent 6px, #fff 6px 8px, transparent 8px), linear-gradient(var(--key-hi), var(--key)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 3px rgba(0,0,0,.7); }
input[type="range"]:focus { box-shadow: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lcd.path { display: block; white-space: normal; word-break: break-all; font-size: 11px; line-height: 1.45; color: var(--cream); text-shadow: none; padding: 8px 10px; }
.plate .meter-row:first-of-type { margin-top: 14px; }

/* the waiting screen: a row of LEDs that run while you wait */
.wait-leds { display: flex; gap: 9px; justify-content: center; margin: 22px 0 28px; }
.wait-leds i { width: 22px; height: 6px; border-radius: 2px; background: #343840; animation: waitled 1.6s infinite; }
.wait-leds i:nth-child(2) { animation-delay: .16s; } .wait-leds i:nth-child(3) { animation-delay: .32s; } .wait-leds i:nth-child(4) { animation-delay: .48s; } .wait-leds i:nth-child(5) { animation-delay: .64s; }
@keyframes waitled { 0%, 60%, 100% { background: #343840; box-shadow: none; } 20% { background: var(--blue-hi); box-shadow: 0 0 10px var(--blue); } }
.small-link { text-align: center; margin: 12px 0 0; font-size: 11.5px; }
.small-link a, .note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.small-link a:hover, .note a:hover { color: var(--gold-hi); }

/* somebody is waiting to be let in: a strip above the control strip, teacher only */
.knocks { position: absolute; left: 50%; top: 72px; transform: translateX(-50%); z-index: 6; display: grid; gap: 8px; width: min(560px, calc(100% - 28px)); }
.knock { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-radius: 11px; border: 1px solid #000;
  background: var(--brushed), linear-gradient(var(--plate-hi), var(--plate-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(79,143,224,.5), 0 0 26px rgba(79,143,224,.28), 0 12px 26px rgba(0,0,0,.6); }
.knock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--blue-hi); box-shadow: 0 0 10px var(--blue); animation: blink 1s steps(2, start) infinite; }
.knock span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--cream); }
.knock span b { color: var(--text); font-weight: 700; }

/* a floating Settings key on the screens before the room */
.gear { position: fixed; top: 16px; right: 18px; z-index: 30; }

/* the desktop app's "what do you want to share" window */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(2,3,5,.72); backdrop-filter: blur(3px); }
.pick { width: min(920px, 100%); max-height: 88vh; overflow-y: auto; padding: 22px 24px 26px; }
.pick .drawer-head { padding: 0 0 12px; }
.pick h2 { margin: 0; font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: .28em; text-transform: uppercase; }
.pick .ring-line { margin: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.pick-item { display: grid; gap: 8px; padding: 8px 8px 10px; border-radius: 10px; border: 1px solid #000; cursor: pointer; text-align: left;
  background: linear-gradient(var(--key-hi), var(--key)); color: var(--cream); font-weight: 600; font-size: 11.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -2px 0 rgba(0,0,0,.35), 0 3px 0 #000; transition: transform .08s, filter .12s; }
.pick-item:hover { filter: brightness(1.15); color: var(--gold-hi); }
.pick-item:active { transform: translateY(2px); }
.pick-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.pick-thumb { aspect-ratio: 16 / 10; border-radius: 6px; background: #000 center / contain no-repeat; border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }

@media (max-width: 860px) {
  .floor.staged { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 110px; }
  .staged .tiles { grid-auto-flow: column; grid-auto-columns: 150px; grid-auto-rows: 100%; overflow-x: auto; }
  .bar { grid-template-columns: 1fr; } .bar > .spacer, .knobs { display: none; }
  .pads { padding: 20px 8px 8px; }
  .ctl { min-width: 54px; } .ctl span { display: none; }
  .btn.small span, .brand .sub, .scope { display: none; }
  .hero { padding: 40px 26px 32px; } .brand.big .logo { width: 56px; height: 56px; } .brand.big .name { font-size: 24px; }
}
