:root {
  --teal: #0e7c70;
  --teal-soft: #e3f3f0;
  --ink: #17211f;
  --muted: #5d6b68;
  --line: #dfe6e4;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --red: #b42318;
  --amber: #a15c07;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #3cc2b1;
    --teal-soft: #13312d;
    --ink: #e7eeec;
    --muted: #9db0ac;
    --line: #2b3734;
    --bg: #0f1514;
    --surface: #161e1c;
    --red: #ff8a80;
    --amber: #f2b45a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
header.site { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.logo { width: 36px; height: 36px; display: block; flex: 0 0 auto; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); font-size: 0.92rem; }
a { color: var(--teal); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; background: var(--teal); color: #fff; margin-top: 14px; }
button.secondary { background: transparent; color: var(--teal); border: 1px solid var(--line); }
button.danger { background: var(--red); }
button:disabled { opacity: 0.6; cursor: default; }
.error { color: var(--red); font-weight: 600; }
.ok { color: var(--teal); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tile .n { font-size: 1.7rem; font-weight: 700; }
.tile .l { color: var(--muted); font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 220px; }
.chart { width: 100%; height: 160px; display: block; }
.chart rect { fill: var(--teal); }
.chart text { fill: var(--muted); font-size: 10px; }
.meter { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0; }
.meter > div { height: 100%; background: var(--teal); min-width: 2px; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.05em; }
#mfa-qr { display: block; background: #fff; border-radius: 8px; margin: 8px 0; }
a.button { display: inline-block; font-weight: 600; border-radius: 10px; padding: 12px 20px; background: var(--teal); color: #fff; text-decoration: none; }
ol li { margin: 6px 0; }
.promos { display: grid; gap: 22px; margin: 14px 0 22px; }
.promo { margin: 0; }
.promo video { display: block; width: 100%; border-radius: 12px; background: #00472A; }
.promo video.tall { display: none; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; }
.promo video.wide { aspect-ratio: 16 / 9; }
.promo figcaption { margin-top: 8px; color: var(--ink); line-height: 1.5; }
@media (max-width: 700px) {
  .promo video.wide { display: none; }
  .promo video.tall { display: block; }
}
