/* Lock-In Session — meeting room (dark warm glass) */
:root {
  --bg: #0b0b0c;
  --glass: #141416;
  --glass-strong: #17171a;
  --glass-btn: #1f1f23;
  --glass-btn-hover: #28282d;
  --stroke: rgba(255, 255, 255, .07);
  --stroke-2: rgba(255, 255, 255, .12);
  --text: #ededef;
  --text-2: #b6b6be;
  --muted: #8b8b94;
  --accent: #ffa033;
  --accent-2: #f08c1c;
  --accent-glow: rgba(255, 160, 51, .0);
  --on-accent: #1a0b02;
  --warm: #ffd166;
  --amber: #fbbf24;
  --red: #f05252;
  --blur: blur(16px);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden;
  background: var(--bg);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; display: block; }
a { color: var(--accent); }
.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke); }

/* ---------- Buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--stroke); font-weight: 600; cursor: pointer; white-space: nowrap; background: var(--glass-btn); color: var(--text); text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--glass-btn-hover); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: none; }
.btn-primary:hover { background: #ffb052; }
.btn-danger { background: var(--red); color: #fff; border-color: transparent; }
.btn-danger:hover { background: #d94040; }
.btn-outline { background: transparent; border-color: var(--stroke-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-icon { width: 36px; padding: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .pill-btn button:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, .field select, .field input, textarea { background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); border-radius: 14px; height: 42px; padding: 0 14px; outline: none; width: 100%; min-width: 0; }
.field select option { background: #1e1512; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input:focus, .field select:focus, .field input:focus, textarea:focus { border-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .18); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent-2); }
.toggle input:checked::after { transform: translateX(16px); }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent) 0 70%, var(--amber) 70% 88%, var(--red) 88%); transition: width 60ms linear; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 14px; font-size: 10.5px; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--text-2); }
.chip.teacher { background: rgba(255, 160, 51, .18); color: var(--accent); }
.chip.hq { background: var(--amber); color: #241a00; letter-spacing: .3px; }
.chip.daw { background: rgba(255, 160, 51, .18); color: var(--accent); }
.icon-btn { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--glass-btn-hover); color: var(--text); }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--text); text-decoration: none; }
.logo-img { width: 32px; height: 32px; display: block; filter: none; }
.wordmark { font-weight: 500; letter-spacing: -.3px; }
.wordmark b { font-weight: 800; }
.logo-mark { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 160, 51, .15); color: var(--accent); display: grid; place-items: center; }

/* ---------- Pre-join, waiting, ended ---------- */
.screen { position: fixed; inset: 0; overflow: auto; display: flex; flex-direction: column; }
.screen-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.pj { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 410px); gap: 36px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 16px 28px 40px; }
.pj-preview { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #080504; border: 1px solid var(--stroke); box-shadow: var(--shadow), 0 0 80px rgba(242, 107, 29, .1); }
.pj-preview video { width: 100%; height: 100%; object-fit: cover; }
.pj-preview .big-avatar { position: absolute; inset: 0; margin: auto; }
.pj-preview .pj-name { position: absolute; left: 16px; top: 16px; }
.pj-controls { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 12px; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--stroke-2); display: grid; place-items: center; cursor: pointer; background: rgba(30, 21, 18, .55); color: #fff; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background .15s; }
.round:hover { background: rgba(58, 40, 33, .75); }
.round.off { background: rgba(240, 82, 82, .85); border-color: transparent; }
.pj-meter { position: absolute; left: 14px; right: 14px; bottom: 88px; display: flex; justify-content: center; }
.pj-meter .meter { width: 170px; }
.pj-card { display: grid; gap: 16px; padding: 28px; border-radius: 14px; }
.pj-card h1 { margin: 0; font-size: 28px; letter-spacing: -.8px; line-height: 1.15; }
.pj-role { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 6px; }
.pj-devices { display: grid; gap: 10px; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 160, 51, .07); border: 1px solid rgba(255, 160, 51, .15); color: var(--text-2); font-size: 13px; }
.hint .ic { color: var(--accent); }
.center-card { margin: auto; max-width: 480px; padding: 36px 28px; text-align: center; display: grid; gap: 16px; justify-items: center; border-radius: 14px; }
.center-card h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.center-card p { margin: 0; color: var(--muted); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .08); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-preview { width: 300px; max-width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.wait-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Meeting shell ---------- */
.mt { position: fixed; inset: 0; display: flex; gap: 16px; padding: 16px; }
.stage-wrap { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.hud .left, .hud .right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.hud-pill.title { font-weight: 600; max-width: 380px; min-width: 0; flex-shrink: 1; }
.hud-pill.title span { overflow: hidden; text-overflow: ellipsis; }
.hud-pill .ic { color: var(--accent); }
.timer { font-variant-numeric: tabular-nums; color: var(--text-2); }
.rec-pill { color: #ff8a8a; font-weight: 700; }
.rec-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.metro-pill { cursor: pointer; font-weight: 700; color: var(--text); }
.beats { display: inline-flex; gap: 4px; }
.beats i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .05s; }
.beats i.hit { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.beats i.hit.down { background: var(--warm); box-shadow: 0 0 8px var(--warm); }

.stage { position: relative; flex: 1; min-height: 0; }
.tiles { position: absolute; inset: 0; }

/* ---------- Tiles ---------- */
.tile { position: absolute; border-radius: 14px; overflow: hidden; background: #141416; border: 1px solid var(--stroke); transition: left .3s cubic-bezier(.2, .8, .2, 1), top .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), height .3s cubic-bezier(.2, .8, .2, 1); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2.5px solid var(--accent); opacity: 0; transition: opacity .45s ease; pointer-events: none; z-index: 3; }
.tile.selected::after { opacity: 1; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.contain video { object-fit: contain; background: #080504; }
.tile .avatar-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.big-avatar { width: 28%; max-width: 130px; min-width: 42px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: clamp(16px, 3vw, 46px); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.glass-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(16, 10, 8, .35); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #fff; }
.tile .nameplate { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 80px); }
.tile .nameplate .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nameplate .mic-off { color: #ff7070; }
.tile .tile-menu { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: rgba(16, 10, 8, .35); backdrop-filter: blur(14px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-menu, .tile .tile-menu:focus-visible { opacity: 1; }
.tile .corner { position: absolute; right: 54px; top: 14px; display: flex; gap: 6px; align-items: center; }
.tile .stats { font-size: 11px; opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; padding: 4px 9px; }
.tile:hover .stats { opacity: 1; }
.tile .stats.bad { opacity: 1; color: var(--amber); }
.tile .stats:empty { display: none; }
.hand-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #241a00; box-shadow: 0 0 20px rgba(251, 191, 36, .5); }
.tile .levels { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 4px; align-items: flex-end; height: 20px; }
.lvl { width: 4px; height: 20px; border-radius: 2px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.lvl i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); transition: height 60ms linear; }
.lvl.daw i { background: var(--warm); }
.tile .self-ctrls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; opacity: 0; transition: opacity .2s; }
.tile:hover .self-ctrls { opacity: 1; }
.self-ctrls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(16, 10, 8, .4); backdrop-filter: blur(14px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.self-ctrls button:hover { background: rgba(46, 32, 26, .65); }
.self-ctrls button.off { background: rgba(240, 82, 82, .8); }
.tile.small { border-radius: 12px; }
.tile.small .nameplate { left: 8px; top: 8px; padding: 3px 9px; font-size: 11.5px; }
.tile.small .nameplate .chip, .tile.small .levels, .tile.small .stats, .tile.small .self-ctrls, .tile.small .tile-menu { display: none; }
.tile.small .corner { right: 8px; top: 8px; }
.reaction { position: absolute; left: 50%; bottom: 20%; font-size: 64px; pointer-events: none; animation: floatUp 2.4s ease-out forwards; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); z-index: 5; }
@keyframes floatUp { 0% { transform: translate(-50%, 30px) scale(.4); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -160px) scale(1); opacity: 0; } }

/* Step-by-step setup guides */
.wiz { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wz { display: flex; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s, opacity .2s; }
.wz.todo { opacity: .5; }
.wz.now { border-color: rgba(255, 160, 51, .55); background: rgba(255, 160, 51, .07); }
.wz-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; background: rgba(255, 255, 255, .08); color: var(--text-2); }
.wz.now .wz-n { background: var(--accent); color: var(--on-accent); }
.wz.done .wz-n { background: #34c46a; color: #052b12; }
.wz-n .ic { display: none; }
.wz.done .wz-n b { display: none; }
.wz.done .wz-n .ic { display: block; }
.wz-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.wz-body > b { font-size: 15px; }
.wz-status { font-size: 13px; color: var(--muted); }
.wz.done .wz-status { color: #6ee7a0; }
.wz.now .wz-status { color: var(--text-2); }
.wz-more { display: none; gap: 10px; margin-top: 6px; }
.wz.now .wz-more { display: grid; }
.wz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-mini { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .05); justify-self: start; }
.seg-mini button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.seg-mini button.active { background: rgba(255, 255, 255, .12); color: var(--text); }
.wz-daw { margin: 0; line-height: 1.5; }

/* Remote control */
.rc-hero { display: flex; gap: 14px; align-items: center; }
.rc-hero b { display: block; font-size: 16px; margin-bottom: 2px; }
.rc-steps { display: grid; gap: 10px; }
.rc-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); }
.rc-step > div { flex: 1; display: grid; }
.rc-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(255, 160, 51, .16); color: var(--accent); flex: none; }
.rc-step.done .n { background: var(--accent); color: var(--on-accent); }
.rc-more summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
.rc-more p { margin: 8px 0; }
.hint.ok { background: rgba(110, 231, 160, .08); border-color: rgba(110, 231, 160, .3); }
.hint.ok .ic { color: #6ee7a0; }
.hint.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); }
.hint.warn .ic { color: var(--amber); }
.tile .rc-btn { position: absolute; right: 14px; bottom: 14px; cursor: pointer; font-weight: 600; }
.tile .rc-btn:hover { background: rgba(255, 160, 51, .35); }
.tile.controlling { cursor: crosshair; outline: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.tile.controlling:fullscreen { border-radius: 0; background: #000; }
.tile.controlling:fullscreen::after { display: none; }
.rc-fs-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6; pointer-events: none; }
.tile.controlling::after { opacity: 1; border-width: 3px; }
.tile.controlling video { cursor: crosshair; }
.tile.controlling .tile-menu, .tile.controlling .rc-btn { display: none; }
.rc-pill { color: var(--accent); font-weight: 600; padding-right: 5px; flex: none; }
.rc-pill .btn { height: 30px; }
#rcNotice { top: 150px; }

/* ---------- Floating dock ---------- */
.dock { display: flex; align-items: flex-start; justify-content: center; gap: 22px; padding: 4px 0 2px; }
.dock-group { display: flex; gap: 12px; align-items: flex-start; }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 0 22px; background: var(--stroke); }
.ctl { position: relative; display: grid; justify-items: center; gap: 7px; }
.ctl > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ctl .badge { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 14px; background: var(--amber); color: #241a00; font-size: 11px; font-weight: 800; display: grid; place-items: center; z-index: 2; }
.pill-btn { display: flex; align-items: stretch; height: 52px; border-radius: 8px; overflow: hidden; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: border-color .15s, background .15s; }
.pill-btn button { border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.pill-btn .main { padding: 0 12px 0 18px; min-width: 56px; }
.pill-btn .caret { padding: 0 14px 0 4px; color: var(--muted); }
.pill-btn.solo .main { padding: 0 20px; }
.pill-btn button:hover { background: var(--glass-btn-hover); }
.pill-btn.off .main { color: #ff7070; }
.pill-btn.on { border-color: rgba(255, 160, 51, .45); background: rgba(242, 107, 29, .18); }
.pill-btn.on .main { color: var(--accent); }
.pill-btn.rec { border-color: rgba(240, 82, 82, .5); background: rgba(240, 82, 82, .15); }
.pill-btn.rec .main { color: #ff7070; }
.pill-btn.open { border-color: var(--stroke-2); background: var(--glass-btn-hover); }
.leave { height: 52px; width: 64px; border-radius: 8px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: none; }
.leave:hover { background: #d94040; }
.leave .ic { transform: rotate(135deg); }

/* ---------- Floating menus ---------- */
.fmenu { position: fixed; z-index: 70; min-width: 260px; max-width: 340px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke-2); box-shadow: var(--shadow); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.fmenu h5 { margin: 8px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.fmenu .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; color: var(--text); font-size: 13.5px; }
.fmenu .item:hover { background: rgba(255, 255, 255, .07); }
.fmenu .item .ic { color: var(--muted); }
.fmenu .item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmenu .item.sel, .fmenu .item.sel .ic { color: var(--accent); }
.fmenu .item.danger, .fmenu .item.danger .ic { color: #ff8a8a; }
.fmenu hr { border: 0; border-top: 1px solid var(--stroke); margin: 6px 4px; }
.fmenu .pad { padding: 8px 10px; display: grid; gap: 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.emoji-grid button { height: 50px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .05); font-size: 26px; cursor: pointer; transition: transform .1s, background .15s; }
.emoji-grid button:hover { background: rgba(255, 255, 255, .12); transform: scale(1.08); }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.prow:hover { background: rgba(255, 255, 255, .05); }
.prow .who { flex: 1; min-width: 0; }
.prow .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .who span { font-size: 12px; color: var(--muted); }
.prow .icons { display: flex; gap: 6px; color: var(--muted); }
.prow .icons .red { color: #ff7070; }
.prow .icons .amber { color: var(--amber); }
.prow .icons .green { color: var(--accent); }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; flex: none; }

/* ---------- Sidebar ---------- */
.sidebar { width: 380px; flex: none; border-radius: 14px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sb-icons { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; }
.sb-icons .spacer { flex: 1; }
.sb-ico { position: relative; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--stroke); background: var(--glass-btn); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.sb-ico:hover { background: var(--glass-btn-hover); }
.sb-ico.on { color: var(--amber); border-color: rgba(251, 191, 36, .4); }
.sb-ico .badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 8px; background: var(--amber); color: #241a00; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.sb-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.sb-tabs button { flex: 1; height: 42px; border: 0; border-radius: 12px 16px 0 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.sb-tabs button:hover { color: var(--text); }
.sb-tabs button.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.sb-body { flex: 1; min-height: 0; overflow: auto; margin: 0 14px; padding: 14px 12px 16px; background: rgba(255, 255, 255, .06); border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; margin: 4px 2px -2px; }
.sb-reopen { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); width: 44px; height: 88px; border-radius: 12px; color: var(--text); cursor: pointer; display: grid; place-items: center; z-index: 20; }

/* Mixer */
.mix-card { border-radius: 12px; background: rgba(14, 9, 7, .35); border: 1px solid var(--stroke); overflow: hidden; flex: none; }
.mix-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.mix-head .orb { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; flex: none; }
.mix-head b { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-head .chev { color: var(--muted); transition: transform .2s; }
.mix-card.collapsed .chev { transform: rotate(180deg); }
.mix-card.collapsed .mix-body { display: none; }
.mix-body { padding: 0 14px 12px; border-top: 1px solid var(--stroke); }
.mix-count { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 2px; font-weight: 600; color: var(--text-2); }
.input-row { padding: 8px 0 4px; }
.input-name { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input-name .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan { display: flex; align-items: center; gap: 10px; }
.chan .led { width: 4px; height: 26px; border-radius: 2px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; flex: none; }
.chan .led i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); transition: height 60ms linear; }
.chan .led.daw i { background: var(--warm); }
.chan .ch { font-size: 12.5px; color: var(--muted); width: 38px; flex: none; }
.fader { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; margin: 0; --v: 100%; }
.fader::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--v), rgba(255, 255, 255, .15) var(--v)); }
.fader::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.fader::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.fader::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 26px; margin-top: -11px; border-radius: 4px; background: linear-gradient(180deg, #f5f7f6, #c9d3ce); border: 1px solid rgba(0, 0, 0, .3); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.fader::-moz-range-thumb { width: 10px; height: 26px; border-radius: 4px; background: #e8eeeb; border: 1px solid rgba(0, 0, 0, .3); }
.fader:disabled { opacity: .35; cursor: default; }
.chan-btns { display: flex; gap: 4px; flex: none; }
.cbtn { min-width: 44px; padding: 0 6px; white-space: nowrap; height: 42px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass-btn); color: var(--text-2); display: grid; justify-items: center; align-content: center; gap: 1px; cursor: pointer; font-size: 9.5px; transition: background .15s, color .15s; }
.cbtn:hover { background: var(--glass-btn-hover); color: var(--text); }
.cbtn.active { background: rgba(240, 82, 82, .2); color: #ff8a8a; border-color: rgba(240, 82, 82, .35); }
.cbtn.solo.active { background: rgba(251, 191, 36, .2); color: var(--amber); border-color: rgba(251, 191, 36, .35); }
.cbtn.live { background: rgba(255, 160, 51, .18); color: var(--accent); border-color: rgba(255, 160, 51, .35); }

/* Latency readout in the mixer */
.lat { font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.lat.good { color: #6ee7a0; } .lat.ok { color: var(--amber); } .lat.bad { color: #ff7a7a; }

/* Lists */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.items li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(14, 9, 7, .35); border: 1px solid var(--stroke); }
.items li .grow { flex: 1; min-width: 0; }
.items li.rec-tracks { align-items: flex-start; margin-top: -4px; background: rgba(14, 9, 7, .2); }
.items li.rec-tracks .grow > a { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.items li.rec-tracks .grow > a:hover { color: var(--text); }
.items li.rec-tracks em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }
.items li .grow b, .items li .grow a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text); text-decoration: none; }
.items li .grow a:hover { text-decoration: underline; }
.items li .grow span { font-size: 12px; color: var(--muted); }
.items .t { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); min-width: 44px; }
.items li.empty-note, .empty-note { color: var(--muted); text-align: center; padding: 20px 8px; font-size: 13px; background: none; border: 0; display: block; }
.drop { border: 1.5px dashed var(--stroke-2); border-radius: 12px; padding: 22px; display: grid; gap: 6px; justify-items: center; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.drop b { color: var(--text); }
.drop.over { border-color: var(--accent); background: rgba(255, 160, 51, .08); }
.progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; }
.row2 { display: flex; gap: 8px; }
.row2 .input { flex: 1; }

/* Metronome */
.metro-big { text-align: center; padding: 10px 0 4px; }
.metro-big .bpm { font-size: 64px; font-weight: 800; letter-spacing: -3px; font-variant-numeric: tabular-nums; line-height: 1; color: var(--text); }
.metro-big .unit { color: var(--muted); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.metro-big .beats { margin-top: 16px; gap: 10px; }
.metro-big .beats i { width: 14px; height: 14px; }
.metro-row { display: flex; gap: 8px; align-items: center; }
.metro-row .fader { flex: 1; }

/* Chat drawer */
.chatroom { margin: 12px 14px 14px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--stroke-2); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); display: flex; flex-direction: column; min-height: 0; flex: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 15px; width: 100%; text-align: left; }
.chat-head .grow { flex: 1; }
.chat-head .chev { color: var(--muted); transition: transform .2s; }
.chatroom.open .chat-head .chev { transform: rotate(180deg); }
.chat-head .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 14px; background: var(--amber); color: #241a00; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chat-body { display: none; flex-direction: column; min-height: 0; height: min(300px, 38vh); border-top: 1px solid var(--stroke); }
.chatroom.open .chat-body { display: flex; }
.chat-log { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.msg .meta b { color: var(--text-2); font-weight: 600; }
.msg .meta b.teacher { color: var(--accent); }
.msg .bubble { background: rgba(255, 255, 255, .07); padding: 8px 12px; border-radius: 6px 16px 16px 16px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; display: inline-block; max-width: 100%; }
.msg.mine { text-align: right; }
.msg.mine .bubble { background: var(--accent); color: var(--on-accent); border-radius: 12px 6px 16px 16px; text-align: left; }
.compose { display: flex; gap: 8px; padding: 10px 12px 12px; }
.compose .input { flex: 1; border-radius: 8px; }
.compose .btn { width: 42px; height: 42px; padding: 0; }

/* ---------- Dialogs & toasts ---------- */
dialog.dlg { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--text); border: 1px solid var(--stroke-2); border-radius: 14px; padding: 0; width: 520px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
dialog.dlg.sm { width: 400px; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--stroke); }
.dlg-head h3 { margin: 0; font-size: 16px; }
.dlg-body { padding: 18px 22px; display: grid; gap: 14px; max-height: 70vh; overflow: auto; line-height: 1.55; }
.dlg-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--stroke); }
.dlg-foot.stack { flex-direction: column; align-items: stretch; }
.set-group { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke); }
.set-group:last-child { border-bottom: 0; padding-bottom: 0; }
.set-group h4 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.set-group h4 .ic { color: var(--accent); }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.cam-preview { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #000; object-fit: cover; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 13px; }
.kv span:nth-child(odd) { color: var(--muted); }

.toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; justify-items: center; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 8px; font-size: 13px; background: var(--glass-strong); backdrop-filter: var(--blur); border: 1px solid var(--stroke-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: pop .2s ease-out; }
.notice { position: fixed; right: 412px; top: 16px; z-index: 75; width: 320px; border-radius: 12px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); background: var(--glass-strong); }
.notice .row { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 1100px) {
  .sidebar { width: 330px; }
  .dock { gap: 12px; }
  .dock-group { gap: 8px; }
  .notice { right: 362px; }
}
.show-sm, .sb-backdrop { display: none; }
@media (max-width: 860px) {
  /* Phones and small tablets: video first, controls at the bottom, panels slide up as sheets */
  .mt { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; height: 100dvh; }
  .stage-wrap { gap: 8px; }
  .pj { grid-template-columns: 1fr; gap: 20px; }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(80dvh, 680px); z-index: 60;
    border-radius: 18px 18px 0 0; background: var(--glass-strong); padding-bottom: env(safe-area-inset-bottom);
    animation: sheet-up .22s ease-out;
  }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .55); }
  .sb-backdrop[hidden], .sb-reopen { display: none !important; }
  #collapseIco { transform: rotate(90deg); }
  .ctl > span, .dock-sep, .pill-btn .caret, .hide-sm { display: none; }
  .show-sm { display: grid; }
  .pill-btn { height: 48px; box-shadow: none; }
  .pill-btn .main { padding: 0; width: 48px; min-width: 0; }
  .leave { height: 48px; width: 56px; }
  .dock { gap: 8px; padding: 0; }
  .dock-group { gap: 8px; }
  .hud { min-height: 36px; }
  .hud-pill { height: 34px; padding: 0 10px; }
  .hud .timer { display: none; }
  .hud-pill.title { max-width: 55vw; }
  .notice { left: 10px; right: 10px; width: auto; top: calc(10px + env(safe-area-inset-top)); }
  .toasts { top: calc(56px + env(safe-area-inset-top)); width: calc(100% - 20px); }
  .fmenu.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none; min-width: 0; max-height: 72dvh; border-radius: 16px; animation: sheet-up .18s ease-out; }
  .fmenu.sheet .item { padding: 13px 12px; font-size: 15px; }
  input, select, textarea { font-size: 16px; } /* stops iPhone zooming into the chat box */
}
@media (max-width: 380px) {
  .pill-btn .main { width: 44px; }
  .leave { width: 50px; }
  .dock, .dock-group { gap: 6px; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =====================================================================
   Glass theme: Apple-style translucent panels over a soft ambient backdrop,
   with a Zoom-style floating control bar.
   ===================================================================== */
:root {
  --bg: #1a1a21;
  --glass: rgba(46, 46, 58, .42);
  --glass-strong: rgba(36, 36, 46, .74);
  --glass-btn: rgba(255, 255, 255, .08);
  --glass-btn-hover: rgba(255, 255, 255, .15);
  --stroke: rgba(255, 255, 255, .10);
  --stroke-2: rgba(255, 255, 255, .17);
  --blur: blur(30px) saturate(180%);
  --shadow: 0 22px 60px rgba(0, 0, 0, .38);
}
body {
  background:
    radial-gradient(60vmax 60vmax at 10% 6%, rgba(255, 128, 48, .28), transparent 62%),
    radial-gradient(55vmax 55vmax at 94% 14%, rgba(118, 96, 255, .22), transparent 62%),
    radial-gradient(60vmax 60vmax at 68% 104%, rgba(30, 168, 190, .18), transparent 62%),
    linear-gradient(160deg, #2b2b35 0%, #17171d 100%);
  background-attachment: fixed;
}
.glass, .hud-pill, .sidebar, .fmenu, dialog.dlg, .notice, .toast, .sb-reopen {
  background: var(--glass-strong);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
}
.hud-pill { border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.btn { border-radius: 11px; }
.btn-secondary, .btn:not(.btn-primary):not(.btn-danger) { background: var(--glass-btn); }

/* Tiles: frosted cards with depth */
.tile { border-radius: 18px; background: rgba(22, 22, 30, .5); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-color: var(--stroke); box-shadow: 0 16px 44px rgba(0, 0, 0, .3); }
.tile.contain video { background: transparent; }
.tile.featured.contain { background: rgba(10, 10, 14, .55); }
.tile.thumb { z-index: 5; border-radius: 14px; border-color: rgba(255, 255, 255, .22); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.tile.thumb:hover { border-color: rgba(255, 255, 255, .4); }
.glass-pill { background: rgba(20, 20, 28, .42); border-color: rgba(255, 255, 255, .14); border-radius: 10px; }

/* Panels */
.sidebar { border-radius: 22px; box-shadow: var(--shadow); }
.sb-ico { border-radius: 12px; background: var(--glass-btn); }
.sb-body { background: rgba(255, 255, 255, .045); }
.mix-card { background: rgba(255, 255, 255, .04); border-radius: 14px; }
.fmenu { border-radius: 18px; box-shadow: var(--shadow); }
.fmenu .item { border-radius: 10px; }
.fmenu .item:hover { background: rgba(255, 255, 255, .09); }
dialog.dlg { border-radius: 20px; }
dialog.dlg::backdrop { background: rgba(10, 10, 16, .4); backdrop-filter: blur(10px); }
.notice { border-radius: 18px; }
.sb-reopen { display: none !important; } /* the panel opens from the Mixer & Chat button */

/* Control bar: one floating glass bar, like Zoom */
.pill-btn { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .08); box-shadow: none; border-radius: 13px; }
.pill-btn button:hover { background: rgba(255, 255, 255, .12); }
.pill-btn.on { background: rgba(255, 160, 51, .2); border-color: rgba(255, 160, 51, .5); }
.leave { border-radius: 13px; }
@media (min-width: 861px) {
  .dock {
    align-self: center; padding: 10px 18px 8px; border-radius: 24px;
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--stroke); box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
  }
  .dock-sep { background: rgba(255, 255, 255, .12); }
}
@media (max-width: 860px) {
  .dock { align-self: center; padding: 8px; border-radius: 22px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke); }
  .sidebar { border-radius: 22px 22px 0 0; }
}

/* Full logo (headphone mark + "lock in SESSION") */
img.logo-full { display: block; width: auto; max-width: 100%; flex: none; }
.logo-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 3px 8px; border-radius: 10px; background: rgba(255, 160, 51, .12); }

/* Guided remote control setup: done / now / later steps */
.rc-step { align-items: flex-start; transition: opacity .2s, background .2s, border-color .2s; }
.rc-step > div { gap: 3px; }
.rc-step .n { margin-top: 1px; }
.rc-step.now { background: rgba(255, 160, 51, .07); border-color: rgba(255, 160, 51, .35); }
.rc-step.now .n { background: var(--accent); color: var(--on-accent); }
.rc-step.done .n { background: rgba(110, 231, 160, .16); color: #6ee7a0; }
.rc-step.done { padding-top: 10px; padding-bottom: 10px; }
.rc-step.done > div > :not(b), .rc-step.later .rc-act, .rc-step.later .rc-tip { display: none; }
.rc-step.later { opacity: .55; }
.rc-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.rc-alt a { color: var(--text-2); text-decoration: underline; }
.rc-tip { margin-top: 8px; padding: 9px 11px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--text-2); line-height: 1.55; }
.rc-wait { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--accent); font-weight: 600; }
.rc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: rcblink 1.2s infinite; }
@keyframes rcblink { 50% { opacity: .3; } }

