@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations'), url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Slate and chalk. Colour is reserved for calibrated plates. */
  --bg: #1a1d21;
  --raise: #23272c;
  --raise-2: #2d3238;
  --line: #33383f;
  --chalk: #ecebe6;
  --muted: #8f969e;
  --faint: #5f666e;

  --p25: #d4402f;
  --p20: #2f6cd0;
  --p15: #e2bb3a;
  --p10: #3a9a57;
  --p5: #ecebe6;
  --p2: #0f1113;
  --p1: #b7bcc2;
  --p0: #8a9096;
  --steel: #a3a9b0;

  --ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --narrow: 66%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--chalk);
  font: 400 16px/1.45 var(--ui);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; border-radius: 6px; }

/* Numbers everywhere get the condensed, scoreboard cut. */
.num, .score-num, .count, .weight input, .plan td, .totals dd:not(.pts), .log b, .options b,
.ladder b, .sched b, .lifttabs small, .inwrap input, .out, .rpe button {
  font-stretch: var(--narrow);
  font-variant-numeric: tabular-nums;
}

/* ---------- Chrome ---------- */

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 560px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px 4px;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-stretch: 88%; font-size: 17px; }
.lights { display: inline-flex; gap: 3px; }
.lights i { width: 7px; height: 7px; border-radius: 50%; background: var(--chalk); }
.lights i:nth-child(2) { background: var(--p25); }
.badge { font-size: 13px; color: var(--muted); }

main { max-width: 560px; margin: 0 auto; padding: 4px 20px 8px; outline: none; }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  position: relative; min-height: 60px; font-size: 14px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.tabs button[aria-current="page"] { color: var(--chalk); }
.tabs button[aria-current="page"]::before {
  content: ''; position: absolute; top: -1px; left: 50%; width: 28px; height: 2px; margin-left: -14px; background: var(--chalk);
}
.lock-ico { width: 12px; height: 12px; fill: currentColor; opacity: .7; }

/* ---------- Layout ---------- */

.group { margin: 32px 0; }
.group > h2, .group h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.fine { color: var(--muted); font-size: 13px; margin: 10px 0; max-width: 60ch; }
.warn { color: var(--p25); font-weight: 600; font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.row.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Controls ---------- */

.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segs.one { grid-template-columns: 1fr; margin-top: 12px; }
.seg { display: flex; background: var(--raise); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--raise-2); color: var(--chalk); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lab { font-size: 13px; color: var(--muted); }
.inwrap { position: relative; display: block; }
.inwrap input, input[type="email"] {
  width: 100%; height: 52px; padding: 0 40px 0 14px;
  background: var(--raise); border: 0; border-radius: 12px;
  font-size: 24px; font-weight: 700; -moz-appearance: textfield;
}
input[type="email"] { font-size: 16px; font-weight: 500; padding-right: 14px; }
.inwrap input::placeholder { color: var(--faint); }
.inwrap i, .out i, .totals i, .weight i {
  font-style: normal; font-stretch: 100%; font-weight: 500; font-size: 14px; color: var(--muted);
}
.inwrap i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.out { height: 52px; display: flex; align-items: center; gap: 6px; font-size: 28px; font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  font-size: 15px; font-weight: 650; text-decoration: none; color: var(--chalk);
}
.btn.primary { background: var(--chalk); color: var(--bg); }
.btn.quiet { background: var(--raise); margin-top: 14px; }
.btn.wide { width: 100%; }
.btn.armed { color: var(--p25); }

/* ---------- Score ---------- */

.hero { padding: 18px 0 6px; }
.score-num { font-size: clamp(88px, 31vw, 148px); font-weight: 800; line-height: .82; letter-spacing: -.01em; }
.score-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.score-sub .alt { color: var(--chalk); font-weight: 600; }

/* ---------- Plan ---------- */

table.plan { width: 100%; border-collapse: collapse; }
.plan th, .plan td { padding: 12px 0; text-align: right; }
.plan tbody tr + tr > * { border-top: 1px solid var(--line); }
.plan thead th { color: var(--muted); font-size: 13px; font-weight: 500; padding-top: 0; }
.plan tbody th { text-align: left; font-size: 15px; font-weight: 600; }
.plan td { font-size: 26px; font-weight: 600; color: var(--muted); }
.plan td.third { color: var(--chalk); font-weight: 800; }

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.totals dt { font-size: 13px; color: var(--muted); }
.totals dd { margin: 2px 0 0; font-size: 36px; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.totals dd.pts { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; }

.ladders { display: grid; gap: 20px; }
.ladder h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ladder ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ladder li { display: flex; align-items: baseline; gap: 3px; }
.ladder b { font-size: 22px; font-weight: 700; }
.ladder span { font-size: 13px; color: var(--muted); }
.ladder li.op b { box-shadow: inset 0 -2px 0 var(--chalk); }

/* ---------- Lift switcher ---------- */

.lifttabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 4px; }
.lifttabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 10px 0 10px; border-bottom: 2px solid var(--line);
}
.lifttabs span { font-size: 15px; font-weight: 600; color: var(--muted); }
.lifttabs small { font-size: 22px; font-weight: 700; color: var(--faint); line-height: 1.1; }
.lifttabs button[aria-selected="true"] { border-bottom-color: var(--chalk); }
.lifttabs button[aria-selected="true"] span, .lifttabs button[aria-selected="true"] small { color: var(--chalk); }

