:root {
  --gold: #cf9c39;
  --brand-gold: #c39947;
  --black: #1a1a1a;
  --ink: #1a1a1a;
  --ink-soft: #3b3630;
  --muted: #5f5b54;
  --white: #ffffff;
  --old-gold: #e1c169;
  --coyote: #82662f;
  --seal: #55321c;
  --gray: #8a8d8f;
  --eerie: #191b1e;
  --panel: #f5f3ee;
  --border: #dad6cc;
  --track: #efeae2;
  --true-black: #000000;
  --footer: #1a1815;
  --font-body: "PT Sans", system-ui, sans-serif;
  --font-display: "Geologica", system-ui, sans-serif;
  --gold-bar: #cf9c39;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.4;
}

h1, h2, h3, p { margin: 0; }

button, input { font: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--old-gold);
}

::selection {
  background: var(--gold);
  color: var(--black);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--old-gold);
  color: var(--black);
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

html[data-live="true"] .sample-badge,
html[data-live="true"] .sample-note,
html[data-live="true"] .chip {
  display: none;
}

[data-when][hidden] { display: none !important; }

.metrics.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

html.view-phone .tv-only { display: none; }
html.view-phone .phone-only { display: block; }

.logo {
  display: block;
  height: clamp(88px, 10.2vh, 112px);
  width: auto;
}

h1, h2, h3,
.motto,
.month-label,
.metric .value,
.leader tbody th,
.leader tbody td,
.card .card-value,
.sample-badge span,
.hero h1,
.my-sold,
.stats dd,
.mini-sold,
.mini-rate,
.mile-num,
.rank {
  font-weight: 700;
}

.chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px 2px;
  background: var(--seal);
  color: var(--old-gold);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}

.fill {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--gold);
}

/* TV wall */

html.view-tv,
html.view-tv body {
  height: 100%;
  overflow: hidden;
}

.board {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--white);
}

.topline {
  height: 0;
}

.tv-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(8px, 1vh, 12px) clamp(16px, 1.6vw, 32px) 2px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid #ece8e2;
}

.motto {
  margin: 0;
  padding: 2px clamp(16px, 2vw, 40px) clamp(12px, 1.4vh, 18px);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.8vh, 68px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-align: center;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.tv-header h1 {
  margin: 0;
  line-height: 0;
}

.month-label {
  justify-self: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.8vh, 20px);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.month-label time,
.phone-month time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.today-time {
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sample-badge {
  justify-self: end;
  margin: 0;
  min-width: 0;
  padding: 8px 16px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--footer);
  color: var(--white);
  text-align: center;
  line-height: 1.15;
}

.sample-badge span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.8vh, 22px);
  letter-spacing: 0.14em;
  line-height: 1;
}

