/* Sideliner. One design system for the full app, the side panel and the ticker.
   The mark's warm yellow/red identity sits on a dark, low-distraction room UI. */

/* ================= tokens ================= */
:root {
  --bg: #08090c;
  --bg-1: #0d0f14;
  --bg-2: #12151b;
  --bg-3: #191d25;
  --bg-4: #222732;
  --glass: rgba(14, 16, 22, var(--ov-alpha, .94));
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .11);
  --text: #eef0f5;
  --text-2: #a9b0bf;
  --text-3: #6c7384;

  --accent: #e5b72f;
  --accent-hi: #f3ca4a;
  --accent-2: #f5d76b;
  --accent-ink: #17130a;
  --accent-bg: rgba(229, 183, 47, .16);
  --voice: #2fd480;
  --voice-bg: rgba(47, 212, 128, .12);
  --up: #2fd480;
  --up-bg: rgba(47, 212, 128, .12);
  --down: #ff5468;
  --down-bg: rgba(255, 84, 104, .13);
  --live: #ff4757;
  --live-soft: #ff8a96;
  --gold: #f2b43c;
  --gold-bg: rgba(242, 180, 60, .13);
  --warn: #f2b43c;

  --g-sports: #ff9d57;
  --g-politics: #b9a1ff;
  --g-crypto: #f3cb5a;
  --g-macro: #5fd2ff;
  --g-culture: #ff7fbf;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --ui: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: 150ms var(--ease);
  --ring: 0 0 0 1px var(--line);
  --shadow-float: 0 30px 80px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .09);
  --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f4f0;
  --bg-1: #ffffff;
  --bg-2: #eeeee8;
  --bg-3: #e4e4dc;
  --bg-4: #d9d9d0;
  --glass: rgba(255, 255, 252, var(--ov-alpha, .94));
  --line: rgba(26, 29, 24, .10);
  --line-2: rgba(26, 29, 24, .16);
  --text: #1b1d18;
  --text-2: #5d6259;
  --text-3: #7c8278;
  --accent: #c99500;
  --accent-hi: #e0ad12;
  --accent-2: #8b6800;
  --accent-ink: #17130a;
  --accent-bg: rgba(201, 149, 0, .15);
  --voice: #168a55;
  --voice-bg: rgba(22, 138, 85, .12);
  --up: #168a55;
  --up-bg: rgba(22, 138, 85, .12);
  --down: #c9344b;
  --down-bg: rgba(201, 52, 75, .12);
  --live: #d9364c;
  --live-soft: #b52b3e;
  --gold: #a56f00;
  --gold-bg: rgba(165, 111, 0, .12);
  --warn: #a56f00;
  color-scheme: light;
}

