/* ============ Design tokens (swap these when the brand guideline lands) ============ */
:root {
  --brand: #0E7C5A;
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --surface-3: #F7F8FA;
  --border: #E3E6EB;
  --text: #14181F;
  --text-2: #5A6372;
  /* Outcome colours: validated for colour-blind separation. Draw is a deliberate neutral. */
  --home: #2F6FDB;
  --draw: #A7AFBC;
  --away: #C9581E;
  --on-seg: #FFFFFF;
  --on-draw: #14181F;
  --ok: #1E7F4F;
  --miss: #B4372E;
  --win: #1E7F4F; --drawn: #8A93A3; --loss: #B4372E;
  --live: #12A150;
  --radius: 16px;
  /* Futura is the brand face. Jost (self-hosted, OFL) is the free Futura-style stand-in;
     "Futura PT" wins automatically if a licensed web kit is added later. */
  --font-latin: "Futura PT", Futura, "Jost", "Century Gothic", system-ui, sans-serif;
  /* Kurdish: Noto Kufi Arabic - geometric Kufi with full Sorani coverage. */
  --font-ckb: "Noto Kufi Arabic", "Jost", Tahoma, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3FBF8F;
    --bg: #0C1015;
    --surface: #161B22;
    --surface-2: #202631;
    --surface-3: #1A1F27;
    --border: #2A313D;
    --text: #E9EDF2;
    --text-2: #9AA4B2;
    --home: #5B8FF0;
    --draw: #5E6675;
    --away: #E07B3C;
    --on-seg: #0C1015;
    --on-draw: #E9EDF2;
    --ok: #4CC38A;
    --miss: #F07167;
    --win: #4CC38A; --drawn: #7D8696; --loss: #F07167;
    --live: #3DDC84;
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-latin); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[lang="ckb"] body { font-family: var(--font-ckb); font-size: 15px; line-height: 1.8; }
[lang="en"] { font-family: var(--font-latin); }
[lang="ckb"] { font-family: var(--font-ckb); }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.shell { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
img { display: block; }

/* ============ Header ============ */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-en, .brand-ckb { display: inline-flex; align-items: center; gap: 10px; }
.brand-en img { display: block; height: 34px; width: auto; }
.brand-ckb, .logo-dark { display: none !important; }
html[lang="ckb"] .brand-en { display: none !important; }
html[lang="ckb"] .brand-ckb { display: inline-flex !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ckb"] .brand-name { letter-spacing: 0; text-transform: none; font-size: 1.15rem; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; font-size: .9rem; color: var(--text-2); }
.lang button[lang="en"] { font-family: var(--font-latin); }
.lang button[lang="ckb"] { font-family: var(--font-ckb); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--surface); }

/* ============ Layout: leagues | matches | snapshot ============ */
main.shell { padding-top: 20px; padding-bottom: 24px; flex: 1 0 auto; width: 100%; }
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.side-left, .side-right { display: none; }
@media (min-width: 900px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .side-left { display: block; position: sticky; top: 84px; }
  .league-chips { display: none !important; }
}
@media (min-width: 1240px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr) 280px; }
  .side-right { display: grid; gap: 16px; position: sticky; top: 84px; }
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel.pad { padding: 20px 24px; margin-bottom: 16px; }
.panel-title { font-size: 1rem; padding: 16px 18px 6px; margin: 0; }

/* League sidebar */
.league-list { list-style: none; margin: 0; padding: 4px 8px 10px; }
.league-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border: 0; background: none; border-radius: 10px; text-align: start;
}
.league-item:hover { background: var(--surface-3); }
.league-item[aria-pressed="true"] { background: var(--surface-2); }
.league-item[aria-pressed="true"] .league-label { font-weight: 600; }
.league-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.league-label { font-size: .95rem; }
.league-sub { font-size: .75rem; color: var(--text-2); }
.league-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.all-logo { border-radius: 6px; background:
  linear-gradient(var(--text-2), var(--text-2)) 50% 30% / 60% 2px no-repeat,
  linear-gradient(var(--text-2), var(--text-2)) 50% 50% / 60% 2px no-repeat,
  linear-gradient(var(--text-2), var(--text-2)) 50% 70% / 60% 2px no-repeat; }