.sample-badge small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: clamp(12px, 1.35vh, 15px);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.sheet {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;
  gap: clamp(6px, 0.75vh, 10px);
  margin: 0 clamp(12px, 1.3vw, 28px) clamp(8px, 0.9vh, 12px);
  padding: clamp(8px, 0.9vh, 12px);
  background: #faf9f7;
  border: 1px solid #ece8e2;
  overflow: hidden;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.metric {
  min-width: 0;
  padding: clamp(6px, 0.7vh, 10px) clamp(10px, 0.9vw, 16px) clamp(8px, 0.85vh, 12px);
}

.metric + .metric { border-left: 1px solid var(--border); }

.metric h2 {
  min-height: 2.3em;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.45vh, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.metric .value {
  margin: 4px 0 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vh, 72px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric .sub {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.55vh, 18px);
  font-weight: 700;
}

.panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(8px, 0.8vh, 12px) clamp(10px, 0.9vw, 14px) clamp(6px, 0.6vh, 10px);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.panel-head h2,
.section-title,
.phone-miles h2,
.mini-wrap h2,
.a2hs h2,
.soon h2,
.card h3,
.phone-miles h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.panel-head h2,
.section-title {
  color: var(--black);
  font-size: clamp(24px, 2.8vh, 38px);
}

.lb-note {
  color: var(--seal);
  font-size: clamp(14px, 1.5vh, 18px);
  font-weight: 700;
}

.table-wrap {
  min-height: 0;
  flex: 1;
}

.leader table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.col-rep { width: 36%; }
.col-stat { width: 10.666%; }

.leader thead th {
  padding: 0 6px 6px;
  border-bottom: 1px solid #e4dfd6;
  color: var(--muted);
  font-size: clamp(14px, 1.6vh, 18px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
  vertical-align: bottom;
}

.leader thead th:first-child { text-align: left; }

.leader tbody th,
.leader tbody td {
  padding: clamp(4px, 0.45vh, 8px) 6px 0;
  text-align: right;
  vertical-align: middle;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vh, 32px);
  line-height: 1.1;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.leader tbody th {
  text-align: left;
  white-space: normal;
}

.who {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  min-width: 0;
  max-width: calc(100% - 2.4em);
  line-height: 1.05;
}

.gap {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
}

.gap small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.85em;
}

tbody.rank-1 th,
tbody.rank-1 td {
  font-size: clamp(26px, 3.5vh, 44px);
}

tbody:not(.rank-1) th,
tbody:not(.rank-1) td {
  font-size: clamp(16px, 2vh, 26px);
}

tbody.rank-1 .gap { color: #6d5424; font-size: 0.42em; }

tbody.rank-1 .track { height: 12px; }

.leader .frac {
  display: block;
  margin-top: 1px;
  color: var(--seal);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vh, 18px);
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1;
  vertical-align: middle;
}

tbody.rank-1 { background: rgba(207, 156, 57, 0.18); }

tbody.rank-1 .rank {
  width: 1.7em;
  height: 1.7em;
  background: var(--gold);
  color: var(--black);
  font-size: 1em;
}

tbody.rank-1 tr:first-child th { box-shadow: inset 8px 0 0 var(--gold); }

tbody + tbody tr:first-child th,
tbody + tbody tr:first-child td { border-top: 1px solid var(--border); }

.bar-row td {
  padding: clamp(4px, 0.45vh, 8px) 8px clamp(6px, 0.7vh, 10px);
  font-size: 0;
  line-height: 0;
}

.track {
  height: 6px;
  background: var(--track);
}

.race {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.race article {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--border);
}

.race-k {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vh, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vh, 26px);
  font-weight: 700;
  line-height: 1;
}

.race-bar {
  flex: 1;
  height: 6px;
  background: var(--track);
}

.race-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--gold);
}

