/* public/omni-ui.css — shared Pyre design system (admin + streamer) */
:root{
/* design-tokens:start (generated by scripts/gen-design-tokens.js — DO NOT EDIT) */
  /* color */
  --bg:#141110;
  --surface:#1c1817;
  --surface-raised:#241f1d;
  --surface-inset:#191615;
  --surface-2:#2a2422;
  --surface-3:rgba(46,41,39,.55);
  --border:rgba(255,255,255,.14);
  --border-strong:rgba(255,255,255,.24);
  --border-accent:rgba(255,157,77,.45);
  --accent:#ff9d4d;
  --accent-soft:#ffb673;
  --accent-2:#ffc79a;
  --accent-wash:rgba(255,157,77,.14);
  --accent-glow:rgba(255,157,77,.28);
  --on-strong:#26140a;
  --inset-2:#171413;
  --text:#f7f3ef;
  --text-dim:#cec5bd;
  --text-faint:#9b918a;
  --ok:#45d0a8;
  --ok-soft:#6bd9b3;
  --warn:#ffd166;
  --danger:#f0505f;
  /* platform */
  --p-twitch:#9147ff;
  --p-youtube:#ff0000;
  --p-kick:#53fc18;
  --p-tiktok:#fe2c55;
  --p-discord:#5865f2;
  --p-x:#e7e9ea;
  --p-instagram:#e1306c;
  --p-facebook:#0866ff;
  --p-apple:#000000;
  --p-steam:#171a21;
  /* space */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  /* radius */
  --r-sm:9px;
  --r:12px;
  --r-md:12px;
  --r-chip:7px;
  --r-lg:18px;
  --r-pill:999px;
  /* shadow */
  --shadow-card:0 1px 2px rgba(0,0,0,.25), 0 12px 32px -18px rgba(0,0,0,.65);
  --shadow-modal:0 24px 64px rgba(0,0,0,.7);
  --shadow-drawer:-8px 0 32px rgba(0,0,0,.55);
  --glow-accent:0 0 14px rgba(255,157,77,.45);
  /* motion */
  --dur-fast:120ms;
  --dur:180ms;
  --dur-slow:280ms;
  --ease:cubic-bezier(.2,.7,.3,1);
  /* breakpoint */
  --bp-mobile:560;
  --bp-tablet:980;
  /* design-tokens:end */
  color-scheme:dark;
  /* --- hand-authored tokens NOT in shared/design-tokens.json (kept outside the
     generated block above; edit here) --- */
  /* WCAG notes for the generated color tokens (values live in design-tokens.json):
     --text-faint (#9b918a) clears AA 4.5:1 on every surface incl. --surface-2
     (5.3:1 there, 8.5:1 on --bg); --ok-soft (#6bd9b3) is the lightened success
     foreground for small text on --surface-2, where --ok (#45d0a8) sits at the
     line; --on-strong (#26140a) is the ONLY ink allowed on an --accent fill
     (8.7:1 — white on #ff9d4d is 2.1:1). */
  /* fonts (clamp/family strings the JSON can't express; retained for consumers) */
  --font-display:'Chakra Petch','Segoe UI',system-ui,sans-serif;
  --font-mono:'JetBrains Mono','Consolas','Monaco',monospace;
  /* touch ergonomics — WCAG 2.5.5 / Apple HIG minimum target */
  --touch-min:44px;
  /* safe-area insets — CSS-only (env() can't live in design-tokens.json,
     like the shadow strings; documented here as the canonical source) */
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
  --safe-right:env(safe-area-inset-right,0px);
  /* fluid type scale — clamp() MIN equals the current desktop px (today's look
     is the floor; type only grows on larger viewports, never shrinks below it) */
  --fs-micro:11px;
  --fs-small:12px;
  --fs-body:clamp(13px, 0.8rem + 0.2vw, 14px);
  --fs-section:clamp(15px, 0.9rem + 0.3vw, 17px);
  --fs-title:clamp(17px, 1rem + 1.2vw, 24px);
  --fs-display:clamp(22px, 1.2rem + 2.2vw, 30px);
}
/* global touch ergonomics (additive base layer) */
button,a,[role=button],input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a,[role=button]{touch-action:manipulation}
/* ── native <select>: one dark, tokenized dropdown everywhere ─────────────────
   A select is the only control in this system whose POPUP is drawn by the
   BROWSER, not by this stylesheet, so it needs two things CSS elsewhere can't
   give it:
     1. `color-scheme:dark` — this is what makes Chromium paint the popup, its
        scrollbar and the closed control's arrow dark instead of the light UA
        default. It is inherited from :root above, but it is restated here so a
        select stays themed inside any scoped/one-off context that resets it.
     2. `option` colors — Chromium honors them, Firefox honors background/color
        on Windows+Linux; between them + color-scheme both engines land on
        dark-ground/light-text, which is the bar: readable in every engine.
   The CLOSED control is styled like any other field (inset ground, --text,
   token border + radius). Never `background:transparent` + a faint color: that
   leaves the current value unreadable until hover (and there IS no hover on
   touch or keyboard) and drops the popup back onto the UA canvas.
   Native `appearance` is deliberately KEPT — the UA arrow follows color-scheme,
   and `appearance:none` would mean a bespoke chevron + reserved padding on
   every select in the app. If non-Chromium styling limits ever bite (e.g. we
   need per-option icons or rich rows), the escape hatch is a custom JS listbox
   with role="listbox"/"option" — explicitly NOT built today, because nothing
   here needs it. This bare-element rule is the WEAKEST selector in the system
   (0,0,1), so every existing class-scoped select style still wins; it only
   fills the gaps and supplies color-scheme + option theming nothing else does. */
select{
  color-scheme:dark;
  background:var(--surface-inset);color:var(--text);
  border:1px solid var(--border);border-radius:var(--r-sm);cursor:pointer;
}
select:disabled{color:var(--text-dim);opacity:.6;cursor:not-allowed}
select:focus-visible{outline:2px solid var(--accent-soft);outline-offset:2px;border-color:var(--border-accent)}
/* The popup list itself. --surface (not --surface-inset) so the open list reads
   as a raised sheet over the field it came from. */
select option{background:var(--surface);color:var(--text)}
select option:disabled{color:var(--text-faint)}
select optgroup{background:var(--surface);color:var(--text-dim);font-style:normal}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow-card)}
.card-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border)}
.card-head h2{font-family:var(--font-display);font-size:14px;margin:0;font-weight:600}
.pill{font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.05em;padding:3px 8px;border-radius:var(--r-pill);text-transform:uppercase}
.pill.ok{background:rgba(69,208,168,.14);color:var(--ok-soft);border:1px solid rgba(69,208,168,.3)}
.pill.warn{background:rgba(255,209,102,.14);color:var(--warn);border:1px solid rgba(255,209,102,.3)}
.pill.danger{background:rgba(240,80,95,.14);color:var(--danger);border:1px solid rgba(240,80,95,.3)}
.bar{height:6px;border-radius:4px;background:var(--surface-inset);overflow:hidden}
.bar > i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--accent),var(--accent-soft))}
.bar > i.warn{background:linear-gradient(90deg,#bf9d4d,var(--warn))}
.btn{font-family:var(--font-display);font-size:13px;font-weight:500;padding:12px 20px;border-radius:var(--r-sm);border:1px solid var(--border);background:var(--surface-inset);color:var(--text);cursor:pointer}
.btn.warn{border-color:rgba(255,209,102,.4);color:var(--warn)}
.btn.danger{border-color:rgba(240,80,95,.4);color:var(--danger)}
.mono{font-family:var(--font-mono)}
