@font-face { font-family: "Commissioner"; src: url("/assets/fonts/Commissioner-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --plum-800: #3B1541; --plum-700: #4B1D52; --plum-600: #6A2A72; --lilac-200: #E9C8F0;
  --sun: #FFD43B; --sun-deep: #E0A100; --sun-100: #FFF3C4; --sun-ink: #6B4E00;
  --paper: #F6F3EC; --ink: #16131F;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: #EFEBE2; --line: #E7E2D6; --line-strong: #D3CCBC;
  --text: var(--ink); --muted: #4B4757; --brand: var(--plum-700); --brand-hover: var(--plum-800); --brand-ink: #FFFFFF;
  --brand-soft: #EFEBE2; --link: var(--plum-600); --accent-soft: var(--sun-100); --accent-ink: var(--sun-ink);
  --ok: #2E7458; --ok-soft: #E1F1E8; --danger: #A8321F; --danger-soft: #FBE4DE; --focus: var(--plum-700);
  --band: var(--plum-700); --band-line: var(--plum-800);
  --shadow: 0 1px 2px rgba(22, 19, 31, .05), 0 8px 24px rgba(22, 19, 31, .07);
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #16131F; --surface: #201C2B; --surface-2: #2A2536; --line: #353044; --line-strong: #4A4458;
  --text: #F6F3EC; --muted: #B3AEBE; --brand: #E9C8F0; --brand-hover: #F3DCF7; --brand-ink: #16131F;
  --brand-soft: #2A2536; --link: #E9C8F0; --accent-soft: #3A3214; --accent-ink: #FFE48A;
  --ok: #86D6AE; --ok-soft: #1D3A2C; --danger: #FF9F8C; --danger-soft: #45201B; --focus: var(--sun);
  --band: #201C2B; --band-line: #353044; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
  color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
main { max-width: 34rem; margin: 2rem auto 4rem; padding: 1.75rem 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
body.wide main { max-width: 76rem; padding: 0 1.25rem; background: none; border: 0; box-shadow: none; }
h1, h2 { line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.card h2 { margin-top: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
b { font-weight: 700; }

/* Bands: the plum strip with the lockup, as at the top of Papirka's e-mails. */
.band, .topbar { background: var(--band); color: #FFFFFF; border-bottom: 1px solid var(--band-line); }
.band-in { max-width: 76rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.lockup { height: 30px; width: auto; display: block; }
.lk-mark, .lk-text { fill: var(--paper); }
.lk-dot, .lk-corner { fill: var(--sun); }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 99px; background: var(--sun); color: var(--plum-700);
  font: 800 .75rem/1.5 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.topbar-in { max-width: 76rem; margin: 0 auto; padding: .75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.sections { display: flex; flex-wrap: wrap; gap: 4px; }
.sections a { padding: .4rem .85rem; border-radius: 10px; color: #FFFFFF; font-weight: 700; font-size: .95rem; text-decoration: none; }
.sections a:hover { background: rgba(255, 255, 255, .12); }
.sections a[aria-current="page"] { background: var(--sun); color: var(--plum-700); }
.topbar .spacer { flex: 1; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; }
.who .me { overflow-wrap: anywhere; }
.who a { color: #FFFFFF; font-weight: 700; }
.who button { margin: 0; min-height: 38px; padding: 0 .9rem; font-size: .9rem; background: transparent; color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, .5); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; margin: 1.25rem 0; }
main .card { background: var(--surface-2); }
body.wide main .card { background: var(--surface); box-shadow: var(--shadow); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Forms */
label { display: block; font-weight: 700; font-size: .95rem; margin: 1rem 0 .35rem; }
input[type=email], input[type=text], select { width: 100%; min-height: 50px; padding: .6rem 1rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 212, 59, .5); }
input.code { font: 700 1.5rem/1 var(--mono); letter-spacing: .35em; text-align: center; }
button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; margin-top: 1rem;
  padding: 0 1.25rem; font: 700 1rem/1 var(--font); cursor: pointer; border: 1.5px solid transparent; border-radius: 14px;
  background: var(--brand); color: var(--brand-ink); }
button:hover { background: var(--brand-hover); }
button.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
button.danger { background: var(--danger); color: #FFFFFF; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; margin: 1rem 0 0; cursor: pointer; }
label.check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--brand); }
form.inline { display: inline; }
.error { color: var(--danger); font-weight: 700; }
.notice { display: inline-block; padding: .45rem .9rem; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.note { padding: .75rem 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--line); }
.filters { display: flex; gap: .5rem .75rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem; }
.filters label { margin: 0; }
.filters > * { margin: 0; }
.filters input, .filters select { width: auto; min-width: 12rem; }
.filters button { margin-top: 0; }

/* Figures on the dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.stat { padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 600; font-size: .95rem; color: var(--muted); }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.stat.accent { background: var(--accent-soft); }

/* Tables: on a card; below 900px they scroll inside themselves. */
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .95rem; margin: 0 0 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:hover > * { background: var(--surface-2); }
tbody th { width: 1%; color: var(--muted); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }

.qr { display: inline-block; padding: 12px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.qr svg { width: 220px; height: 220px; display: block; }
code, .mono { font-family: var(--mono); font-size: .9em; word-break: break-all; }
code { padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
ul.codes { columns: 2; padding: 1rem 1rem 1rem 2.2rem; font: 700 1rem/1.9 var(--mono); background: var(--surface-2); border-radius: 14px; }

@media (max-width: 900px) {
  table { display: block; max-width: 100%; overflow-x: auto; }
  thead th { white-space: nowrap; }
}
@media (max-width: 600px) {
  main { margin: 1.25rem 12px 3rem; padding: 1.4rem 1.1rem; }
  body.wide main { margin: 1.25rem auto 3rem; padding: 0 12px; }
  .topbar-in { padding: .75rem 12px; }
  .topbar .spacer { display: none; }
  .sections { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .sections a { white-space: nowrap; }
  .who { width: 100%; }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .filters > * { flex: 1 1 100%; }
}
