/* The live phone page. Light by default, dark when the phone is dark (or the
   viewer picks it with the header button). Every colour is a token here. */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-top: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --header: rgba(255, 255, 255, 0.94);
  --ink: #16191d;
  --muted: #5c6670;
  --accent: #0866c6;
  --accent-ink: #ffffff;
  --mark: #0b4f9c;
  --mark-bg: rgba(8, 102, 198, 0.1);
  --good: #18794a;
  --good-bg: rgba(24, 121, 74, 0.12);
  --bad: #c0392b;
  --bad-bg: rgba(192, 57, 43, 0.1);
  --warn: #0a4a8f;
  --warn-bg: #e8f3ff;
  --line: rgba(15, 23, 42, 0.1);
  --sticky: #ffffff;
  --sticky-me: #dcebfd;
  --sticky-cur: #e6eef9;
  --cur-bg: rgba(29, 95, 191, 0.1);
  --light-off: #d5dae1;
  --light-off-edge: #b8c0ca;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #080c14;
  --bg-top: #1a1f26;
  --surface: #181c22;
  --surface-2: #222830;
  --header: rgba(15, 18, 22, 0.94);
  --ink: #eef1f5;
  --muted: #9aa4af;
  --accent: #4fb3ff;
  --accent-ink: #0f1216;
  --mark: #9fd4ff;
  --mark-bg: rgba(159, 212, 255, 0.14);
  --good: #45d68e;
  --good-bg: rgba(69, 214, 142, 0.15);
  --bad: #ff6b6b;
  --bad-bg: rgba(255, 107, 107, 0.15);
  --warn: #7cc4ff;
  --warn-bg: rgba(124, 196, 255, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --sticky: #181c22;
  --sticky-me: #12263f;
  --sticky-cur: #1b2b40;
  --cur-bg: rgba(110, 168, 245, 0.14);
  --light-off: #2a323d;
  --light-off-edge: #3c4757;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #080c14;
    --bg-top: #1a1f26;
    --surface: #181c22;
    --surface-2: #222830;
    --header: rgba(15, 18, 22, 0.94);
    --ink: #eef1f5;
    --muted: #9aa4af;
    --accent: #4fb3ff;
    --accent-ink: #0f1216;
    --mark: #9fd4ff;
    --mark-bg: rgba(159, 212, 255, 0.14);
    --good: #45d68e;
    --good-bg: rgba(69, 214, 142, 0.15);
    --bad: #ff6b6b;
    --bad-bg: rgba(255, 107, 107, 0.15);
    --warn: #7cc4ff;
    --warn-bg: rgba(124, 196, 255, 0.14);
    --line: rgba(255, 255, 255, 0.09);
    --sticky: #181c22;
    --sticky-me: #12263f;
    --sticky-cur: #1b2b40;
    --cur-bg: rgba(110, 168, 245, 0.14);
    --light-off: #2a323d;
    --light-off-edge: #3c4757;
    --shadow: none;
  }
}
/* Referee lights and cards are the sport's signals, not theme colours. */
:root { --ref-white: #ffffff; --ref-red: #e01b1b; --card-blue: #1f5fd6; --card-yellow: #ffd400; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 40px;
  -webkit-text-size-adjust: 100%;
}
header {
  padding: 10px 16px 10px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
}
.toprow { display: flex; align-items: center; gap: 10px; }
.meet-name { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.themebtn { font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.round { font-size: 14px; color: var(--ink); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.clock.low { color: var(--bad); }
.pill { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
.pill-live { color: var(--good); background: var(--good-bg); }
.pill-slow { color: var(--warn); background: var(--warn-bg); }
.pill-offline, .pill-stale { color: var(--bad); background: var(--bad-bg); }
/* Find-yourself. Lives in the static shell so typing survives every update. */
.findrow { display: flex; gap: 8px; }
#q {
  flex: 1; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; min-width: 0;
}
#q::placeholder { color: var(--muted); }
#q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.clearbtn {
  font: inherit; font-weight: 700; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
main { padding: 12px; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
@media (orientation: landscape) { main { max-width: 960px; } }
.card { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.label { font-size: 11px; letter-spacing: .06em; color: var(--accent); font-weight: 800; margin-bottom: 4px; }
.now-name { font-size: 28px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.now-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.now-weight { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.perside { font-size: 13px; color: var(--muted); margin-top: 4px; }
.finished-banner { background: var(--cur-bg); border: 1px solid var(--accent); border-radius: 14px; padding: 18px 16px; text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .03em; color: var(--accent); }
.finished-banner span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.now-prev { font-size: 13px; font-weight: 700; margin-top: 6px; }
.now-prev.good { color: var(--good); }
.now-prev.bad { color: var(--bad); }
.record-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 5px; font-size: 10px; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); vertical-align: 1px; }
.record-chip.new { margin: 6px 0 0; font-size: 14px; background: var(--good); }
.up-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.up-row:last-child { border-bottom: none; }
.up-row.me { background: var(--mark-bg); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.up-pos { font-size: 11px; color: var(--accent); font-weight: 800; min-width: 64px; letter-spacing: .04em; }
.up-name { flex: 1; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-wt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Section breaks in the upcoming list: a label on a rule, not a coloured bar. */
.run-divider { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 14px 0 4px; margin-top: 2px; border-top: 2px solid var(--line); }
.run-divider.lift { color: var(--accent); border-top-color: var(--accent); }
.run-divider.flight { color: var(--ink); border-top-color: var(--ink); }
.run-divider.round { color: var(--muted); border-top: 0; padding-top: 10px; }

/* Collapsible sections. Native details/summary: identical behaviour on
   iOS Safari and Android Chrome, works with no JS at all. */
details.card { padding: 0; overflow: hidden; }
details.card > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-weight: 700; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: '▸'; color: var(--accent); font-size: 13px; transition: transform .15s ease; }
details[open].card > summary::before { transform: rotate(90deg); }
details.card > summary .sum-sub { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: auto; }
details.card > summary .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
details.card > .d-body { padding: 0 16px 14px; }
@media (prefers-reduced-motion: reduce) { details.card > summary::before { transition: none; } .break-track span { transition: none; } }

table { width: 100%; border-collapse: collapse; }
th { text-align: right; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; }
th:first-child { text-align: left; }
td { padding: 7px 6px; font-size: 14px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
td:first-child { text-align: left; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.cur td { background: var(--cur-bg); }
tr.me td { background: var(--mark-bg); }
tr.me td:first-child { color: var(--mark); }
td.good { color: var(--good); font-weight: 700; }
td.bad { color: var(--bad); font-weight: 700; text-decoration: line-through; }
td.curCell, tr.cur td.curCell { background: var(--mark); color: var(--accent-ink); font-weight: 800; border-radius: 6px; }
td.dotsCell { color: var(--ink); font-weight: 800; }
td.totalCell { font-weight: 700; }
td.bestCell { font-weight: 800; }
.rs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; position: relative; contain: content; }
table.runsheet { min-width: 640px; }
table.runsheet th, table.runsheet td { padding: 7px 8px; font-size: 13px; white-space: nowrap; }
table.runsheet th { font-size: 10.5px; letter-spacing: .02em; }
table.runsheet th:first-child, table.runsheet td:first-child {
  position: sticky; left: 0; z-index: 2; text-align: left;
  background: var(--sticky); padding-left: 0; padding-right: 12px;
}
table.runsheet thead th:first-child { z-index: 3; }
table.runsheet tr.me td:first-child { background: var(--sticky-me); }
table.runsheet tr.cur td:first-child { background: var(--sticky-cur); }
table.runsheet tr.grp th { text-align: left; color: var(--accent); font-size: 11px; letter-spacing: .06em; padding-bottom: 0; }
.sex-head { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; padding: 12px 0 4px; }
.cut-row { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 4px 0 8px; }
.cut-grp { display: inline-flex; gap: 4px; }
.cut-btn { font: inherit; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.cut-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
td.placeCell { font-weight: 800; }
td.placeCell .st { color: var(--muted); font-weight: 600; font-size: 11px; }
td.clsCell, td.predCell { color: var(--muted); }
table.runsheet th.liftStart, table.runsheet td.liftStart { border-left: 1px solid var(--line); }
table.runsheet td.curCell { padding: 7px 8px; }
.rs-hint { text-align: right; color: var(--muted); font-size: 11px; margin-top: 6px; }

/* The countdown card: when am I up, what is next, how am I doing. */
.you-card { border: 1px solid var(--mark); background: var(--mark-bg); }
.you-card.warm { border-width: 2px; }
.you-card.platform { border-color: var(--good); background: var(--good-bg); }
.you-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 32px; font-weight: 800; line-height: 1.15; }
.you-card.small .you-out { font-size: 22px; }
.you-eta { font-size: 0.62em; font-weight: 700; color: var(--mark); }
.you-card.platform .you-eta { color: var(--good); }
.you-next { font-size: 15px; color: var(--muted); margin-top: 2px; }
.you-note { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; }
.warm-chip { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--accent-ink); background: var(--mark); }
@media (prefers-reduced-motion: no-preference) { .warm-chip { animation: warm-pulse 1.6s ease-in-out infinite; } }
@keyframes warm-pulse { 50% { opacity: 0.6; } }
.you-stats { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.you-stat .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.you-stat .k { font-size: 10px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.you-head { display: flex; align-items: baseline; gap: 10px; }
.you-head .label { margin-bottom: 0; color: var(--mark); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unpin { margin-left: auto; font: inherit; font-size: 12px; color: var(--muted); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 4px; }
.mine { display: flex; flex-direction: column; gap: 8px; }
.mine-head { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.mine-head .label { margin: 0; color: var(--mark); }
.warm-ctl { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; }
#sec-you > .warm-ctl { align-self: flex-end; margin-top: 6px; }
#sec-you { display: flex; flex-direction: column; }
#sec-you[hidden] { display: none; }
.warm-ctl select { font: inherit; font-size: 12px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; }
.hint-card .you-next { font-size: 14px; }
.match-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer;
}
.match-row.on { border-color: var(--mark); }
.match-row + .match-row { margin-top: 6px; }
.match-row .m-flight { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.match-row .m-flight + .m-flight { margin-left: 0; }
.match-row .m-follow { font-size: 12px; font-weight: 800; color: var(--mark); }
.match-none { color: var(--muted); font-size: 13px; }

.decision { border-radius: 14px; padding: 14px 16px; text-align: center; }
.decision.good { background: var(--good-bg); border: 1px solid var(--good); }
.decision.bad { background: var(--bad-bg); border: 1px solid var(--bad); }
.dec-lights { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.dec-light { width: 30px; height: 30px; border-radius: 50%; background: var(--light-off); border: 2px solid var(--light-off-edge); }
.dec-light.white { background: var(--ref-white); border-color: #b9c3cf; }
.dec-light.red { background: var(--ref-red); border-color: #9a1414; }
.dec-result { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.decision.good .dec-result { color: var(--good); }
.decision.bad .dec-result { color: var(--bad); }
.dec-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.idle { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 17px; }
.stale { text-align: center; color: var(--muted); font-size: 12px; }
.stale-warn {
  padding: 12px 14px; border-radius: 10px; text-align: center;
  background: var(--bad-bg); border: 1px solid var(--bad);
  color: var(--bad); font-weight: 800; letter-spacing: .08em;
}
.stale-warn.offline { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.stale-warn span { display: block; margin-top: 6px; font-weight: 500; letter-spacing: 0; font-size: 12.5px; color: var(--ink); }
.breakbar { background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; }
.break-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.break-head span:first-child { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.break-clock { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.break-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 9px; }
.break-track span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s linear; }
#sec-live { display: flex; flex-direction: column; gap: 12px; }
#sec-live[hidden] { display: none; }
.now-card.upnext .label { color: var(--accent); }
.unknown-meet { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.empty-cell { color: var(--muted); text-align: left !important; }
.you-tag { color: var(--mark); font-size: 12px; font-weight: 800; }

/* Referee reason cards under each red light (IPF red / blue / yellow). */
.dec-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dec-cards { display: flex; gap: 3px; min-height: 16px; }
.dec-card { width: 16px; height: 16px; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 1px var(--line); }
.dec-card.red { background: var(--ref-red); color: #fff; }
.dec-card.blue { background: var(--card-blue); color: #fff; }
.dec-card.yellow { background: var(--card-yellow); color: #111; }
.dec-reasons { font-size: 14px; font-weight: 700; margin-top: 4px; }

/* ------------------------------------------------------------------
   The competition list (index.html, dir.js). Same tokens as the meet page. */
.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; }
.dir-title { flex: 1; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.dir-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dir-tab, .plat-chip {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap; min-height: 36px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dir-tab[aria-selected='true'], .plat-chip[aria-selected='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dir-tab:focus-visible, .plat-chip:focus-visible, .meet-card:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dir-count { font-size: 11px; font-weight: 800; opacity: .8; }
.dir-count:empty { display: none; }
.dir-country { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; max-width: 42%; }
.dir-country[hidden] { display: none; }
.meet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { body.dir main { max-width: 1100px; } .meet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.meet-card { display: block; color: inherit; text-decoration: none; }
.meet-card.is-live { border-color: var(--good); }
.meet-top { display: flex; align-items: center; gap: 8px; }
.meet-top .pill { margin-left: 0; }
.meet-when { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.meet-title { margin: 6px 0 2px; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.meet-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.meet-plats { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.meet-plats li { font-size: 14px; font-weight: 600; }
.meet-plats li.brk { color: var(--accent); }
.pill-done { color: var(--muted); background: var(--surface-2); }
.pill-today { color: var(--mark); background: var(--mark-bg); }
.pill-soon { color: var(--accent); background: var(--cur-bg); }
.linkbtn { margin-top: 12px; font: inherit; font-size: 15px; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.dir-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 4px 16px 0; }

/* ------------------------------------------------------------------
   A meet with more than one platform (app.js): one chip per platform, then Results. */
.plat-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.plat-chips[hidden] { display: none; }
.plat-chip .plat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip, var(--accent)); box-shadow: 0 0 0 1px var(--line); flex: none; }

.plat-chip .plat-live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

.plat-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plat-head .plat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip, var(--accent)); }
.you-plat { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.prov-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px; font-size: 10px; letter-spacing: .1em; color: var(--warn); background: var(--warn-bg); vertical-align: 1px; }
.res-note { font-size: 12px; color: var(--muted); padding: 0 0 6px; }

/* Platform colour on the tabs and the platform header: a bar in the platform's own colour. */
/* Selected platform: a raised white segment ringed in its own colour, so its dot stays solid
   (a blue fill hid a blue dot and read as an empty ring). */
.plat-chip[aria-selected='true'] { background: var(--surface); color: var(--ink); border: 2px solid var(--chip, var(--accent)); padding: 6px 13px; box-shadow: var(--shadow); }
.plat-head[style*='--chip'] { border-left: 4px solid var(--chip); padding-left: 8px; }

/* Between meets (app.js nextMeetCard). */
.next-card { padding: 20px 18px; }
.next-name { font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 2px; overflow-wrap: anywhere; }
.next-meta { font-size: 15px; color: var(--muted); margin-top: 4px; }
.next-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
/* Until someone follows a lifter: one quiet line, not a card. */
.hint-line { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); text-align: center; }
/* Header lines up with the content column on wide screens. */
header > * { width: 100%; max-width: 536px; margin-left: auto; margin-right: auto; }
@media (orientation: landscape) { header > * { max-width: 936px; } }
@media (min-width: 900px) { body.dir header > * { max-width: 1076px; } }

/* Follower alerts: one clear button under the countdown. */
.alert-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.alert-btn { font: inherit; font-size: 15px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border: none; border-radius: 10px; padding: 11px 16px; min-height: 44px; cursor: pointer; }
.alert-ctl .alert-btn { width: 100%; }
.alert-on { color: var(--good); font-weight: 600; }
.linkbtn { font: inherit; font-size: 13px; color: var(--muted); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 6px 4px; min-height: 32px; }
.alert-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* The result card for a finished lifter. */
.card-btn { display: block; width: 100%; margin-top: 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; cursor: pointer; }
.card-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 8, 16, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-sheet { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; width: min(420px, 100%); }
.card-img { display: block; max-width: 100%; max-height: calc(100vh - 290px); height: auto; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.card-actions { display: flex; align-items: center; gap: 12px; width: 100%; }
.card-actions .alert-btn { flex: 1; }
.card-actions .linkbtn, .card-sheet .alert-msg { color: #d5dae1; }
.card-sheet .alert-msg { text-align: center; }

/* What an attempt on the last lift is worth: NEEDS 212.5 KG TO WIN. */
.record-chip.stake { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.record-chip.stake.win { color: #fff; background: var(--good); border-color: transparent; }

/* Lifter and coach links: the weight picker that sends the next attempt to the desk. */
.nom { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.nom-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.nom-head .label { margin: 0; color: var(--ink); }
.nom-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.nom-step { font: inherit; font-size: 26px; font-weight: 700; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nom-step[disabled] { opacity: 0.35; cursor: default; }
.nom-kg { min-width: 92px; text-align: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nom-kg small { font-size: 14px; font-weight: 600; color: var(--muted); }
.nom-send { margin-left: auto; font: inherit; font-size: 15px; font-weight: 700; min-height: 48px; padding: 0 16px; border: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.nom-send[disabled] { opacity: 0.5; cursor: default; }
.nom-status { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.nom-status.is-accepted strong { color: var(--good); }
.nom-status.is-rejected strong, .nom-status.is-failed strong, .nom-status.is-superseded strong { color: var(--bad); }
.nom-status.is-pending strong, .nom-status.is-sent strong { color: var(--warn); }
.card-toggle { display: flex; gap: 6px; width: 100%; }
.card-tab { flex: 1; font: inherit; font-size: 14px; font-weight: 700; color: #d5dae1; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; padding: 10px 12px; min-height: 44px; cursor: pointer; }
.card-tab.on { color: #111; background: #fff; border-color: #fff; }
.card-toggles { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.card-toggles .card-toggle { flex: 1 1 140px; }
.card-copy { display: flex; gap: 8px; width: 100%; }
.card-sheet .card-img { max-height: calc(100vh - 290px); }

/* OnPlatform at the foot of the page, ink on light, white on dark. */
.brandfoot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px 40px; color: var(--muted); font-size: 12px; }
.brandfoot img { display: block; height: 26px; width: auto; }
.brandfoot .bf-dark { display: none; }
:root[data-theme='dark'] .brandfoot .bf-light { display: none; }
:root[data-theme='dark'] .brandfoot .bf-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brandfoot .bf-light { display: none; }
  :root:not([data-theme='light']) .brandfoot .bf-dark { display: block; }
}

/* ==================================================================
   Simplified layout (Nov 2026). Fewer boxes and labels, more room, and
   Apple-style controls: a large title, a segmented platform switch, an
   inset search field. Phones get 44pt+ rows; computers get two columns.
   ================================================================== */
body { font-size: 17px; }
header { padding: 14px 16px 12px; gap: 10px; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.themebtn, .plat-head, .hint-line { display: none; }
.meet-name { font-size: 24px; font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: -.015em; }
.round { font-size: 15px; font-weight: 500; color: var(--muted); }
.round .clock { color: var(--ink); }
.pill { font-size: 11px; padding: 3px 9px; letter-spacing: .04em; }

/* Platform switch: one segmented control, not a row of pills. */
.plat-chips { background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.plat-chip { flex: 1 1 0; justify-content: center; background: transparent; border: 0; border-radius: 9px; min-height: 40px; padding: 6px 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.plat-chip[aria-selected='true'] { background: var(--surface); border: 0; padding: 6px 12px; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.05); }

/* Search: an inset field with a magnifier, 44pt tall. */
#q {
  height: 44px; border: 0; border-radius: 12px; font-size: 17px; padding: 0 14px 0 40px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a939d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") no-repeat 13px center / 18px;
}
#q:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.clearbtn { border: 0; border-radius: 12px; min-height: 44px; font-size: 15px; color: var(--accent); background: none; }

main { padding: 16px; gap: 16px; }
#sec-live { gap: 16px; }
.card { border-radius: 18px; padding: 18px 20px; border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px var(--line); }
.label { font-size: 13px; letter-spacing: .01em; font-weight: 700; margin-bottom: 6px; }
.now-name { font-size: 30px; font-weight: 800; letter-spacing: -.015em; }
.now-sub { font-size: 16px; margin-top: 4px; }
.now-weight { font-size: 56px; letter-spacing: -.02em; margin-top: 6px; }
.perside { font-size: 15px; }
.finished-banner { background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line); border-radius: 18px; padding: 18px 20px; font-size: 22px; letter-spacing: -.01em; color: var(--ink); text-align: left; }
.finished-banner span { font-size: 15px; font-weight: 500; }

/* Coming up: a plain list, the next five, the rest on request. */
.card-title { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.card-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.up-row { align-items: center; gap: 14px; padding: 12px 0; min-height: 48px; }
.up-pos { min-width: 42px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.up-pos.next { color: var(--accent); font-weight: 800; }
.up-name { font-size: 17px; }
.up-wt { font-size: 17px; }
.run-divider, .run-divider.lift, .run-divider.flight { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); padding: 16px 0 2px; }
.run-divider.round { padding-top: 12px; }
.more-btn { display: block; width: 100%; min-height: 48px; margin-top: 4px; font: inherit; font-size: 16px; font-weight: 600; color: var(--accent); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.more-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Not updating / offline: one calm line, red only on the words that matter. */
.stale-warn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 500; letter-spacing: 0; }
.stale-warn strong { color: var(--bad); font-weight: 700; }
.stale-warn span { display: inline; margin: 0; font-size: 14px; color: var(--muted); }
.stale-warn.offline { background: var(--surface); border: 0; color: var(--ink); }
.stale-warn.offline strong { color: var(--ink); }

/* Flights and results: taller rows, room to tap. */
details.card > summary { padding: 16px 20px; min-height: 56px; font-size: 18px; }
details.card > summary .sum-sub { font-size: 14px; }
details.card > .d-body { padding: 0 20px 16px; }
.rs-scroll { margin: 0 -20px; padding: 0 20px; }
table.runsheet th, table.runsheet td { padding: 12px 10px; font-size: 15px; }
table.runsheet th { font-size: 12px; letter-spacing: .02em; }
td { padding: 12px 6px; font-size: 15px; }
.rs-hint { font-size: 13px; }
@media (min-width: 760px) { .rs-hint { display: none; } }

/* The countdown card and its alert button. */
.you-card { border: 0; box-shadow: 0 0 0 2px var(--mark); }
.you-stat .v { font-size: 24px; }
.you-stat .k { font-size: 12px; }
.alert-btn { border-radius: 12px; min-height: 50px; font-size: 17px; }
.card-btn { border-radius: 12px; min-height: 50px; font-size: 16px; }
.warm-ctl, .warm-ctl select { font-size: 14px; }
.warm-ctl select { padding: 6px 8px; border-radius: 8px; }

/* Computers: the live view in two columns, everything else full width. */
@media (min-width: 1000px) {
  header { padding: 18px 24px 14px; }
  header > * { max-width: 1112px; }
  .meet-name { font-size: 30px; }
  main { max-width: 1160px; padding: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 20px; }
  main > * { grid-column: 1 / -1; }
  #sec-status { grid-row: 1; }
  #sec-live { grid-column: 1; grid-row: 2; }
  #sec-you { grid-column: 1; grid-row: 3; }
  #sec-upcoming { grid-column: 2; grid-row: 2 / span 2; }
}
/* Say "not updating" once: the line under the header explains it, so the badge steps aside. */
.pill-stale, .pill-offline { display: none; }
/* One rule between rows, never two. */
.up-row:has(+ .run-divider), .up-row:has(+ .more-btn) { border-bottom: 0; }
/* Nothing coming up (a finished platform): the follow card takes the right-hand column. */
@media (min-width: 1000px) {
  main:has(#sec-upcoming[hidden]) #sec-you { grid-column: 2; grid-row: 2 / span 2; }
}
.you-plat { letter-spacing: 0; font-size: 14px; }
/* The frozen name column pins flush to the card's edge: the scroller has no left
   padding (the gap lives inside the name cell), so nothing can scroll past on its left.
   A soft shade on its right edge shows the numbers are moving under it. */
.rs-scroll { padding-left: 0; }
table.runsheet th:first-child, table.runsheet td:first-child { padding-left: 20px; }
table.runsheet td:first-child, table.runsheet thead th:first-child {
  background-image: linear-gradient(to left, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0) 10px);
}
:root[data-theme='dark'] table.runsheet td:first-child, :root[data-theme='dark'] table.runsheet thead th:first-child { background-image: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 10px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) table.runsheet td:first-child, :root:not([data-theme='light']) table.runsheet thead th:first-child { background-image: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 10px); }
}

/* Tap a name to follow them: names look like names, not buttons, until touched. */
.name-btn { font: inherit; color: inherit; font-weight: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-tap-highlight-color: rgba(8, 102, 198, 0.15); }
.name-btn:hover { color: var(--accent); }
.name-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.now-name .name-btn { white-space: normal; text-align: left; }
.up-name { display: flex; min-width: 0; }

/* The follow prompt: a sheet from the bottom on a phone, a small dialog on a computer. */
.ask-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 8, 16, 0.45); padding: 12px; }
.ask-sheet { width: min(440px, 100%); background: var(--surface); color: var(--ink); border-radius: 22px; padding: 24px 20px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 6px; }
.ask-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ask-sub { font-size: 15px; color: var(--muted); }
.ask-msg { margin: 6px 0 12px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.ask-main { width: 100%; }
.ask-cancel { font: inherit; font-size: 17px; font-weight: 600; color: var(--accent); background: none; border: 0; min-height: 48px; cursor: pointer; }
@media (min-width: 700px) { .ask-modal { align-items: center; } }

/* Results so far on the lifter card. */
.you-lifts { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.yl-row { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.yl-lift { font-size: 15px; font-weight: 700; }
.yl-att { font-size: 16px; text-align: right; color: var(--muted); }
.yl-att.good { color: var(--good); font-weight: 700; }
.yl-att.bad { color: var(--bad); text-decoration: line-through; }
.yl-att.todo { color: var(--ink); }
.yl-att.now { color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 6px; font-weight: 800; }
.yl-best { font-size: 17px; font-weight: 800; text-align: right; }
.you-lifts.compact .yl-row { padding: 5px 0; }
.you-lifts.compact .yl-att, .you-lifts.compact .yl-lift { font-size: 14px; }

/* Their flight, straight under the card. */
.you-flight { margin-top: 16px; }
.you-flight .card-title .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); align-self: center; }
.you-flight .rs-scroll { margin: 0 -20px; }

/* Coach view: everyone followed, one row each, soonest first. */
.coach-card { padding-bottom: 8px; }
.co-item { border-top: 1px solid var(--line); }
.co-item:first-of-type { border-top: 0; }
.co-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 0; font: inherit; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.co-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.co-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-name { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.co-status { font-size: 15px; font-weight: 800; color: var(--ink); }
.co-eta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-chev { flex: none; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .15s ease; }
.co-item.open .co-chev { transform: rotate(90deg); }
.co-item.warm .co-status, .co-item.platform .co-status { color: var(--accent); }
.co-item.warm .co-row, .co-item.platform .co-row { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.co-detail { padding: 0 0 14px; }
.co-detail .you-lifts { margin-top: 0; }
.co-unfollow { display: block; width: 100%; min-height: 44px; margin-top: 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--bad); background: none; border: 0; cursor: pointer; }
.co-hint { margin: 6px 0 4px; font-size: 13px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .co-chev { transition: none; } }

/* ---- The lifter card: the story card's look, live on the page. Always the
   meet's dark card colours, in light mode too, so it reads as the same thing
   people share. */
.lc {
  --lc-top: #0d2a4a; --lc-bottom: #04101f; --lc-acc: #3ea2ff; --lc-acc-soft: rgba(62,162,255,.16); --lc-on: #ffffff;
  --ink: #ffffff; --muted: rgba(255,255,255,.66); --line: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.08); --surface-2: rgba(255,255,255,.06);
  --accent: var(--lc-acc); --accent-ink: var(--lc-on); --mark: var(--lc-acc);
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; border: 0; box-shadow: 0 10px 30px rgba(4,16,31,.28);
  background: linear-gradient(160deg, var(--lc-top), var(--lc-bottom));
  padding: 22px 20px 16px;
}
.lc::before { content: ''; position: absolute; z-index: -1; inset: -20% -10% auto 35%; height: 140%;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.045) 46px 92px, transparent 92px 150px);
  pointer-events: none; }
.lc.warm { box-shadow: 0 0 0 3px var(--lc-acc), 0 10px 30px rgba(4,16,31,.28); }
.lc-top { display: flex; align-items: center; gap: 10px; }
.lc-meet { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-unpin { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; }
.lc-count { flex: none; min-width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--lc-acc); color: var(--lc-on); font-size: 14px; font-weight: 900; }
.lc-stripes { display: flex; gap: 6px; margin: 12px 0 10px; height: 7px; }
.lc-stripes i { display: block; height: 100%; background: var(--lc-acc); transform: skewX(-40deg); }
.lc-stripes i:first-child { width: 42%; max-width: 220px; }
.lc-stripes i:not(:first-child) { width: 12px; }
.lc-name { font-size: clamp(30px, 9.5vw, 46px); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lc.small .lc-name { font-size: 28px; }
.lc-name-list { font-size: 30px; margin-bottom: 6px; }
.lc-sub { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.lc-status { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.lc-badge { flex: none; position: relative; padding: 9px 20px 9px 16px; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--lc-on); background: var(--lc-acc); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.lc.platform .lc-badge { font-size: 18px; }
.lc-when { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-eta { font-size: 17px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.lc-next { font-size: 14px; color: var(--muted); }
.lc-warm { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--lc-acc); font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) { .lc-warm { animation: warm-pulse 1.6s ease-in-out infinite; } }
.lc-note { margin-top: 8px; font-size: 13px; color: var(--muted); font-style: italic; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lc-chip { padding: 5px 12px; border-radius: 999px; border: 2px solid var(--lc-acc); background: var(--lc-acc-soft); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.lc .nom { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.lc .nom-step { background: rgba(255,255,255,.1); border-color: transparent; }
.lc-lifts { margin-top: 18px; font-variant-numeric: tabular-nums; }
.lc-lrow { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); align-items: center; gap: 4px; padding: 7px 0; border-top: 1px solid var(--line); }
.lc-lhead { border-top: 0; padding: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lc-lhead span { text-align: center; }
.lc-lift { font-size: 14px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-att { font-size: 17px; font-weight: 800; text-align: center; }
.lc-att.none, .lc-att.todo { color: var(--muted); font-weight: 600; }
.lc-att.bad { color: rgba(255,255,255,.5); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; }
.lc-att.now { justify-self: center; padding: 1px 8px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--lc-acc); }
.lc-best { justify-self: stretch; text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--lc-acc); color: var(--lc-on); font-size: 18px; font-weight: 900; font-style: italic; }
.lc-best.none { background: none; color: var(--muted); font-style: normal; font-weight: 600; }
.lc-lifts.compact .lc-lrow { padding: 4px 0; }
.lc-lifts.compact .lc-att, .lc-lifts.compact .lc-lift { font-size: 14px; }
.lc-lifts.compact .lc-best { font-size: 15px; padding: 3px 4px; }
.lc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.lc-total-k { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-total-label { font-size: 16px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.lc-total-sub { font-size: 13px; font-weight: 700; color: var(--muted); }
.lc-total-v { font-size: 52px; line-height: .9; font-weight: 900; font-style: italic; color: var(--lc-acc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-total-v small { margin-left: 4px; font-size: 18px; font-style: normal; color: var(--muted); }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.lc-foot-note { font-size: 12px; font-weight: 600; color: var(--muted); }
.lc-mark { flex: none; height: 22px; width: auto; opacity: .9; }
.lc-share { flex: 1; font: inherit; font-size: 16px; font-weight: 800; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--lc-acc); color: var(--lc-on); cursor: pointer; }
.co-detail .lc-share { display: block; width: 100%; margin-top: 10px; }
/* The coach list inside the card. */
.lc .co-item { border-top-color: var(--line); }
.lc .co-item:first-of-type { border-top: 1px solid var(--line); }
.lc .co-name { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.lc .co-status { font-size: 13px; font-weight: 900; font-style: italic; text-transform: uppercase; padding: 4px 12px 4px 10px; background: rgba(255,255,255,.1); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.lc .co-item.warm .co-status, .lc .co-item.platform .co-status { color: var(--lc-on); background: var(--lc-acc); }
.lc .co-item.warm .co-row, .lc .co-item.platform .co-row { box-shadow: inset 3px 0 0 var(--lc-acc); padding-left: 12px; }
.lc .co-unfollow { color: var(--muted); }
.lc .co-detail .lc-lifts { margin-top: 0; }

/* ---- The header: the brand band. The meet's own card colours, the same
   stripes and italic type as the lifter card and the shared story card, so
   the page and the picture people post read as one product. */
header {
  --hd-acc: var(--lc-acc, #3ea2ff);
  position: sticky; top: 0; z-index: 10; overflow: hidden; isolation: isolate;
  color: #fff; border-bottom: 0; gap: 10px; padding: 12px 16px 14px;
  background: linear-gradient(160deg, var(--lc-top, #0d2a4a), var(--lc-bottom, #04101f));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 6px 20px rgba(4, 16, 31, .22);
}
header::before { content: ''; position: absolute; z-index: -1; inset: -40% -10% -40% 45%;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.05) 40px 80px, transparent 80px 132px);
  pointer-events: none; }
.top-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-stripes { display: flex; gap: 5px; height: 6px; }
.top-stripes i { display: block; height: 100%; background: var(--hd-acc); transform: skewX(-40deg); }
.top-stripes i:first-child { width: 96px; }
.top-stripes i:not(:first-child) { width: 10px; }
.top-mark { height: 18px; width: auto; opacity: .92; }
header .meet-name { font-size: 28px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.02; color: #fff; white-space: normal; overflow-wrap: anywhere; }
header .round { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); gap: 0 6px; }
header .round .clock { color: var(--lc-on, #fff); background: var(--hd-acc); padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
header .round .clock.low { background: #fff; color: #04101f; }
/* Platforms: tabs cut from the same slanted shape as the card badge. */
header .plat-chips { background: rgba(255,255,255,.08); border-radius: 12px; padding: 3px; gap: 2px; }
header .plat-chip { color: rgba(255,255,255,.78); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; min-height: 40px; }
header .plat-chip[aria-selected='true'] { background: var(--hd-acc); color: var(--lc-on, #fff); box-shadow: none; font-style: italic; }
header .plat-chip .plat-dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
header .plat-chip .plat-live { background: #fff; }
header #q { color: #fff; background-color: rgba(255,255,255,.1); }
header #q::placeholder { color: rgba(255,255,255,.6); }
header #q:focus { outline: 2px solid var(--hd-acc); background-color: rgba(255,255,255,.14); }
header .clearbtn { color: #fff; }
@media (min-width: 1000px) {
  header { padding: 18px 24px 16px; }
  header .meet-name { font-size: 40px; }
  .top-mark { height: 22px; }
}

/* Now lifting: the same italic type, on the plain card, so the followed
   lifter's navy card stays the loudest thing on the page. */
.now-card .label { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.now-name { font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.02; }
.now-name .name-btn { font-style: inherit; text-transform: inherit; font-weight: inherit; }
.now-weight { font-size: 60px; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: var(--accent); }
@media (max-width: 520px) {
  header .plat-chip { font-size: 13px; letter-spacing: 0; padding: 6px 6px; gap: 5px; }
}
/* Section titles in the brand's italic, like the cards. */
.card-title { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.card-title .card-unit { font-style: normal; text-transform: none; }
details.card > summary { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
details.card > summary .sum-sub { font-style: normal; text-transform: none; letter-spacing: 0; }
@media (min-width: 1000px) { .top-mark { height: 26px; } }
/* Header and lifter cards take the live stream's gradient. */
header { background: var(--lc-stream, linear-gradient(115deg, #002e5d 30%, #0d4f8d)); }
.lc { background: var(--lc-stream, linear-gradient(115deg, #002e5d 30%, #0d4f8d)); }
/* The selected platform: a clean white tab, the platform's colour dot, and a
   small pulsing dot when that platform is lifting. */
header .plat-chip[aria-selected='true'] { background: #fff; color: #0b1220; font-style: normal; }
header .plat-chip .plat-dot { box-shadow: none; width: 9px; height: 9px; }
header .plat-chip[aria-selected='false'] .plat-dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
header .plat-chip .plat-live { width: 6px; height: 6px; margin-left: 2px; background: currentColor; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { header .plat-chip .plat-live { animation: warm-pulse 1.6s ease-in-out infinite; } }
/* The LIVE marker: leads the round line as a pulsing dot and the word, not a green pill. */
header .round .pill { order: -1; margin: 0 4px 0 0; padding: 0; background: none; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; letter-spacing: .12em; color: #fff; }
header .round .pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hd-acc); box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
header .round .pill-slow::before { background: rgba(255,255,255,.55); }
@media (prefers-reduced-motion: no-preference) { header .round .pill-live::before { animation: warm-pulse 1.6s ease-in-out infinite; } }
/* The page's accent is the live stream's accent, made readable for each mode
   (set from the meet's Broadcast colours; these fallbacks are the defaults). */
:root {
  --accent: var(--b-acc-l, #0866c6); --accent-ink: var(--b-on-l, #ffffff);
  --mark: var(--b-acc-l, #0b4f9c); --mark-bg: var(--b-soft-l, rgba(8, 102, 198, 0.1)); --cur-bg: var(--b-soft-l, rgba(29, 95, 191, 0.1));
}
:root[data-theme='dark'] {
  --accent: var(--b-acc-d, #4fb3ff); --accent-ink: var(--b-on-d, #0f1216);
  --mark: var(--b-acc-d, #9fd4ff); --mark-bg: var(--b-soft-d, rgba(159, 212, 255, 0.14)); --cur-bg: var(--b-soft-d, rgba(110, 168, 245, 0.14));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --accent: var(--b-acc-d, #4fb3ff); --accent-ink: var(--b-on-d, #0f1216);
    --mark: var(--b-acc-d, #9fd4ff); --mark-bg: var(--b-soft-d, rgba(159, 212, 255, 0.14)); --cur-bg: var(--b-soft-d, rgba(110, 168, 245, 0.14));
  }
}
@media (max-width: 520px) {
  header .round { font-size: 12px; letter-spacing: .05em; gap: 0 5px; }
  header .round .pill { font-size: 12px; letter-spacing: .08em; margin-right: 2px; }
}
header .round .pill-stale, header .round .pill-offline { display: none; }

/* ---- The meet list (the site's front page) in the same look as the meet
   pages: the italic title, tabs cut like the platform switch, and meet
   cards with the italic name and a pulsing LIVE. */
body.dir header .dir-title { font-size: 28px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.02; color: #fff; overflow-wrap: anywhere; }
@media (min-width: 1000px) { body.dir header .dir-title { font-size: 40px; } }
body.dir header .dir-tabs { background: rgba(255,255,255,.08); border-radius: 12px; padding: 3px; gap: 2px; }
body.dir header .dir-tab { flex: 1 1 0; justify-content: center; background: transparent; border: 0; border-radius: 9px; min-height: 40px; padding: 6px 10px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: rgba(255,255,255,.78); box-shadow: none; }
body.dir header .dir-tab[aria-selected='true'] { background: #fff; color: #0b1220; }
body.dir header .dir-count { opacity: .7; }
body.dir header .dir-country { color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 12px; min-height: 44px; }
body.dir header .dir-country option { color: #0b1220; }
.meet-card { transition: transform .12s ease; }
.meet-card:active { transform: scale(.985); }
.meet-card.is-live { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(4,16,31,.12); }
.meet-title { margin: 8px 0 4px; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.05; }
.meet-when { font-size: 13px; font-weight: 700; }
.meet-meta { font-size: 14px; }
.meet-plats li { font-size: 15px; }
.meet-top .pill { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border-radius: 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.meet-top .pill-live { color: var(--accent); }
.meet-top .pill-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .meet-top .pill-live::before { animation: warm-pulse 1.6s ease-in-out infinite; } }
.meet-top .pill-today { color: var(--accent); }
body.dir .brandfoot { margin-top: 18px; }