/* Synced takes */
.take-box { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.take-btn { gap: 10px; background: rgba(240, 82, 82, .14) !important; color: #ff9a9a; border-color: rgba(240, 82, 82, .35) !important; }
.take-btn:hover { background: rgba(240, 82, 82, .24) !important; }
.take-btn .take-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.take-btn.on { background: var(--red) !important; color: #fff; border-color: transparent !important; }
.take-btn.on .take-dot { border-radius: 2px; background: #fff; }
.take-status { padding: 10px 12px; border-radius: 12px; background: rgba(240, 82, 82, .1); color: #ffb0b0; }
.take-up .progress { margin-top: 6px; }
.rt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#takesList li { flex-wrap: wrap; }
#takesList .take-files { width: 100%; display: grid; gap: 2px; }
#takesList .take-files a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); text-decoration: none; padding: 2px 0; }
#takesList .take-files a:hover { color: var(--text); }
#takesList .take-files em { margin-left: auto; font-style: normal; color: var(--muted); }
.count-in { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; background: radial-gradient(40% 40% at 50% 50%, rgba(0, 0, 0, .55), transparent 70%); }
.count-in small { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .8); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.count-in b { font-size: 140px; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.count-in b.go { color: #ff6b6b; font-size: 64px; }
.count-in b.tick { animation: ci-pop .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes ci-pop { from { transform: scale(1.25); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .count-in b.tick { animation: none; } }

/* Live streaming */
.live-pill { color: #fff; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
.live-pill .live-dot, .live-stat .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: blink 1.2s infinite; flex: none; }
.live-pill.mine { background: rgba(255, 59, 48, .85) !important; }
.live-pill.mine .live-dot { background: #fff; box-shadow: none; }
.live-dlg { width: 620px; }
.live-dlg .dlg-body { display: grid; gap: 14px; }
.live-dests { display: grid; gap: 10px; }
.live-dest { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.live-dest-top { display: flex; gap: 8px; align-items: center; }
.live-dest-top select { flex: 1; }
.live-dest .input, .live-dest select { height: 40px; }
.live-dest .live-hint { font-size: 12px; color: var(--muted); line-height: 1.45; padding: 0 2px; }
.live-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-checks { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.live-checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.live-preview { display: grid; gap: 6px; justify-items: center; }
.live-preview canvas { max-width: 100%; max-height: 200px; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.live-preview small { color: var(--muted); font-size: 12px; }
.live-on { display: grid; gap: 6px; }
.live-stat { display: flex; gap: 8px; align-items: center; }
.studio { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; cursor: none; }
.studio.show-bar { cursor: default; }
.studio canvas { width: 100%; height: 100%; object-fit: contain; }
.studio-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(20, 20, 24, .85); color: var(--text-2); font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.studio.show-bar .studio-bar { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { .live-opts { grid-template-columns: 1fr; } .studio-bar span { display: none; } }
