:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #151515;
  --surface-2: #222;
  --surface-3: #2b2b2b;
  --ink: #f5f5f5;
  --muted: #a6a6a6;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --success: #45c777;
  --warning: #f1b24a;
  --danger: #ff5b64;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-height: 100dvh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 7vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(1.2rem, 4vw, 1.55rem); letter-spacing: -.025em; }
h3 { letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.55; }
button { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; background: #fff; color: #000; padding: .75rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .68rem 1.15rem; background: var(--surface-2); cursor: pointer; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { background: var(--surface-3); border-color: rgba(255,255,255,.25); }
.button:active { transform: scale(.98); }
.button--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button--light { background: #fff; color: #080808; border-color: #fff; }
.button--light:hover { background: rgba(255,255,255,.82); border-color: transparent; }
.button--glass { background: rgba(90,90,90,.72); color: #fff; border-color: transparent; backdrop-filter: blur(8px); }
.button--danger { color: #fff; background: rgba(229,9,20,.13); border-color: rgba(229,9,20,.45); }
.button--quiet { background: transparent; }
.button--wide { width: 100%; }
.button[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.icon-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: rgba(20,20,20,.72); cursor: pointer; font-size: 1.25rem; flex: 0 0 auto; }
.icon-button[disabled] { opacity: .3; cursor: not-allowed; }
.field { display: grid; gap: .45rem; }
.field label { color: #d4d4d4; font-size: .84rem; font-weight: 750; }
.field small { color: #777; font-size: .75rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border: 1px solid #424242; border-radius: 6px; background: #101010; color: var(--ink); padding: .78rem .9rem; transition: border-color .18s, background .18s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #aaa; background: #171717; outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field--check { display: flex; align-items: center; gap: .75rem; }
.field--check input { width: 20px; height: 20px; accent-color: var(--accent); }
.error-panel, .empty-state { padding: 2.5rem 1.25rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #222; color: #777; font-size: 1.4rem; }
.toast-region { position: fixed; z-index: 2000; left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: calc(5.5rem + env(safe-area-inset-bottom)); display: grid; justify-items: center; pointer-events: none; }
.toast { background: #fff; color: #080808; padding: .8rem 1rem; border-radius: 6px; box-shadow: var(--shadow); animation: toast-in .2s ease; font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; gap: .38rem; width: max-content; padding: .28rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: #c8c8c8; background: rgba(255,255,255,.05); font-size: .69rem; font-weight: 800; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: #888; }
.status-badge--success { color: #a4e8bd; border-color: rgba(69,199,119,.28); background: rgba(69,199,119,.1); }
.status-badge--success i { background: var(--success); }
.status-badge--warning { color: #f4d59f; border-color: rgba(241,178,74,.28); background: rgba(241,178,74,.1); }
.status-badge--warning i { background: var(--warning); }
.status-badge--ready { color: #c9c7ff; border-color: rgba(139,134,255,.3); background: rgba(139,134,255,.1); }
.status-badge--ready i { background: #8b86ff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