/* ================= base ================= */
* { box-sizing: border-box; }
 .skip-link { position: fixed; left: 12px; top: -48px; z-index: 100; padding: 9px 12px; border-radius: 8px; background: var(--accent-2); color: var(--accent-ink); font-weight: 800; }
 .skip-link:focus { top: 12px; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.4 var(--ui);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input { background: none; border: 0; outline: 0; }
kbd { display: inline-block; min-width: 18px; font: 500 12px/16px var(--mono); text-align: center; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-bg); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.i { display: inline-flex; width: 16px; height: 16px; flex: none; }
.i svg { width: 100%; height: 100%; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat, .dim { color: var(--text-3); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rel { position: relative; }
[hidden] { display: none !important; }
.lv { color: var(--live-soft); font-weight: 700; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ================= mode visibility ================= */
.full, .desk, .panel, .mini, .minichat { transition: opacity 220ms var(--ease), visibility 220ms var(--ease), transform 220ms var(--ease); }
#app[data-mode="panel"] .full { transform: translateX(-18px) scale(.99); }
#app[data-mode="mini"] .full { transform: translateY(-12px) scale(.985); }
#app[data-mode="full"] .panel { transform: translateX(18px) scale(.99); }
#app[data-mode="full"] .mini { transform: translateY(12px) scale(.985); }
#app[data-mode="mini"] .panel { transform: translateY(-8px) scale(.99); }
#app[data-mode="panel"] .mini { transform: translateY(8px) scale(.99); }
@keyframes mode-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.mode-enter { animation: mode-enter 220ms var(--ease); }
#app[data-mode="full"] .desk,
#app[data-mode="full"] .panel,
#app[data-mode="full"] .mini,
#app[data-mode="full"] .minichat,
#app[data-mode="panel"] .full,
#app[data-mode="panel"] .mini,
#app[data-mode="panel"] .minichat,
#app[data-mode="mini"] .full,
#app[data-mode="mini"] .panel,
#app[data-mode="mini"] .minichat:not(.open) { opacity: 0; pointer-events: none; visibility: hidden; }

/* ================= atoms ================= */
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; flex: none; font: 600 11px/1 var(--mono); letter-spacing: .03em; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.tag[data-g="sports"] { color: var(--g-sports); background: color-mix(in srgb, var(--g-sports) 13%, transparent); }
.tag[data-g="politics"] { color: var(--g-politics); background: color-mix(in srgb, var(--g-politics) 13%, transparent); }
.tag[data-g="crypto"] { color: var(--g-crypto); background: color-mix(in srgb, var(--g-crypto) 12%, transparent); }
.tag[data-g="macro"] { color: var(--g-macro); background: color-mix(in srgb, var(--g-macro) 12%, transparent); }
.tag[data-g="culture"] { color: var(--g-culture); background: color-mix(in srgb, var(--g-culture) 13%, transparent); }

.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--ui); color: var(--text-2); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.status.live { color: var(--live-soft); }
.status.live::before { background: var(--live); box-shadow: 0 0 0 3px rgba(255, 71, 87, .2); animation: live-pulse 2s ease-in-out infinite; }
.status.soon { color: var(--gold); }
.status.soon::before { background: var(--gold); }
.status.closed { color: var(--text-3); }
.status.closed::before { background: var(--text-3); }
.chat-locked { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: var(--text-2); text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; margin: 12px; }
.chat-locked .i { color: var(--accent-2); width: 22px; height: 22px; }
.chat-locked b { color: var(--text); font-size: 14.5px; }
.chat-locked span { max-width: 260px; font-size: 13.5px; line-height: 1.45; }
.chat-signin { min-height: 140px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: var(--text-2); text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; margin: 12px; }
.chat-signin > span { color: var(--accent-2); }
.chat-signin b { color: var(--text); font-size: 14.5px; }
.room-close-warning { margin: 0 0 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2); font: 700 13.5px/1.3 var(--ui); }
.listener-mode { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warn) 58%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--warn) 11%, transparent); color: var(--text-2); }
.listener-mode > .i { color: var(--warn); width: 18px; height: 18px; }
.listener-mode > span { min-width: 0; flex: 1; display: grid; gap: 2px; }
.listener-mode b { color: var(--text); font-size: 13.5px; }
.listener-mode small { color: var(--text-2); font-size: 12.5px; }
.voice-health { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 6px; align-items: center; margin-top: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); color: var(--text-3); }
.voice-health span { display: inline-flex; align-items: center; min-width: 0; gap: 5px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--bg-2); font-size: 12.5px; white-space: nowrap; }
.voice-health span:first-child { color: var(--text-2); }
.voice-health .i { width: 13px; height: 13px; color: var(--accent-2); }
.voice-health b { color: var(--text); font: 700 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.voice-health small { padding-right: 4px; font: 600 11px var(--mono); color: var(--text-3); white-space: nowrap; }
.voice-health.ok { border-color: color-mix(in srgb, var(--voice) 34%, transparent); }
.voice-health.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.voice-health.bad { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.section-note { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: -6px 0 14px; max-width: 720px; }
.creator-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.creator-tools > div { display: grid; gap: 4px; }
.creator-tools small { color: var(--text-2); font-size: 13.5px; }
.parlay-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); margin: 10px 0; }
.parlay-head { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.provider-badge { color: var(--accent-2); }
.parlay-state { color: var(--live-soft); }
.parlay-date { color: var(--text-3); margin-left: auto; }
.parlay-card h3 { margin: 10px 0 8px; font-size: 18px; }
.leg-count { margin-left: 6px; color: var(--text-3); font: 600 11px var(--mono); text-transform: uppercase; }
.parlay-legs { display: grid; gap: 7px; list-style: none; padding: 0; margin: 0 0 10px; }
.parlay-legs li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.parlay-legs .i { color: var(--accent-2); width: 15px; height: 15px; flex: none; }
.parlay-legs li span { display: grid; gap: 2px; }
.parlay-legs li small { color: var(--text-3); font: 11px var(--mono); }
.legs-more { color: var(--text-2); font-size: 12.5px !important; }
.parlay-note { color: var(--text-2); font-size: 13.5px; line-height: 1.45; margin: 8px 0; }
.parlay-card footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--text-3); font-size: 12.5px; }
.parlay-locked { display: flex; gap: 8px; align-items: center; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px; font-size: 13.5px; }
.parlay-locked .i { color: var(--accent-2); width: 16px; height: 16px; }
.shared-trade { display: grid; gap: 8px; margin-top: 8px; padding: 11px; max-width: 100%; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--bg-2) 88%, var(--accent-bg)); }
.shared-trade.unsupported { border-style: dashed; border-color: var(--line-strong); background: var(--bg-2); }
.trade-head, .trade-meta, .shared-trade footer { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trade-head { font: 700 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.trade-head span { color: var(--accent-2); }
.trade-head b { color: var(--live-soft); }
.trade-head small { margin-left: auto; color: var(--text-3); font: inherit; }
.shared-trade h4 { margin: 0; overflow: hidden; color: var(--text); font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.trade-meta { flex-wrap: wrap; }
.trade-meta span { padding: 4px 7px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); font: 600 11px var(--mono); }
.trade-legs { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.trade-legs li { display: flex; gap: 7px; min-width: 0; color: var(--text-2); font-size: 13.5px; }
.trade-legs .i { width: 13px; height: 13px; flex: none; color: var(--accent-2); }
.trade-legs span { min-width: 0; display: grid; gap: 1px; }
.trade-legs small { overflow: hidden; color: var(--text-3); font: 10.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.shared-trade p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.35; }
.shared-trade footer { justify-content: space-between; color: var(--text-3); font-size: 12px; }
.shared-trade footer span { min-width: 0; }
.sheet-lede { color: var(--text-2); line-height: 1.5; }
.prepare-targets { display: flex; gap: 8px; margin: 14px 0; }
.prepare-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: center; margin: 14px 0; }
.prepare-summary > div { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.prepare-summary b { font: 700 22.5px var(--mono); }
.prepare-summary small { color: var(--text-2); font-size: 11px; text-transform: uppercase; }
.prepare-summary > span { color: var(--text-3); font-size: 11px; }
.prepare-list { display: grid; gap: 6px; max-height: 330px; overflow: auto; margin: 12px 0; }
.prepare-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-1); }
.prepare-row > div { min-width: 0; display: grid; gap: 3px; }
.prepare-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.prepare-row small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--mono); }
.prepare-state { font: 700 10px var(--mono); color: var(--live-soft); align-self: start; }
.prepare-row.review .prepare-state { color: var(--gold); }
.prepare-row.unavailable .prepare-state { color: var(--text-3); }
.prepare-connect { display: flex; align-items: center; gap: 9px; padding: 12px; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.prepare-connect > .i { color: var(--accent-2); width: 17px; height: 17px; flex: none; }
.prepare-connect > span { display: grid; gap: 3px; min-width: 0; flex: 1; }
.prepare-connect small { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 71, 87, 0); } }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 71, 87, .2); flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 71, 87, .2); }
.dot.soon { background: var(--gold); box-shadow: none; }
.dot-sep { display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r);
  background: var(--bg-3); color: var(--text); font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t), box-shadow var(--t), color var(--t), transform var(--t), opacity var(--t);
}
.btn:hover { background: var(--bg-4); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px -8px rgba(229, 183, 47, .8); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.danger { background: var(--down-bg); color: var(--down); box-shadow: none; }
.btn.danger:hover { background: rgba(255, 84, 104, .22); }
.btn.on-off { background: var(--down); color: #fff; box-shadow: none; }
.btn.on-off:hover { background: #ff6b7d; }
.btn.ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn.icon { width: 36px; padding: 0; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 14px; border-radius: 8px; }
.btn.sm.icon { width: 30px; padding: 0; }
.btn.toggle, .btn[aria-pressed="true"].toggle { background: var(--accent-bg); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(109, 114, 255, .3); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { color: inherit; font: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t), color var(--t); }
.link:hover { color: var(--text); text-decoration-color: currentColor; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--live); color: #fff; font: 700 10.5px/16px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--bg-1); }

/* avatars: hue-tinted gradient, green ring while speaking, gold ring + headset badge for coaches */
.av {
  --h: 210;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, hsl(var(--h) 48% 36%), hsl(calc(var(--h) + 28) 44% 20%));
  color: hsl(var(--h) 90% 90%);
  font: 650 13px/1 var(--ui); letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.av::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--voice), 0 0 18px rgba(47, 212, 128, .45);
  opacity: 0; transform: scale(.94); transition: opacity 120ms, transform 120ms; pointer-events: none;
}
.spk .av::after { opacity: 1; transform: none; }
.av.av-me { font-size: 13.5px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.xl { width: 96px; height: 96px; font-size: 33.5px; }
.av.coach { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.av .hs { position: absolute; top: -3px; right: -3px; width: 42%; height: 42%; min-width: 12px; min-height: 12px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #2a1b00; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.av .hs svg { width: 66%; height: 66%; }
.coach-chip { display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 4px; background: var(--gold); color: #2a1b00; font: 700 10px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }

.lvl { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.lvl i { width: 3px; height: 10px; border-radius: 2px; background: var(--voice); transform-origin: bottom; transform: scaleY(.2); opacity: 0; transition: transform 110ms, opacity 110ms; }
.spk .lvl i { opacity: 1; }
.spk .lvl i:nth-child(1) { transform: scaleY(var(--l1, .5)); }
.spk .lvl i:nth-child(2) { transform: scaleY(var(--l2, .9)); }
.spk .lvl i:nth-child(3) { transform: scaleY(var(--l3, .6)); }

/* form controls */
.tin { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line-2); color: var(--text); outline: 0; transition: border-color var(--t), box-shadow var(--t); }
.tin:focus, .sheet textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.tin::placeholder, textarea::placeholder { color: var(--text-3); }
.sel { height: 36px; padding: 0 32px 0 12px; border-radius: var(--r); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7384' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid var(--line-2); color: var(--text); -webkit-appearance: none; appearance: none; max-width: 230px; }
.sel:focus { border-color: var(--accent); outline: 0; }
.sel.sm { height: 30px; font-size: 13.5px; max-width: 170px; border-radius: 8px; }
input[type="range"] { accent-color: var(--accent); }
.switch { position: relative; width: 40px; height: 24px; flex: none; border-radius: 12px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color var(--t); }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd4de; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform var(--t); }
.switch[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.switch[aria-checked="true"] i { transform: translateX(16px); background: #fff; }
.switch.sm { width: 32px; height: 19px; margin-left: auto; }
.switch.sm i { width: 13px; height: 13px; }
.switch.sm[aria-checked="true"] i { transform: translateX(13px); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: 14px; white-space: nowrap; transition: background-color var(--t), color var(--t); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.sm button { height: 24px; padding: 0 9px; font-size: 13px; }
.rng { display: inline-flex; align-items: center; gap: 10px; }
.rng input { width: 170px; }
.rng b { width: 44px; text-align: right; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.chk input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* ================= full app shell ================= */
.full {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: 68px 360px minmax(0, 1fr) 344px;
  grid-template-rows: 56px minmax(0, 1fr);
  grid-template-areas: "nav cmd cmd cmd" "nav rail stage chat";
}

/* nav rail */
.apprail { grid-area: nav; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 14px; background: var(--bg-1); border-right: 1px solid var(--line); min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.nav-b { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--text-3); transition: background-color var(--t), color var(--t), border-radius var(--t); }
.nav-b .i { width: 20px; height: 20px; }
.nav-b:hover { background: var(--bg-3); color: var(--text); border-radius: 12px; }
.nav-b[aria-current="true"] { background: var(--accent-bg); color: var(--accent-2); }
.nav-b[aria-current="true"]::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-b .badge { top: 3px; right: 3px; box-shadow: 0 0 0 2px var(--bg-1); }
.nav-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-sp { flex: 1; min-height: 12px; }
.nav-voice { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50px; padding: 7px 0; margin-bottom: 6px; border-radius: 14px; background: var(--voice-bg); box-shadow: inset 0 0 0 1px rgba(47, 212, 128, .25); }
.nv-l { font: 700 9.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--voice); margin-bottom: 2px; }
.nav-s { width: 36px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--text); transition: background-color var(--t); }
.nav-s .i { width: 17px; height: 17px; }
.nav-s:hover { background: rgba(255, 255, 255, .07); }
.nav-s.off { color: var(--down); }
.nav-me { position: relative; margin-top: 6px; border-radius: 50%; }
.nav-me .av { width: 38px; height: 38px; font-size: 13.5px; }
.st-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--bg-1); background: var(--text-3); }
.st-dot.online { background: var(--voice); }
.st-dot.away { background: var(--gold); }
.st-dot.dnd { background: var(--down); }
.st-dot.invisible, .st-dot.offline { background: #4a5160; }
.st-dot.inline { position: static; display: inline-block; border: 0; width: 9px; height: 9px; flex: none; }

/* command strip */
.cmd { grid-area: cmd; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-wordmark { display: block; width: 112px; height: auto; object-fit: contain; }
.site-footer { position: relative; display: flex; align-items: center; width: 100%; aspect-ratio: 15 / 1; height: auto; min-height: 64px; margin-top: 160px; padding: 0 18px; border-top: 1px solid var(--line); background: var(--bg-1) url('assets/footer-banner.png') center / 100% 100% no-repeat; }
.footer-center { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.footer-links { display: flex; align-items: center; gap: 28px; min-width: 0; margin: 0 auto; transform: translateY(14px); }
.footer-links a { color: var(--text); font-size: 11px; text-decoration: none; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.footer-links a { text-transform: uppercase; letter-spacing: .08em; }
.footer-links a:hover { color: var(--text); }
.footer-download { position: absolute; right: 0; height: 32px; padding: 0 13px; border: 2px solid var(--down); border-radius: 8px; color: var(--accent-ink); background: var(--accent-2); box-shadow: 0 0 0 1px rgba(255, 84, 104, .28); font-size: 10px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.footer-download:hover { background: var(--accent-hi); }
.auth-brand .brand-wordmark { width: 148px; }
.search {
  display: flex; align-items: center; gap: 9px; flex: 0 1 400px; min-width: 160px;
  height: 36px; padding: 0 10px 0 12px; border-radius: var(--r);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3);
  transition: box-shadow var(--t), background-color var(--t);
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-bg); background: var(--bg-1); }
.search input { flex: 1; min-width: 0; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.filters, .mfilters { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filters { flex: 1 1 auto; }
.filters::-webkit-scrollbar, .mfilters::-webkit-scrollbar { display: none; }
.mfilters { display: none; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px;
  color: var(--text-2); font-weight: 550; white-space: nowrap; flex: none;
  transition: background-color var(--t), color var(--t), box-shadow var(--t);
}
.chip:hover { background: var(--bg-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.chip .n { font: 500 12px var(--mono); opacity: .55; }
.sport-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; padding-left: 8px; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.sport-filter select { height: 30px; padding: 0 24px 0 9px; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--text-2); font: 600 11px var(--ui); box-shadow: inset 0 0 0 1px var(--line); }
.sport-filter select:focus { outline: 0; color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-bg); }
.cmd-right { display: flex; align-items: center; gap: 12px; flex: none; }
.overlay-status { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border-radius: 9px; color: var(--voice); background: var(--voice-bg); box-shadow: inset 0 0 0 1px rgba(47, 212, 128, .18); font-size: 13px; font-weight: 600; white-space: nowrap; }
.overlay-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--voice); box-shadow: 0 0 0 3px rgba(47, 212, 128, .14); }
.start-btn { gap: 6px; }
.start-btn .i { width: 15px; height: 15px; }
.modes { display: flex; padding: 3px; border-radius: 11px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.modes button { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 28px; padding: 0; border-radius: 8px; color: var(--accent-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color var(--t), color var(--t); }
.modes .mode-name { display: none; }
.modes button:hover, .modes button[aria-pressed="true"] { color: var(--accent-hi); background: var(--accent-bg); }
.modes button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); }

/* rooms rail (virtualized: rows are absolutely placed, 56px tall, 64px on phones) */
.rail { grid-area: rail; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; border-right: 1px solid var(--line); background: var(--bg-1); }
.rail-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
.rail-tabs::-webkit-scrollbar { display: none; }
.catalog-sort { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 4px 0 10px; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.catalog-sort select { height: 28px; padding: 0 24px 0 8px; border: 0; border-radius: 7px; background: var(--bg-2); color: var(--text-2); font: 600 11px var(--ui); box-shadow: inset 0 0 0 1px var(--line); }
.catalog-sort select:focus { outline: 0; color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-bg); }
.rtab { position: relative; height: 38px; padding: 0 9px; white-space: nowrap; color: var(--text-3); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: color var(--t); }
.rtab:hover { color: var(--text); }
.rtab .n { font: 500 12px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); }
.rtab::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); opacity: 0; transform: scaleX(.6); transition: opacity var(--t), transform var(--t); }
.rtab[aria-selected="true"] { color: var(--text); }
.rtab[aria-selected="true"]::after { opacity: 1; transform: none; }
.rows { position: relative; flex: 1; overflow-y: auto; min-height: 0; padding: 0 6px; }
.vlist { position: relative; }
.row {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  height: 56px; padding: 0 10px 0 8px; margin: 0; border-radius: var(--r);
  cursor: pointer; transition: background-color var(--t);
}
.row:hover { background: var(--bg-2); }
.row:focus-visible { outline-offset: -2px; }
.row.active { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.row.active::before { content: ''; position: absolute; left: -6px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.save-flag { display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-3); border-radius: 6px; opacity: .55; transition: color var(--t), background-color var(--t), opacity var(--t); }
.row:hover .save-flag, .save-flag[aria-pressed="true"] { opacity: 1; }
.save-flag:hover { color: var(--text); background: var(--bg-4); }
.save-flag[aria-pressed="true"] { color: var(--gold); }
.save-flag[aria-pressed="true"] svg { fill: currentColor; }
.save-flag .i { width: 14px; height: 14px; }
.r-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.r-title { font-weight: 600; font-size: 15px; }
.r-sub { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; color: var(--text-3); font-size: 13.5px; }
.r-room { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; min-width: 58px; font: 500 12.5px/1 var(--mono); color: var(--text-2); }
.r-room .r-cnt { display: inline-flex; align-items: center; gap: 4px; }
.r-room .r-cnt .i { width: 12px; height: 12px; color: var(--text-3); }
.r-room .in, .r-room .go { font: 700 10.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; }
.r-room .in { color: var(--voice); background: var(--voice-bg); }
.r-room .go { color: #fff; background: var(--accent); opacity: 0; transform: translateX(4px); transition: opacity var(--t), transform var(--t); }
.row:hover .go, .row:focus-visible .go { opacity: 1; transform: none; }
.r-room .lockgo { background: var(--gold); color: #2a1b00; opacity: 1; transform: none; }
.mem { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 550; }
.mem .i { width: 11px; height: 11px; flex: none; }
.rows-empty { padding: 32px 16px; color: var(--text-3); text-align: center; line-height: 1.5; }
.rows-empty b { color: var(--text); }
.rows-empty .btn { margin-top: 12px; }
.bell[aria-pressed="true"] { color: var(--accent-2); }

/* ================= stage (active room) ================= */
.stage { grid-area: stage; min-width: 0; min-height: 0; overflow-y: auto; background: var(--bg); }
.band { position: relative; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.band-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-width: 0; }
.band-h h2 { margin: 0; font: 600 14.5px/1.2 var(--ui); color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.band-h h2 .n { font: 500 12.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); }
.band-h .meta { font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.rh {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end;
  padding: 26px 24px 22px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 260px at 0% 0%, rgba(109, 114, 255, .10), transparent 70%), linear-gradient(180deg, var(--bg-1), var(--bg));
}
.rh-main { min-width: 0; }
.rh-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; flex-wrap: wrap; }
.rh-title { margin: 0; font: 700 33.5px/1.1 var(--ui); letter-spacing: -.022em; overflow-wrap: anywhere; }
.rh-q { margin: 7px 0 0; color: var(--text-2); font-size: 15.5px; }
.rh-host { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 12px 4px 4px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; transition: background-color var(--t); }
.rh-host:hover { background: rgba(255, 255, 255, .08); }
.rh-host b { color: var(--text); font-weight: 600; }
.rh-host .av.sm { width: 24px; height: 24px; font-size: 10px; }
.rh-host .av.coach { margin: 2px; }
.rh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.score-card {
  width: min(360px, 38vw); min-width: 260px;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: stretch; gap: 0;
  overflow: hidden; border-radius: 12px; background: rgba(8, 10, 14, .52);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 34px -28px rgba(0, 0, 0, .8);
}
.score-card.demo { opacity: .82; }
.score-field {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 72px; overflow: hidden; background: linear-gradient(90deg, rgba(47, 130, 80, .38), rgba(43, 101, 70, .5));
}
.score-field::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.08) 13px 14px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.5) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  animation: field-slide 9s linear infinite;
}
.score-field::after {
  content: ''; position: absolute; width: 8px; height: 8px; left: 52%; top: 45%; border-radius: 50%;
  background: #f3f5f0; box-shadow: 0 0 0 2px rgba(0,0,0,.16);
  animation: field-ball 4.8s ease-in-out infinite;
}
.score-field i { position: relative; margin: auto; width: 20px; height: 30px; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; opacity: .7; }
.score-field i:nth-child(3) { position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; }
.score-field[data-sport="NBA"] { background: linear-gradient(90deg, rgba(172, 94, 39, .45), rgba(82, 50, 34, .58)); }
.score-field[data-sport="MLB"] { background: linear-gradient(90deg, rgba(45, 86, 122, .45), rgba(26, 49, 71, .62)); }
.score-field[data-sport="NHL"] { background: linear-gradient(90deg, rgba(162, 208, 220, .28), rgba(60, 83, 105, .52)); }
.score-board { padding: 10px 12px; display: grid; gap: 7px; min-width: 0; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.score-team { color: var(--text-2); font: 700 12.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.score-row b { color: var(--text); font: 700 24.5px/1 var(--mono); letter-spacing: -.03em; }
.score-meta {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 96px;
  padding: 10px 12px; border-left: 1px solid var(--line); text-align: right;
}
.score-meta span { color: var(--live-soft); font: 800 13.5px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.score-meta small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
@keyframes field-slide { to { background-position: 28px 0, 0 0; } }
@keyframes field-ball { 0%,100% { transform: translate(-18px, 8px); } 50% { transform: translate(13px, -7px); } }
.game-tracker {
  width: min(500px, 48vw); min-width: 360px; overflow: hidden; border-radius: 14px;
  background: #08090c; box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 50px -34px rgba(0,0,0,.95);
}
.home-feature-main .game-tracker { width: min(520px, 100%); min-width: 0; margin: 14px 0 12px; }
.rh-side .game-tracker { width: 420px; }
.game-tracker.demo { opacity: .9; }
.gt-field {
  position: relative; height: 132px; overflow: hidden; transform-style: preserve-3d;
  background: linear-gradient(100deg, #127e8b 0 13%, #3d673f 13% 82%, #583391 82% 100%);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.gt-field::before {
  content: ''; position: absolute; inset: 0 13%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 14px, transparent 14px 56px),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 55%);
  animation: gt-turf 12s linear infinite;
}
.gt-field::after {
  content: ''; position: absolute; left: calc(var(--spot) - 12px); top: 34px; width: 22px; height: 56px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); opacity: .95;
  filter: drop-shadow(0 0 8px rgba(242, 180, 60, .35));
}
.gt-end {
  position: absolute; top: 50%; transform: translateY(-50%) rotate(-90deg);
  color: rgba(255,255,255,.72); font: 900 16px/1 var(--ui); letter-spacing: .03em; text-transform: uppercase;
}
.gt-end.away { left: 26px; }
.gt-end.home { right: 20px; }
.gt-line {
  position: absolute; bottom: 13px; color: rgba(255,255,255,.82); font: 900 15px/1 var(--mono);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.gt-line.l20 { left: 22%; } .gt-line.l35 { left: 37%; } .gt-line.l50 { left: 50%; transform: translateX(-50%); }
.gt-line.r35 { right: 37%; } .gt-line.r20 { right: 22%; }
.gt-marker {
  position: absolute; left: var(--spot); top: 38px; width: 11px; height: 11px; border-radius: 50%;
  background: #f4f7f1; box-shadow: 0 0 0 3px rgba(0,0,0,.24), 0 0 18px rgba(255,255,255,.38);
  animation: gt-ball 3.6s ease-in-out infinite;
}
.gt-route {
  position: absolute; width: 32px; height: 26px; border: 2px dashed rgba(255,255,255,.76); border-left: 0; border-bottom: 0;
  border-radius: 0 18px 0 0; opacity: .8;
}
.gt-route.r1 { left: calc(var(--spot) + 22px); top: 25px; }
.gt-route.r2 { left: calc(var(--spot) - 52px); top: 61px; transform: rotate(180deg); }
.gt-last {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px;
  padding: 11px 14px; background: #242426; color: var(--text-2); border-top: 1px solid rgba(255,255,255,.08);
}
.gt-last span { grid-row: 1 / span 2; color: var(--text-3); font: 800 12.5px/1.25 var(--ui); text-transform: uppercase; }
.gt-last b { min-width: 0; color: var(--text); font: 750 13.5px/1.15 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-last small { min-width: 0; color: var(--text-2); font: 600 12.5px/1.15 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-score {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center;
  gap: 14px; padding: 18px 18px 15px; background: radial-gradient(180px 90px at 0% 50%, rgba(13,155,165,.22), transparent), radial-gradient(180px 90px at 100% 50%, rgba(94,48,158,.25), transparent);
}
.gt-team { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.gt-team.home { justify-content: flex-end; text-align: right; }
.gt-team b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14.5px/1 var(--ui); }
.gt-team i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #1fb6c1, #4d315d); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.gt-team.home i { background: linear-gradient(135deg, #6142af, #22132f); }
.gt-score strong { color: #ffd000; font: 900 29px/1 var(--mono); letter-spacing: -.04em; }
.gt-clock { color: var(--text); font: 850 13.5px/1 var(--ui); white-space: nowrap; }
.gt-source { padding: 0 18px 13px; color: var(--text-3); font: 650 12px/1 var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.update-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  height: 38px; padding: 0 24px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-1) 88%, var(--accent-bg)); color: var(--text-2);
}
.update-line span { color: var(--accent-2); font: 800 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.update-line b { color: var(--text); font: 700 13.5px/1.2 var(--ui); min-width: 0; }
.update-line small { color: var(--text-3); font: 700 11px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.update-line.pulse { animation: update-flash 520ms ease-out; }
.p-stage .update-line { height: 34px; margin: 6px 8px 0; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.p-stage .update-line span { display: none; }
.p-stage .update-line b { font-size: 13px; }
.p-stage .update-line small { max-width: 82px; overflow: hidden; text-overflow: ellipsis; }
@keyframes update-flash { 0% { background: color-mix(in srgb, var(--accent-bg) 72%, var(--bg-2)); } }
@keyframes gt-turf { to { background-position: 28px 0, 56px 0, 0 0; } }
@keyframes gt-ball { 50% { transform: translate(18px, -9px); } }
.rh-stats { display: flex; align-items: flex-end; gap: 24px; }
.rh-stats > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rh-stats b { font: 600 31.5px/0.9 var(--mono); letter-spacing: -.03em; }
.rh-stats small { font-size: 13.5px; color: var(--text-3); }
.rh-act { display: flex; gap: 8px; }
.rh-act .btn[aria-pressed="true"] { background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(242, 180, 60, .3); }
.rh-act .btn[aria-pressed="true"] svg { fill: currentColor; }
.mem-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 6px; background: var(--gold-bg); color: var(--gold); font: 650 12.5px var(--ui); transition: background-color var(--t); }
.mem-badge:hover { background: rgba(242, 180, 60, .22); }
.mem-badge .i { width: 11px; height: 11px; }

/* voice band */
.voice-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.voice-top h2 { font-weight: 500; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.voice-top h2 b { color: var(--text); font-weight: 600; }
.vstate { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 12px; font: 650 13px/1 var(--ui); color: var(--voice); background: var(--voice-bg); white-space: nowrap; }
.vstate::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 212, 128, .2); }
.vstate.off { color: var(--text-3); background: var(--bg-3); }
.vstate.off::before { box-shadow: none; }
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
  padding: 14px 6px 10px; border-radius: var(--r-lg);
  transition: background-color var(--t);
}
.tile:hover { background: var(--bg-2); }
.tile.spk { background: rgba(47, 212, 128, .045); }
.tile .av { width: 56px; height: 56px; font-size: 18px; }
.tile .nm { max-width: 100%; font-weight: 600; font-size: 14px; }
.tile .pos { min-height: 15px; font: 700 10.5px/15px var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tile .pos.me-pos { color: var(--accent-2); }
.tile .mut { position: absolute; top: 52px; left: calc(50% + 14px); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--down); color: #fff; box-shadow: 0 0 0 3px var(--bg); }
.tile:hover .mut { box-shadow: 0 0 0 3px var(--bg-2); }
.tile .mut .i { width: 11px; height: 11px; }
.tile .lvl { position: absolute; top: 10px; left: 10px; }
.tile.local-muted .av { opacity: .4; filter: grayscale(.6); }
.tile.more { cursor: default; }
.tile.more .av { background: var(--bg-3); color: var(--text-2); font: 600 14.5px var(--mono); }
.tile.more .nm { color: var(--text-3); }
#app.compact .speakers { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
#app.compact .speakers .tile { padding: 10px 2px 8px; }
#app.compact .speakers .tile .av { width: 42px; height: 42px; font-size: 13.5px; }
#app.compact .speakers .tile .mut { top: 38px; }

/* lobby: upcoming rooms show a countdown instead of an empty stage */
.lobby { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 20px 22px; margin-bottom: 14px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--gold-bg), rgba(109, 114, 255, .06)); box-shadow: inset 0 0 0 1px rgba(242, 180, 60, .22); }
.lobby-t { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.lobby-k { font-size: 14.5px; color: var(--text-2); }
.lobby-t b { font: 600 38px/1 var(--mono); letter-spacing: -.03em; color: var(--text); }
.lobby-at { font-size: 14.5px; color: var(--gold); }
.lobby-s { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); white-space: nowrap; }
.lobby-s b { color: var(--text); font: 600 14.5px var(--mono); }
.lobby .btn { height: 40px; }

/* reactions float up over the stage */
.bursts { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; overflow: hidden; }
.burst { position: absolute; bottom: 8px; padding: 5px 10px; border-radius: 14px; background: rgba(20, 23, 30, .92); box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -6px rgba(0, 0, 0, .6); font: 700 12.5px/1 var(--mono); letter-spacing: .05em; color: var(--text); white-space: nowrap; animation: burst-up 1.6s var(--ease) forwards; }
.burst.mine { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(109, 114, 255, .8); }
@keyframes burst-up {
  0% { opacity: 0; transform: translate(0, 10px) scale(.8); }
  15% { opacity: 1; transform: translate(0, 0) scale(1.05); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--rise, -130px)) scale(1); }
}

/* raised hands (host view) */
.hands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r); background: var(--gold-bg); box-shadow: inset 0 0 0 1px rgba(242, 180, 60, .25); }
.hands-h { font: 650 13.5px var(--ui); color: var(--gold); margin-right: 4px; }
.hand { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 6px; border-radius: 19px; background: var(--bg-2); max-width: 260px; }
.hand .av { width: 26px; height: 26px; font-size: 10px; }
.hand b { font-weight: 600; font-size: 14px; }

/* voice dock */
.dock { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(13, 15, 20, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dock .sp { flex: 1; }
.dock .btn { height: 42px; padding: 0 16px; border-radius: 12px; }
.dock .btn.icon { width: 42px; padding: 0; }
.dock .join { padding: 0 24px; font-size: 15.5px; }
.join-hint { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; font-size: 14px; color: var(--text-3); }
.join-hint .i { width: 14px; height: 14px; }
.vol { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.vol input { width: 90px; }

/* listeners */
.aud { display: flex; flex-wrap: wrap; gap: 6px; }
.aud-p { display: inline-flex; align-items: center; gap: 7px; max-width: 160px; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; transition: background-color var(--t), color var(--t); }
.aud-p:hover { background: var(--bg-3); color: var(--text); }
.aud-p .av { width: 24px; height: 24px; font-size: 9.5px; }
.aud-p .av.coach { margin: 0 2px; width: 22px; height: 22px; }
.aud-more { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; font: 500 13px var(--mono); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* up next */
.upt { display: flex; flex-direction: column; }
.up-row { display: grid; grid-template-columns: 96px 48px minmax(0, 1fr) 90px auto; align-items: center; gap: 10px; padding: 10px 10px; margin: 0 -10px; border-radius: var(--r); transition: background-color var(--t); }
.up-row:hover { background: var(--bg-1); }
.up-row .c-when { display: flex; flex-direction: column; gap: 3px; }
.up-row .c-when b { font: 600 14px var(--mono); color: var(--gold); }
.up-row .c-when small, .up-row .c-t small { font-size: 13px; color: var(--text-3); }
.up-row .c-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.up-row .c-t b { font-weight: 600; }
.up-row .c-saves { font: 500 13px var(--mono); color: var(--text-3); text-align: right; white-space: nowrap; }
.up-row .c-act { display: flex; gap: 4px; justify-content: flex-end; }

/* ================= chat ================= */
.chatcol { grid-area: chat; min-height: 0; border-left: 1px solid var(--line); background: var(--bg-1); display: flex; flex-direction: column; }
.home-page { min-height: 100%; padding: 26px 42px 56px; background: radial-gradient(800px 360px at 20% 0%, rgba(229, 183, 47, .08), transparent 70%), var(--bg); }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1080px; margin: 0 auto 16px; }
.home-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font: 700 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.home-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.home-head h1 { max-width: 620px; margin: 8px 0 0; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--ui); letter-spacing: -.045em; }
.home-head p { margin: 0; color: var(--text-2); font-size: 17px; }
.home-proof { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--text-2); font-size: 13.5px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.home-proof b { color: var(--text); font: 600 15.5px var(--mono); }
.home-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); max-width: 1080px; min-height: 270px; margin: 0 auto; overflow: hidden; border-radius: 18px; background: linear-gradient(125deg, var(--bg-2), var(--bg-1)); box-shadow: 0 20px 50px -30px rgba(0,0,0,.8), inset 0 0 0 1px var(--line-2); }
.home-feature-main { padding: 28px 30px 26px; background: radial-gradient(500px 260px at 0% 0%, var(--accent-bg), transparent 70%); }
.home-feature-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.home-host { color: var(--text-3); font-size: 13.5px; }
.home-host b { color: var(--text-2); }
.home-arrows { display: inline-flex; gap: 3px; margin-left: auto; }
.home-arrows .btn { width: 30px; height: 30px; font-size: 23.5px; }
.home-feature h2 { max-width: 670px; margin: 16px 0 6px; font: 700 clamp(26px, 3vw, 40px)/1.05 var(--ui); letter-spacing: -.035em; }
.home-feature-main > p { margin: 0; color: var(--text-2); font-size: 17px; }
.home-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 16px; color: var(--text-3); font-size: 13.5px; }
.home-meta b { color: var(--text); font: 600 14.5px var(--mono); }
.home-actions { display: flex; gap: 8px; }
.home-actions .btn { height: 42px; border-radius: 11px; }
.home-preview { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-left: 1px solid var(--line); background: rgba(0,0,0,.13); }
.preview-head { display: flex; justify-content: space-between; gap: 8px; padding: 2px 2px 14px; color: var(--text-2); font-size: 12.5px; }
.preview-head span:first-child { color: var(--text); font-weight: 650; }
.preview-log { display: flex; flex: 1; flex-direction: column; gap: 14px; justify-content: center; min-height: 0; }
.preview-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; }
.preview-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-bg); color: var(--accent-2); font: 700 10px var(--mono); }
.preview-line span:last-child { min-width: 0; }
.preview-line b { display: block; color: var(--accent-2); font-size: 12.5px; }
.preview-line em { display: block; overflow: hidden; color: var(--text-2); font-size: 13.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.preview-empty { color: var(--text-3); font-size: 13.5px; }
.preview-cta { display: flex; align-items: center; justify-content: space-between; height: 38px; margin-top: 14px; padding: 0 11px; border-radius: 9px; background: var(--bg-3); color: var(--text); font-size: 13px; font-weight: 600; text-align: left; }
.preview-cta:hover { background: var(--accent-bg); }
.preview-cta span { color: var(--accent-2); font-size: 19px; }
.home-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 16px; }
.home-dots button { width: 6px; height: 6px; border-radius: 99px; background: var(--text-3); opacity: .4; transition: width var(--t), opacity var(--t), background-color var(--t); }
.home-dots button[aria-selected="true"] { width: 22px; background: var(--accent); opacity: 1; }
.home-section { max-width: 1080px; margin: 0 auto; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.home-section-head h2 { margin: 7px 0 0; font-size: 21.5px; letter-spacing: -.02em; }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.home-card { min-width: 0; padding: 15px; border-radius: 12px; background: var(--bg-1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: transform var(--t), background-color var(--t), box-shadow var(--t); }
.home-card:hover, .home-card.current { transform: translateY(-2px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--accent); }
.home-card-k, .home-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-card .status { font-size: 11px; }
.home-card > b { display: block; margin: 19px 0 7px; overflow: hidden; font-size: 15.5px; text-overflow: ellipsis; white-space: nowrap; }
.home-card > small { display: block; overflow: hidden; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.home-card-foot { margin-top: 20px; color: var(--text-3); font: 12px var(--mono); }
.community-rail { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 28px 18px 18px; overflow-y: auto; }
.community-rail > header { padding: 0 4px 20px; }
.community-rail h2 { margin: 8px 0 5px; font-size: 23.5px; letter-spacing: -.025em; }
.community-rail p { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.community-list { display: flex; flex-direction: column; gap: 6px; }
.community-list .crow { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 10px 8px; }
.community-list .crow .c-meta, .community-list .crow .c-price { display: none; }
.community-list .crow .s-sub { max-width: 170px; }
.community-more { width: 100%; justify-content: space-between; margin-top: auto; }
.community-more span { color: var(--accent-2); font-size: 18px; }
.chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; min-width: 0; }
.chat-h b { font-weight: 600; }
.chat-h > span { font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
.chat-h [data-cnt] { font: 500 13px var(--mono); color: var(--text-2); }
.chat-h .slow { font: 700 10.5px/1 var(--ui); letter-spacing: .06em; font-style: normal; color: var(--gold); background: var(--gold-bg); padding: 4px 6px; border-radius: 5px; margin-right: 8px; text-transform: uppercase; }
.log-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 12px; overscroll-behavior: contain; }
.newpill { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); height: 30px; padding: 0 14px; border-radius: 15px; background: var(--accent); color: #fff; font: 600 13.5px var(--ui); box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .6); white-space: nowrap; transition: transform var(--t); }
.newpill:hover { transform: translateX(-50%) translateY(-1px); }

.msg { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 8px 16px 2px; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.m-av { display: block; border-radius: 50%; }
.msg .av.sm { width: 30px; height: 30px; font-size: 11px; }
.msg .av.coach { width: 28px; height: 28px; margin: 1px; }
.m-b { min-width: 0; }
.m-h { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.m-h .w { font-weight: 600; font-size: 14.5px; min-width: 0; text-align: left; }
.m-h .w:hover { text-decoration: underline; }
.m-h .t { font: 500 12px var(--mono); color: var(--text-3); flex: none; }
.msg .ps { flex: none; font: 700 10px/1 var(--ui); letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; color: var(--gold); background: var(--gold-bg); }
.msg .x { font-size: 15px; line-height: 1.45; color: #d6dbe5; overflow-wrap: anywhere; margin-top: 1px; }
.msg.me .x { color: var(--text); }
.msg .x.rx { display: inline-block; font: 700 12.5px var(--mono); letter-spacing: .05em; padding: 4px 8px; border-radius: 6px; background: var(--accent-bg); color: var(--accent-2); }
.msg.cont { display: block; padding: 1px 16px 2px 56px; }
.msg.sys { display: flex; justify-content: center; gap: 8px; padding: 6px 16px; font-size: 13px; color: var(--text-3); }
.msg.sys .t { font: 500 12px var(--mono); opacity: .7; }
.msg.sys:hover { background: none; }
.msg.mention { background: rgba(242, 180, 60, .07); box-shadow: inset 2px 0 0 var(--gold); }
.m-reply { position: absolute; top: 4px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-3); color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2); opacity: 0; transition: opacity var(--t), color var(--t); }
.m-reply .i { width: 14px; height: 14px; }
.msg:hover .m-reply, .m-reply:focus-visible { opacity: 1; }
.m-reply:hover { color: var(--text); }

.reacts { display: flex; gap: 5px; padding: 8px 12px 0; flex: none; overflow-x: auto; scrollbar-width: none; }
.reacts::-webkit-scrollbar { display: none; }
.reacts button { flex: none; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); font: 700 12px var(--mono); letter-spacing: .05em; color: var(--text-2); transition: background-color var(--t), color var(--t), transform var(--t); }
.reacts button:hover { background: var(--bg-4); color: var(--text); }
.reacts button:active { transform: scale(.92); }
.cform { display: block; padding: 8px 12px 12px; flex: none; }
.chat-compose-main { display: flex; gap: 6px; }
.chat-input-wrap { position: relative; display: flex; flex: 1; min-width: 0; }
.cform input { flex: 1; min-width: 0; height: 40px; padding: 0 52px 0 14px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t); }
.cform input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-bg); }
.cform input::placeholder { color: var(--text-3); }
.cform .btn { height: 40px; width: 40px; padding: 0; border-radius: 12px; }
.cform .trade-compose { width: auto; min-width: 48px; padding: 0 10px; color: var(--accent-2); background: var(--accent-bg); font: 800 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.cform .trade-compose:hover { background: color-mix(in srgb, var(--accent-bg) 70%, var(--bg-4)); }
.chat-tool { position: absolute; right: 6px; top: 6px; height: 28px; padding: 0 7px; border-radius: 7px; color: var(--accent-2); background: var(--accent-bg); font: 800 10px var(--mono); letter-spacing: .04em; }
.chat-tool[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-2); }
.emoji-row { display: flex; gap: 3px; padding-top: 6px; overflow-x: auto; scrollbar-width: none; }
.emoji-row::-webkit-scrollbar { display: none; }
.emoji-row button { width: 27px; height: 25px; flex: none; border-radius: 7px; font-size: 17px; }
.emoji-row button:hover { background: var(--bg-3); }
.chat-gif-link { display: block; max-width: min(280px, 100%); }
.chat-gif { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: cover; }

