:root {
  --bg: #fcfbfd; --surface: #ffffff; --fill: #f3eff6; --line: #e7e0ec;
  --text: #1f1328; --muted: #675b70; --brand: #2d1638; --on-brand: #ffffff;
  --accent: #ffb81c; --on-accent: #2d1638; --lilac: #6a3a86; --good: #0e7a56; --bad: #c42b3a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150c1b; --surface: #1f1427; --fill: #281b31; --line: #3a2b45;
    --text: #f4eef7; --muted: #b9adc2; --brand: #3a2049; --lilac: #d3b0ea;
    --good: #5bd7a6; --bad: #ff8a92;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--lilac); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }
.narrow { max-width: 720px; }
header.bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--brand); color: var(--on-brand); }
header.bar img { width: 36px; height: 36px; border-radius: 9px; }
header.bar .name { font-weight: 700; font-size: 1.1rem; }
header.bar .name span:first-child { color: var(--accent); }
header.bar .name span:last-child { color: #d3b0ea; }
header.bar .spacer { flex: 1; }
header.bar .who { font-size: .85rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 24px 0 6px; }
h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 14px; padding: 12px 18px;
  min-height: 46px; cursor: pointer; background: var(--accent); color: var(--on-accent); }
button.quiet { background: var(--fill); color: var(--text); }
button.danger { background: var(--bad); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tile .label { color: var(--muted); font-size: .88rem; }
.tile .value { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rowbar { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 10px; margin: 7px 0; font-size: .92rem; }
.rowbar .track { height: 10px; background: var(--fill); border-radius: 5px; overflow: hidden; }
.rowbar .fill { height: 100%; background: var(--lilac); border-radius: 5px; }
.rowbar .n { text-align: end; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 160px; display: block; }
.chart rect { fill: var(--accent); }
.chart text { fill: var(--muted); font-size: 10px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }
.notice { background: var(--fill); border-radius: 14px; padding: 14px 16px; }
.error { color: var(--bad); }
.center { text-align: center; padding: 48px 16px; }
input[type=search] { font: inherit; width: 100%; max-width: 320px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
[hidden] { display: none !important; }

/* Long-form pages (privacy policy): text wraps, tables fit the column. */
.doc { overflow-wrap: break-word; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc th, .doc td { white-space: normal; vertical-align: top; }
.doc table.info { table-layout: fixed; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.doc table.info th, .doc table.info td { padding: 12px 14px; }
.doc table.info thead th { background: var(--fill); }
.doc table.info tr:last-child td { border-bottom: 0; }
.doc .notice ul { margin: 0; }
@media (max-width: 640px) {
  .doc table.info, .doc table.info tbody, .doc table.info tr, .doc table.info td { display: block; }
  .doc table.info thead { display: none; }
  .doc table.info tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .doc table.info tr:last-child { border-bottom: 0; }
  .doc table.info td { border-bottom: 0; padding: 6px 14px; }
  .doc table.info td::before { content: attr(data-label); display: block; color: var(--muted);
    font-size: .8rem; font-weight: 600; }
}