/* ---------- Live ---------- */

.log { list-style: none; margin: 4px 0; padding: 0; }
.log li {
  display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 0 14px;
  min-height: 60px; border-bottom: 1px solid var(--line);
}
.log li:has(.undo) { grid-template-columns: 26px 1fr auto auto auto; }
.no {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--raise-2); color: var(--muted);
}
.log .good .no { background: var(--chalk); color: var(--bg); }
.log .bad .no { background: var(--p25); color: #fff; }
.log b { font-size: 30px; font-weight: 800; }
.log .bad b { color: var(--muted); text-decoration: line-through 2px var(--p25); }
.verdict { font-size: 14px; color: var(--muted); }
.rpe-tag { font-size: 14px; color: var(--chalk); font-weight: 600; }
.undo { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.log .later { opacity: .55; min-height: 48px; }

.now { background: var(--raise); border-radius: 24px; padding: 16px 16px 16px; margin: 14px -8px; }
.now-head { margin: 0 0 4px; font-size: 13px; color: var(--muted); text-align: center; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.stepper button { width: 56px; height: 56px; border-radius: 50%; background: var(--raise-2); font-size: 28px; font-weight: 400; line-height: 1; }
.weight { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.weight input {
  width: 100%; min-width: 0; text-align: center; background: none; border: 0; padding: 0;
  font-size: clamp(76px, 24vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -.01em; -moz-appearance: textfield;
}
.weight i { display: none; }

/* Plates per side, drawn to scale-ish: bar centre on the left, sleeve end on the right. */
.bar { display: flex; align-items: center; justify-content: center; height: 64px; margin: 4px auto 0; }
.bar::before { content: ''; width: 34px; height: 8px; background: var(--steel); border-radius: 2px 0 0 2px; opacity: .55; }
.plate { height: 100%; border-radius: 3px; margin-right: 2px; flex: none; }
.plate.p25 { width: 14px; background: var(--p25); }
.plate.p20 { width: 13px; background: var(--p20); }
.plate.p15 { width: 12px; height: 88%; background: var(--p15); }
.plate.p10 { width: 10px; height: 74%; background: var(--p10); }
.plate.p5 { width: 8px; height: 56%; background: var(--p5); }
.plate.p2 { width: 7px; height: 44%; background: var(--p2); box-shadow: inset 0 0 0 1px #4a5057; }
.plate.p1 { width: 5px; height: 36%; background: var(--p1); }
.plate.p0 { width: 4px; height: 28%; background: var(--p0); }
.collar { width: 10px; height: 34%; background: var(--steel); border-radius: 2px; margin-right: 1px; flex: none; }
.sleeve { width: 30px; height: 12px; background: var(--steel); border-radius: 0 2px 2px 0; flex: none; }
.bar.empty::before { width: 60px; }
.bar.sm { height: 24px; margin: 0; justify-content: flex-start; }
.bar.sm::before { width: 10px; height: 4px; }
.bar.sm .plate { margin-right: 1px; border-radius: 1.5px; }
.bar.sm .p25, .bar.sm .p20 { width: 6px; }
.bar.sm .p15 { width: 5px; }
.bar.sm .p10, .bar.sm .p5 { width: 4px; }
.bar.sm .p2, .bar.sm .p1, .bar.sm .p0 { width: 3px; }
.bar.sm .collar { width: 4px; }
.bar.sm .sleeve { width: 10px; height: 5px; }
.plates-txt { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.options button {
  display: flex; flex-direction: column; align-items: center; padding: 8px 0 10px;
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
}
.options small { font-size: 12px; color: var(--muted); }
.options b { font-size: 28px; font-weight: 800; line-height: 1.05; }
.options button[aria-pressed="true"] { background: var(--raise-2); box-shadow: inset 0 0 0 1.5px var(--chalk); }
.note { font-size: 14px; color: var(--muted); margin: 10px 2px 14px; }

.rpe { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-bottom: 12px; }
.rpe button { height: 40px; border-radius: 10px; background: var(--raise-2); font-size: 15px; font-weight: 700; color: var(--muted); }
.rpe button[aria-pressed="true"] { background: var(--chalk); color: var(--bg); }

.ref { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref .btn { min-height: 64px; font-size: 17px; font-weight: 700; }
.btn.good { background: var(--chalk); color: var(--bg); }
.btn.bad { background: var(--p25); color: #fff; }

/* ---------- Warm-up timing ---------- */

.timer { padding-top: 10px; }
.count { font-size: clamp(120px, 44vw, 184px); font-weight: 800; line-height: .82; letter-spacing: -.02em; }
.count-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.cue { margin: 18px 0 0; font-size: 21px; font-weight: 650; line-height: 1.25; color: var(--muted); }
.cue.due, .cue.go { color: var(--chalk); }
.tick { display: grid; grid-template-columns: 76px 1fr; gap: 10px; margin-top: 20px; }
.tick .btn { margin: 0; min-height: 64px; font-size: 17px; }

.switch { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 24px; border-radius: 12px; background: var(--raise-2); position: relative; flex: none; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--chalk); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--bg); }
.switch input:focus-visible + span { outline: 2px solid var(--chalk); outline-offset: 2px; }

.sched { list-style: none; margin: 24px 0 0; padding: 0; }
.sched button, .sched li.op {
  width: 100%; display: grid; grid-template-columns: 1fr 88px 70px; align-items: center; gap: 10px;
  min-height: 54px; text-align: left; border-bottom: 1px solid var(--line); position: relative;
}
.sched .w { font-size: 14px; color: var(--muted); }
.sched b { font-size: 24px; font-weight: 700; color: var(--chalk); margin-right: 2px; }
.sched .when { text-align: right; font-size: 13px; color: var(--muted); }
.sched li.due button::before { content: ''; position: absolute; left: -20px; top: 12px; bottom: 12px; width: 3px; background: var(--chalk); border-radius: 0 2px 2px 0; }
.sched li.due .when { color: var(--chalk); font-weight: 600; }
.sched li.done button { opacity: .38; }
.sched li.done b { text-decoration: line-through; }
.sched li.op { border-bottom: 0; }

/* ---------- Locked ---------- */

.lockpanel { background: var(--raise); border-radius: 24px; padding: 24px 20px; margin: 16px 0; }
.lock-title { margin: 0 0 14px; font-size: 40px; font-weight: 800; font-stretch: var(--narrow); line-height: .95; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--chalk); }
details { margin-top: 18px; }
summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
details .field { margin-top: 10px; }

/* ---------- Athletes, coach tools ---------- */

.ath {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 18px; background: var(--raise); font-size: 14px; font-weight: 600; max-width: 55vw;
}
.ath span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath svg { width: 12px; height: 12px; flex: none; color: var(--muted); }
.ath[hidden] { display: none; }

.seg button { padding: 0 4px; }
.seg:has(button:nth-child(5)) button { font-size: 13px; }
.lab.gap, .gap { margin-top: 14px; }
.lab.gap { margin-bottom: 6px; }
.plan td.set { color: var(--chalk); box-shadow: inset 0 -2px 0 var(--chalk); }

.hints { margin-top: 8px; }
.hint {
  display: grid; text-align: left; gap: 1px; padding: 8px 10px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; min-width: 0;
}
.hint span { font-weight: 650; color: var(--chalk); }
.hint small { color: var(--muted); font-size: 12px; }
.hint b { font-size: 13px; color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
.hint:disabled { opacity: .55; cursor: default; }
.hint.none { color: var(--faint); font-size: 12px; padding: 8px 2px; }
.linkish { display: block; margin: 10px 0 0; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-align: left; }

.minilock { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 16px; border-radius: 18px; background: var(--raise); }
.minilock .lock-ico { width: 14px; height: 14px; margin-top: 3px; fill: var(--muted); opacity: 1; }
.minilock p { margin: 0; font-size: 14px; color: var(--muted); }
.minilock .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; margin-top: 0; }
.btn.danger { color: var(--p25); }
.btn.flush { margin-top: 0; height: 52px; }
.cue.small { font-size: 15px; margin-top: 14px; }

/* Team */
.team-hero { padding-bottom: 0; }
.team-count { font-size: 64px; font-weight: 800; font-stretch: var(--narrow); line-height: .9; display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.team-count span { font-size: 15px; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.team-hero .btn { margin-top: 4px; min-height: 60px; font-size: 16px; }
.team { list-style: none; margin: 18px 0 0; padding: 0; }
.trow {
  width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); position: relative;
}
.trow[aria-current="true"]::before { content: ''; position: absolute; left: -20px; top: 16px; bottom: 16px; width: 3px; background: var(--chalk); border-radius: 0 2px 2px 0; }
.tname { font-size: 17px; font-weight: 650; display: grid; }
.tname small, .tnext small { font-size: 13px; font-weight: 400; color: var(--muted); }
.tnext { display: grid; justify-items: end; }
.tnext b { font-size: 30px; font-weight: 800; font-stretch: var(--narrow); line-height: 1; font-variant-numeric: tabular-nums; }
.tlifts { display: flex; gap: 12px; }
.ttotal { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.twarm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.twarm:empty { display: none; }
.twarm b { color: var(--chalk); font-stretch: var(--narrow); font-size: 17px; }
.tcue.due { color: var(--chalk); font-weight: 650; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }
.dots i.g { background: var(--chalk); box-shadow: none; }
.dots i.r { background: var(--p25); box-shadow: none; }

/* Sheet */
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--chalk);
  box-shadow: 0 -1px 0 var(--line);
}
.sheet::backdrop { background: rgb(0 0 0 / .55); }
.sheet-body { overflow-y: auto; max-height: 92dvh; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -8px; padding: 14px 0 10px; background: var(--bg); z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.x { font-size: 15px; font-weight: 650; padding: 8px 0 8px 12px; }
.athletes { list-style: none; margin: 0 0 6px; padding: 0; }
.athletes button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); text-align: left; }
.athletes button span { font-size: 16px; font-weight: 600; }
.athletes button small { color: var(--muted); font-size: 13px; }
.athletes button[aria-pressed="true"] span::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--chalk); margin-left: 8px; vertical-align: middle; }
.text, textarea, select.text, input[type="url"] {
  width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--raise);
  color: var(--chalk); font: 500 16px var(--ui); color-scheme: dark;
}
textarea { height: auto; padding: 12px 14px; margin: 10px 0 0; font-size: 14px; resize: vertical; }
.filebtn { position: relative; overflow: hidden; cursor: pointer; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn.primary.filebtn { margin-top: 14px; }
.totals.three { grid-template-columns: repeat(3, 1fr); }
.totals.three dd:not(.pts) { font-size: 28px; }
.sets { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sets li { display: grid; grid-template-columns: 96px 1fr auto 64px; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sets b { color: var(--chalk); font-size: 18px; font-stretch: var(--narrow); }

/* Setup, timers, history, trends */
.setup-inline { display: block; color: var(--chalk); font-weight: 500; font-size: 13px; }
.setup-line { text-align: center; margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.card-timer, .event { margin: 2px 0 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-timer { text-align: center; }
.event { margin-top: 8px; }
.over { color: var(--p25); font-weight: 650; }
.notes { white-space: pre-wrap; margin: 0; color: #cfd2d4; font-size: 15px; }
.tsetup { grid-column: 1 / -1; font-size: 13px; color: var(--chalk); }
.totals.four { grid-template-columns: repeat(2, 1fr); }
.review .row .btn { margin-top: 0; }
.review .btn.wide { margin-top: 12px; }
.review .row:last-child { margin-top: 12px; }
.meets { list-style: none; margin: 16px 0 0; padding: 0; }
.meets li { display: grid; grid-template-columns: 88px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meets .md { color: var(--muted); font-size: 13px; }
.meets .mn { display: grid; font-weight: 600; }
.meets small { font-size: 12px; color: var(--muted); font-weight: 400; }
.meets .mt { display: grid; justify-items: end; }
.meets .mt b { font-size: 22px; font-stretch: var(--narrow); font-variant-numeric: tabular-nums; }
.meets .undo { grid-column: 3; justify-self: end; padding: 2px 0; font-size: 12px; }
.trends { display: grid; gap: 10px; }
.trend { display: grid; grid-template-columns: 64px 1fr 84px; align-items: center; gap: 10px; color: var(--chalk); }
.trend svg { width: 100%; height: auto; aspect-ratio: 200 / 48; overflow: visible; }
.tl { font-size: 13px; color: var(--muted); }
.tv { display: grid; justify-items: end; }
.tv b { font-size: 22px; font-stretch: var(--narrow); font-variant-numeric: tabular-nums; }
.tv small { font-size: 11px; color: var(--muted); }
textarea { width: 100%; }
input[type="time"].text, input[type="url"].text { font-variant-numeric: tabular-nums; }

.offer { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--raise); }
.offer p { margin: 0 0 10px; font-size: 15px; }
.offer .btn { margin: 0; }

/* ---------- Misc ---------- */

.doc { max-width: 60ch; padding: 24px 20px 48px; }
.doc h1 { font-size: 40px; font-weight: 800; font-stretch: var(--narrow); line-height: 1; margin: 16px 0 20px; }
.doc h2 { font-size: 17px; font-weight: 650; margin: 28px 0 6px; }
.doc p { color: #cfd2d4; }
.doc a { color: var(--chalk); }


.foot { max-width: 560px; margin: 0 auto; padding: 8px 20px 20px; font-size: 13px; color: var(--faint); display: flex; gap: 16px; }
.foot a { color: var(--muted); text-decoration: none; }

#toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 10;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: var(--chalk); color: var(--bg); padding: 12px 18px; border-radius: 14px;
  font-size: 15px; font-weight: 600; max-width: calc(100vw - 40px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .ladders { grid-template-columns: repeat(3, 1fr); }
  .now { margin: 14px 0; padding: 22px; }
}

@media print {
  :root { --bg: #fff; --raise: #fff; --raise-2: #eee; --line: #ccc; --chalk: #000; --muted: #444; --faint: #777; }
  body { padding: 0; }
  .top, .tabs, #toast, .btn, .seg, .segs, .fine, .foot { display: none !important; }
  .group { margin: 16px 0; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
