/* Backstage: behind the curtain of Honk Party. The hub's dark ground and orange, Bricolage Grotesque + Geist, the clay
   goose; backstage props for character: road cases with metal corners for cards, orange gaffer-tape labels, cue
   lights (green = safe to deploy, red = hold), a lighting-desk key row on every live room. Legibility first: 16 px
   text, 44 px+ tap targets, no sideways scroll. Phone first (one column, 16 px gutter, the tab bar in thumb reach,
   bottom sheets); wider screens get columns and a floating dock. Motion is short and off with reduced motion. */
:root {
  --bg: #0a0b0d; --bg-2: #0f1114; --surface: #14171b; --surface-2: #1b1f24; --surface-3: #232830;
  --line: #252a31; --line-2: #3a414b; --text: #eceef1; --muted: #8d949e;
  --accent: #f5821f; --accent-2: #ffa54f; --live: #3ddc84; --down: #ff5470; --amber: #ffc53d; --blue: #6c9bff; --violet: #b48cff;
  --cream: #f1e7d4; --tape: #f5821f;
  --gold: #ffc53d; --vip: #b48cff;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Geist', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --spring: cubic-bezier(.2, .9, .25, 1.15); --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px; --r: 18px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: hidden; overscroll-behavior-y: contain; scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; touch-action: manipulation; }
html.noscroll, html.noscroll body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
p, ul, ol, h1, h2, h3, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ico { display: inline-flex; width: 1.2em; height: 1.2em; vertical-align: -.22em; flex: none; }
.ico svg { width: 100%; height: 100%; }
.spacer { flex: 1; }
.hide { display: none !important; }
.mono, code { font-family: var(--mono); }
code { font-size: 13px; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; color: #c6ccd4; }
.kicker { font: 600 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.help { font-size: 14.5px; line-height: 1.42; color: var(--muted); }
.help .ico { width: 18px; height: 18px; }

/* the wall behind everything: a warm stage spill top left, a cool one bottom right, a little grain */
.wall { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 0% -8%, rgba(245, 130, 31, .13), transparent 70%), radial-gradient(ellipse 60% 40% at 100% 105%, rgba(108, 155, 255, .08), transparent 70%), var(--bg); }
.wall::after { content: ''; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.4px); background-size: 6px 6px; }
#app { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- the goose (on its cream felt, like the clay set) */
.goose { position: relative; flex: none; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent), 0 14px 34px -12px rgba(0, 0, 0, .8); }
.goose img, .goose video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.goose video { opacity: 0; transition: opacity .3s; }
.goose.playing video { opacity: 1; }
.goose.xs { width: 40px; box-shadow: 0 0 0 2px var(--accent); }
.goose.sm { width: 76px; }
.goose.md { width: 132px; }
.goose.lg { width: min(220px, 54vw); }
.goose.sleep { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-2), 0 14px 34px -12px rgba(0, 0, 0, .8); }

