/* ============================================================
   AOM RaceReady — styles
   Race-day look: light "paper" background, strong black text,
   bold condensed headings, bibs styled like real race bibs.
   Readability first: large text, strong contrast (works in
   sunlight), big tap targets, no animations.
   Mostly black & white. ONE accent colour (race orange) used only
   for the Claim button and the active tab. Red = warnings only.
   Change the colours here in one place:
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bold condensed font for headings and big numbers (race-bib look). */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f4f3ee;           /* off-white "paper" page */
  --surface: #ffffff;      /* cards */
  --surface-2: #efeee8;    /* table heads, detail boxes */
  --line: #c9c7bf;         /* thin borders */
  --line-strong: #111111;  /* strong black borders */
  --text: #0a0a0a;
  --muted: #444444;        /* still dark enough to read in sunlight */
  --invert-bg: #000000;    /* black panels (top bar, size boxes, timing board) */
  --invert-text: #ffffff;
  --invert-muted: #cfcfcf;
  --accent: #ff6b1a;       /* race orange — ONLY Claim button + active tab */
  --accent-hover: #ff8a47;
  --accent-text: #000000;  /* black text on orange reads best in sun */
  --red: #c40000;          /* warnings only: already claimed, danger */
  --red-bright: #ff6b6b;   /* red on black backgrounds */
  --red-bg: #ffe9e9;
  --amber: #8a5300;        /* low stock text on light background */
  --amber-bright: #ffc94d; /* amber on black backgrounds */
  --amber-bg: #fff3c4;
  --radius: 14px;
  --tap: 56px;             /* minimum button height */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--sans);
  font-size: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 {
  margin: 0 0 .5em; line-height: 1.05; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em;
}
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 .75em; }
em { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

/* ---------- Loading ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.boot .brand { font-size: 2.6rem; color: var(--text); margin: 0; }

/* ---------- Top bar (black, with a finish-line stripe under it) ---------- */
.header { position: sticky; top: 0; z-index: 20; background: var(--invert-bg); color: var(--invert-text); }
.header::after {
  /* checkered finish-line stripe */
  content: ""; display: block; height: 12px;
  background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 12px 12px;
  border-bottom: 2px solid #000;
}
.topbar {
  padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.event-name { font-weight: 700; color: var(--invert-muted); flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who {
  background: transparent; color: var(--invert-text); border: 2px solid #8a8a8a; border-radius: 10px;
  padding: 8px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 44px;
}
.who:hover { border-color: #fff; }
.sync-pill {
  font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  border: 2px solid #8a8a8a; text-transform: uppercase; letter-spacing: .04em;
}
.sync-pill::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: currentColor; vertical-align: 1px; }
.sync-pill.synced { color: #fff; }
.sync-pill.syncing { color: var(--amber-bright); border-color: var(--amber-bright); }
.sync-pill.offline { color: var(--red-bright); border-color: var(--red-bright); }

/* ---------- Tabs (inside the black top bar) ---------- */
.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 0 20px 12px; max-width: 1200px; margin: 0 auto;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 2px solid transparent; background: transparent; color: var(--invert-muted);
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em;
  padding: 6px 18px; border-radius: 10px; white-space: nowrap; cursor: pointer; min-height: 48px;
}
.tab:hover { color: #fff; border-color: #555; }
.tab.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.tab .badge {
  background: var(--red-bright); color: #000; border-radius: 6px; padding: 0 7px; font-size: .85rem; margin-left: 6px;
  font-family: var(--sans); font-weight: 800;
}

main { max-width: 1200px; margin: 0 auto; padding: 20px; padding-bottom: 90px; }

/* ---------- Cards, layout ---------- */
.card { background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.space { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; border: 2px solid var(--line-strong); background: var(--surface); padding: 1px 8px; border-radius: 6px; font-size: .88rem; font-weight: 700; }

.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.index { font-family: var(--display); font-size: 1.2rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.pill-label {
  display: inline-block; background: var(--invert-bg); color: var(--invert-text); border-radius: 6px;
  padding: 5px 14px; font-family: var(--display); font-size: 1.05rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
}
.page-head { text-align: center; padding: 28px 0 24px; }
.page-title { font-size: clamp(2.6rem, 8vw, 4.4rem); }

/* ---------- Buttons ---------- */
.btn {
  min-height: var(--tap); padding: 0 26px; border-radius: 12px; border: 2px solid var(--line-strong);
  font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); color: var(--text); text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .input:focus-visible, .tab:focus-visible, .who:focus-visible, .chip-btn:focus-visible, .result:focus-visible, .link-btn:focus-visible {
  outline: 4px solid var(--text); outline-offset: 3px;
}
.header .tab:focus-visible, .header .who:focus-visible { outline-color: #fff; }
.btn-primary { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); }
.btn-primary:hover { background: #2a2a2a; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-small { min-height: 46px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
/* The main CLAIM button: race orange, the one accent in the app. */
.btn-claim { background: var(--accent); color: var(--accent-text); border: 3px solid #000; }
.btn-claim:hover { background: var(--accent-hover); }
.btn-huge {
  min-height: 100px; width: 100%; border-radius: 16px;
  font-family: var(--display); font-size: 2.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}

/* ---------- Inputs ---------- */
.input, select.input, textarea.input {
  width: 100%; min-height: var(--tap); padding: 10px 16px; border: 2px solid #6b6b6b;
  border-radius: 12px; background: var(--surface); font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.input::placeholder { color: #767676; font-weight: 500; }
.input:focus { border-color: #000; box-shadow: 0 0 0 2px #000; outline: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 800; margin-bottom: 6px; font-size: .82rem; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.error-text { color: var(--red); font-weight: 800; min-height: 1.4em; margin-bottom: 6px; }

/* ---------- Sign-in ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 460px; text-align: left; border-width: 3px; }
.login-card .pill-label { display: table; margin: 0 auto 18px; }
.hero-title { text-align: center; font-size: clamp(3rem, 14vw, 4.8rem); margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.link-btn { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; cursor: pointer; padding: 14px; }

/* ---------- Claim screen ---------- */
.search-box { margin-bottom: 12px; }
.search-input {
  width: 100%; font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; padding: 18px 24px; min-height: 84px;
  border: 3px solid #000; border-radius: 16px; background: var(--surface); color: var(--text);
}
.search-input::placeholder { color: #767676; font-weight: 600; }
.search-input:focus { outline: none; box-shadow: 0 0 0 3px #000; }
.search-hint { color: var(--muted); margin: 0 0 14px 4px; font-size: .98rem; font-weight: 600; }
.results { display: grid; gap: 8px; }
.result {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 18px;
  cursor: pointer; text-align: left; width: 100%; min-height: 76px; color: var(--text);
}
.result:hover, .result.selected { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
/* Small bib in result lists */
.result .bib, .list-bib {
  font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center;
  background: #fff; border: 2px solid #000; border-radius: 6px; line-height: 1.1;
}
.result .bib { font-size: 1.9rem; min-width: 92px; padding: 4px 10px; }
.result .name { font-weight: 800; font-size: 1.2rem; }
.result .meta { color: var(--muted); font-size: .92rem; margin-top: 2px; font-weight: 600; }
.status-tag {
  font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  border: 2px solid #000; text-transform: uppercase; letter-spacing: .05em;
}
.status-tag.claimed { background: var(--invert-bg); color: var(--invert-text); }
.status-tag.unclaimed { background: var(--surface); color: var(--text); }
.status-tag.removed { color: var(--muted); border-style: dashed; border-color: var(--muted); }

.verify { padding: 26px; border-width: 3px; }
/* The race bib: white card, thick black border, 4 corner pin holes, huge number. */
.verify .big-bib {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 4px solid #000; border-radius: 12px; padding: 18px 44px 14px; margin-bottom: 16px;
  background:
    radial-gradient(circle at 20px 20px, var(--bg) 0 6px, #000 6px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 20px) 20px, var(--bg) 0 6px, #000 6px 8px, transparent 8.5px),
    radial-gradient(circle at 20px calc(100% - 20px), var(--bg) 0 6px, #000 6px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), var(--bg) 0 6px, #000 6px 8px, transparent 8.5px),
    #fff;
}
.big-bib .bib-label { font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; }
.big-bib .bib-num {
  font-family: var(--display); font-weight: 800; font-size: 6rem; line-height: .95;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%;
}
.verify .big-name { font-family: var(--display); font-size: 3rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 4px 0 18px; overflow-wrap: anywhere; }
.size-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.size-box { background: var(--invert-bg); color: var(--invert-text); border-radius: 12px; padding: 14px 18px; }
.size-box .label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--invert-muted); }
.size-box .value { font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: 1; margin: 2px 0 4px; }
.size-box .left { font-size: .95rem; font-weight: 800; margin-top: 4px; }
.size-box .left.out { display: inline-block; background: var(--red-bright); color: #000; padding: 2px 8px; border-radius: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 20px; }
.detail { background: var(--surface-2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 0; }
.detail .label { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.detail .value { font-size: 1.2rem; font-weight: 800; overflow-wrap: anywhere; }
.notes-box { background: var(--amber-bg); border: 2px solid #c99700; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }

.panel-claimed { border: 3px solid var(--red); background: var(--red-bg); border-radius: 14px; padding: 24px; text-align: center; }
.panel-claimed .title { color: var(--red); font-family: var(--display); font-size: 2.8rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.panel-claimed .when { font-size: 1.1rem; font-weight: 700; margin: 8px 0 0; }
/* Success = black "finish line" panel with a checkered stripe on top. */
.panel-success {
  background: var(--invert-bg); color: var(--invert-text); border-radius: 16px; padding: 0 24px 32px; text-align: center; overflow: hidden;
}
.panel-success::before {
  content: ""; display: block; height: 20px; margin: 0 -24px 28px;
  background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 20px 20px;
}
.panel-success .check { font-size: 4rem; line-height: 1; font-weight: 800; }
.panel-success .title { font-family: var(--display); font-size: 3.4rem; font-weight: 800; line-height: 1; text-transform: uppercase; margin: 6px 0 10px; }
.panel-success .sub { font-size: 1.35rem; font-weight: 700; }
.panel-success .btn-primary { background: #fff; color: #000; border-color: #fff; }
.panel-success .btn-primary:hover { background: #e6e6e6; }

/* ---------- Dashboard (timing-board numbers) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--invert-bg); color: var(--invert-text); border-radius: var(--radius); padding: 16px 22px; }
.stat .num { font-family: var(--display); font-size: 4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--invert-muted); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.bar { height: 14px; background: var(--surface-2); border: 2px solid #000; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar > div { height: 100%; background: #000; }
.dist-row { padding: 14px 0; border-bottom: 2px solid var(--line); }
.dist-row:last-child { border-bottom: 0; }

.inv-title { margin: 18px 0 8px; }
.inv-table { border: 2px solid #000; border-radius: 10px; overflow: hidden; }
.inv-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.3fr; gap: 10px; align-items: center; padding: 8px 14px; border-top: 2px solid var(--line); font-variant-numeric: tabular-nums; }
.inv-row:first-child { border-top: 0; }
.inv-head { font-size: .78rem; font-weight: 800; color: var(--invert-text); text-transform: uppercase; letter-spacing: .08em; background: var(--invert-bg); }
.inv-size { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.inv-input { min-height: 46px; padding: 6px 12px; max-width: 130px; font-weight: 800; }
.inv-remaining { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.inv-row.low .inv-remaining { color: var(--amber); }
.inv-row.out .inv-remaining { color: var(--red); }

/* ---------- Lists ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-btn { border: 2px solid #000; background: var(--surface); border-radius: 10px; padding: 8px 16px; font-weight: 800; cursor: pointer; min-height: 46px; color: var(--text); }
.chip-btn:hover { background: var(--surface-2); }
.chip-btn.active { background: var(--invert-bg); color: var(--invert-text); }
.list { display: grid; gap: 8px; }
.list-item { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.list-item .grow { min-width: 180px; }
.list-bib { min-width: 76px; font-size: 1.5rem; padding: 2px 8px; }
.list-name { font-weight: 800; font-size: 1.05rem; }
.log-item { background: var(--surface); border: 2px solid var(--line); border-left: 6px solid #8a8a8a; border-radius: 10px; padding: 12px 16px; }
.log-item.CLAIM { border-left-color: #000; }
.log-item.UNDO_CLAIM, .log-item.REMOVE, .log-item.RESET, .log-item.LOGS_CLEARED { border-left-color: var(--red); }
.log-item.EDIT, .log-item.CONFLICT_RESOLVED, .log-item.INVENTORY { border-left-color: #e0a100; }
.log-item .when { color: var(--muted); font-size: .85rem; font-weight: 600; }
.log-item .action { font-weight: 800; }
.changes { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; }
.changes .from { color: var(--muted); text-decoration: line-through; }
.changes .to { font-weight: 800; }
.more-note { text-align: center; color: var(--muted); padding: 10px; }

.event-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.event-title { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; }

/* ---------- Import ---------- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
.summary-box { border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; font-weight: 700; border: 2px solid var(--line); background: var(--surface); }
.summary-box.ok { border-color: #000; }
.summary-box.warn { border-color: #c99700; background: var(--amber-bg); color: #000; }
.summary-box.bad { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.problem-list { max-height: 220px; overflow: auto; font-size: .9rem; margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.file-drop { border: 3px dashed #000; border-radius: var(--radius); padding: 34px; text-align: center; background: var(--surface); }

/* ---------- Settings danger zone ---------- */
.danger-zone { border-color: var(--red); }
.danger-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 2px solid var(--line); }
.danger-item:first-of-type { border-top: 0; }
.danger-item h3 { margin-bottom: 4px; }
.danger-item p { margin: 0; max-width: 560px; }

/* ---------- Pop-ups ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border: 3px solid #000; border-radius: 16px; padding: 26px; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; }
.modal-text { color: var(--muted); font-weight: 600; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Messages ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: none;
  background: var(--invert-bg); color: var(--invert-text); padding: 14px 22px; border-radius: 12px; font-weight: 800;
  max-width: calc(100% - 32px); z-index: 60; pointer-events: none; text-align: center; border: 2px solid #fff;
}
.toast.show { display: block; }
.toast.error { background: var(--red); color: #fff; }
.update-banner {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--invert-bg); color: var(--invert-text); font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px; z-index: 55;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.update-banner[hidden] { display: none; }
.update-banner .btn-primary { background: #fff; color: #000; border-color: #fff; }

.shake { border-color: var(--red) !important; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  :root { font-size: 17px; }
  main { padding: 14px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .tabs { padding: 0 14px 10px; }
  .tab { font-size: 1.1rem; padding: 6px 14px; }
  .card { padding: 18px; }
  .search-input { font-size: 1.5rem; min-height: 70px; padding: 14px 18px; }
  .verify { padding: 16px; }
  .verify .big-bib { padding: 14px 36px 10px; }
  .big-bib .bib-num { font-size: 4.4rem; }
  .verify .big-name { font-size: 2.2rem; margin-bottom: 12px; }
  .size-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .size-box { padding: 12px 14px; }
  .size-box .value { font-size: 2.6rem; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
  .detail { padding: 8px 10px; }
  .detail .value { font-size: 1.05rem; }
  .result { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; }
  .result .bib { font-size: 1.6rem; min-width: 76px; }
  .result .status-tag { grid-column: 1 / -1; justify-self: start; }
  .btn-huge { min-height: 86px; font-size: 2.3rem; }
  .panel-success .title { font-size: 2.6rem; }
  .panel-claimed .title { font-size: 2.2rem; }
  .stat .num { font-size: 2.6rem; }
  .inv-row { grid-template-columns: .8fr 1.2fr .8fr 1.2fr; gap: 6px; padding: 8px 10px; }
  .inv-input { max-width: none; }
  .brand { font-size: 1.35rem; }
  .sync-pill { padding: 5px 10px; margin-left: auto; }
  .event-name { order: 5; flex: 1; font-size: .9rem; }
  .who { order: 6; max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; min-height: 40px; font-size: .8rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px 12px; }
  .stat .lbl { font-size: .7rem; }
}