.count { font-size: .75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Day bar: ‹ Today ▾ › */
.daybar { padding: 10px; margin-bottom: 16px; display: grid; gap: 10px; }
.day-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.icon-btn:not(:disabled):hover { background: var(--border); }
.chev { display: inline-block; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; }
.chev-back { transform: rotate(135deg); margin-inline-start: 3px; }
.chev-fwd { transform: rotate(-45deg); margin-inline-end: 3px; }
[dir="rtl"] .chev-back { transform: rotate(-45deg); }
[dir="rtl"] .chev-fwd { transform: rotate(135deg); }
.chev-down { transform: rotate(45deg) translateY(-2px); }
.chev-up { transform: rotate(-135deg) translateY(-2px); }
.day-pick { position: relative; }
.day-current { border: 0; background: none; font-weight: 600; font-size: 1.15rem; padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; }
.day-current:hover { background: var(--surface-3); }
.caret { width: 0; height: 0; border-inline: 5px solid transparent; border-top: 6px solid currentColor; }
.day-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 240px; max-height: 360px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgb(0 0 0 / .14);
}
.day-menu li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.day-menu li:hover, .day-menu li:focus { background: var(--surface-3); outline: none; }
.day-menu li[aria-selected="true"] { background: var(--surface-2); font-weight: 600; }
.filter-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: .88rem; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.pill-btn { border: 1px solid var(--border); background: var(--surface); padding: 5px 14px; border-radius: 999px; font-size: .88rem; color: var(--text-2); }
.pill-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.league-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; }
.league-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .88rem; white-space: nowrap;
}
.chip .league-logo { width: 18px; height: 18px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

/* ============ League groups & match rows ============ */
.group { margin-bottom: 16px; overflow: hidden; }
.group-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border: 0; background: var(--surface-3); border-bottom: 1px solid var(--border); text-align: start;
}
.is-collapsed .group-head { border-bottom: 0; }
.group-title { flex: 1; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.group-country { color: var(--text-2); font-size: .85rem; }
.group-country::after { content: "·"; margin-inline-start: 8px; }
.group-name { font-weight: 600; }
.group-head .chev { color: var(--text-2); }
.rows > .match + .match { border-top: 1px solid var(--border); }

.match { padding: 4px 0 12px; }
.match-head {
  width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 76px minmax(0, 1fr) 40px;
  align-items: center; gap: 10px; padding: 10px 12px 6px; border: 0; background: none; text-align: start;
}
.match-head:hover .name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.m-status { display: flex; align-items: center; gap: 6px; }
.m-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.m-home { justify-content: flex-end; text-align: end; }
.m-team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-mid { text-align: center; }
.time { font-weight: 600; font-variant-numeric: tabular-nums; }
.score { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-more { display: grid; place-items: center; color: var(--text-2); }
.is-open .m-more .chev { transform: rotate(-135deg) translateY(-2px); }
.status-pill { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
html[lang="ckb"] .status-pill { text-transform: none; letter-spacing: 0; }
.status-live { color: var(--text); }
.crest { width: 28px; height: 28px; object-fit: contain; flex: none; }
.crest-fallback { display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: .6rem; font-weight: 700; font-family: var(--font-latin); }

.match-body { padding: 0 64px 0 94px; display: grid; gap: 6px; }
[dir="rtl"] .match-body { padding: 0 94px 0 64px; }
/* Probability bar: 2px surface gaps, rounded ends, every segment labelled */
.bar { display: flex; gap: 2px; height: 24px; border-radius: 7px; overflow: hidden; }
.seg { display: flex; align-items: center; justify-content: center; min-width: 34px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-h { background: var(--home); color: var(--on-seg); }
.seg-d { background: var(--draw); color: var(--on-draw); }
.seg-a { background: var(--away); color: var(--on-seg); }
.verdict { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .86rem; margin: 0; }
.badge { font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tier-strong { color: var(--text); font-weight: 600; }
.badge-model { border: 1px dashed var(--text-2); background: none; }
.badge-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); font-weight: 600; }
.badge-miss { color: var(--miss); background: color-mix(in srgb, var(--miss) 14%, transparent); font-weight: 600; }
.details { margin: 10px 18px 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.details p { margin: 8px 0 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side h4 { font-size: .9rem; margin-bottom: 6px; }
.side dl { margin: 0; display: grid; gap: 2px; font-size: .82rem; }
.side dt { color: var(--text-2); }
.side dd { margin: 0 0 6px; }
.form { display: inline-flex; gap: 3px; }
.wdl { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: .7rem; font-weight: 700; color: #fff; }
.wdl-W { background: var(--win); } .wdl-D { background: var(--drawn); } .wdl-L { background: var(--loss); }
.empty { padding: 48px 16px; text-align: center; }

/* Narrow screens: compact rows, bar spans the row */
@media (max-width: 640px) {
  .match-head { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 20px; gap: 8px; padding: 10px 12px 6px; }
  .m-status { display: none; }
  .match-body, [dir="rtl"] .match-body { padding: 0 12px; }
  .m-team { font-size: .92rem; gap: 8px; }
  .crest { width: 24px; height: 24px; }
  .details { margin: 10px 12px 0; }
}

/* Right column snapshot */
.snap { padding-bottom: 14px; }
.snap .small { margin: 0; padding: 0 18px; }
.snap-row { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.snap-label { font-size: .85rem; }
.snap-val { font-size: 1.4rem; font-weight: 700; grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; }
.link-more { display: inline-block; margin: 12px 18px 0; font-weight: 600; font-size: .9rem; text-decoration: none; }

/* ============ Record & about pages ============ */
.page { max-width: 920px; margin: 0 auto; }
.intro { padding: 12px 0 16px; }
.intro p { margin: 0; }
.panel.pad h2 { font-size: 1.2rem; }
.panel.pad h3 { font-size: 1rem; margin-top: 20px; }
.td-league { display: inline-flex; align-items: center; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.tile { background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.tile-label { font-size: .8rem; color: var(--text-2); }
.tile-value { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-note { font-size: .75rem; color: var(--text-2); }
.table-wrap { overflow-x: auto; }
.caltable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.caltable th, .caltable td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: start; }
.caltable th { font-weight: 600; color: var(--text-2); font-size: .78rem; }
.caltable .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calcell { width: 40%; min-width: 120px; }
.cal { height: 6px; background: var(--surface-2); border-radius: 3px; margin: 3px 0; }
.cal > div { height: 100%; border-radius: 3px; }
.cal-said, .sw-said { background: var(--text-2); }
.cal-act, .sw-act { background: var(--home); }
.cal-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--text-2); }
.sw { display: inline-block; width: 12px; height: 6px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.prose { max-width: 72ch; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 1.15rem; margin-top: 24px; }
.callout { background: var(--surface-3); border: 1px solid var(--border); border-inline-start: 4px solid var(--brand); padding: 12px 16px; border-radius: 8px; }

/* ============ Track record: league tabs and week-by-week ============ */
.rec-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
.rec-tabs::-webkit-scrollbar { display: none; }
.rec-tabs .chip[aria-selected="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: .85rem; }
.panel.pad > .link-btn { margin-top: 12px; }
.weeks-title { font-size: 1.1rem; margin: 8px 4px 12px; }
.week { margin-bottom: 10px; overflow: hidden; }
.week-head {
  width: 100%; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(80px, 160px) auto 16px;
  align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: none; text-align: start;
}
.week.is-open .week-head { border-bottom: 1px solid var(--border); background: var(--surface-3); }
.week-title { font-weight: 600; }
.week-called { font-size: .88rem; font-variant-numeric: tabular-nums; }
.week-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.wb-ok { background: var(--ok); } .wb-miss { background: var(--miss); }
.week-head .chev { color: var(--text-2); }
.rrow {
  display: grid; align-items: center; gap: 6px 12px; padding: 10px 18px;
  grid-template-columns: 64px minmax(0, 1fr) 56px minmax(0, 1fr) minmax(190px, 1.1fr) auto;
}
.rrow + .rrow { border-top: 1px solid var(--border); }
.r-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .9rem; }
.r-home { justify-content: flex-end; text-align: end; }
.r-team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-team .crest { width: 22px; height: 22px; }
.r-score { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-date { font-size: .8rem; white-space: nowrap; }
.r-pick { display: grid; gap: 4px; font-size: .82rem; min-width: 0; }
.r-out { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mini-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.mini-bar i { display: block; }
@media (max-width: 760px) {
  .week-head { grid-template-columns: 1fr auto 16px; gap: 6px 10px; }
  .week-bar { grid-column: 1 / -1; grid-row: 2; }
  .week-brier { display: none; }
  .rrow { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); padding: 10px 12px; }
  .r-date { grid-column: 1 / -1; }
  .r-pick { grid-column: 1 / 3; }
  .r-out { grid-column: 3; }
}

/* ============ Footer & mobile tab bar ============ */
.foot { border-top: 1px solid var(--border); margin-top: 24px; padding: 20px 0 32px; font-size: .9rem; background: var(--surface); }
.foot p { margin: 4px 0; }
.tabbar { display: none; }
@media (max-width: 899px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .top-row { min-height: 56px; }
  main.shell { padding-top: 12px; padding-left: 10px; padding-right: 10px; }
  .daybar { position: sticky; top: 57px; z-index: 10; box-shadow: 0 6px 16px rgb(0 0 0 / .06); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
    background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; text-decoration: none; color: var(--text-2); font-size: .72rem; }
  .tabbar a[aria-current] { color: var(--text); font-weight: 600; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .panel.pad { padding: 16px; }
}

/* ============ Live ============ */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--live); text-transform: uppercase; letter-spacing: .04em; }
html[lang="ckb"] .live-pill { text-transform: none; letter-spacing: 0; }
.m-mid { display: grid; justify-items: center; gap: 0; }
.score-live { color: var(--live); }
.live-min { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--live); font-variant-numeric: tabular-nums; }
.match.is-live { box-shadow: inset 3px 0 0 var(--live); }
[dir="rtl"] .match.is-live { box-shadow: inset -3px 0 0 var(--live); }
.seg-live { display: inline-flex; align-items: center; gap: 6px; }

/* ============ xG pitch page ============ */
/* The page is locked to the window height and the pitch fills what is left under the header
   (and above the mobile tab bar), edge to edge, so the page itself never scrolls. */
body[data-route="xg"] { height: 100vh; height: 100dvh; overflow: hidden; }
body[data-route="xg"] main.shell { max-width: none; padding: 0; flex: 1 1 auto; min-height: 0; display: flex; }
body[data-route="xg"] .foot { display: none; }
.xg-view { flex: 1 1 auto; min-height: 0; display: flex; }
.xg-view[hidden] { display: none; }
.xg-view iframe { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; border: 0; display: block; }
@media (max-width: 899px) {
  .tabbar { grid-template-columns: repeat(4, 1fr); }
}

/* A view with display:grid must still hide when [hidden] */
.view[hidden] { display: none !important; }

/* Live inside the track record */
.rrow.is-live { box-shadow: inset 3px 0 0 var(--live); }
[dir="rtl"] .rrow.is-live { box-shadow: inset -3px 0 0 var(--live); }
.rec-tabs .chip .live-dot { margin-inline-start: 2px; }
.week-called { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#status-filter [hidden] { display: none; }