.race-end {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(207, 156, 57, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(207, 156, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 156, 57, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

.milestones { min-height: 0; }

.milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(8px, 0.8vw, 12px);
  margin-top: 6px;
}

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  min-width: 0;
  padding: clamp(6px, 0.7vh, 10px) clamp(10px, 0.9vw, 14px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.card .card-value {
  margin: 0;
  min-width: 4.2ch;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vh, 60px);
  line-height: 1;
  white-space: nowrap;
}

.card .card-value span {
  display: block;
  margin-top: 4px;
  color: var(--seal);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.45vh, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
}

.card h3 {
  color: var(--black);
  font-size: clamp(22px, 2.5vh, 34px);
}

.card .copy,
.pips {
  color: var(--seal);
  font-size: clamp(15px, 1.55vh, 18px);
  font-weight: 700;
}

.pips { margin-top: 2px; }

.progress {
  height: clamp(12px, 1.45vh, 18px);
  margin: 6px 0;
  background: var(--track);
  border: 1px solid var(--border);
}

.soon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: clamp(6px, 0.7vh, 10px) 12px;
  border: 1px dashed var(--gray);
}

.soon h2 {
  color: var(--black);
  font-size: clamp(20px, 2.2vh, 28px);
}

.soon p {
  margin-top: 2px;
  color: var(--seal);
  font-size: clamp(14px, 1.5vh, 18px);
  font-weight: 800;
}

.ghosts {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.ghosts span {
  flex: 1;
  height: 8px;
  background: var(--track);
}

.formula {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.55vh, 19px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-wrap: pretty;
}

.view-links {
  margin: 0;
  text-align: center;
}

.view-links a {
  color: var(--coyote);
  font-size: clamp(15px, 1.5vh, 18px);
  font-weight: 800;
}

.view-links a:hover { color: var(--seal); }

.disclaimer {
  margin: 0;
  padding: clamp(8px, 0.9vh, 12px) 16px;
  background: var(--footer);
  color: #f4f1ec;
  font-size: clamp(14px, 1.55vh, 18px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.disclaimer strong {
  color: var(--gold);
  font-weight: 700;
}

.earned {
  margin: 0 0 2px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vh, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
}

.site-line {
  margin: 4px 0 0;
  color: #c8c2b8;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vh, 16px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Short 16:9 frames (720p and similar) keep every row on screen. */
@media (max-height: 820px) {
  .logo { height: 72px; }
  .month-label { font-size: 15px; }
  .sample-badge span { font-size: 15px; }
  .sample-badge small { font-size: 11px; }
  .tv-header-row { padding: 8px 16px 0; }
  .motto { font-size: 28px; letter-spacing: -0.03em; padding: 2px 12px 6px; }
  .earned { font-size: 18px; }
  .view-links { display: none; }
  .formula { font-size: 12px; }
  .card .card-value { font-size: 32px; }
  tbody.rank-1 .track { height: 8px; }
  .sheet { gap: 4px; padding: 6px; margin-bottom: 6px; }
  .metric { padding: 5px 10px 6px; }
  .metric h2 { min-height: 0; font-size: 13px; }
  .metric .value { font-size: 40px; }
  .metric .sub { font-size: 13px; }
  .panel { padding: 6px 10px 4px; }
  .panel-head h2,
  .section-title { font-size: 22px; }
  .lb-note { font-size: 14px; }
  .leader thead th { font-size: 12px; padding-bottom: 3px; }
  .leader tbody th,
  .leader tbody td { font-size: 16px; padding-top: 1px; }
  tbody.rank-1 th,
  tbody.rank-1 td { font-size: 22px; }
  .race { min-height: 0; }
  .race article { min-height: 36px; padding: 4px 8px; }
  .race strong { font-size: 16px; }
  .leader .frac { display: none; }
  .track { height: 8px; }
  .bar-row td { padding: 2px 8px 4px; }
  .card { padding: 6px 10px; gap: 8px; }
  .card .card-value { font-size: 42px; }
  .card h3 { font-size: 22px; }
  .card .copy,
  .pips { font-size: 14px; }
  .milestone-grid { margin-top: 4px; }
  .soon { padding: 5px 10px; }
  .soon h2 { font-size: 18px; }
  .soon p { font-size: 14px; }
  .ghosts { display: none; }
  .formula { font-size: 14px; }
  .view-links a { font-size: 14px; }
  .disclaimer { font-size: 13px; padding: 6px 12px; }
}

@media (max-height: 640px) {
  html.view-tv,
  html.view-tv body { overflow: auto; height: auto; }
  html.view-tv .board { height: auto; min-height: 100vh; min-height: 100dvh; }
  html.view-tv .sheet { overflow: visible; }
  .leader .frac { display: block; }
}

/* Phone scoreboard */

html.view-phone body {
  overflow: auto;
  background: #f3f1ee;
}

.phone {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--panel);
}

.phone-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #ece8e2;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px;
  color: var(--ink);
}

.phone .logo { height: 64px; }

.phone-month {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.phone-month time { align-items: flex-start; }

.phone .sample-badge { min-width: 108px; padding: 6px 10px 7px; }
.phone .sample-badge span { font-size: 15px; letter-spacing: 0.12em; line-height: 1; }
.phone .sample-badge small { font-size: 13px; letter-spacing: 0.12em; }

.phone .motto {
  padding: 4px 16px 14px;
  color: var(--ink);
  font-size: clamp(28px, 8.2cqi, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: normal;
}

.phone .earned { font-size: 22px; }

@media (max-width: 1100px) {
  html.view-tv .motto {
    font-size: clamp(26px, 4.2vw, 40px);
    white-space: normal;
    text-wrap: balance;
  }
}

.picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 14px 12px;
  background: var(--white);
}

.pick {
  min-height: 52px;
  border: 1px solid #d9d3cb;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}

html[data-rep="chris"] .pick-chris,
html[data-rep="nicole"] .pick-nicole,
html[data-rep="bladimir"] .pick-bladimir,
html:not([data-rep]) .pick-chris {
  background: var(--footer);
  border-color: var(--footer);
  color: var(--white);
}

.phone-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.rep-panel { display: none; }

html[data-rep="chris"] .rep-panel-chris,
html:not([data-rep]) .rep-panel-chris,
html[data-rep="nicole"] .rep-panel-nicole,
html[data-rep="bladimir"] .rep-panel-bladimir { display: block; }

.hero {
  padding: 14px 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

@supports (width: 1cqi) {
  .hero h1 { font-size: clamp(26px, 7.2cqi, 34px); }
}

.my-label {
  margin-top: 10px;
  color: var(--seal);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .chip { font-size: 13px; }

.my-sold {
  margin: 2px 0 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@supports (width: 1cqi) {
  .my-sold { font-size: clamp(56px, 16cqi, 72px); }
}

.rank-line {
  margin-top: 6px;
  color: var(--seal);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  min-width: 0;
}

.stats dt {
  color: var(--seal);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@supports (width: 1cqi) {
  .stats dd { font-size: clamp(26px, 7.5cqi, 34px); }
}

.equation {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
}

.equation b {
  font-weight: 800;
}

.hero .formula {
  margin-top: 6px;
  font-size: 17px;
  text-align: left;
}

.mini-wrap h2,
.phone-miles h2,
.a2hs h2 {
  color: var(--black);
  font-size: 22px;
  font-weight: 700;
}

.mini {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
}

.mini-chris {
  background: rgba(207, 156, 57, 0.16);
  border-color: var(--gold);
  padding: 16px 12px;
}

.mini-chris .rank {
  width: 46px;
  height: 46px;
  font-size: 28px;
  background: var(--gold);
  color: var(--black);
}

.mini-chris .mini-sold { font-size: 30px; }

.mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

html[data-rep="chris"] .mini-chris,
html[data-rep="nicole"] .mini-nicole,
html[data-rep="bladimir"] .mini-bladimir {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}

.mini-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 800;
  font-size: 18px;
}

.mini-sold { margin-left: auto; }

.mini-gap {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-soft);
}

.mini-chris .mini-gap { color: #6d5424; font-size: 18px; }

.phone .race {
  margin-top: 8px;
  grid-template-columns: 1fr 1fr;
}

.phone .race strong { font-size: 18px; }

.mini .rank {
  width: 28px;
  height: 28px;
  margin-right: 0;
  font-size: 18px;
  flex: 0 0 auto;
}

.you {
  display: none;
  flex: 0 0 auto;
  padding: 2px 6px;
  background: var(--gold);
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-rep="chris"] .you-chris,
html[data-rep="nicole"] .you-nicole,
html[data-rep="bladimir"] .you-bladimir { display: inline-block; }

.mini-track {
  display: block;
  height: 6px;
  background: var(--track);
}

.mini-sold,
.mini-rate {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.team-line {
  margin-top: 8px;
  color: var(--seal);
  font-size: 17px;
  font-weight: 700;
}

.team-line span { white-space: nowrap; }

.mile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.mile-grid article {
  min-width: 0;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.phone-miles h3 {
  color: var(--seal);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mile-num {
  margin: 2px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.mile-grid p,
.phone-soon,
.a2hs p {
  color: var(--seal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.phone-miles .progress { margin: 8px 0 0; }

.phone-soon,
.a2hs {
  padding: 12px 12px;
  background: var(--white);
  border: 1px solid var(--border);
}

.phone-soon { border-style: dashed; border-color: var(--gray); }

.a2hs { border-left: 4px solid var(--gold); }
.a2hs p + p { margin-top: 8px; }

.phone .view-links a { color: var(--seal); font-size: 18px; }

@media (max-width: 520px) {
  html.view-phone body { background: var(--panel); }
}

/* Missing page */

body.missing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

body.missing main { display: grid; justify-items: center; gap: 12px; }

body.missing .logo { height: 88px; margin: 0 auto; }

body.missing h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--ink);
  line-height: 1.15;
}

body.missing a {
  color: var(--old-gold);
  font-size: 20px;
  font-weight: 800;
}
