:root {
  --bg: #0b0b0b;
  --panel: #161616;
  --border: #2b2b2b;
  --border-strong: #4a4a4a;
  --ink: #f2f2f2;
  --ink-2: #bdbdbd;
  --muted: #949494;
  --accent: #f2443b;
  --accent-text: #ff6b62;
  --accent-soft: rgba(242, 68, 59, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.top { flex: none; display: flex; align-items: center; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.logo { display: block; height: 18px; width: auto; max-width: 100%; }

.stage { flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start; padding: 6vh 16px 32px; }
.stage:focus { outline: none; }
.boot { color: var(--muted); }

.stack { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.card.wide { width: min(640px, 100%); }
.pending { margin: 0 0 12px; padding: 0; list-style: none; }
.pending-row { padding: 12px 0; border-top: 1px solid var(--border); }
.pending-email { margin: 0 0 2px; font-weight: 700; overflow-wrap: anywhere; }
.pending-meta { margin-bottom: 8px; }
.pending-form { display: flex; align-items: flex-end; gap: 8px; }
.pending-form .field { flex: 1; min-width: 0; margin-bottom: 0; }
.pending-form input { margin-top: 4px; }
.pending-form .btn { flex: none; width: auto; min-height: 38px; }
@media (max-width: 480px) {
  .pending-form { flex-direction: column; align-items: stretch; }
  .pending-form .field { flex: none; }
  .pending-form .btn { width: 100%; }
}

.card { width: min(440px, 100%); padding: 0 16px 22px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.card-h { display: flex; align-items: center; min-height: 48px; margin: 0 -16px 18px; padding: 0 16px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 900; }
.card-h:focus { outline: none; }
.dot { color: var(--accent-text); font-weight: 400; }

.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #0e0e0e; color: var(--ink); font: inherit; }
.field input:hover { border-color: #6a6a6a; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--accent-text); }
.field-hint, .field-msg { margin: 4px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.field-msg:empty { display: none; }
.field-msg:not(:empty) + .field-hint { display: none; }
.field-msg { color: var(--accent-text); }
.field-msg::before { content: "× "; font-weight: 700; }

.form-msg { margin: 0 0 12px; padding: 8px 0 8px 12px; border-left: 2px solid var(--border-strong); font-size: 13.5px; line-height: 1.4; }
.form-msg.err { border-left-color: var(--accent); }
.form-msg.err::before { content: "× "; color: var(--accent-text); font-weight: 700; }

.text { margin: 0 0 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.text.muted { color: var(--muted); font-size: 13.5px; }

.btn { display: block; width: 100%; min-height: 40px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.btn.main { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.btn.main:hover:not(:disabled) { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn + .btn, .form + .btn { margin-top: 8px; }

a, .btn:focus-visible { outline-offset: 2px; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); }
.alt { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