/* ---------------------------------------------------------------- boot, the stage door (login) */
.boot { min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.boot-goose { width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); object-fit: cover; }
.mark { display: inline-flex; flex-direction: column; line-height: 1; }
.mark-w { font: 800 clamp(42px, 12vw, 72px)/.9 var(--display); letter-spacing: -.035em; color: var(--text); }
.mark-w::after { content: '.'; color: var(--accent); }
.mark-t { font: 600 11.5px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.mark.sm .mark-w { font-size: 23px; }
.mark.sm .mark-t { font-size: 9px; letter-spacing: .2em; margin-top: 4px; }
.doorwrap { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 26px; max-width: 520px; margin: 0 auto; padding: calc(var(--safe-t) + 24px) 0 calc(var(--safe-b) + 24px); }
.door { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 20px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.door .goose { align-self: flex-start; margin-top: -60px; }
.door h1 { font: 800 30px/1.05 var(--display); letter-spacing: -.02em; }
.door p { font-size: 16px; color: #c6ccd4; }
.keyform { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; min-width: 0; }

/* gaffer tape: the section labels (torn ends, a little crooked) */
.tape { display: inline-block; align-self: flex-start; background: var(--tape); color: #1a0e02; font: 800 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px 6px;
  transform: rotate(-1.2deg); clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 92%, 100% 100%, 2% 96%, 0 100%); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .04); white-space: nowrap; }
.tape.red { background: var(--down); }

/* ---------------------------------------------------------------- buttons, inputs, switches, chips */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s var(--spring), background .15s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ico { width: 20px; height: 20px; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.go { background: var(--accent); border-color: var(--accent); color: #140a00; box-shadow: 0 8px 26px -10px var(--accent); }
.btn.danger { background: #3a1018; border-color: #6b1e2c; color: #ffd1d9; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { appearance: none; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn.sm { min-width: 40px; min-height: 40px; }
.icon-btn[disabled] { opacity: .35; }
.icon-btn:active { background: var(--surface-2); }
.refresh.spin .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ago { font: 600 12px/1 var(--mono); min-width: 2.2em; text-align: left; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 16px; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(245, 130, 31, .25); }
textarea.input { resize: vertical; line-height: 1.4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.search-w { position: relative; display: block; }
.search-w > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-w .input { padding-left: 42px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { appearance: none; flex: 1 1 0; min-width: 0; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.seg.range { max-width: 560px; }
.seg.range button { min-height: 46px; font-size: 16px; }
.seg.mini { max-width: 320px; margin-bottom: 10px; }
.seg.mini button { min-height: 36px; font-size: 14px; }
.sw { appearance: none; position: relative; flex: none; width: 60px; height: 36px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-3); cursor: pointer; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #c6ccd4; transition: transform .25s var(--spring), background .2s; }
.sw.on { background: var(--live); border-color: var(--live); }
.sw.on::after { transform: translateX(24px); background: #fff; }
.sw[disabled] { opacity: .5; }
.toggle { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.toggle > div { min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 12.5px/1.3 var(--body); color: #c6ccd4; white-space: nowrap; background: transparent; }
.chip .ico { width: 14px; height: 14px; }
.chip.gold { color: var(--gold); border-color: rgba(255, 197, 61, .45); }
.chip.red { color: #ff8fa3; border-color: rgba(255, 84, 112, .45); }
.chip.green { color: #7cf0b1; border-color: rgba(61, 220, 132, .4); }
.chip.blue { color: #a8c3ff; border-color: rgba(108, 155, 255, .45); }
.chip.orange { color: var(--accent-2); border-color: rgba(245, 130, 31, .5); }
button.chip { cursor: pointer; min-height: 36px; }
.gchip { --a: var(--muted); display: inline-flex; align-items: center; gap: 7px; font: 700 14px/1.2 var(--display); color: var(--text); white-space: nowrap; }
.gchip i { width: 11px; height: 11px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); flex: none; }
.gchip.sm { font-size: 12.5px; font-family: var(--body); font-weight: 600; } .gchip.sm i { width: 8px; height: 8px; }
.gchip.lg { font-size: 22px; letter-spacing: -.01em; } .gchip.lg i { width: 14px; height: 14px; }
.gchip.bs i { background: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chipb { --a: var(--accent); appearance: none; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; cursor: pointer; }
.chipb i { width: 9px; height: 9px; border-radius: 50%; background: var(--a); }
.chipb b { font: 600 12px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.chipb.on { color: var(--text); border-color: var(--a); background: color-mix(in srgb, var(--a) 16%, var(--surface)); }
.chipb[disabled] { opacity: .45; }
.cc { white-space: nowrap; font: 600 12.5px/1 var(--body); color: #c6ccd4; }
.sq-name { font-weight: 700; }
.sq-name.acct, .sq-name.staff { color: var(--gold); } .sq-name.vip { color: var(--vip); }
.meter { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--live), var(--amber) 70%, var(--down)); background-size: 300px 100%; border-radius: 4px; }

/* ---------------------------------------------------------------- sticky header + the cue light */
.top { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--gutter)); padding: calc(var(--safe-t) + 8px) var(--gutter) 10px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(10, 11, 13, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0; }
.logo { appearance: none; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; color: var(--text); text-align: left; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 400px) { .logo .mark { display: none; } }
.lamp { appearance: none; cursor: pointer; flex: 0 1 auto; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 11px; border-radius: 22px; border: 1px solid; color: var(--text); background: var(--surface); }
.lamp i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.lamp b { font: 700 14.5px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lamp.safe { border-color: rgba(61, 220, 132, .55); background: #0d2016; } .lamp.safe i { background: var(--live); box-shadow: 0 0 10px var(--live); }
.lamp.hold { border-color: rgba(255, 84, 112, .7); background: #2a0d14; box-shadow: 0 0 18px rgba(255, 84, 112, .25); } .lamp.hold i { background: var(--down); box-shadow: 0 0 10px var(--down); animation: blink 1.4s ease-in-out infinite; }
.lamp.unk { border-color: var(--line-2); }
@keyframes blink { 50% { opacity: .35; } }
.note { font-size: 13px; color: var(--amber); }
.update { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 14.5px; }
.update[hidden] { display: none; }
.ptr { position: fixed; z-index: 19; left: 50%; top: calc(var(--safe-t) + 68px); transform: translate(-50%, -10px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: var(--surface-3); font: 600 13px/1 var(--body); transition: transform .2s, opacity .2s; }
.ptr.arm { background: var(--accent); color: #140a00; }
.ptr .ico { transition: transform .2s; } .ptr.arm .ico { transform: rotate(180deg); }

/* ---------------------------------------------------------------- bottom tab bar */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 5px 4px calc(var(--safe-b) + 5px);
  background: rgba(15, 17, 20, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav-b { appearance: none; position: relative; border: 0; background: transparent; color: var(--muted); cursor: pointer; min-height: 58px; padding: 6px 2px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 12.5px/1 var(--body); }
.nav-b .ico { width: 25px; height: 25px; }
.nav-b[aria-current="page"] { color: var(--text); background: rgba(245, 130, 31, .1); }
.nav-b[aria-current="page"] .ico { color: var(--accent); }
.nav-b[aria-current="page"]::before { content: ''; position: absolute; top: -5px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
@media (min-width: 900px) {
  .nav { left: 50%; right: auto; width: 680px; margin-left: -340px; bottom: 14px; border: 1px solid var(--line-2); border-radius: 20px; padding: 5px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .9); }
}

/* ---------------------------------------------------------------- views */
.view { display: flex; flex-direction: column; gap: 16px; padding: 16px 0 calc(var(--safe-b) + 100px); min-height: 60vh; }
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 82px); width: min(520px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); font-weight: 600; padding: 12px 16px; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); animation: rise .35s var(--spring); overflow-wrap: anywhere; }
.toast.bad { background: #ffd1d9; color: #3a0b14; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@media (min-width: 900px) { .toasts { bottom: 104px; } }

/* road cases: the cards. A dark case, a game-coloured stripe, metal corners */
.case { --a: var(--accent); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.case::before, .case::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--line-2); pointer-events: none; }
.case::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.case::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.case-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -2px; }
.case-sub { font-size: 13.5px; color: var(--muted); }
.case .tape { margin-left: -24px; }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec.danger { padding: 14px; border-radius: 14px; border: 1px dashed #6b1e2c; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.period { font: 600 13.5px/1.3 var(--mono); color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* empty + error + loading */
.empty { display: flex; align-items: center; gap: 22px; padding: 26px 20px; border-radius: 24px; background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px dashed var(--line-2); }
.empty-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.empty-t h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; }
.empty-t p { color: #c6ccd4; }
@media (max-width: 560px) { .empty { flex-direction: column; text-align: center; } }
.quiet { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: 15px; }
.fail { --a: var(--down); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: #1b0d11; border: 1px solid #4a1823; }
.fail-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #ff8fa3; }
.fail-h b { font: 800 19px/1 var(--display); }
.fail .btn { align-self: flex-start; }
.maint { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(255, 197, 61, .12); border: 1px solid rgba(255, 197, 61, .4); color: var(--amber); font-weight: 600; font-size: 15px; }
.skel { display: flex; flex-direction: column; gap: 14px; }
.skel-goose { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; }
.sk { border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .sk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk.num { height: 92px; } .sk.card { height: 190px; } .sk.row { height: 76px; } .sk.lamp { height: 100px; } .sk.strip { height: 130px; } .sk.photo { aspect-ratio: 1; }

/* ---------------------------------------------------------------- Live */
.now { display: flex; flex-direction: column; gap: 10px; }
.now-h { display: flex; align-items: center; justify-content: space-between; }
.onair { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--down); padding: 4px 8px; border: 1px solid rgba(255, 84, 112, .5); border-radius: 6px; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: blink 1.4s ease-in-out infinite; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.count { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.count b { font: 800 40px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count span { font-size: 13.5px; color: var(--muted); }
.count.hot b { color: var(--accent); } .count.warm b { color: var(--amber); } .count.cool b { color: var(--blue); }
.lamps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cue { --a: var(--muted); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cue i { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.cue b { display: block; font: 700 15px/1.2 var(--display); }
.cue span { display: block; font-size: 13px; color: var(--muted); }
.cue.safe i { background: var(--live); box-shadow: 0 0 10px var(--live); } .cue.hold i { background: var(--down); box-shadow: 0 0 10px var(--down); animation: blink 1.4s infinite; }
.cue.hold { border-color: rgba(255, 84, 112, .5); }
.cue.sm { display: inline-flex; padding: 6px 11px; gap: 8px; border-radius: 999px; font: 600 13px/1 var(--body); }
.cue.sm i { width: 9px; height: 9px; }
.cues { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gblock { --a: var(--accent); display: flex; flex-direction: column; gap: 14px; padding: 16px 0 4px 16px; border-left: 3px solid var(--a); }
.gblock-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gblock-sub { font-size: 13.5px; color: var(--muted); }
.gblock-h .cue { padding: 8px 12px; }
@media (max-width: 560px) { .gblock { padding-left: 12px; } .gblock-h .cue { order: 5; width: 100%; } }
.rooms { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.room.live { border-color: color-mix(in srgb, var(--a) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 20%, transparent), 0 18px 40px -24px var(--a); }
.r-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-code { font: 700 30px/1 var(--mono); letter-spacing: .1em; color: var(--text); }
.stat { font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; }
.stat.on { background: var(--down); color: #fff; }
.stat.held { background: var(--amber); color: #241700; }
.stat.lobby { background: var(--surface-3); color: #c6ccd4; }
.r-age { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.r-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-mode b { font: 700 19px/1.15 var(--display); }
.r-sub { font-size: 13.5px; color: var(--muted); width: 100%; }
.r-hud { display: flex; align-items: center; gap: 10px; } .r-hud .meter { flex: 1; margin: 0; }
.r-players { display: flex; flex-direction: column; gap: 6px; }
.player { appearance: none; width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 10px; min-height: 56px; border-radius: 12px; border: 1px solid transparent; background: var(--bg-2); text-align: left; cursor: pointer; }
.player:active { border-color: var(--line-2); }
.player.off { opacity: .55; }
.pav { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.pav svg, .pav img { width: 40px; height: 40px; }
.ph .pav, .ph .pav svg { width: 64px; height: 64px; }
.p-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-n { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.p-n > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-m { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.p-sc { font: 700 16px/1 var(--mono); color: var(--text); }
.more { appearance: none; border: 1px dashed var(--line-2); background: none; border-radius: 12px; min-height: 44px; cursor: pointer; color: var(--muted); font-weight: 600; }
.r-screens { display: flex; flex-direction: column; gap: 6px; }
.screen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.screen b { color: var(--text); }
.screen .ico { width: 18px; height: 18px; color: var(--blue); }
.screen.wide { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.screen.wide code { width: 100%; }
/* the control desk: a lighting console strip */
.desk { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 0 -6px; border-radius: 16px; background: #07080a; border: 1px solid #1d2128; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.desk-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.desk-hold { color: var(--amber); letter-spacing: .06em; }
.desk-ask { font-family: var(--mono); color: var(--text); letter-spacing: 0; text-transform: none; margin-left: auto; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.keys.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .keys.sm { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.key { appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; padding: 14px 4px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid #2a2f37; border-bottom-width: 3px; background: linear-gradient(180deg, #1d2128, #15181d); color: var(--text); font: 600 13px/1.1 var(--body); text-align: center; transition: transform .1s; }
.keys.sm .key { min-height: 56px; font-size: 12px; padding-top: 12px; }
.key .ico { width: 22px; height: 22px; }
.key small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.key:active { transform: translateY(2px); border-bottom-width: 1px; }
.key[disabled] { opacity: .38; cursor: not-allowed; }
.key .led { position: absolute; top: 7px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: #2a2f37; }
.key .led.on { background: var(--live); box-shadow: 0 0 8px var(--live); }
.key.amber .ico { color: var(--amber); } .key.green .ico { color: var(--live); } .key.blue .ico { color: var(--blue); } .key.orange .ico { color: var(--accent); }
/* sheets' bits */
.picks { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.pick { appearance: none; display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 60px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); text-align: left; cursor: pointer; }
.pick img, .pick-art { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.pick-art { display: grid; place-items: center; background: var(--surface-3); font: 800 16px/1 var(--display); text-transform: uppercase; color: var(--muted); }
.pick-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pick-t small { color: var(--muted); font-size: 12.5px; }
.next { display: flex; flex-direction: column; gap: 6px; }
.nx { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--bg-2); }
.nx > b { font: 700 14px/1 var(--mono); color: var(--muted); width: 1.6em; }
.nx-n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.tl-l, .audit { display: flex; flex-direction: column; gap: 6px; }
.tl-l li, .audit li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 14px; }
.tl-l .mono, .audit .mono { color: var(--muted); font-size: 12.5px; }
.audit .by { color: var(--muted); font-size: 13px; margin-left: auto; }
.audit code { width: 100%; font-size: 12.5px; color: var(--muted); }
.ph { display: flex; align-items: center; gap: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); min-width: 0; }
.fact b { font: 800 20px/1.1 var(--display); overflow-wrap: anywhere; }
.fact span { font-size: 12.5px; color: var(--muted); } .fact small { font-size: 11.5px; color: var(--muted); }
.fact.warn b { color: #ff8fa3; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qk { appearance: none; min-height: 52px; border-radius: 12px; border: 1px solid rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); color: #7cf0b1; font: 700 18px/1 var(--mono); cursor: pointer; }
.qk.neg { border-color: rgba(255, 84, 112, .4); background: rgba(255, 84, 112, .08); color: #ff8fa3; }
.v-top { display: flex; justify-content: space-between; align-items: center; }
.v-count { font-size: 12.5px; color: var(--muted); }
.v-in { min-height: 96px; }
.v-warn { padding: 10px 12px; border-radius: 12px; background: rgba(255, 197, 61, .12); color: var(--amber); font-weight: 600; font-size: 14.5px; }
.v-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.v-chip { display: inline-flex; align-items: center; }
.v-x { appearance: none; border: 0; background: none; color: var(--muted); font-size: 20px; min-width: 32px; min-height: 36px; cursor: pointer; }
.v-save { border-style: dashed; color: var(--accent-2); }

/* ---------------------------------------------------------------- bottom sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .62); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { --a: var(--accent); position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px;
  padding: 0 var(--gutter) calc(var(--safe-b) + 18px); border-radius: 24px 24px 0 0; background: var(--bg-2); border-top: 3px solid var(--a); box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9); animation: sheet .35s var(--spring); transition: transform .2s; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.sheet:focus { outline: none; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 86vh; transform: translate(-50%, -50%); border-radius: 22px; border: 1px solid var(--line-2); border-top: 3px solid var(--a); padding-bottom: 20px; animation: pop .3s var(--spring); }
  @keyframes pop { from { transform: translate(-50%, -48%) scale(.97); opacity: 0; } }
}
.bgrab { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; cursor: grab; position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.bgrab i { width: 46px; height: 5px; border-radius: 5px; background: var(--line-2); }
@media (min-width: 720px) { .bgrab { visibility: hidden; padding: 4px 0 0; } }
.sh-title { font: 800 23px/1.15 var(--display); letter-spacing: -.015em; }
.sh-text { color: #c6ccd4; }
.sh-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.sh-acts .btn { flex: 1 1 140px; }
@media (min-width: 720px) { .sh-acts .btn { flex: 0 0 auto; } }
.acct { display: flex; align-items: center; gap: 14px; }
.acct img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.gamelist { display: flex; flex-direction: column; gap: 6px; }
.gamelist li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--surface); }
.gamelist .help { margin-left: auto; font-size: 13px; }
.ms-art img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }

/* ---------------------------------------------------------------- Stats */
.strip { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 10px; border-radius: var(--r); background: #07080a; border: 1px solid #1d2128; }
.st-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.st-row { --a: var(--accent); display: grid; grid-template-columns: minmax(0, 8.5em) 3em minmax(0, 1fr); grid-template-areas: 'n v s' 'sub sub sub'; align-items: center; column-gap: 10px; padding: 7px 0; border-top: 1px solid #15181d; }
.st-row:first-of-type { border-top: 0; }
.st-n { grid-area: n; display: flex; align-items: center; gap: 7px; font: 700 14px/1.2 var(--display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-n i { width: 9px; height: 9px; border-radius: 50%; background: var(--a); flex: none; }
.st-v { grid-area: v; font: 800 22px/1 var(--display); text-align: right; color: var(--a); font-variant-numeric: tabular-nums; }
.st-row .spark { grid-area: s; display: block; min-width: 0; }
.st-sub { grid-area: sub; font-size: 12px; color: var(--muted); }
.spark svg { display: block; }
.board { --a: var(--accent); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.big { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.big b { font: 800 34px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big .l { font-weight: 600; font-size: 14.5px; }
.big .s { font-size: 12.5px; color: var(--muted); }
.big.hot b { color: var(--accent); } .big.warm b { color: var(--amber); } .big.cool b { color: var(--blue); } .big.green b { color: var(--live); } .big.orange b { color: var(--accent-2); } .big.violet b { color: var(--violet); }
.split { display: flex; flex-direction: column; gap: 12px; }
.split li { --a: var(--accent); display: flex; flex-direction: column; gap: 6px; }
.split-b { display: flex; flex-direction: column; gap: 3px; }
.split-b span { display: block; height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.split-b i { display: block; height: 100%; background: var(--a); border-radius: 6px; }
.split-b.m i { opacity: .55; }
.split-b small { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.bt i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bn { font: 600 13px/1 var(--mono); text-align: right; white-space: nowrap; } .bn small { color: var(--muted); }
.heat { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.hc { display: flex; flex-direction: column; gap: 4px; }
.hc i { display: block; height: 40px; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--bg-2)); }
.hc span { font: 500 10px/1 var(--mono); color: var(--muted); height: 10px; }
.days { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-bottom: 18px; }
.dc { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.dc i { display: block; background: var(--accent); border-radius: 4px 4px 1px 1px; min-height: 2px; }
.dc span { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font: 500 10px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.mt-wrap { overflow-x: auto; margin: 0 -4px; }
.mt { width: 100%; border-collapse: collapse; font-size: 14px; }
.mt th { text-align: left; padding: 0 6px 6px; }
.mt th button { appearance: none; border: 0; background: none; color: var(--muted); font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; min-height: 36px; padding: 0; }
.mt th button.on { color: var(--accent); }
.mt th.num, .mt td.num { text-align: right; }
.mt td { padding: 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.mt td.num { font: 600 14px/1 var(--mono); white-space: nowrap; }
.mt td.red { color: #ff8fa3; }
.mt tr { cursor: pointer; }
.mt tr.off { opacity: .5; }
.mt-n { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-n img, .mt-n .pick-art { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; font-size: 12px; }
.mt-n > span { display: flex; flex-direction: column; min-width: 0; } .mt-n small { color: var(--muted); font-size: 12px; }
.charts { display: flex; flex-direction: column; gap: 4px; counter-reset: c; }
.charts li { counter-increment: c; font-size: 14.5px; } .charts li::before { content: counter(c) '. '; color: var(--accent); font-weight: 700; } .charts span { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------------- Games */
.subnav { --a: var(--accent); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.subnav button { appearance: none; border: 0; background: none; color: var(--muted); border-radius: 12px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 12px/1 var(--body); cursor: pointer; }
.subnav button .ico { width: 21px; height: 21px; }
.subnav button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--a); }
.gbody { display: flex; flex-direction: column; gap: 16px; }
.states { display: flex; flex-direction: column; gap: 6px; }
.states li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
@media (min-width: 640px) { .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.mrow.off { opacity: .6; }
.m-open { appearance: none; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; cursor: pointer; padding: 4px; min-height: 60px; }
.m-art img, .m-art .pick-art { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; display: grid; }
.m-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-nm { font: 700 16px/1.2 var(--display); }
.m-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); } .m-tag .ico { width: 14px; height: 14px; }
.m-line { font-size: 12.5px; color: var(--muted); }
.star { appearance: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--line-2); cursor: pointer; display: grid; place-items: center; }
.star .ico { width: 22px; height: 22px; }
.star.on { color: var(--gold); border-color: rgba(255, 197, 61, .5); background: rgba(255, 197, 61, .08); }
.phead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 480px) { .phead { grid-template-columns: minmax(0, 1fr); } }
.pf { display: flex; flex-direction: column; gap: 5px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pgrid > .empty { grid-column: 1 / -1; }
.pmore { display: flex; justify-content: center; padding-top: 14px; }
.pol { appearance: none; display: flex; flex-direction: column; padding: 7px 7px 9px; border-radius: 6px; border: 0; background: var(--cream); color: #241a10; cursor: pointer; text-align: left; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .9); transition: transform .2s var(--spring); }
.pol:nth-child(odd) { transform: rotate(-.8deg); } .pol:nth-child(even) { transform: rotate(.7deg); }
.pol:active { transform: scale(.98); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #d9cdb6; }
.pol .cap { display: flex; flex-direction: column; gap: 1px; padding: 6px 2px 0; font-size: 13px; }
.pol .cap span { font: 500 11px/1.2 var(--mono); color: #6b5a44; }
.viewer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: rgba(5, 6, 8, .97); padding: calc(var(--safe-t) + 8px) var(--gutter) calc(var(--safe-b) + 12px); }
.viewer:focus { outline: none; }
.v-top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.v-count { font: 600 13px/1 var(--mono); }
.v-hint { font-size: 12.5px; color: var(--muted); }
@media (max-width: 420px) { .v-hint { display: none; } }
.v-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; touch-action: none; }
.v-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: transform .25s var(--ease); user-select: none; }
.v-img.in-r { animation: inr .25s var(--ease); } .v-img.in-l { animation: inl .25s var(--ease); }
@keyframes inr { from { transform: translateX(40px); opacity: .3; } } @keyframes inl { from { transform: translateX(-40px); opacity: .3; } }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 23, 27, .8); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.v-nav.prev { left: 0; } .v-nav.next { right: 0; } .v-nav[disabled] { opacity: .25; } .v-nav .ico { width: 22px; height: 22px; }
.v-info { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 14.5px; }
.meta dt { color: var(--muted); }
.deploy { --a: var(--accent); display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.deploy > i { width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 4px; background: var(--muted); }
.deploy b { display: block; font: 800 24px/1.1 var(--display); letter-spacing: -.015em; margin-bottom: 4px; }
.deploy p { color: #c6ccd4; }
.deploy.safe { border-color: rgba(61, 220, 132, .45); background: linear-gradient(140deg, #0d2016, var(--surface) 60%); } .deploy.safe > i { background: var(--live); box-shadow: 0 0 16px var(--live); } .deploy.safe b { color: #7cf0b1; }
.deploy.hold { border-color: rgba(255, 84, 112, .55); background: linear-gradient(140deg, #2a0d14, var(--surface) 60%); } .deploy.hold > i { background: var(--down); box-shadow: 0 0 16px var(--down); animation: blink 1.4s infinite; } .deploy.hold b { color: #ff8fa3; }
.deploy.big { align-items: center; padding: 20px 18px; }
.deploy.big b { font-size: 30px; }
.deploy-l { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.deploy-l li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.countrow { display: flex; align-items: center; gap: 12px; }
.countdown { font: 700 34px/1 var(--mono); color: var(--amber); }
.words { min-height: 110px; }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.blocks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); }
.blocks li .btn { margin-left: auto; }
.found { display: flex; flex-direction: column; gap: 10px; }
.pl { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.pl-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-h b { font: 700 17px/1.2 var(--display); }
.feed { display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- Health */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 13px 13px 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.case .tile { background: var(--bg-2); }
.tile b { font: 800 22px/1.1 var(--display); overflow-wrap: anywhere; }
.tile .sub { font-size: 12.5px; color: var(--muted); }
.tile.warn { border-color: rgba(255, 197, 61, .5); } .tile.warn b { color: var(--amber); }
.tvbars { display: flex; gap: 4px; align-items: flex-end; height: 100px; }
.tvc { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; gap: 4px; }
.tvb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.tvb i { display: block; border-radius: 2px; }
.tvb i.d { background: var(--down); } .tvb i.r { background: var(--blue); }
.tvc span { font: 500 10px/1 var(--mono); color: var(--muted); text-align: center; }
.screens { display: flex; flex-direction: column; gap: 6px; }
.errs { display: flex; flex-direction: column; gap: 8px; }
.err { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.err-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
/* the TV app tab (tv.js) */
.tvapp { display: flex; flex-direction: column; gap: 14px; }
.tvrow .chip { margin-left: 4px; vertical-align: 1px; }
.tvrow { cursor: pointer; } .tvrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tvrow .health { width: 100%; font-size: 12.5px; color: var(--muted); } .tvrow .health.bad { color: #ff8fa3; } .tvrow .health b { color: #ff8fa3; }
.tvall { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.remote { display: grid; gap: 8px; margin: 6px 0 4px; }
.remote .btn { justify-content: flex-start; }
li.err[role="button"] { cursor: pointer; }
li.err[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mixes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mixes > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tvlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 13px; }
.tvlog li { display: grid; grid-template-columns: 46px minmax(90px, auto) 1fr; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; min-width: 0; }
.tvlog li > span:not(.t) { overflow-wrap: anywhere; color: var(--muted); }
.tvlog li .help { grid-column: 3; margin: 0; font-size: 12px; }
.tvlog li.bad b { color: #ff8fa3; }
.tvlog .t { color: var(--muted); }
.errpre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.45 var(--mono); background: var(--bg-2); padding: 10px 12px; border-radius: 12px; max-height: 40vh; overflow: auto; }
.big.red b { color: #ff8fa3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- Users (passport accounts, users.js) */
.nav-b { font-size: 12px; }
@media (max-width: 380px) { .nav-b { font-size: 11px; } .nav-b .ico { width: 23px; height: 23px; } }
.chip.violet { color: #d4bfff; border-color: rgba(180, 140, 255, .5); }
.u-tools { display: flex; flex-direction: column; gap: 10px; }
.u-sortrow { align-items: center; }
.u-sort { flex: 1; min-width: 0; }
@media (min-width: 720px) { .u-tools { flex-direction: row; } .u-tools .search-w { flex: 1; } .u-sortrow { flex: 0 0 260px; } }
.u-wrap { display: flex; flex-direction: column; gap: 8px; }
.u-list { display: flex; flex-direction: column; gap: 6px; }
.u-row { appearance: none; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'av who chev' 'av roles chev'; gap: 4px 12px; align-items: center; text-align: left;
  padding: 12px 10px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; animation: rise .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.u-row:hover { border-color: var(--line-2); }
.u-row.staff { border-left: 3px solid var(--gold); }
.u-row.dis { opacity: .62; }
.u-av { grid-area: av; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--cream); font: 800 19px/1 var(--display); }
.u-av.big { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 0 0 2px var(--accent); flex: none; }
.u-row.staff .u-av { box-shadow: 0 0 0 2px var(--gold); }
.u-who { grid-area: who; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.u-who b { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.u-disp { color: #c6ccd4; font-size: 14.5px; }
.u-mail { flex-basis: 100%; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-roles { grid-area: roles; display: flex; flex-wrap: wrap; gap: 5px; }
.u-roles .help { font-size: 13px; }
.u-when { display: none; color: var(--muted); font-size: 13px; }
.u-when em { font-style: normal; color: #6b727c; }
.u-chev { grid-area: chev; color: var(--muted); width: 20px; height: 20px; }
@media (min-width: 720px) {
  .u-row { grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1.2fr) 150px 20px; grid-template-areas: 'av who roles when chev'; }
  .u-when { display: flex; flex-direction: column; gap: 2px; }
}
.u-role small { opacity: .75; font-weight: 500; }
.u-gone { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.u-load { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 0; }
.u-sheet { display: flex; flex-direction: column; gap: 14px; }
.u-sheet .sh-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.u-facts .tile b { font-size: 18px; overflow-wrap: anywhere; }
.u-msg:empty { display: none; }
.u-msg { padding: 10px 12px; border-radius: 12px; background: rgba(61, 220, 132, .1); color: #7cf0b1; font-weight: 600; }
.u-msg.bad { background: rgba(255, 84, 112, .12); color: #ff8fa3; }
.u-held { display: flex; flex-direction: column; gap: 8px; }
.u-held li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--surface-2); }
.u-held li .help { flex: 1 1 140px; font-size: 13.5px; }
.u-hist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.u-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.u-act { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.u-act:first-child { border-top: 0; padding-top: 0; }
.u-act .btn { flex: none; }
.u-once { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--accent); background: rgba(245, 130, 31, .07); }
.u-once-url { font: 500 13px/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; }
.u-danger { border: 1px solid #6b1e2c; border-radius: 16px; padding: 12px 14px; background: rgba(58, 16, 24, .35); }
.u-danger summary { cursor: pointer; min-height: 28px; }
.u-danger[open] summary { margin-bottom: 10px; }
.u-audit { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.u-audit li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.u-audit time { color: var(--muted); font-size: 13px; }
