/* CastMyVote's design system (lib/shared/theme/cmv_theme.dart in the app): gold is the
   accent for the primary action, selection and focus; ink, muted and line for the rest. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("assets/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("assets/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("assets/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("assets/Poppins-Bold.ttf") format("truetype"); }
:root {
  color-scheme: light;
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --gold-deep: #9a7b16;
  --gold-soft: #fbf5e3;
  --charcoal: #1a1a1a;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f2f4;
  --canvas: #f7f7f8;
  --surface: #ffffff;
  --field: #fafafb;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 14px/1.45 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.logo { display: block; height: 44px; width: auto; }
h1 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
h2 { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.4; }
.error { color: var(--danger); margin: 8px 0 0; }
.error:empty { display: none; }
.break { overflow-wrap: anywhere; }
label { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink); }
input, select { display: block; width: 100%; height: 36px; margin-top: 4px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
input[readonly] { color: var(--muted); background: var(--line-soft); }
input[type="range"] { height: 24px; padding: 0; border: 0; background: transparent; accent-color: var(--gold); }
input[type="range"]:focus { outline-offset: 2px; }
button { height: 36px; padding: 0 16px; font: inherit; font-size: 13px; font-weight: 600; color: var(--charcoal); background: var(--gold); border: 0; border-radius: 8px; cursor: pointer; }
button:hover { background: var(--gold-dark); }
button:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
button.link { height: auto; padding: 0; color: var(--gold-deep); background: none; font-weight: 500; text-decoration: underline; white-space: nowrap; }
.stack { display: grid; gap: 12px; max-width: 360px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid .wide { grid-column: 1 / -1; }
output { font-weight: 400; color: var(--muted); margin-left: 6px; }
.total { display: grid; gap: 2px; margin: 20px 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.total strong { font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); }
.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } .logo { height: 36px; } }
@media print { body { background: #fff; } .total, .scroll { border-color: #999; } }