.inline-chat { display: none; height: 400px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.mdock, .mtabs { display: none; }

/* ================= secondary views (schedule, inbox, profile, settings, community) ================= */
.view { grid-column: 2 / -1; grid-row: 2; display: none; min-height: 0; overflow-y: auto; background: var(--bg); }
.full:not([data-view="rooms"]) > .rail, .full:not([data-view="rooms"]) > .stage, .full:not([data-view="rooms"]) > .chatcol { display: none; }
.full:not([data-view="rooms"]) > .view { display: block; }
.view-in { max-width: 1000px; margin: 0 auto; padding: 0 32px 56px; }
.vstrip { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(8, 22, 16, .92); border-bottom: 1px solid rgba(47, 212, 128, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--voice); box-shadow: 0 0 0 3px rgba(47, 212, 128, .2); flex: none; }
.vs-id { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.vs-id b { font-weight: 600; }
.vs-id span { color: var(--text-2); font-size: 13.5px; }
.vs-id span b { color: var(--text); }
.vstrip .btn.sm:not(:last-child) { width: 32px; padding: 0; }
.vh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 36px 0 20px; }
.vh h1 { margin: 0; font: 700 33.5px/1.1 var(--ui); letter-spacing: -.022em; }
.vh p { margin: 7px 0 0; color: var(--text-2); }
.vh-act { display: flex; gap: 8px; flex: none; }
.vbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.vsec { margin-top: 28px; }
.vsec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 14.5px/1 var(--ui); color: var(--text); }
.vsec-h span { font: 500 12.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); }
.vempty { padding: 20px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--text-3); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty-state { max-width: 620px; margin: 10vh auto 24px; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(145deg, var(--bg-1), var(--bg-2)); box-shadow: var(--shadow-card); }
.empty-k { color: var(--accent-2); font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.empty-state h2 { margin: 10px 0 8px; font: 700 28px/1.15 var(--ui); letter-spacing: -.02em; }
.empty-state p { margin: 0; color: var(--text-2); line-height: 1.5; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vmore { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding: 10px; font-size: 13.5px; color: var(--text-3); }

.srow, .rline, .nrow, .crow { display: grid; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 6px; border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t), box-shadow var(--t); }
.srow:hover, .rline:hover, .crow:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.srow { grid-template-columns: 72px 42px minmax(0, 1fr) auto auto auto auto; }
.rline { grid-template-columns: 42px minmax(0, 1fr) auto; }
.rline .btn .i { width: 12px; height: 12px; }
.s-time { display: flex; flex-direction: column; gap: 4px; }
.s-time b { font-size: 17px; font-weight: 600; }
.s-time span { font-size: 13px; color: var(--gold); }
.s-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.s-t { font-weight: 600; font-size: 15.5px; }
.s-sub { font-size: 14px; color: var(--text-3); }
.s-going { display: inline-flex; align-items: center; gap: 5px; font: 500 13px var(--mono); color: var(--text-2); white-space: nowrap; }
.s-going .i { width: 13px; height: 13px; color: var(--text-3); }
.flag-b[aria-pressed="true"] { color: var(--gold); }
.flag-b[aria-pressed="true"] svg { fill: currentColor; }

/* group icon tile (switcher, schedule, room lines) */
.sw-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 700 11px var(--mono); letter-spacing: .03em; color: var(--text); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.sw-ic[data-g="sports"] { color: var(--g-sports); background: color-mix(in srgb, var(--g-sports) 15%, var(--bg-2)); }
.sw-ic[data-g="politics"] { color: var(--g-politics); background: color-mix(in srgb, var(--g-politics) 15%, var(--bg-2)); }
.sw-ic[data-g="crypto"] { color: var(--g-crypto); background: color-mix(in srgb, var(--g-crypto) 14%, var(--bg-2)); }
.sw-ic[data-g="macro"] { color: var(--g-macro); background: color-mix(in srgb, var(--g-macro) 14%, var(--bg-2)); }
.sw-ic[data-g="culture"] { color: var(--g-culture); background: color-mix(in srgb, var(--g-culture) 15%, var(--bg-2)); }

/* inbox */
.nrow { grid-template-columns: 38px minmax(0, 1fr) auto; }
.nrow.unread { background: var(--bg-2); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.n-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); }
.n-ic .i { width: 17px; height: 17px; }
.n-ic.k-live { color: var(--live-soft); background: rgba(255, 71, 87, .12); }
.n-ic.k-mention { color: var(--gold); background: var(--gold-bg); }
.n-ic.k-remind { color: var(--accent-2); background: var(--accent-bg); }
.n-ic.k-follow { color: var(--voice); background: var(--voice-bg); }
.n-main { min-width: 0; }
.n-x { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.n-x b { color: var(--text); font-weight: 600; }
.n-t { font-size: 13px; color: var(--text-3); margin-top: 3px; }

/* profile + community header */
.prof, .chead { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.prof { padding: 40px 0 22px; }
.chead { padding: 18px 0 22px; }
.prof-av { position: relative; width: 96px; }
.prof-av .st-dot { width: 20px; height: 20px; border-width: 4px; border-color: var(--bg); right: 2px; bottom: 2px; }
.prof-id h1 { margin: 4px 0 0; font: 700 33.5px/1.15 var(--ui); letter-spacing: -.02em; }
.prof-h { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.prof-bio { margin: 12px 0 0; color: var(--text-2); max-width: 560px; line-height: 1.5; }
.prof-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge-chip { font: 600 12.5px var(--ui); padding: 4px 10px; border-radius: 12px; background: var(--bg-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.prof-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.prof-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.prof-stats > div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.prof-stats > div:last-child { border-right: 0; }
.prof-stats b { display: block; font-size: 24.5px; font-weight: 600; }
.prof-stats small { display: block; margin-top: 5px; font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-links { display: none; gap: 8px; margin-bottom: 16px; }

/* settings */
.set-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.set-nav { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--r); color: var(--text-2); font-weight: 550; text-align: left; transition: background-color var(--t), color var(--t); }
.set-nav button .i { width: 16px; height: 16px; }
.set-nav button:hover { background: var(--bg-2); color: var(--text); }
.set-nav button[aria-current="true"] { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.set-pane .vsec-h { margin-top: 8px; font-size: 18px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-l { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.set-l b { font-weight: 600; }
.set-l small { color: var(--text-3); font-size: 14px; max-width: 460px; line-height: 1.45; }
.set-c { flex: none; display: flex; align-items: center; }
.set-c.gap { gap: 8px; }
.keycap { min-width: 72px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom-width: 2px; font: 600 13.5px var(--mono); color: var(--text); transition: border-color var(--t); }
.keycap:hover { border-color: var(--text-3); }
.keycap.cap { border-color: var(--accent); color: var(--accent-2); }
.keycap.fixed { display: inline-flex; align-items: center; color: var(--text-2); cursor: default; }
.keycap.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--voice); }
.keycap.ok .i { width: 14px; height: 14px; }
.mictest { display: inline-flex; align-items: center; gap: 10px; }
.meter { width: 160px; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--voice), var(--gold) 80%, var(--down)); transform: scaleX(0); transform-origin: left; transition: transform 90ms linear; }
.blk { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 360px; }
.blk .opt .i { width: 12px; height: 12px; }
.mrow .set-l { flex-direction: row; align-items: center; gap: 12px; }
.mrow .set-l > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mrow .c-tile { width: 38px; height: 38px; border-radius: 11px; font-size: 13.5px; }

/* communities */
.c-tile { --h: 210; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, hsl(var(--h) 60% 46%), hsl(calc(var(--h) + 40) 55% 26%)); color: #fff; font: 800 15.5px var(--ui); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -8px hsl(var(--h) 60% 40%); }
.c-tile.xl { width: 96px; height: 96px; border-radius: 26px; font-size: 33.5px; }
.crow { grid-template-columns: 44px minmax(0, 1fr) auto auto 14px; cursor: pointer; }
.crow .s-t { font-size: 17px; }
.crow .s-sub .tag { margin-right: 4px; }
.own { font: 700 10px/1 var(--ui); letter-spacing: .06em; color: var(--accent-2); background: var(--accent-bg); padding: 3px 6px; border-radius: 4px; vertical-align: 2px; }
.c-meta { display: flex; align-items: center; gap: 12px; font: 500 13px var(--mono); color: var(--text-2); white-space: nowrap; }
.c-meta .i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: var(--text-3); }
.c-price { font-size: 13.5px; color: var(--text-3); white-space: nowrap; min-width: 92px; text-align: right; }
.c-price b { color: var(--text); font: 600 17px var(--mono); }
.in, .in.big { font: 700 11px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-bg); padding: 6px 8px; border-radius: 6px; }
.in.big { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r); }
.disclose { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-3); max-width: 760px; }
.quiet-support { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--text-3); font-size: 13px; }
.quiet-support a { color: var(--text-2); text-decoration: none; padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.quiet-support a:hover { color: var(--text); background: var(--bg-2); }
.quiet-support .tip-text { color: var(--text-3); }
.tip-icon { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 12.5px var(--ui); }
.tip-icon:hover { color: var(--text); background: var(--bg-2); }
.tip-mark { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; border-radius: 5px; background: var(--bg-3); color: var(--accent-2); font: 700 9px var(--mono); }
.file-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; margin: 6px 0 10px; padding: 0 11px; border-radius: 9px; background: var(--bg-2); color: var(--text-2); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line); }
.file-pick::after { content: 'Choose image'; color: var(--text-3); font-size: 12.5px; }
.file-pick[data-ready]::after { content: attr(data-ready); color: var(--voice); }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tip-qr-head { display: flex; align-items: center; gap: 12px; }
.tip-qr-head h3 { margin: 0; }
.tip-qr-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.tip-qr { display: grid; place-items: center; margin: 20px auto 14px; padding: 12px; width: min(280px, 100%); aspect-ratio: 1; background: #fff; border-radius: 12px; }
.tip-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tip-open { display: block; text-align: center; color: var(--accent-2); font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-top: 24px; color: var(--text-3); font-size: 14.5px; }
.back .i { width: 14px; height: 14px; }
.c-stats b { font-size: 22.5px; }
.dash { margin-bottom: 14px; background: linear-gradient(180deg, rgba(47, 212, 128, .06), var(--bg-1)); }
.dash > div:nth-child(3) b { color: var(--voice); }
.tbars { display: flex; flex-direction: column; gap: 10px; }
.tbar { display: grid; grid-template-columns: 180px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.tbar .track { height: 8px; margin: 0; padding: 0; border-radius: 4px; background: var(--bg-3); box-shadow: none; overflow: hidden; }
.tbar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.tbar b { text-align: right; font-weight: 600; font-size: 13.5px; }
.tiers { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; }
.tier { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tier.cur { background: linear-gradient(180deg, var(--accent-bg), var(--bg-1)); box-shadow: inset 0 0 0 1px rgba(109, 114, 255, .4); }
.t-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.t-h > b { font-size: 18px; }
.t-price { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.t-price b { color: var(--text); font-size: 27px; }
.tier ul, .perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier li, .perks li { display: flex; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.tier li .i, .perks li .i { width: 15px; height: 15px; color: var(--voice); margin-top: 1px; }
.tier .btn { align-self: flex-start; }
.t-note { align-self: flex-start; font-size: 13.5px; color: var(--text-3); }
.tier .in { align-self: flex-start; }

/* verified track record */
.track { margin: 0 8px 10px; padding: 12px; border-radius: var(--r); background: linear-gradient(180deg, rgba(47, 212, 128, .05), var(--bg-1)); box-shadow: inset 0 0 0 1px rgba(47, 212, 128, .16); }
.track.wide { margin: 14px 0 0; max-width: 520px; }
.track-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 650 12.5px var(--ui); color: var(--voice); }
.track-h .i { width: 13px; height: 13px; }
.trow { display: grid; grid-template-columns: 84px auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 3px 0; font-size: 13.5px; }
.trow .tv { color: var(--text-2); font-weight: 500; }
.trow b { font-size: 14.5px; font-weight: 600; }
.trow .tm { color: var(--text-3); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= overlay: simulated venue underneath ================= */
.desk { position: fixed; inset: 0; background: #050607; overflow: hidden; }
.win { position: absolute; inset: 14px; border-radius: 12px; overflow: hidden; background: #0c0d10; color: #e6e8ec; box-shadow: 0 0 0 1px #1b1d22; display: flex; flex-direction: column; }
.win-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #15171b; border-bottom: 1px solid #1f2227; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2e35; }
.win-url { margin-left: 14px; flex: 0 1 480px; min-width: 0; height: 22px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #0c0d10; color: #6f7582; font: 500 13px var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-nav { flex: none; display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 28px; border-bottom: 1px solid #1a1c21; }
.win-nav b { font: 800 20px var(--ui); color: #3fd08f; letter-spacing: .02em; }
.win-nav span { width: 64px; height: 8px; border-radius: 4px; background: #23262c; }
.win-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.win-main { padding: 26px 30px; min-width: 0; overflow: hidden; }
.win-kicker { font: 600 12.5px var(--mono); letter-spacing: .12em; color: #7c8290; margin-bottom: 6px; }
.win-main h3 { margin: 0 0 18px; font: 700 29px/1.2 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9dce2; }
.win-chart { height: 280px; border-radius: 10px; border: 1px solid #1c1f24; padding: 12px; }
.win-chart svg { width: 100%; height: 100%; }
.win-chart path { fill: none; stroke: #3a7bd5; stroke-width: 2; vector-effect: non-scaling-stroke; }
.win-rows { margin-top: 14px; display: grid; gap: 10px; }
.win-rows div { height: 56px; border-radius: 10px; background: #111317; border: 1px solid #1a1c21; }
.win-side { border-left: 1px solid #1a1c21; padding: 24px; min-width: 0; }
.win-ph { height: 48px; border-radius: 10px; background: #14161a; margin-bottom: 12px; }
.win-ph.tall { height: 150px; }
.win-ph.cta { background: #1b3a2b; }
.desk-note { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; background: rgba(40, 44, 52, .85); color: #aab2c0; font-size: 13px; white-space: nowrap; pointer-events: none; }

/* ================= overlay: side panel ================= */
.panel {
  position: fixed; left: 0; top: 0; z-index: 10;
  width: 356px; height: min(680px, calc(100vh - 32px)); min-width: 320px; min-height: 420px;
  display: flex; flex-direction: column;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 18px; box-shadow: var(--shadow-float);
  overflow: hidden; will-change: transform;
}
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); transition: background var(--t); z-index: 1; }
.panel.pinned::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.p-bar { display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 8px 0 6px; flex: none; cursor: grab; user-select: none; touch-action: none; border-bottom: 1px solid var(--line); }
.p-bar:active { cursor: grabbing; }
.grip { width: 14px; height: 18px; flex: none; color: var(--text-3); display: grid; place-items: center; opacity: .7; }
.p-bar .btn { color: var(--text-3); }
.p-bar .btn:hover { color: var(--text); }
.p-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.p-title { display: flex; align-items: center; gap: 8px; font: 700 15px/1.15 var(--ui); letter-spacing: -.01em; min-width: 0; }
.p-eyebrow { font-size: 12.5px; color: var(--text-3); }
.btn.sm.sw-btn { height: 30px; padding: 0 10px; gap: 6px; font-size: 12px; flex: none; color: var(--text-2) !important; }
.sw-btn .i { width: 14px; height: 14px; }
.p-stage { position: relative; flex: none; }
.p-lobby { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0; padding: 8px 8px 8px 12px; border-radius: var(--r); background: var(--gold-bg); color: var(--text-2); font-size: 14px; }
.p-lobby > .i { width: 15px; height: 15px; color: var(--gold); }
.p-lobby span { flex: 1; min-width: 0; }
.p-lobby b { color: var(--text); font-family: var(--mono); }
.p-voice { display: flex; gap: 2px; padding: 10px 8px 4px; overflow-x: auto; scrollbar-width: none; }
.p-voice::-webkit-scrollbar { display: none; }
.p-voice .tile { width: 62px; flex: none; padding: 6px 2px 4px; gap: 5px; border-radius: var(--r); }
.p-voice .tile .av { width: 40px; height: 40px; font-size: 13.5px; }
.p-voice .tile .nm { font-size: 12px; font-weight: 550; color: var(--text-2); }
.p-voice .tile .pos { display: none; }
.p-voice .tile .mut { top: 34px; left: calc(50% + 9px); width: 16px; height: 16px; }
.p-voice .tile .mut .i { width: 9px; height: 9px; }
.p-voice .tile .lvl { top: 4px; left: 4px; transform: scale(.8); transform-origin: top left; }
.p-stage .bursts { height: 100%; --rise: -64px; }
.p-now { display: flex; align-items: center; gap: 6px; padding: 4px 14px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); flex: none; min-width: 0; }
.p-now .i { width: 13px; height: 13px; color: var(--text-3); }
.p-now .i:first-child { color: var(--voice); }
.p-now b { color: var(--text); font-weight: 600; }
.p-now .sp { flex: 1; }
.p-now [data-cnt] { font: 600 13.5px var(--mono); color: var(--text); }
.p-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.p-body .reacts { padding-top: 6px; }
.p-dock { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; padding: 10px; border-top: 1px solid var(--line); flex: none; background: rgba(0, 0, 0, .18); }
.p-dock.out { grid-template-columns: 1fr auto; }
.p-dock .btn { height: 40px; font-size: 14px; border-radius: 12px; }
.p-dock .btn.icon { width: 40px; }
.p-dock .join-hint { grid-column: 1 / -1; order: 3; justify-content: center; margin: 0; font-size: 13px; }
.p-resize { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; opacity: .4; background: linear-gradient(135deg, transparent 50%, var(--text-3) 50%, var(--text-3) 58%, transparent 58%, transparent 70%, var(--text-3) 70%, var(--text-3) 78%, transparent 78%); border-radius: 0 0 14px 0; transition: opacity var(--t); }
.p-resize:hover { opacity: 1; }

/* ================= overlay: ticker ================= */
.mini {
  position: fixed; left: 0; top: 0; z-index: 11;
  display: flex; align-items: center; gap: 4px;
  height: 58px; padding: 0 8px 0 5px; width: min(1080px, calc(100vw - 16px)); max-width: calc(100vw - 16px);
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-float);
  will-change: transform; user-select: none; cursor: grab;
}
.mini::before { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 0 0 3px 3px; background: var(--accent); opacity: .9; }
.mini:active { cursor: grabbing; }
.mini button, .mini input { cursor: pointer; }
.mini.pinned { box-shadow: var(--shadow-float), inset 0 2px 0 -0.5px var(--accent); }
.mini .grip { height: 36px; width: 16px; cursor: grab; touch-action: none; border-radius: 4px; }
.mini .btn, .mini .btn.icon { height: 32px; border-radius: 9px; }
.mini .btn.icon { width: 32px; }
.mute-matrix { position: relative; flex: none; }
.master-mute {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border-radius: 11px; background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 850 10px/1 var(--mono); letter-spacing: .05em; transition: background-color var(--t), color var(--t), box-shadow var(--t);
}
.master-mute .i { width: 16px; height: 16px; }
.mute-matrix.all-muted .master-mute { background: var(--down); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 26px -14px rgba(255,84,104,.9); }
.mute-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 4; display: grid; gap: 5px; min-width: 178px;
  padding: 7px; border-radius: 12px; background: var(--bg-2); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity var(--t), transform var(--t);
}
.mute-matrix:hover .mute-pop, .mute-matrix:focus-within .mute-pop { opacity: 1; pointer-events: auto; transform: none; }
.mute-pop button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; text-align: left; }
.mute-pop button:hover { background: var(--bg-3); color: var(--text); }
.mute-pop button[aria-pressed="true"] { color: var(--down); background: var(--down-bg); }
.mini-live-state {
  display: grid; grid-template-columns: 8px auto; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 7px;
  height: 40px; min-width: 112px; padding: 0 10px; border-radius: 11px; background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-live-state > span { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.mini-live-state.is-live > span { background: var(--live); box-shadow: 0 0 0 4px rgba(255,71,87,.17); animation: live-pulse 2s ease-in-out infinite; }
.mini-live-state b { font: 850 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.mini-live-state small { color: var(--text-3); font: 650 11px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.mini-pickers { display: grid; grid-template-columns: 92px 74px minmax(150px, 230px); gap: 4px; min-width: 0; flex: 1 1 420px; }
.mini-pickers label { position: relative; display: grid; min-width: 0; height: 40px; padding: 5px 7px 4px; border-radius: 9px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.mini-pickers label.is-muted { opacity: .48; }
.mini-pickers span { color: var(--text-3); font: 750 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.mini-pickers select {
  min-width: 0; width: 100%; height: 22px; padding: 0 18px 0 0; border: 0; outline: 0; appearance: none;
  background: transparent; color: var(--text); font: 800 12px/1 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-pickers label::after { content: 'v'; position: absolute; right: 7px; bottom: 8px; color: var(--text-3); font: 800 10px var(--mono); pointer-events: none; }
.mini-score {
  display: grid; grid-template-columns: minmax(34px, 48px) 26px 8px 26px minmax(34px, 48px) minmax(64px, 84px);
  align-items: center; gap: 6px; height: 40px; padding: 0 9px; border-radius: 10px;
  background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text);
}
.ms-team { color: var(--text-2); font: 850 12.5px/1 var(--mono); text-align: center; }
.ms-num { display: grid; place-items: center; height: 28px; border-radius: 7px; background: var(--bg-3); font: 900 19px/1 var(--mono); }
.ms-dash { color: var(--text-3); font: 900 13.5px/1 var(--mono); text-align: center; }
.ms-clock { min-width: 0; padding-left: 7px; border-left: 1px solid var(--line-2); color: var(--accent-2); font: 850 12.5px/1 var(--mono); text-transform: uppercase; }
.mini-score.score-flash .ms-num { animation: score-cell-flash 720ms ease-out; }
@keyframes score-cell-flash { 0% { background: color-mix(in srgb, var(--voice) 42%, var(--bg-3)); color: #fff; } 100% { background: var(--bg-3); } }
.mini-room-meta {
  display: grid; grid-template-columns: minmax(54px, 1fr) auto auto; align-items: center; gap: 6px; min-width: 156px; max-width: 220px;
  height: 40px; padding: 0 9px; border-radius: 10px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line);
}
.mini-room-meta span { color: var(--text-2); font-size: 12.5px; }
.mini-room-meta b { font: 850 13.5px/1 var(--mono); color: var(--text); }
.mini-room-meta small { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.mini-join { height: 32px; }
.m-room { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 8px 0 4px; border-radius: 8px; transition: background-color var(--t); }
.m-room:hover { background: rgba(255, 255, 255, .06); }
.mini .m-room { flex: 0 1 190px; width: 190px; max-width: 190px; }
.m-room .ttl { font-weight: 600; font-size: 14px; min-width: 0; }
.m-live-label { flex: none; color: var(--live-soft); font: 700 10px var(--mono); letter-spacing: .05em; }
.m-sep { width: 1px; height: 20px; background: var(--line-2); flex: none; margin: 0 4px; }
.m-sep.hard { height: 38px; background: var(--line); margin: 0 2px; }
.m-wave { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; color: var(--text-3); border-radius: 7px; transition: color 120ms, background-color 120ms; }
.m-wave .i { width: 15px; height: 15px; }
.m-wave.on { color: var(--voice); background: var(--voice-bg); }
.m-feed { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; height: 32px; line-height: 32px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); text-align: left; overflow: hidden; transition: background-color var(--t); }
.m-feed:hover { background: rgba(255, 255, 255, .08); }
.mf-who { flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; color: var(--accent-2); }
.mf-x { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text-2); }
.m-feed.new .mf-who, .m-feed.new .mf-x { animation: feed-in 160ms ease-out; }
@keyframes feed-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.m-cnt { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 0 4px; font: 500 12.5px var(--mono); color: var(--text-2); white-space: nowrap; }
.m-cnt .i { width: 13px; height: 13px; }
.mini .sw-mini .i { width: 15px; height: 15px; }
.m-talk { max-width: 150px; color: var(--text-2); font-size: 13.5px; }
.mini .m-talk { flex: 1 1 120px; width: 120px; }
.mini .m-talk b { color: var(--text); font-weight: 650; }
.minichat {
  position: fixed; left: 0; top: 0; z-index: 11; width: 340px; height: 300px;
  display: flex; flex-direction: column; background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 16px; box-shadow: var(--shadow-float); overflow: hidden;
}
#app.no-minichat .mini [data-act="minichat"] { display: none; }

/* pin, fade, inactive, tuck */
.pin[aria-pressed="true"] { color: var(--accent-2) !important; }
.pin[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .25; }
.pin[aria-pressed="false"] svg { transform: rotate(35deg); transition: transform var(--t); }
#app.fade-float .panel:not(:hover), #app.fade-float .mini:not(:hover) { opacity: .55; }
#app.idle .panel, #app.idle .mini { opacity: .32; }
#app.idle .panel:hover, #app.idle .mini:hover { opacity: 1; }
.panel.inactive, .mini.inactive { opacity: .45; }
.panel.inactive::after, .mini.inactive::after { content: 'Behind other windows · click to bring forward'; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, .75); color: var(--text-2); font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.mini.inactive::after { bottom: auto; top: calc(100% + 6px); }
.tuck { position: fixed; right: 0; top: 80px; z-index: 12; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 16px; height: 76px; border-radius: 10px 0 0 10px; background: rgba(12, 14, 19, .94); box-shadow: var(--shadow-float); transition: width var(--t), background-color var(--t); }
.tuck.left { right: auto; left: 0; border-radius: 0 10px 10px 0; }
.tuck:hover { width: 24px; background: #151922; }
.tuck i { display: block; width: 6px; border-radius: 3px; }
.tuck .t-live { height: 6px; background: var(--live); }
.tuck .t-talk { height: 22px; background: var(--line-2); transition: background-color 120ms; }
.tuck.talk .t-talk { background: var(--voice); box-shadow: 0 0 8px rgba(47, 212, 128, .7); }
.tuck .t-unread { height: 6px; background: transparent; }
.tuck.unread .t-unread { background: var(--gold); }
.tuck.muted .t-live { background: var(--down); }
#app.tucked:not([data-mode="full"]) .tuck { display: flex; }
#app.tucked .panel, #app.tucked .mini, #app.tucked .minichat { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* ================= room switcher (⌘K) ================= */
.switcher {
  position: fixed; z-index: 30; display: flex; flex-direction: column;
  background: rgba(14, 16, 22, .98); border-radius: 18px; box-shadow: var(--shadow-float); overflow: hidden;
  animation: pop-in 140ms var(--ease);
}
.switcher.attached { border-radius: 0 0 18px 18px; box-shadow: none; border-top: 1px solid var(--line); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
.sw-head { display: flex; align-items: center; gap: 6px; padding: 10px; flex: none; border-bottom: 1px solid var(--line); }
.sw-search { flex: 1; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); transition: box-shadow var(--t); }
.sw-search:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-bg); }
.sw-search input { flex: 1; min-width: 0; color: var(--text); font-size: 15.5px; }
.sw-search input::placeholder { color: var(--text-3); }
.sw-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; overscroll-behavior: contain; }
.sw-sec { display: flex; justify-content: space-between; padding: 14px 8px 8px; font: 600 13.5px var(--ui); color: var(--text-2); }
.sw-sec span { font: 500 12.5px var(--mono); color: var(--text-3); }
.sw-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px;
  width: 100%; min-height: 62px; padding: 8px 10px; margin-bottom: 4px; border-radius: 12px; text-align: left;
  background: transparent; transition: background-color var(--t), transform var(--t);
}
.sw-row:hover, .sw-row.hl { background: var(--bg-3); }
.sw-row.hl { box-shadow: inset 0 0 0 1px var(--line-2); }
.sw-row:active { transform: scale(.99); }
.sw-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sw-eye { font-size: 12.5px; color: var(--text-3); }
.sw-eye .sv { color: var(--gold); font-weight: 600; }
.sw-t { font-weight: 600; font-size: 15.5px; }
.sw-meta { display: flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); color: var(--text-2); white-space: nowrap; }
.sw-meta .i { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; color: var(--text-3); }
.sw-live .i { color: var(--voice); }
.sw-when { color: var(--gold); }
.sw-meta .in { color: var(--voice); background: var(--voice-bg); }
.lockgo-sw { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font: 600 13px var(--ui); }
.lockgo-sw .i { width: 12px; height: 12px; color: var(--gold); }
.sw-chev { width: 14px; height: 14px; color: var(--text-3); }
.sw-more { display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 13.5px; color: var(--text-3); }
.sw-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); flex: none; }
.sw-foot kbd { margin-right: 3px; }

/* ================= menus, sheets, toast ================= */
.menu { position: fixed; z-index: 40; width: 288px; padding: 6px; background: rgba(20, 23, 30, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop-in 120ms var(--ease); }
.menu-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.menu-h .av { width: 36px; height: 36px; font-size: 12.5px; }
.menu-h b { display: block; font-weight: 600; }
.menu-h small { color: var(--text-3); font-size: 13.5px; }
.menu-bio { margin: 4px 8px 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.menu-t { padding: 8px 8px 10px; font: 600 13.5px var(--ui); color: var(--text-2); }
.card-stats { display: flex; gap: 14px; padding: 0 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.card-stats b { color: var(--text); font-weight: 600; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 9px; border-radius: 8px; color: var(--text); text-align: left; transition: background-color var(--t); }
.mi:hover { background: rgba(255, 255, 255, .07); }
.mi.danger { color: var(--down); }
.mi-quiet { color: var(--text-2); font-size: 14px; }
.mi-quiet .i { color: var(--gold); }
.mi-vol { display: flex; align-items: center; gap: 10px; padding: 6px 9px; color: var(--text-3); }
.mi-vol input { flex: 1; }
.mi-vol span { font: 500 12.5px var(--mono); width: 38px; text-align: right; color: var(--text-2); }
.mi-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.mi-check { margin-left: auto; color: var(--accent-2); }
.mi-check .i { width: 14px; height: 14px; }
.mi-k { margin-left: auto; font: 600 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 9px; font-size: 14px; color: var(--text-2); }
.q-row input[type="range"] { flex: 1; min-width: 0; }
.q-row b { width: 38px; text-align: right; font-size: 12.5px; font-weight: 500; }

.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(3, 4, 6, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in 160ms ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 46; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 24px;
  animation: sheet-in 200ms var(--ease);
}
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.98); } }
.sheet h3 { margin: 0 0 6px; font: 700 20px/1.25 var(--ui); letter-spacing: -.01em; }
.sheet p { margin: 0 0 14px; color: var(--text-2); line-height: 1.5; }
.sheet .lbl { font: 600 13.5px var(--ui); color: var(--text-2); margin: 18px 0 8px; }
.sheet textarea { width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line-2); color: var(--text); outline: 0; transition: border-color var(--t), box-shadow var(--t); }
.sheet-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-weight: 550; transition: background-color var(--t), color var(--t); display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.opt:hover { background: var(--bg-4); color: var(--text); }
.opt[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.opt .av { width: 22px; height: 22px; font-size: 9px; }
.opt .av.coach { width: 20px; height: 20px; margin: 0 1px; }
.ep-top { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }
.ep-av .av.xl { width: 72px; height: 72px; font-size: 27px; }
.ep-hue { flex: 1; }
.ep-hue input { flex: 1; width: auto; }
.ep-hue span { font: 600 13.5px var(--ui); color: var(--text-2); }

/* membership sheets */
.membership-hub { display: grid; gap: 12px; }
.account-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }
.account-panel-head { display: flex; align-items: flex-start; gap: 11px; }
.account-panel-head > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-bg); color: var(--accent-2); flex: none; }
.account-panel-head .i { width: 16px; height: 16px; }
.account-panel-head b { display: block; font: 650 15px/1.25 var(--ui); color: var(--text); }
.account-panel-head small { display: block; margin-top: 3px; color: var(--text-3); font-size: 13.5px; line-height: 1.4; }
.account-list { display: grid; gap: 8px; }
.account-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.account-row > span { display: grid; gap: 2px; min-width: 0; }
.account-row b { font-size: 14.5px; }
.account-row small { color: var(--text-3); font-size: 13px; }
.creator-start { display: grid; gap: 11px; }
.creator-start p, .empty-note { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.mini-steps { margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-steps div { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.mini-steps span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--text); font: 700 11px var(--ui); flex: none; }
.payout-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.sub-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sub-top h3 { margin: 0; }
.sub-top p { margin: 4px 0 0; font-size: 14px; }
.sub-top .coach-chip { margin-right: 2px; }
.gate { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 12px 0 0; border-radius: var(--r); background: var(--gold-bg); color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.gate .i { width: 15px; height: 15px; color: var(--gold); margin-top: 2px; }
.gate b { color: var(--text); }
.dash + .gate, .vsec-h + .gate { margin: 0 0 12px; }
.sheet .track.wide { max-width: none; }
.sub-tiers { display: flex; flex-direction: column; gap: 6px; }
.sub-tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--bg-1); text-align: left; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t), background-color var(--t); }
.sub-tier:hover { background: var(--bg-3); }
.sub-tier[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-bg); }
.sub-tier span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sub-tier small { color: var(--text-3); font-size: 13.5px; }
.sub-tier .num { font-weight: 600; font-size: 17px; white-space: nowrap; }
.sub-tier .num small { font-family: var(--ui); font-size: 13px; color: var(--text-3); margin-left: 1px; }
.perks { flex: none; }
.pay-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.pay-sum b { color: var(--text); font-size: 17px; white-space: nowrap; }
.fee-calc { display: grid; gap: 8px; margin-top: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); }
.fee-calc > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 14px; }
.fee-calc > div:last-of-type { padding-top: 8px; border-top: 1px solid var(--line); color: var(--text); }
.fee-calc b { color: var(--text); font-size: 15px; white-space: nowrap; }
.fee-calc small { color: var(--text-3); font-size: 13px; line-height: 1.35; }
.member-admin { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.member-admin > div:first-child { display: grid; gap: 4px; }
.member-admin small { color: var(--text-3); font-size: 13.5px; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.member-row > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.member-row > span small { margin-left: 4px; }
.member-row.off { opacity: .55; }
.sim { margin: 10px 0 0 !important; font: 500 13px var(--ui); color: var(--gold) !important; }
.sold { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--text-2) !important; }
.tier-edit { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 6px; margin-bottom: 10px; }
.tier-edit textarea { grid-column: 1 / -1; min-height: 46px; }
.tin-pre { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13.5px; }
.tin-pre .tin { width: 88px; }

/* shortcuts */
.download-note { display: flex; flex-direction: column; gap: 5px; margin: 16px 0 4px; padding: 13px 14px; border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.download-note b { font-weight: 600; }
.download-note span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.steps { list-style: none; counter-reset: s; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-bg); color: var(--accent-2); font: 700 13.5px var(--ui); }
.steps b { font-weight: 600; }
.steps span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.keys { display: flex; flex-direction: column; }
.key-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.key-row:last-child { border-bottom: 0; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: #f3f4f8; color: #0c0e13; font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= sign-in ================= */
.auth { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: radial-gradient(1100px 600px at 50% -10%, rgba(109, 114, 255, .2), transparent 60%), radial-gradient(700px 400px at 90% 110%, rgba(47, 212, 128, .08), transparent 60%), var(--bg); overflow-y: auto; }
.auth-card { width: min(410px, 100%); padding: 30px; border-radius: 22px; background: var(--bg-1); box-shadow: var(--shadow-float); }
.auth-card { position: relative; }
.auth-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text-2); }
.auth-close:hover { background: var(--bg-3); color: var(--text); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth h1 { margin: 0 0 6px; font: 700 27px/1.2 var(--ui); letter-spacing: -.02em; }
.auth-sub { margin: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.auth-sub b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth form { display: flex; flex-direction: column; gap: 10px; }
.auth .lbl { font: 600 13.5px var(--ui); color: var(--text-2); margin-top: 4px; }
.auth-in { height: 46px; font-size: 17px; }
.auth-code { font: 600 27px var(--mono); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.auth-go { height: 46px; font-size: 15.5px; margin-top: 6px; }
.auth-err { margin: 0; color: var(--down); font-size: 14px; }
.auth-dev { margin: 0; color: var(--gold); font-size: 13px; }
.auth-alt { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.auth-social { display: flex; flex-direction: column; gap: 8px; }
.auth-sso { height: 46px; justify-content: center; gap: 10px; background: var(--bg-2); font-size: 15.5px; }
.auth-sso:hover { background: var(--bg-3); }
.auth-sso[disabled] { opacity: .5; cursor: not-allowed; }
.auth-note { margin: 8px 0 0; font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: 13.5px; color: var(--text-3); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 18px; border-radius: 12px; background: var(--bg-2); }
.auth-tabs button { height: 36px; border-radius: 9px; color: var(--text-2); font-weight: 600; transition: background-color var(--t), color var(--t); }
.auth-tabs button[aria-selected="true"] { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pw-wrap { position: relative; }
.pw-wrap .auth-in { width: 100%; padding-right: 64px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-3); font: 600 13.5px var(--ui); }
.pw-eye:hover { color: var(--text); background: var(--bg-3); }
.auth-hint { margin: -2px 0 0; font-size: 13.5px; color: var(--text-3); }

/* ================= native desktop shell (Tauri): the window IS the panel or ticker ================= */
html.native.ov, html.native.ov body { background: transparent; }
html.native .desk, html.native .desk-note { display: none !important; }
html.native.ov .panel { left: 0 !important; top: 0 !important; bottom: auto !important; transform: none !important; width: 100vw !important; height: 100vh !important; min-width: 0; min-height: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.native.ov .mini { left: 0 !important; top: 0 !important; transform: none !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.native.ov .mini.pinned { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 2px 0 -0.5px var(--accent); }
html.native.ov .minichat { left: 0 !important; top: 50px !important; transform: none !important; width: 100vw; height: calc(100vh - 50px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.native.ov .switcher:not(.attached) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.native.ov #app.tucked .tuck { display: flex; left: 0; right: auto; top: 0 !important; width: 100vw; height: 100vh; border-radius: 10px 0 0 10px; box-shadow: none; }
html.native.ov #app.tucked .tuck.left { border-radius: 0 10px 10px 0; }
html.native.ov .panel.inactive::after, html.native.ov .mini.inactive::after { display: none; }

/* Browser popup shell: the popup is an overlay card, never a second full app.
   Chrome can reuse a previously maximized named popup, so JS also reapplies
   the outer window size after rendering. The card stays compact even if the
   browser ignores that resize request. */
html.popup, html.popup body, html.popup.ov, html.popup.ov body { background: transparent; overflow: hidden; }
html.popup .desk, html.popup .desk-note { display: none !important; }
html.popup.ov #app { min-width: 0; min-height: 0; background: transparent; }
html.popup.ov #full { display: none !important; }
html.popup.ov .panel { left: auto !important; right: 16px !important; top: 16px !important; transform: none !important; width: min(356px, calc(100vw - 32px)) !important; height: min(680px, calc(100vh - 32px)) !important; min-width: 0; min-height: 0; border-radius: 14px; box-shadow: var(--shadow-float); }

/* Browser ticker: restore the original single-row strip. The popup itself is
   the overlay window, so a second stacked/card layout only wastes vertical
   space and makes the ticker look like a cropped full app. */
html.popup.ov .mini {
  left: 8px !important; right: auto !important; top: 8px !important;
  transform: none !important;
  display: flex !important; align-items: center !important; flex-wrap: nowrap !important;
  width: calc(100vw - 16px) !important; max-width: none !important;
  height: 58px !important; padding: 0 8px 0 6px !important;
  overflow: hidden; box-shadow: var(--shadow-float);
}
html.popup.ov .mini .grip,
html.popup.ov .mini .m-pin,
html.popup.ov .mini .tuck-btn { display: none !important; }
html.popup.ov .mini .mini-pickers { min-width: 170px; max-width: 250px; flex: 1 1 220px; }
html.popup.ov .mini .mini-score { min-width: 280px; flex: 1 1 360px; }
html.popup.ov .mini .mini-room-meta { flex: 0 1 110px; min-width: 72px; }
html.popup.ov .mini .full-btn,
html.popup.ov .mini .panel-btn,
html.popup.ov .mini .sw-mini { flex: 0 0 auto; }
html.popup.ov .minichat { left: 8px !important; top: 74px !important; transform: none !important; width: min(420px, calc(100vw - 16px)); height: 300px; box-shadow: var(--shadow-float); }

/* While a browser overlay owns the UI, the originating tab contains no
   second Sideliner surface or parked placeholder. Chromium uses Document PiP
   so the active panel/ticker can stay above the event tab or another app. */
html.overlay-host-active #app { display: none !important; }
html.overlay-host-active body { background: #08090c; }


/* ================= responsive ================= */
@media (min-width: 1081px) {
  .full[data-view="rooms"] { grid-template-columns: 68px minmax(0, 1fr) 344px; grid-template-areas: "nav cmd cmd" "nav stage chat"; }
  .full[data-view="rooms"] > .rail { display: none; }
}
@media (max-width: 1540px) {
  .overlay-status { display: none; }
  .dock .vol { display: none; }
}
@media (max-width: 1320px) {
  .modes .mode-name { display: none; }
  .modes button { width: 32px; padding: 0; }
  .full { grid-template-columns: 68px 320px minmax(0, 1fr) 304px; }
  .join-hint { display: none; }
}
@media (max-width: 1080px) {
  .full { grid-template-columns: 68px 300px minmax(0, 1fr); grid-template-areas: "nav cmd cmd" "nav rail stage"; }
  .start-btn .lb { display: none; }
  .chatcol { display: none; }
  .stage .inline-chat { display: flex; }
  .filters { display: none; }
  .rail .mfilters { display: flex; }
  .rtab { padding: 0 7px; }
  .rh { grid-template-columns: 1fr; }
  .rh-side { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .rh-side .game-tracker { width: min(100%, 520px); min-width: 0; }
  .game-tracker { min-width: 0; }
  .rh-stats > div { align-items: flex-start; }
  .srow { grid-template-columns: 64px 42px minmax(0, 1fr) auto auto; }
  .srow .s-going, .srow .flag-b { display: none; }
  .prof-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prof-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .up-row { grid-template-columns: 88px 44px minmax(0, 1fr) auto; }
  .up-row .c-saves { display: none; }
  .home-page { padding: 28px 24px 42px; }
  .home-feature { grid-template-columns: minmax(0, 1fr) 290px; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  body { font-size: 15.5px; }
  .full { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "cmd" "main" "mdock" "mtabs"; }
  .apprail, .start-btn { display: none; }
  .cmd { flex-wrap: wrap; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand-name { display: none; }
  .search { flex: 1 1 auto; height: 42px; }
  .search kbd { display: none; }
  .cmd-right { gap: 8px; }
  .site-footer { aspect-ratio: auto; height: 112px; margin-top: 100px; padding: 8px 12px; background-size: cover; background-position: center; }
  .footer-center { gap: 10px; }
  .footer-links { gap: 16px; overflow-x: auto; justify-content: center; }
  .footer-download { right: 0; }
  .modes button { width: 38px; height: 34px; }
  .modes button[data-mode="panel"] { display: none; }

  .rail, .stage, .chatcol { grid-area: main; border: 0; }
  .rail .mfilters { display: flex; }
  .full[data-mtab] .rail, .full[data-mtab] .stage, .full[data-mtab] .chatcol { display: none; }
  .full[data-mtab="hot"] .rail, .full[data-mtab="saved"] .rail { display: flex; }
  .full[data-mtab="room"] .stage { display: block; }
  .full[data-mtab="chat"] .chatcol { display: flex; }
  .stage .inline-chat { display: none; }
  .voice-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-health small { display: none; }
  .listener-mode { align-items: flex-start; }
  .row { grid-template-columns: 24px minmax(0, 1fr) auto; height: 64px; }
  .row .go { opacity: 1; transform: none; }
  .save-flag { width: 26px; height: 26px; opacity: 1; }

  .rh { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px; }
  .rh-title { font-size: 27px; }
  .rh-side { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .rh-stats b { font-size: 24.5px; }
  .game-tracker { width: 100%; border-radius: 12px; }
  .gt-field { height: 104px; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
  .gt-end { font-size: 14.5px; }
  .gt-end.away { left: 18px; }
  .gt-end.home { right: 14px; }
  .gt-line { bottom: 10px; font-size: 13.5px; }
  .gt-last { grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; }
  .gt-last span { grid-row: auto; }
  .gt-score { grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); gap: 8px; padding: 14px 12px 12px; }
  .gt-team { gap: 6px; }
  .gt-team b { font-size: 13px; }
  .gt-team i { width: 22px; height: 22px; }
  .gt-score strong { font-size: 24.5px; }
  .gt-clock { font-size: 12px; }
  .gt-source { padding: 0 12px 11px; font-size: 10.5px; }
  .band { padding: 16px; }
  .voice .band-h .meta { display: none; }
  .speakers { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .tile .av { width: 52px; height: 52px; }
  .tile .mut { top: 48px; }
  .lobby { grid-template-columns: 1fr auto; padding: 16px; gap: 12px; }
  .lobby .btn { grid-column: 1 / -1; }
  .lobby-t b { font-size: 31.5px; }
  .dock { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
  .dock .btn, .dock .btn.icon { height: 60px; width: auto; min-width: 0; padding: 0 4px; flex-direction: column; gap: 5px; font-size: 13px; border-radius: 14px; }
  .dock .btn .i { width: 20px; height: 20px; }
  .dock .join { grid-column: 1 / -1; flex-direction: row; height: 52px; font-size: 17px; }
  .dock.out { grid-template-columns: 1fr; }
  .join-hint { display: flex; grid-column: 1 / -1; justify-content: center; margin: 0; }
  .dock .sp, .dock .vol, .dock .mode-btn { display: none; }
  .up-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .up-row .tag { display: none; }
  .up-row .open-btn { display: none; }

  .mdock { grid-area: mdock; display: none; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
  .full:not([data-mtab="room"]) .mdock.has { display: flex; }
  .mdock .m-room { flex: 1; max-width: none; gap: 8px; }
  .mdock .m-talk { margin-left: auto; max-width: 110px; font-size: 13.5px; color: var(--text-2); }
  .mdock .btn { height: 44px; }
  .mdock .btn.icon { width: 44px; }
  .mtabs { grid-area: mtabs; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--bg-1); padding-bottom: env(safe-area-inset-bottom); }
  .mtab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 58px; color: var(--text-3); font: 600 12px var(--ui); transition: color var(--t); }
  .mtab .i { width: 21px; height: 21px; }
  .mtab[aria-selected="true"] { color: var(--text); }
  .mtab[aria-selected="true"] .i { color: var(--accent-2); }
  .mtab .badge { top: 6px; right: calc(50% - 22px); }
  .cform input, .cform .btn { height: 46px; }
  .cform .btn { width: 46px; }
  .reacts button { height: 34px; }
  .msg .x { font-size: 16px; }
  .m-reply { opacity: 1; background: transparent; box-shadow: none; color: var(--text-3); }

  .view { grid-area: main; }
  .home-page { padding: 22px 16px 32px; }
  .home-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .home-head h1 { font-size: 33.5px; }
  .home-proof { display: none; }
  .home-feature { display: block; }
  .home-feature-main { padding: 22px 18px; }
  .home-feature h2 { margin-top: 20px; font-size: 31.5px; }
  .home-preview { min-height: 220px; border-top: 1px solid var(--line); border-left: 0; }
  .home-cards { grid-template-columns: 1fr; }
  .full[data-mtab] > .view { display: none; }
  .full[data-mtab="view"] > .view { display: block; }
  .view-in { padding: 0 16px 32px; }
  .vh { padding: 22px 0 14px; flex-wrap: wrap; }
  .vh h1 { font-size: 27px; }
  .vstrip { display: none; }
  .srow { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .srow .sw-ic, .srow .bell { display: none; }
  .prof, .chead { grid-template-columns: 1fr; gap: 14px; }
  .prof { padding-top: 24px; }
  .prof-act { justify-content: flex-start; }
  .me-links { display: flex; flex-wrap: wrap; }
  .set-wrap { grid-template-columns: 1fr; gap: 8px; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .set-nav button { flex: none; }
  .set-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rng input { width: 200px; }
  .crow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .crow .c-meta, .crow .sw-chev { display: none; }
  .c-tile.xl { width: 72px; height: 72px; font-size: 27px; border-radius: 20px; }
  .tiers { grid-template-columns: 1fr; }
  .tbar { grid-template-columns: 110px minmax(0, 1fr) 54px; }
  .sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); animation: sheet-up 220ms var(--ease); }
  @keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: 0; } }
  .sheet-act { position: sticky; bottom: -24px; margin: 22px -24px -24px; padding: 14px 24px max(14px, env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); }
  .sheet-act .btn { flex: 1; height: 46px; }

  /* overlay modes on phone: sheet + bottom pill */
  html:not(.ov) .win { inset: 0; border-radius: 0; }
  html:not(.ov) .win-body { grid-template-columns: 1fr; }
  html:not(.ov) .win-side { display: none; }
  html:not(.ov) .win-main { padding: 56px 18px 18px; }
  html:not(.ov) .desk-note { top: 96px; bottom: auto; }
  html:not(.ov) .panel { left: 0 !important; top: auto !important; bottom: 0; transform: none !important; width: 100vw !important; height: 80vh !important; min-width: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  html:not(.ov) .panel .p-bar { cursor: default; }
  html:not(.ov) .p-resize, html:not(.ov) .panel .grip, html:not(.ov) .panel .pin { display: none; }
  html:not(.ov) .panel .btn { min-height: 38px; }
  html:not(.ov) .p-dock .btn { height: 48px; }
  html:not(.ov) .p-dock .btn.icon { width: 48px; }
  html:not(.ov) .sw-btn > span:not(.i) { display: none; }
  html:not(.ov) .sw-btn { width: 38px; padding: 0; }
  html:not(.ov) .mini { left: 8px !important; top: auto !important; bottom: max(12px, env(safe-area-inset-bottom)); transform: none !important; width: calc(100vw - 16px); height: 64px; border-radius: 18px; }
  html:not(.ov) .mini .grip, html:not(.ov) .mini .m-sep, html:not(.ov) .mini .deaf-btn, html:not(.ov) .mini .panel-btn,
  html:not(.ov) .mini .m-cnt, html:not(.ov) .mini .m-feed, html:not(.ov) .mini .m-wave, html:not(.ov) .mini .full-btn,
  html:not(.ov) .mini .m-pin, html:not(.ov) .mini .tuck-btn, html:not(.ov) .mini .mini-live-state, html:not(.ov) .mini .mini-room-meta,
  html:not(.ov) .mini .mini-pickers label:not(.mini-room-select) { display: none; }
  html:not(.ov) .mini .mini-pickers { flex: 1; grid-template-columns: minmax(0, 1fr); }
  html:not(.ov) .mini .mini-score { grid-template-columns: minmax(28px, 38px) 24px 8px 24px minmax(28px, 38px) minmax(48px, 64px); gap: 4px; padding: 0 6px; }
  html:not(.ov) .mini .m-room { flex: 1; width: auto; max-width: none; }
  html:not(.ov) .mini .btn.icon { width: 44px; height: 44px; }
  html:not(.ov) .minichat { left: 8px !important; top: auto !important; bottom: calc(82px + env(safe-area-inset-bottom)); transform: none !important; width: calc(100vw - 16px); height: 50vh; }
  html:not(.ov) .switcher { border-radius: 0; }
  html:not(.ov) .sw-row { min-height: 64px; }
  html:not(.ov) .sw-foot { display: none; }
  html:not(.ov) .tuck { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 620px) {
  .prepare-summary { grid-template-columns: repeat(3, 1fr); }
  .prepare-summary > span { grid-column: 1 / -1; }
  .creator-tools { align-items: flex-start; flex-direction: column; }
  .parlay-card footer { align-items: flex-start; flex-direction: column; }
}
.nav-st .st-dot.inline { width: 12px; height: 12px; }
.rh-back { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; color: var(--text-2); }
.rh-back:hover { color: var(--text); }
.rh-back .i { width: 14px; height: 14px; }
.full:not([data-view="rooms"]) .filters { visibility: hidden; }
#app.loading { visibility: visible; }
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-sub { font: 700 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
@media (max-width: 760px) { .brand-sub { display: none; } }
.full[data-home="1"][data-view="rooms"] { grid-template-columns: 68px minmax(0, 1fr); grid-template-areas: "nav cmd" "nav stage"; }
.full[data-home="1"] > .chatcol { display: none; }
.subchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: 0 auto 6px; max-width: 1080px; position: sticky; top: 0; z-index: 6; background: linear-gradient(var(--bg) 78%, transparent); }
.subchips::-webkit-scrollbar { display: none; }
.chip.sub { flex: none; height: 30px; }
#subRail { display: block; padding: 0 10px; }
#subRail .subchips { position: static; background: none; padding: 6px 0; flex-wrap: wrap; overflow: visible; margin: 0; }

/* ---- slim command bar: logo · search · category tabs ........ view menu ---- */
.full { grid-template-rows: 48px minmax(0, 1fr); }
.cmd { gap: 18px; padding: 0 14px 0 16px; }
.search { flex: 0 1 240px; min-width: 150px; height: 32px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: flex-basis var(--t), box-shadow var(--t), background-color var(--t); }
.search:focus-within { flex-basis: 340px; }
.search kbd { opacity: .6; }
.filters { gap: 2px; align-items: stretch; height: 100%; }
.filters .chip { height: 100%; padding: 0 12px; border-radius: 0; background: none; color: var(--text-3); position: relative; font-weight: 600; }
.filters .chip:hover { background: none; color: var(--text); }
.filters .chip[aria-pressed="true"] { background: none; color: var(--text); }
.filters .chip[aria-pressed="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.cmd-right { margin-left: auto; }
.view-sel { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px 0 10px; border-radius: 9px; color: var(--text-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t), color var(--t); }
.view-sel:hover { background: var(--bg-3); color: var(--text); }
.view-sel .i { width: 16px; height: 16px; }
.view-sel .i:last-child { width: 13px; height: 13px; opacity: .6; }
.view-sel .mode-name { display: inline; }
@media (max-width: 1180px) { .view-sel .mode-name { display: none; } }

/* ---- view switcher: three icons, no labels (restored) ---- */
.cmd-right .modes button .mode-name { display: none; }

/* ---- sign-in: remember me + crowd backdrop ---- */
.auth-remember { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.auth-remember input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.auth { background-image: radial-gradient(1100px 600px at 50% -10%, rgba(109, 114, 255, .2), transparent 60%), linear-gradient(to bottom, transparent 55%, rgba(7, 8, 12, .6)), url("assets/crowd-bg.png"); background-repeat: no-repeat; background-position: center, center, center bottom; background-size: auto, auto, max(100%, 900px) auto; background-color: var(--bg); }

/* ---- v41: categories + sub-categories grouped in the header; one always-on search border ---- */
.full { grid-template-rows: auto minmax(0, 1fr); }
.cmd { align-items: flex-start; min-height: 48px; }
.brand { height: 48px; justify-content: center; }
.search { margin-top: 8px; box-shadow: none; border: 1px solid var(--accent); }
.search:focus-within { box-shadow: none; background: transparent; }
.search input, .search input:focus { outline: 0; box-shadow: none; }
.filters { flex-direction: column; height: auto; gap: 0; overflow: visible; }
.filters .tabs { display: flex; gap: 2px; height: 48px; }
.filters .subchips { position: static; z-index: auto; background: none; max-width: none; margin: 0; padding: 0 0 8px; overflow-x: auto; }
.filters .chip.sub { height: 26px; padding: 0 10px; font-size: 12px; background: var(--bg-2); color: var(--text-2); border-radius: 13px; }
.filters .chip.sub[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.filters .chip.sub::after { display: none; }
.cmd-right { height: 48px; }
.home-page > .subchips { display: none; }
.nav-b { position: relative; }
.nav-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-1); }
.nav-b[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-2); }

/* flagged rooms drawer */
.flagged { position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 92vw; z-index: 60; display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0, 0, 0, .35); animation: flagIn .16s ease-out; }
.flagged[hidden] { display: none; }
@keyframes flagIn { from { transform: translateX(16px); opacity: 0; } }
.flagged header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; }
.flagged h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.f-list { flex: 1; overflow-y: auto; padding: 0 10px 14px; }
.frow { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.frow:hover { background: var(--bg-2); }
.f-main { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 2px; align-items: center; padding: 9px 8px; text-align: left; color: var(--text); }
.f-main .tag { grid-row: span 2; }
.f-t { font-weight: 600; }
.f-s { color: var(--text-3); font-size: 12px; }

/* footer pinned to the bottom of short pages */
.full:not([data-view="rooms"]) > .view { display: flex; flex-direction: column; }
.full:not([data-view="rooms"]) > .view > .view-in { flex: none; padding-bottom: 48px; }
.full:not([data-view="rooms"]) > .view > .site-footer { margin-top: auto; }

/* v42: one gold search border everywhere; panel header search; icon-only voice controls */
.hd-search, .sw-search { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--accent); background: transparent; color: var(--text-3); box-shadow: none; }
.hd-search { flex: 1 1 90px; min-width: 70px; }
.sw-search { height: 36px; flex: 1; }
.hd-search:focus-within, .sw-search:focus-within { box-shadow: none; background: transparent; }
.hd-search input, .sw-search input, .hd-search input:focus, .sw-search input:focus { flex: 1; min-width: 0; outline: 0; box-shadow: none; color: var(--text); font-size: 13px; }
.hd-search .i, .sw-search .i { width: 14px; height: 14px; flex: none; }
.btn.mic { min-width: 46px; height: 46px; border-radius: 50%; padding: 0; }
.btn.mic .i { width: 20px; height: 20px; }
.dock .btn.mic, .dock.out .btn.mic { flex: 0 0 46px; width: 46px; margin: 0 auto; }


/* Creator discovery and subscriber updates: separate from event chat. */
.cu-page{max-width:1040px;margin:0 auto;padding:30px 24px 80px;display:grid;gap:22px}
.cu-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cu-heading h1{font-size:29px;letter-spacing:-.04em;margin:0 0 4px}
.cu-heading p,.cu-bio{margin:0;color:var(--text-2);line-height:1.5}
.cu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
.cu-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--bg-1);padding:18px;display:grid;gap:14px}
.cu-card header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cu-card p{margin:0;line-height:1.55;overflow-wrap:anywhere}
.cu-avatar{width:46px;height:46px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--bg-3);font-weight:700}
.cu-name{min-width:0;display:grid;gap:3px;flex:1}
.cu-open{appearance:none;border:0;background:none;color:var(--text-1);font-size:16px;font-weight:700;cursor:pointer;text-align:left;padding:0}
.cu-open:hover{text-decoration:underline}
.cu-name small,.cu-card header small,.cu-verified,.cu-unknown{display:block;color:var(--text-3);font-size:12px}
.cu-sub{white-space:nowrap}
.cu-stats{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.cu-stats>div{border-radius:9px;background:var(--bg-2);padding:10px 12px;display:grid;gap:4px;min-width:90px}
.cu-stats b{font-size:15px;font-variant-numeric:tabular-nums}
.cu-stats small{font-size:11px;color:var(--text-3)}
.cu-public,.cu-preview{padding:12px;border-radius:10px;background:var(--bg-2);display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.cu-public{display:block}
.cu-public small{color:var(--text-3);font-size:12px}
.cu-preview span{font-size:12px}
.cu-lock{color:var(--text-2);font-size:13px;display:inline-block}
.cu-updates,.cu-tips{display:grid;gap:12px}
.cu-updates>header{display:flex;justify-content:space-between;align-items:center}
.cu-updates h2,.cu-tips h2{font-size:18px;margin:0}
.cu-post{max-width:750px}
.cu-post header{justify-content:space-between}
.cu-copy{white-space:normal}
.cu-gif{max-width:min(100%,440px);max-height:320px;object-fit:contain;border-radius:12px;justify-self:start}
.cu-tiprow{display:flex;gap:8px;flex-wrap:wrap}
.cu-tipqr{display:block;margin:18px auto;max-width:260px;max-height:260px;border-radius:12px}
.cu-tipedit{display:grid;gap:7px;padding:12px 0;border-bottom:1px solid var(--line)}
.cu-previewfields{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin:10px 0}
.cu-gif-tools{display:grid;gap:8px}
.cu-gif-results{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0;max-height:260px;overflow:auto}
.cu-gif-results button{border:0;background:none;cursor:pointer;padding:0}
.cu-gif-results img{height:85px;max-width:130px;object-fit:cover;border-radius:7px}
.cu-gif-results small{align-self:end;font-size:11px}
.cu-comment{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.cu-comment p{margin:5px 0}
.cu-member{color:var(--text-2);font-size:14px}
@media(max-width:719px){.cu-page{padding:18px 15px 90px;gap:18px}.cu-card{padding:14px}.cu-sub{font-size:12px}.cu-heading h1{font-size:25px}}

/* Neutral creator-trade preparation and public venue profiles */
.cu-trade{border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;gap:11px}
.cu-trade-meta{display:flex;gap:10px;justify-content:space-between;align-items:center}
.cu-trade-meta small{color:var(--text-3);text-transform:capitalize}
.cu-venue-actions{display:flex;flex-wrap:wrap;gap:9px}
.cu-venue-actions .cu-venue{flex:1;justify-content:center;min-width:132px;display:inline-flex;align-items:center;gap:9px}
.cu-venue-logo{border-radius:5px;background:var(--bg-3);padding:5px 7px;font-size:12px}
.cu-trade-editor{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}
.cu-trade-editor summary{font-weight:600;cursor:pointer}
.cu-trade-editor p,.cu-platform-settings p{font-size:12px;color:var(--text-3);line-height:1.5}
.cu-trade-input{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.cu-trade-input .tin{width:100%}
.cu-platform-settings{display:grid;gap:13px}
.cu-platform-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.cu-platform-row small{display:block;color:var(--text-3);margin-top:4px;word-break:break-all}
.cu-platform-controls{display:flex;gap:6px;flex-wrap:wrap}
.cu-prep-count{font-weight:700;margin:10px 0}
.cu-prep-row{border-bottom:1px solid var(--line);padding:13px 0;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.cu-prep-row div{min-width:0;flex:1}
.cu-prep-row b,.cu-prep-row small{display:block;overflow-wrap:anywhere}
.cu-prep-row small{font-size:12px;color:var(--text-3);margin-top:5px}
@media(max-width:719px){.cu-venue-actions{flex-direction:column}.cu-platform-controls{width:100%}.cu-prep-row .btn{width:100%}}
