/* The dashboard in the site's look (docs/site-design/README.md § Inner pages, layout 1 Quiet).
   Tokens copied from site/src/styles/site.css (@theme) and base.css; colours only through var(--color-*). */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/dashboard/assets/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/dashboard/assets/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url("/dashboard/assets/figtree-800.woff2") format("woff2"); }

:root {
  --color-ground: #ffffff;
  --color-paper: #ffffff;
  --color-head: #15183d;
  --color-ink: rgb(0 0 0 / 0.8);
  --color-muted: rgb(0 0 0 / 0.6);
  --color-rule: #e4e6ee;
  --color-aqua: #46ffe6;
  --color-code: #f4f5f9;
  --color-warn: #fff4d6;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
  --radius-card: 20px;
  --radius-btn: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-ground: #0b0d2a;
    --color-paper: #15183d;
    --color-head: #ffffff;
    --color-ink: rgb(255 255 255 / 0.9);
    --color-muted: rgb(255 255 255 / 0.66);
    --color-rule: rgb(255 255 255 / 0.12);
    --color-code: #11143a;
    --color-warn: #3a3214;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-ground); color: var(--color-ink); font: 400 17px / 1.6 var(--font-sans); padding-inline: 16px; }
.wrap { max-width: 960px; margin: 0 auto; }
h1, h2 { color: var(--color-head); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 800; }
p { margin: 0; max-width: 60ch; }
a { color: var(--color-head); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--color-aqua); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-code); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre { overflow-x: auto; }
:focus-visible { outline: 3px solid var(--color-head); outline-offset: 2px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-head); font: 600 22px / 1 var(--font-sans); }
.logo img { height: 30px; width: auto; }
.logo b { font-weight: 800; }
nav.tabs { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
nav.tabs a { text-decoration: none; color: var(--color-ink); }
nav.tabs a[aria-current="page"] { color: var(--color-head); text-decoration: underline; text-decoration-color: var(--color-aqua); }
nav.tabs form { display: inline; }

main { padding-block: 48px 96px; display: grid; gap: 48px; }
main.narrow { max-width: 480px; margin: 0 auto; }
section { display: grid; gap: 16px; }
.lead { font-size: 20px; color: var(--color-muted); }
.fine { font-size: 14px; color: var(--color-muted); }
.note { background: var(--color-warn); padding: 12px 16px; border-radius: var(--radius-btn); }
.error { color: #c0262d; }
@media (prefers-color-scheme: dark) { .error { color: #ff8a8f; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: 20px; background: var(--color-paper); }
.tile .n { font-size: 28px; font-weight: 800; color: var(--color-head); }

.btn, button { font: 600 16px / 1 var(--font-sans); border-radius: var(--radius-btn); padding: 12px 18px; border: 2px solid transparent; background: var(--color-aqua); color: #0b0d2a; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost, button.ghost { background: transparent; color: var(--color-head); border-color: var(--color-rule); }
/* Google's button: a 1px border like the inputs, the "G" before the words (Google sign-in branding). */
.btn.google { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-head); font-weight: 600; padding: 13px 18px; }
.btn.google:hover { border-color: var(--color-head); }
button.link { background: none; border: 0; padding: 0; color: var(--color-ink); font-weight: 400; text-decoration: underline; text-decoration-color: var(--color-aqua); }
form.stack { display: grid; gap: 12px; }
form.row, p.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
label { display: grid; gap: 4px; font-weight: 600; color: var(--color-head); }
input, select { font: 400 17px / 1.4 var(--font-sans); padding: 10px 12px; border: 1px solid var(--color-rule); border-radius: 10px; background: var(--color-paper); color: var(--color-ink); min-width: 0; }
.or { text-align: center; color: var(--color-muted); }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--color-rule); vertical-align: top; }
th { color: var(--color-head); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.off td { color: var(--color-muted); }
.secret { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret code { font-size: 15px; padding: 10px 12px; }

footer.bottom { border-top: 1px solid var(--color-rule); padding-block: 24px 40px; display: grid; gap: 8px; font-size: 14px; color: var(--color-muted); }
footer.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* The withdrawal form (plan 6b): one radio per contract. */
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; color: var(--color-head); margin-bottom: 4px; padding: 0; }
label.choice { display: flex; gap: 10px; align-items: baseline; font-weight: 400; color: var(--color-ink); }
label.choice input { min-width: auto; }
