:root {
  --brand: #9B005C; --brand-text: #9B005C; --bg: #f7f4f6; --card: #fff; --text: #141013; --muted: #6b5f67;
  --line: #e6dde3; --ok: #11733f; --ok-bg: #e6f4ec; --bad: #b3261e; --bad-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fff4dc;
  --stale: #5b4f8a; --stale-bg: #eeebf8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0a0c; --card: #19141a; --text: #f3eef1; --muted: #a8999f; --line: #2e2530; --brand-text: #E0479E;
    --ok: #5fd08f; --ok-bg: #12291c; --bad: #ff8a80; --bad-bg: #351513; --warn: #f4c15d; --warn-bg: #2f2410; --stale: #b7a9f0; --stale-bg: #221d3a; }
}
* { box-sizing: border-box; }
body { margin: 0; }
.sym { position: absolute; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand .mark { width: 34px; height: 34px; } .brand .word { height: 22px; width: 110px; }
.product { font-family: Nunito, ui-rounded, system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--brand-text); border-left: 1px solid var(--line); padding-left: 10px; }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.pad { padding: 24px; }
.muted { color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 40px; }
h1, h2, h3 { font-family: Nunito, ui-rounded, system-ui, sans-serif; font-weight: 800; margin: 0 0 8px; }
h2 { font-size: 18px; } h3 { font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid .card { margin-bottom: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row > span:first-child { color: var(--muted); }
.row > span:last-child { text-align: right; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12.5px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ok { color: var(--ok); background: var(--ok-bg); } .bad { color: var(--bad); background: var(--bad-bg); }
.warn { color: var(--warn); background: var(--warn-bg); } .stale { color: var(--stale); background: var(--stale-bg); }
.neutral { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.banner { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero .big { font-family: Nunito, ui-rounded, system-ui, sans-serif; font-size: 30px; font-weight: 900; }
.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 10px 16px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--brand-text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--brand-text); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.controls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.checks { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; }
.checks li { padding: 3px 0; }
.checks li::before { display: inline-block; width: 18px; font-weight: 700; }
.checks li.y::before { content: "✓"; color: var(--ok); } .checks li.n::before { content: "✗"; color: var(--bad); }
form.box { max-width: 420px; margin: 40px auto; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input { width: 100%; font: inherit; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.steps .n { font-weight: 700; color: var(--muted); }
pre.out { white-space: pre-wrap; max-height: 260px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 6px 0 0; grid-column: 2 / 4; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.tabs button.on { border-color: var(--brand); color: var(--brand-text); font-weight: 600; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); max-width: 560px; width: 92vw; padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.5); }
.qr { background: #fff; padding: 10px; display: inline-block; border-radius: 8px; }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.codes { columns: 2; font-family: ui-monospace, monospace; font-size: 15px; }
.services { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.row .pill { white-space: normal; }
.row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
