/* OLDMAN WOLL: the gentleman's study from the brand portrait (walnut, leather, tweed, burgundy
   tie, brass), with racecard-style condensed figures and betting-slip yellow kept for prices only. */
:root {
  --green: #5c1a24;      /* burgundy (his jumper and pocket square): headings, buttons */
  --walnut: #251912;     /* masthead and footer, like the panelling behind him */
  --brass: #c9a25a;      /* the lamp and the sign's lettering */
  --ink: #221812;        /* body text */
  --chalk: #f7f6f3;      /* page */
  --paper: #ffffff;      /* cards */
  --slip: #f2c230;       /* betting-slip yellow: prices only */
  --sky: #2c5f8a;        /* football */
  --rule: #d9ddd3;
  --muted: #56615a;
  --win: #1d7a45;
  --loss: #a33a2c;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sign: "Cinzel", Georgia, serif;   /* the lettering on his sign: wordmark and main headline only */
  --body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 1rem/1.6 var(--body); }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Masthead */
.masthead { background: var(--walnut); color: #fff; border-bottom: 3px solid var(--brass); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; min-height: 4rem; flex-wrap: nowrap; }
.masthead-inner .nav { flex: 1 1 auto; }
.masthead-inner .account { flex: 0 0 auto; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .7rem; font: 700 1.45rem/1 var(--sign); letter-spacing: .06em; color: var(--brass); text-decoration: none; }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--brass); object-fit: cover; }
.brand small { display: block; font: 500 .8rem/1.3 var(--body); letter-spacing: .02em; color: #e8dcc5; }
.nav { display: flex; gap: .4rem .85rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button.link { color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

.account { margin-left: 1.25rem; }
.account .link { color: #fff; font-weight: 500; }
.tabbar { display: none; }

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--green); line-height: 1.05; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin: 2.5rem 0 1rem; max-width: 20ch; }
.hero h1 { font-family: var(--sign); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 600; margin: 3rem 0 .5rem; }
h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 .5rem; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.note { color: var(--muted); font-size: .9rem; margin-top: 0; }
.small { font-size: .85rem; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding: 1rem 0 2rem; border-bottom: 4px solid var(--brass); }
.hero-portrait { margin: 2rem 0 0; }
.hero-portrait img { display: block; width: 100%; height: auto; border: 6px solid var(--walnut); outline: 2px solid var(--brass); outline-offset: -12px; }
.hero-portrait figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.button { display: inline-block; background: var(--green); color: #fff; border: 2px solid var(--green); padding: .7rem 1.3rem; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; border-radius: 3px; }
.button.quiet { background: transparent; color: var(--green); margin-left: .5rem; }
.button:hover { background: #431219; }
.button.quiet:hover { background: #f1e6e7; }

/* Track record table */
.record table { width: 100%; border-collapse: collapse; background: var(--paper); }
.record th, .record td { padding: .65rem .75rem; text-align: right; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.record th:first-child, .record td:first-child { text-align: left; }
.record thead th { font: 600 1rem var(--display); color: var(--muted); border-bottom: 2px solid var(--ink); }
.pos { color: var(--win); font-weight: 600; }
.neg { color: var(--loss); font-weight: 600; }
.record-scroll { overflow-x: auto; }

.grades { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0; }
.grades div { border-left: 4px solid var(--brass); padding: .25rem 0 .25rem 1rem; }
.grades dt { font: 600 1.25rem var(--display); color: var(--green); }
.grades dd { margin: .25rem 0 0; }

.nobet { margin: 2rem 0; padding: 1rem 1.25rem; background: var(--paper); border: 1px dashed var(--rule); }
.nobet dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.nobet dt { font-weight: 600; }
.nobet dd { margin: 0; color: var(--muted); }

/* Picks: each one laid out like a racecard line */
.card { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; background: var(--paper); border-top: 4px solid #1f5c3c; padding: 1rem 1.25rem; margin: 0 0 1rem; }
.card.football { border-top-color: var(--sky); }
.card-label { grid-column: 1 / -1; font: 600 1.05rem var(--display); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.card-sel { font: 700 1.8rem/1.1 var(--display); color: var(--ink); }
.card-event { color: var(--muted); }
.card-price { grid-row: 2 / span 2; grid-column: 2; align-self: center; text-align: center; background: var(--slip); color: var(--ink); padding: .5rem .9rem; min-width: 5.5rem; }
.card-price b { display: block; font: 700 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.card-price span { font-size: .8rem; }
.chance { grid-column: 1 / -1; margin-top: .6rem; }
.chance-bar { position: relative; height: .6rem; background: #e7eae3; }
.chance-bar .model { position: absolute; inset: 0 auto 0 0; background: #1f5c3c; }
.chance-bar .market { position: absolute; top: -.25rem; bottom: -.25rem; width: 2px; background: var(--ink); }
.card.football .chance-bar .model { background: var(--sky); }
.chance-text { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.legs { grid-column: 1 / -1; margin: .5rem 0 0; padding-left: 1.2rem; }
.result { font-weight: 600; }
.result.win, .result.placed { color: var(--win); }
.result.loss, .result.unplaced { color: var(--loss); }

.age-gate { max-width: 34rem; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; margin: 1rem 0; }
.check input { width: 1.25rem; height: 1.25rem; }
.form-error { color: var(--loss); font-weight: 600; }
.loading { color: var(--muted); }

.footer { margin-top: 4rem; background: var(--walnut); color: #ece4d6; padding: 2rem 0; border-top: 3px solid var(--brass); }
.footer a { color: #fff; }
.footer .small { color: #cbbfa9; }
.eighteen strong { display: inline-block; border: 2px solid #fff; border-radius: 50%; width: 2.4rem; height: 2.4rem; line-height: 2.1rem; text-align: center; margin-right: .5rem; font-family: var(--display); }

@media (max-width: 36rem) {
  .brand small { display: none; }
  .card { grid-template-columns: 1fr; }
  .card-price { grid-row: auto; grid-column: 1; justify-self: start; display: flex; gap: .6rem; align-items: baseline; }
  .button.quiet { margin: .75rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Shown while a paused test database wakes up */
body.waking::after { content: "Loading. The test database is waking up, which takes a few seconds."; position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; font-size: .9rem; max-width: 90vw; }

/* What the model says */
.says-day { font-size: 1.1rem; margin-bottom: .5rem; }
.says { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .4rem; }
.says li { font-size: 1.05rem; display: flex; align-items: baseline; gap: .6rem; }
.says b { flex: none; display: inline-block; min-width: 1.6rem; font: 700 1.6rem/1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- phones: app layout
   Slim top bar, bottom tab bar, compact portrait, 44px touch targets, notch-safe spacing. */
@media (max-width: 48rem) {
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .wrap { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .masthead { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); }
  .masthead-inner { min-height: 3.5rem; flex-wrap: nowrap; }
  .brand { font-size: 1.15rem; gap: .55rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .brand small { display: none; }
  .nav { display: none; }
  .account { display: none; }   /* the tab bar carries Sign in / Sign out on phones */

  /* Compact hero: small framed portrait beside a shorter headline */
  .hero { grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start; padding: 1.25rem 0 1.5rem; }
  .hero > div:first-child { display: contents; }
  .hero h1 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.35rem; line-height: 1.2; align-self: center; }
  .hero .lede { grid-column: 1 / -1; font-size: 1rem; margin: 0; }
  .hero p:last-child { grid-column: 1 / -1; margin: 0; }
  .hero-portrait { grid-column: 1; grid-row: 1; order: 0; margin: 0; max-width: none; }
  .hero-portrait img { border-width: 3px; outline-offset: -7px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; }

  h1 { font-size: 1.9rem; margin: 1.25rem 0 .75rem; }
  h2 { font-size: 1.6rem; margin: 2rem 0 .4rem; }
  .button { display: block; width: 100%; text-align: center; min-height: 48px; padding: .8rem 1rem; }
  .button.quiet { margin: .75rem 0 0; }
  .says b { font-size: 1.4rem; }
  .nobet { padding: .9rem 1rem; }
  .nobet dl { grid-template-columns: 1fr; gap: .1rem; }
  .nobet dd { margin-bottom: .6rem; }
  .grades { grid-template-columns: 1fr; }

  /* Picks: full-bleed cards like an app list */
  .card { margin: 0 -1rem .75rem; padding: .9rem 1rem; }
  .card-sel { font-size: 1.5rem; }
  .check { min-height: 44px; }
  .check input { width: 1.5rem; height: 1.5rem; }

  /* Results table becomes stacked rows */
  .record table, .record tbody, .record tr, .record td { display: block; width: 100%; }
  .record thead { display: none; }
  .record tr { background: var(--paper); margin-bottom: .6rem; padding: .5rem .75rem; }
  .record td { display: flex; justify-content: space-between; border: 0; padding: .2rem 0; text-align: right; }
  .record td:first-child { font-weight: 600; text-align: left; }
  .record td:nth-child(2)::before { content: "Settled"; }
  .record td:nth-child(3)::before { content: "Won"; }
  .record td:nth-child(4)::before { content: "Staked"; }
  .record td:nth-child(5)::before { content: "Returned"; }
  .record td:nth-child(6)::before { content: "Profit"; }
  .record td:nth-child(7)::before { content: "Return on stake"; }
  .record td::before { color: var(--muted); font-weight: 400; }

  .footer { margin-top: 2.5rem; padding: 1.5rem 0; font-size: .9rem; }

  /* Bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
            background: var(--walnut); border-top: 2px solid var(--brass); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
            min-height: 3.75rem; color: #d8ccb6; text-decoration: none; font: 500 .75rem var(--body); background: none; border: 0; cursor: pointer; }
  .tabbar svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
  .tabbar a[aria-current="page"] { color: var(--brass); font-weight: 700; box-shadow: inset 0 3px 0 var(--brass); background: rgba(201, 162, 90, .12); }
}

/* What the model says: football and racing kept apart, rolled up by week */
.headline { font: 600 1.35rem/1.3 var(--body); color: var(--ink); margin: .5rem 0 1rem; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.total { background: var(--paper); border-top: 4px solid var(--brass); padding: .8rem 1rem; }
.total.football { border-top-color: var(--sky); }
.total.racing { border-top-color: #1f5c3c; }
.total h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.total-wl { font: 700 2rem/1 var(--display); margin: 0; font-variant-numeric: tabular-nums; }
.total-wl span { font: 500 .9rem var(--body); color: var(--muted); }
.total-pnl { font-weight: 600; margin: .35rem 0 0; font-variant-numeric: tabular-nums; }
.total-pnl span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); font-size: .9rem; }
.run { margin: 1rem 0; }
.by-week { margin-top: 1.5rem; }
.week { background: var(--paper); margin-bottom: .75rem; border-left: 4px solid var(--brass); }
.week > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; cursor: pointer; min-height: 48px; font-weight: 600; list-style: none; }
.week > summary::-webkit-details-marker { display: none; }
.week > summary::after { content: "▾"; color: var(--muted); }
.week[open] > summary::after { content: "▴"; }
.week-name { flex: 1; }
.week-lines { padding: 0 1rem .5rem; border-bottom: 1px solid var(--rule); }
.ln { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-variant-numeric: tabular-nums; }
.ln-name { color: var(--muted); }
.days { list-style: none; margin: 0; padding: 0 1rem .5rem; }
.day { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.day:last-child { border-bottom: 0; }
.day-head { display: flex; justify-content: space-between; margin-bottom: .25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; }
.chip { font-size: .8rem; background: #f1efe9; padding: .2rem .5rem; border-radius: 1rem; }
.chip.win b, .chip.placed b { color: var(--win); }
.chip.loss b, .chip.unplaced b { color: var(--loss); }
@media (max-width: 48rem) {
  .totals { grid-template-columns: 1fr; gap: .5rem; }
  .total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 1rem; }
  .total h3 { grid-column: 1 / -1; }
  .total-wl { font-size: 1.7rem; }
  .total-pnl { margin: 0; text-align: right; }
  .headline { font-size: 1.2rem; }
}

/* Old Man Woll's daily line */
.today { background: var(--paper); border-left: 4px solid var(--brass); padding: .7rem 1rem; margin: 0 0 1.25rem; }
.today p { margin: .2rem 0; font-size: 1.05rem; }
.today:empty { display: none; }
@media (max-width: 48rem) {
  .today { grid-column: 1 / -1; margin: 0; }
}

/* ---------------------------------------------------------------- release stages
   Pre-alpha (grey, rough) -> Alpha (brass) -> Beta (tweed blue) -> Live (burgundy, the paid membership). */
.stage { display: inline-block; vertical-align: middle; font: 700 .72rem/1 var(--body); letter-spacing: .03em;
         padding: .28rem .5rem; border-radius: 2px; border: 1.5px solid currentColor; white-space: nowrap; }
.stage.prealpha { color: #5d5d58; background: #ecebe6; border-style: dashed; }
.stage.alpha { color: #6b4e14; background: #f6ecd3; }
h1 .stage, h2 .stage { font-size: .8rem; margin-left: .35rem; position: relative; top: -.15em; }

.stage-strip { background: #f6ecd3; border-bottom: 1px solid #e3cf9f; font-size: .88rem; }
.stage-strip a { display: grid; gap: .35rem; padding: .5rem 0; color: var(--ink); text-decoration: none; }
.stage-row { display: flex; align-items: baseline; gap: .5rem; }
.stage-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.stage-label { font-weight: 600; min-width: 9.5rem; }
.stage-strip .how { text-decoration: underline; color: var(--green); font-weight: 600; }

.stages { margin: 2rem 0 0; }
.stages > p { max-width: 62ch; }
.stage-track { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.st { position: relative; padding: 1.6rem .9rem .9rem 0; border-top: 4px solid var(--rule); counter-increment: st; }
.st::before { content: counter(st); position: absolute; top: -.85rem; left: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%;
              background: var(--chalk); border: 3px solid var(--rule); font: 700 .8rem/1.05rem var(--body); text-align: center; color: var(--muted); }
.st b { display: block; font: 700 1.3rem/1.1 var(--display); color: var(--ink); }
.st span { display: block; font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.st .here { display: inline-block; margin-top: .5rem; font: 700 .8rem var(--body); font-style: normal; padding: .2rem .5rem; }
.st.prealpha, .st.alpha { border-top-color: var(--brass); }
.st.prealpha::before, .st.alpha::before { border-color: var(--brass); background: var(--brass); color: var(--walnut); }
.st.prealpha .here { background: #ecebe6; color: #5d5d58; border: 1.5px dashed #5d5d58; }
.st.alpha .here { background: #f6ecd3; color: #6b4e14; border: 1.5px solid #6b4e14; }
.st.live b { color: var(--green); }

.stage-note { color: var(--muted); font-size: .92rem; margin-top: 0; max-width: 62ch; }
.today-tag { font: 600 .95rem var(--body); margin: 0 0 .2rem !important; color: var(--muted); }
.totals.cols-2 { grid-template-columns: repeat(2, 1fr); }
.totals.cols-1 { grid-template-columns: minmax(0, 24rem); }
.total h3 .stage { font-size: .65rem; margin-left: .25rem; }
.pick-group { margin-top: 1.5rem; }

.lab-link { display: grid; gap: .3rem; margin: 2.5rem 0 0; padding: 1rem 1.25rem; background: var(--paper);
            border: 2px dashed #b9b7ae; color: var(--ink); text-decoration: none; }
.lab-link:hover { border-color: var(--green); }
.lab-title { font: 600 1.5rem/1.1 var(--display); color: var(--green); }
.lab-go { font-weight: 600; color: var(--green); text-decoration: underline; }
#view-racing h1, #view-golf h1, #view-darts h1 { max-width: none; }
.darts-event h2 { font-size: 1.35rem; }
.darts-day { font-size: 1.05rem; margin: 1.25rem 0 .35rem; }
.darts-table td:nth-child(2) { white-space: nowrap; }
.darts-table .fav { font-weight: 600; }
#view-darts .runners th.n { text-align: right; }
.darts-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 1.5rem; }
.darts-group h3 { font-size: 1rem; margin: 0 0 .25rem; }
.golf-event h2, .golf-test h2 { font-size: 1.35rem; }
.golf-table td:nth-child(2) { white-space: nowrap; }
.golf-test { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--brass); }

@media (max-width: 48rem) {
  .stage-strip { font-size: .8rem; }
  .stage-strip .how { flex-basis: 100%; }
  .stage-row { flex-direction: column; gap: .3rem; }
  .stage-label { min-width: 0; }
  .stage-track { grid-template-columns: 1fr; gap: 0; border-left: 4px solid var(--rule); margin-left: .7rem; }
  .st { border-top: 0; padding: .1rem 0 1rem 1.3rem; }
  .st::before { top: 0; left: -.95rem; }
  .st.prealpha, .st.alpha { border-left: 4px solid var(--brass); margin-left: -4px; }
  .totals.cols-2, .totals.cols-1 { grid-template-columns: 1fr; }
  .lab-link { margin: 2rem 0 0; }
}

/* Details step and admin page */
.field { display: grid; gap: .3rem; font-weight: 500; margin: 1rem 0; max-width: 24rem; }
.field input { font: inherit; padding: .65rem .75rem; border: 2px solid var(--rule); border-radius: 3px; min-height: 44px; }
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin: 1rem 0 1.5rem; }
.admin-stats div { background: var(--paper); border-top: 4px solid var(--brass); padding: .8rem 1rem; }
.admin-stats b { display: block; font: 700 2.2rem/1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; }
.admin-stats span { color: var(--muted); font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left !important; }
.admin-table tr.new td { background: #fbf6e8; }
@media (max-width: 48rem) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table td:nth-child(2)::before { content: "Email"; }
  .admin-table td:nth-child(3)::before { content: "Signed up"; }
  .admin-table td:nth-child(4)::before { content: "Email confirmed"; }
  .admin-table td:nth-child(5)::before { content: "18+"; }
  .admin-table td:nth-child(6)::before { content: "Sign-ins"; }
  .admin-table td:nth-child(7)::before { content: "Last signed in"; }
  .admin-table td { text-align: right !important; gap: 1rem; }
  .admin-table td:first-child { text-align: left !important; }
}
.admin-m { display: none; }
@media (max-width: 48rem) {
  .admin-m:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass); font-weight: 600; }
}
.today .asof { margin-top: .5rem !important; }
.totals.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 48rem) { .totals.cols-3 { grid-template-columns: 1fr; } }
.pos, .neg { white-space: nowrap; }

/* Latest news */
.news { margin-top: 2rem; }
.news-item { background: var(--paper); border-left: 4px solid var(--green); margin-bottom: .6rem; }
.news-item summary { display: grid; gap: .1rem; padding: .8rem 1rem; cursor: pointer; list-style: none; min-height: 48px; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item time { font-size: .85rem; color: var(--muted); }
.news-item summary span { font: 600 1.15rem/1.25 var(--body); color: var(--ink); }
.news-item p { margin: 0 1rem .75rem; max-width: 62ch; }
.news-item[open] summary { padding-bottom: .4rem; }
.admin-table td:nth-child(6) { text-align: right !important; font-variant-numeric: tabular-nums; }
.verify-form { max-width: 26rem; }
#verify-done .lede { color: var(--green); font-weight: 600; }

/* ---------------------------------------------------------------- Oldman page */
.oldman-head { margin-bottom: 1rem; }
.oldman-head h1 { margin: 0; }
.oldman-sub { margin: .1rem 0 0; font: 600 1.15rem var(--body); color: var(--brass-dark, #8a6a2a); letter-spacing: .01em; }
.oldman-head .note { margin: .3rem 0 0; }
.om-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--rule); margin-bottom: 1.25rem; overflow-x: auto; }
.om-tabs a { padding: .7rem 1rem; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
             color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.om-tabs a[aria-selected="true"] { color: var(--green); border-bottom-color: var(--brass); }
.briefing { background: var(--paper); border-left: 4px solid var(--brass); padding: 1rem 1.25rem; max-width: 70ch; }
.briefing h3 { margin: .75rem 0 .3rem; font-size: 1.3rem; }
.briefing p { margin: 0 0 .7rem; }
.om-meta { color: var(--muted); font-size: .88rem; }
.om-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; margin: 0 0 1rem; }
.om-tools label { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.om-tools input[type="search"], .om-tools select { font: inherit; padding: .5rem .6rem; border: 2px solid var(--rule); border-radius: 3px; min-height: 44px; min-width: 10rem; }
.om-tools .check { display: flex; align-items: center; gap: .4rem; color: var(--ink); min-height: 44px; }
.fx { background: var(--paper); border-left: 4px solid var(--rule); padding: .7rem .9rem; margin-bottom: .5rem; }
.fx.flagged { border-left-color: var(--brass); }
.fx-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--muted); }
.fx-teams { font-weight: 700; font-size: 1.05rem; margin: .15rem 0 .4rem; }
.fx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem .6rem; font-size: .85rem; }
.fx-grid div { display: grid; }
.fx-grid b { font-weight: 600; color: var(--muted); font-size: .75rem; }
.fx-grid .up { color: var(--pos, #1f6b3a); font-weight: 700; }
.fx-flag { margin: .45rem 0 0; font-size: .88rem; }
.fx-flag .stage { margin-right: .35rem; }
.fx-form { font-family: ui-monospace, monospace; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.course { margin-bottom: 1.5rem; }
.course > h3 { font-size: 1.6rem; margin: 0 0 .5rem; }
.race { background: var(--paper); margin-bottom: .7rem; }
.race > summary { padding: .7rem .9rem; cursor: pointer; display: flex; gap: .75rem; align-items: baseline; min-height: 48px; }
.race > summary b { font-variant-numeric: tabular-nums; }
.runners { width: 100%; border-collapse: collapse; font-size: .88rem; }
.runners th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid var(--rule); }
.runners td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.runners td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runners tr.top td { background: #fbf6e8; }
.runners .who { color: var(--muted); font-size: .78rem; }
.more { margin: .75rem 0; }
@media (max-width: 48rem) {
  .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .runners .hide-sm { display: none; }
}
.odds-note { background: #fff6d6; border-left: 4px solid #d8b13a; padding: .6rem .9rem; margin: 0 0 1rem; font-size: .92rem; max-width: 70ch; }
.tabbar a.tab-text { gap: 0; line-height: 1.1; text-align: center; padding: 0 .2rem; }
.tabbar a.tab-text span { font: 700 .95rem var(--display); letter-spacing: .02em; }
.tabbar a.tab-text small { font-size: .62rem; opacity: .85; }
#oldman-title { max-width: none; }
.criteria-soon { margin-top: 1.5rem; border: 2px dashed var(--rule); padding: 1rem 1.25rem; max-width: 70ch; }
.criteria-soon h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.criteria-soon ul { margin: .3rem 0 .6rem 1.2rem; padding: 0; }
.criteria-soon li { margin-bottom: .25rem; }

/* Criteria (Football tab) and daily summary (Briefing tab) */
.criteria { background: var(--paper); border-left: 4px solid var(--green); margin: 0 0 1.25rem; }
.criteria > summary { padding: .8rem 1rem; cursor: pointer; display: grid; gap: .15rem; min-height: 48px; }
.criteria > summary span { font: 700 1.15rem var(--body); color: var(--green); }
.criteria > summary small { color: var(--muted); font-size: .85rem; }
.crit-form { padding: 0 1rem 1rem; display: grid; gap: .75rem; }
.crit-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.crit-form legend { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; width: 100%; }
.crit-form .tick { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.crit-form .tick input { width: 20px; height: 20px; accent-color: var(--green); }
.crit-form .inline { display: inline-flex; align-items: center; gap: .4rem; }
.crit-form select { font: inherit; padding: .4rem .5rem; border: 2px solid var(--rule); border-radius: 3px; min-height: 40px; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1rem; max-height: 14rem; overflow-y: auto; width: 100%; border: 1px solid var(--rule); padding: .3rem .6rem; background: #fff; }
.crit-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0; }
.my-summary { margin-top: 1.5rem; border-top: 3px solid var(--brass); padding-top: 1rem; }
.my-summary h3 { margin: 0 0 .4rem; font-size: 1.5rem; }
.sum-scroll { overflow-x: auto; }
.summary-table { background: var(--paper); }
.summary-table td.up { color: #1f6b3a; font-weight: 700; }
@media (max-width: 48rem) {
  .summary-table thead { display: none; }
  .summary-table, .summary-table tbody { display: block; }
  .summary-table tr { display: grid; grid-template-columns: 3.4rem repeat(4, minmax(0, 1fr));
    grid-template-areas: "ko fx fx fx fx" "ko sel sel sel sel" "ko m mk g o"; gap: .15rem .3rem; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); }
  .summary-table td { border: 0; padding: 0; text-align: left !important; }
  .summary-table td:nth-child(1) { grid-area: ko; font-weight: 700; }
  .summary-table td:nth-child(2) { grid-area: fx; }
  .summary-table td:nth-child(3) { grid-area: sel; }
  .summary-table td:nth-child(4) { grid-area: m; }
  .summary-table td:nth-child(5) { grid-area: mk; }
  .summary-table td:nth-child(6) { grid-area: g; }
  .summary-table td:nth-child(7) { grid-area: o; }
  .summary-table td:nth-child(n+4)::before { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
  .summary-table td:nth-child(4)::before { content: "Model"; }
  .summary-table td:nth-child(5)::before { content: "Market"; }
  .summary-table td:nth-child(6)::before { content: "Gap"; }
  .summary-table td:nth-child(7)::before { content: "Odds"; }
}
.runners tr.mine td { background: #e9f3ec; }
.runners tr.top.mine td { background: #e3efe0; }
@media (max-width: 48rem) {
  .racing-sum tr { grid-template-areas: "ko fx fx fx fx" "ko rk m mk g" "ko o o o o"; }
  .racing-sum td:nth-child(3) { grid-area: rk; }
  .racing-sum td:nth-child(3)::before { content: "Rank"; display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
  .racing-sum td:nth-child(4) { grid-area: m; } .racing-sum td:nth-child(5) { grid-area: mk; }
  .racing-sum td:nth-child(6) { grid-area: g; } .racing-sum td:nth-child(7) { grid-area: o; }
  .racing-sum td:nth-child(4)::before { content: "Model"; } .racing-sum td:nth-child(5)::before { content: "Market"; }
  .racing-sum td:nth-child(6)::before { content: "Gap"; } .racing-sum td:nth-child(7)::before { content: "Odds"; }
}

/* Feedback */
.fb-form { max-width: 46rem; background: var(--paper); padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-left: 4px solid var(--brass); }
.field.wide { max-width: none; }
.field textarea { font: inherit; padding: .65rem .75rem; border: 2px solid var(--rule); border-radius: 3px; resize: vertical; min-height: 6rem; }
.fb-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.fb-filter button { font: 600 .9rem var(--body); padding: .5rem .9rem; min-height: 40px; border: 2px solid var(--rule); background: var(--paper); border-radius: 999px; cursor: pointer; color: var(--ink); }
.fb-filter button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.fb-rows { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-top: 1px solid var(--rule); }
.fb-rows li { border-bottom: 1px solid var(--rule); }
.fb-item { background: var(--paper); border-left: 4px solid transparent; }
.fb-item.mine { border-left-color: var(--brass); }
.fb-item summary { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .7rem 1rem; cursor: pointer; list-style: none; min-height: 44px; }
.fb-item summary::-webkit-details-marker { display: none; }
.fb-item summary::after { content: "+"; grid-column: 2; grid-row: 1; font: 700 1.1rem var(--body); color: var(--ink-soft, #6b6358); }
.fb-item[open] summary::after { content: "–"; }
.fb-item summary:hover .fb-subject { text-decoration: underline; }
.fb-item summary:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.fb-subject { font-weight: 700; grid-column: 1; }
.fb-line { grid-column: 1 / -1; font-size: .85rem; color: #6b6358; }
.fb-replied { color: var(--green); font-weight: 700; }
.fb-item .fb-badges { grid-column: 1 / -1; }
.fb-open { padding: 0 1rem .9rem; }
.fb-badges { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fb-badge { font: 700 .75rem var(--body); padding: .25rem .55rem; border-radius: 2px; border: 1.5px solid currentColor; }
.fb-badge.planned { color: #6b4e14; background: #f6ecd3; }
.fb-badge.done { color: #1f6b3a; background: #e6f2ea; }
.fb-badge.hidden-b { color: #5d5d58; background: #ecebe6; border-style: dashed; }
.fb-reply { margin-top: .6rem; background: #fff; border-left: 3px solid var(--green); padding: .6rem .8rem; }
.fb-reply p { margin: .3rem 0 0; white-space: pre-wrap; }
.fb-admin { margin-top: .75rem; border-top: 1px dashed var(--rule); padding-top: .6rem; }
.fb-ticks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.fb-ticks .tick { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.fb-ticks input[type="text"] { font: inherit; padding: .35rem .5rem; border: 2px solid var(--rule); border-radius: 3px; width: 7rem; }
.crit-tag { display: inline-block; font: 700 .75rem var(--body); padding: .2rem .45rem; margin: .1rem 0; border: 1.5px solid #1f6b3a; color: #1f6b3a; background: #e6f2ea; border-radius: 2px; }
@media (max-width: 48rem) { .admin-table td:nth-child(8)::before { content: "Criteria"; } }
@media (min-width: 48.01rem) and (max-width: 70rem) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }
.fb-body { white-space: pre-wrap; margin: 0 0 .4rem; }
.admin-h2 { font-size: 1.35rem; margin: 1.6rem 0 .3rem; }
.crit-rec { font-size: .85rem; min-width: 11rem; }
.crit-rec .muted-s { color: #6b6358; }
.crit-rec div + div { margin-top: .2rem; }
.crit-totals { max-width: 52rem; }
.crit-totals th[scope="row"] { text-align: left; }
@media (max-width: 48rem) {
  .admin-table td:nth-child(9)::before { content: "Criteria record"; }
  .admin-table.crit-totals td:nth-child(2)::before { content: "Members"; }
  .admin-table.crit-totals td:nth-child(3)::before { content: "Insights"; }
  .admin-table.crit-totals td:nth-child(4)::before { content: "Won"; }
  .admin-table.crit-totals td:nth-child(5)::before { content: "Lost"; }
  .admin-table.crit-totals td:nth-child(6)::before { content: "Pending"; }
  .admin-table.crit-totals td:nth-child(7)::before { content: "Strike rate"; }
  .admin-table.crit-totals td:nth-child(8)::before { content: "Profit (followed at £10)"; }
  .admin-table.crit-totals td[colspan]::before { content: none; }
  .crit-rec { min-width: 0; }
}
.news-archive { margin-top: 1rem; }
.news-archive > summary { cursor: pointer; font-weight: 600; color: var(--green); text-decoration: underline; padding: .5rem 0; min-height: 44px; display: flex; align-items: center; gap: .3rem; list-style: none; }
.news-archive > summary::-webkit-details-marker { display: none; }
.news-archive > summary span { color: var(--muted); font-weight: 400; text-decoration: none; }
.news-archive .news-item { border-left-color: var(--rule); }
.my-record h4 { margin: 1rem 0 .3rem; font-size: 1rem; }
.rec-totals, .rec-blocks { list-style: none; padding: 0; margin: 0; }
.rec-totals li, .rec-blocks li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.rec-blocks li div { font-size: .9rem; }
.rec-day { border-bottom: 1px solid var(--rule); }
.rec-day > summary { cursor: pointer; padding: .55rem 0; min-height: 44px; }
.rec-day > summary .om-meta { display: block; }
.rec-table td .who { display: block; }
@media (max-width: 48rem) {
  .rec-table tr { grid-template-columns: 2rem repeat(3, minmax(0, 1fr)); grid-template-areas: "ko fx fx fx" "ko sel sel sel" "ko m mk g"; }
  .rec-table td:nth-child(4)::before { content: "Average odds"; }
  .rec-table td:nth-child(5)::before { content: "Result"; }
  .rec-table td:nth-child(6)::before { content: "If followed at £10"; }
}
.nav-labs { position: relative; }
.nav-labs > summary { list-style: none; cursor: pointer; color: #fff; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.nav-labs > summary::-webkit-details-marker { display: none; }
.nav-labs > summary::after { content: " ▾"; font-size: .75em; }
.nav-labs.current > summary { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.nav-labs > summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.nav-labs-menu { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 20; display: grid; min-width: 10rem;
  background: #2a1f17; border: 1px solid #5a4636; border-radius: 4px; padding: .3rem 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.nav-labs-menu a { display: block; padding: .55rem 1rem; }
.nav-labs-menu a:hover, .nav-labs-menu a:focus-visible { background: #3a2c21; }
.env-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding-top: .5rem; padding-bottom: .4rem; }
.env-row + .wrap { border-top: 1px dashed var(--brass); }
.env-row[hidden] { display: none; }
.env-label { font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.env-note { font-size: .85rem; color: #6b6358; }

/* Racing insights: win, each way or place only */
.bet-type { display: inline-block; vertical-align: middle; margin-left: .5rem; font: 700 .8rem var(--body); padding: .2rem .5rem; border-radius: 2px; border: 1.5px solid; }
.bet-type.bt-win { color: #1f4f8a; border-color: #1f4f8a; background: #e8eef7; }
.bet-type.bt-ew { color: #7a4b00; border-color: #a86a00; background: #fbf1dc; }

/* Admin: payment tags */
.pay-tag { display: inline-block; margin-top: .25rem; font: 700 .72rem var(--body); padding: .15rem .4rem; border-radius: 2px; border: 1.5px solid; }
.pay-tag.pay-ok { color: #1f6b3a; border-color: #1f6b3a; background: #e6f2ea; }
.pay-tag.pay-test { color: #5a2d82; border-color: #5a2d82; background: #f1eaf8; }
.pay-tag.pay-pending { color: #7a4b00; border-color: #a86a00; background: #fbf1dc; }
.pay-tag.pay-no { color: #9b1c1c; border-color: #9b1c1c; background: #fbeaea; }

/* Racing criteria: place chance */
.pct-input { width: 5.5rem; padding: .35rem .5rem; font: inherit; border: 1.5px solid var(--line, #c9c2b3); border-radius: 2px; margin-right: .25rem; }
@media (max-width: 700px) {
  .racing-sum td:nth-child(8) { grid-column: 1 / -1; }
  .racing-sum td:nth-child(8)::before { content: "Place chance"; display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
}

/* Monitored insights */
.mon { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .6rem .25rem 0; padding: .15rem .45rem; font: 600 .78rem var(--body); color: var(--muted); border: 1.5px solid #c9c2b3; border-radius: 2px; cursor: pointer; vertical-align: middle; }
.mon input { margin: 0; accent-color: #5a2d82; }
.mon.on { color: #5a2d82; border-color: #5a2d82; background: #f1eaf8; }
.mon:has(input:disabled) { cursor: default; opacity: .75; }
.mon:focus-within { outline: 2px solid #5a2d82; outline-offset: 2px; }
.mon-tag { display: inline-block; margin-left: .35rem; font: 700 .72rem var(--body); padding: .1rem .35rem; color: #5a2d82; border: 1.5px solid #5a2d82; background: #f1eaf8; border-radius: 2px; }
.rec-mon li b { color: #5a2d82; }

/* Admin: accounts sort */
.admin-sort { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-weight: 600; }
.admin-sort select { font: inherit; font-weight: 400; padding: .35rem .5rem; border: 1.5px solid #c9c2b3; border-radius: 2px; background: #fff; }

/* Build your own data: disclaimer on the Briefing tab */
.om-disclaimer { margin: 0 0 1.25rem; padding: .8rem 1rem; border-left: 4px solid #b08a3e; background: #f6efdf; color: var(--ink); font-size: .95rem; line-height: 1.5; max-width: 72ch; }

/* Football criteria: model's chance per market */
.chance-set { min-width: 0; }
.chance-grid { flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: .5rem 1.5rem; max-width: 48rem; margin: .25rem 0 .5rem; }
.chance { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.chance .pct-input { width: 4.5rem; }

/* Today's insights (OLDMAN WOLL's todays-insights.json) */
.risk { display: inline-block; font: 700 .75rem/1.3 var(--body); padding: .15rem .45rem; border-radius: 2px; border: 1.5px solid; white-space: nowrap; }
.risk-low { color: #1d6b3d; border-color: #1d6b3d; background: #e6f2ea; }
.risk-mid { color: #7a4b00; border-color: #a86a00; background: #fbf1dc; }
.risk-high { color: #8e2a1f; border-color: #8e2a1f; background: #fbeae7; }
.record.ti-table th, .record.ti-table td { vertical-align: top; text-align: left; }
.record.ti-table th.n, .record.ti-table td.n { text-align: right; white-space: nowrap; }
.record.ti-table .legs { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .88rem; }
.ti-why { min-width: 16rem; font-size: .9rem; }
.ti-below { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.ti-result { display: inline-block; font: 700 .72rem var(--body); padding: .1rem .35rem; border-radius: 2px; margin-left: .25rem; }
.ti-result.won { background: var(--win); color: #fff; }
.ti-result.lost { background: var(--loss); color: #fff; }
.ti-result.void { background: #ddd; color: var(--ink); }
.ti-accs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 1rem; }
.ti-acc, .ti-opp { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.1rem; }
.ti-acc h3, .ti-opp h3 { margin: 0 0 .4rem; font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ti-opp { margin-bottom: 1rem; border-color: #e3c3bd; }
.ti-meta { color: var(--muted); font-size: .9rem; }
.ti-removed { margin-top: 1.25rem; font-size: .82rem; color: var(--muted); }
.ti-removed ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.ti-key { margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: .75rem; }
.ti-key summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.ti-key dt { margin-top: .75rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ti-key dd { margin: .2rem 0 0; }
.ti-old { font-weight: 400; font-size: .78rem; color: #6b746e; }
@media (max-width: 700px) {
  .ti-table table, .ti-table tbody, .ti-table tr, .ti-table td { display: block; width: 100%; box-sizing: border-box; }
  .ti-table thead { display: none; }
  .ti-table tr { border: 1px solid var(--rule); border-radius: 4px; padding: .6rem .8rem; margin-bottom: .75rem; background: var(--paper); }
  .ti-table td { padding: .25rem 0; border: 0; text-align: left; }
  .record.ti-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
  .record.ti-table td.n { text-align: left; white-space: normal; }
  .ti-why { min-width: 0; }
  .ti-why { max-width: none; }
}

/* Reskin, phase 1: home summary, Results tracker, Development progress */
.env-strip { border-bottom: 0; }
.env-strip:not(:has(#env-banner:not([hidden]))) { display: none; }
.sec-icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: .2em; color: var(--brass); }
h1 .sec-icon { color: var(--green); }
.home-card { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--sky); border-radius: 4px; }
.home-card h2 { margin-top: 0; }
.home-card .sec-icon { color: var(--sky); }
.yday-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; margin: .25rem 0 .5rem; }
.yday-wl { font: 700 1.6rem/1.1 var(--display); color: var(--ink); }
.yday-pnl { font-weight: 600; }
.yday-lines { margin: 0 0 .5rem; padding-left: 1.1rem; }
.more-link { font-weight: 600; }
.progress-link .sec-icon { color: var(--green); }
.progress-status { margin: 1.5rem 0 2rem; }
.progress-status h2 { font-size: 1.35rem; margin: 1.25rem 0 .5rem; }
.progress-status .stage-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
#view-progress .stages { margin-top: 1rem; }

/* Home: labs and progress as icon tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.tile { display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; min-height: 44px; }
.tile:hover { border-color: var(--green); }
.tile:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.tile-icon { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #f6ecd3; font-size: 1.9rem; line-height: 1; }
.tile-icon svg { width: 1.9rem; height: 1.9rem; color: var(--green); }
.tile-title { font: 700 1.3rem/1.15 var(--display); color: var(--green); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.tile-text { font-size: .92rem; line-height: 1.45; color: #4a3a30; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tiles { gap: .75rem; } .tile { padding: 1rem .9rem; } .tile-text { font-size: .85rem; } }
@media (min-width: 701px) {
  .record.ti-table table { table-layout: fixed; width: 100%; }
  .record.ti-table th:nth-child(1) { width: 13%; } .record.ti-table th:nth-child(2) { width: 23%; }
  .record.ti-table th:nth-child(3) { width: 11%; } .record.ti-table th:nth-child(4) { width: 15%; }
  .record.ti-table th:nth-child(5) { width: 14%; } .record.ti-table th:nth-child(6) { width: 24%; }
  .ti-why { min-width: 0; }
}

/* Briefing tab: today at a glance, full briefing folded away */
.glance { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--brass); border-radius: 4px; padding: 1rem 1.2rem .4rem; margin: 0 0 1.25rem; }
.glance h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.glance p { margin: .35rem 0; }
.briefing-more { margin: 0 0 1.5rem; }
.briefing-more > summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }

/* Admin: reset a member's criteria record (two presses) */
.link-button { background: none; border: 0; padding: .35rem 0; min-height: 32px; font: inherit; font-size: .82rem; color: var(--green); text-decoration: underline; cursor: pointer; text-align: left; }
.link-button.danger { color: #9b1c1c; font-weight: 600; }
.link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* Today's insights: no-bets box, strongest selection, likeliest scores (all information only) */
.ti-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.ti-nobets, .ti-strongest { background: #f1f0ec; border: 1px solid #d6d2c8; border-radius: 4px; padding: .9rem 1.1rem; }
.ti-nobets h2, .ti-strongest h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.ti-nobets ul { list-style: none; margin: 0; padding: 0; }
.ti-nobets li { margin: .45rem 0; }
.ti-nb-reason { display: block; color: #5f6660; font-size: .88rem; margin-top: .1rem; }
.ti-strongest { background: #fff; border-style: dashed; }
.ti-info-only { display: inline-block; margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; color: #4a3a30; background: #ece7dc; padding: .15rem .45rem; border-radius: 2px; }
.ti-score { font-size: .8rem; color: #5f6660; margin-top: .2rem; }
.ti-scores .record { margin-top: .5rem; }
@media (max-width: 700px) {
  .ti-scores-table table, .ti-scores-table tbody, .ti-scores-table tr, .ti-scores-table td { display: block; width: 100%; box-sizing: border-box; }
  .ti-scores-table thead { display: none; }
  .ti-scores-table tr { border: 1px solid var(--rule); border-radius: 4px; padding: .5rem .7rem; margin-bottom: .6rem; background: var(--paper); }
  .ti-scores-table td { padding: .2rem 0; border: 0; text-align: left; }
  .record.ti-scores-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
}

/* How your criteria have done: one simple comparison table */
.rec-compare { overflow-x: auto; margin: .5rem 0 .4rem; }
.rec-compare table { border-collapse: collapse; min-width: 20rem; }
.rec-compare th, .rec-compare td { padding: .55rem .9rem .55rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.rec-compare thead th { font-size: .9rem; color: var(--muted); font-weight: 600; }
.rec-compare tbody th { font-weight: 600; max-width: 12rem; }
.rec-wl { display: block; }
.rec-pnl { display: block; font-weight: 700; font-size: 1.1rem; }
.rec-more { margin-top: .75rem; }
.rec-more > summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 700px) { .rec-compare tbody th { max-width: 8.5rem; font-size: .9rem; } }

/* Day by day: show all criteria matches or monitored only */
.rec-show { border: 0; padding: 0; margin: .25rem 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.rec-show legend { float: left; font-weight: 600; margin-right: .5rem; }
.rec-more.only-mon tr.not-mon { display: none; }

/* Today's insights: Testing (experiments on paper, never styled as insights) */
.ti-testing { margin: 2rem 0 1rem; padding: 1rem 1.2rem; border: 2px dashed #b9b4a8; border-radius: 4px; background: #f3f2ee; color: #3d3a35; }
.ti-testing h2 { font-size: 1.25rem; margin: 0 0 .4rem; color: #3d3a35; }
.ti-testing h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; color: #3d3a35; }
.tt-list { margin: 0; padding-left: 1.1rem; }
.tt-list li { margin: .35rem 0; }
.tt-facts { display: block; font-size: .85rem; color: #5f6660; }
.tt-status { font-weight: 600; }
.ti-test-table td, .ti-test-table th { text-align: left; vertical-align: top; }
.ti-test-table td.n, .ti-test-table th.n { text-align: right; }
@media (max-width: 700px) {
  .ti-test-table table, .ti-test-table tbody, .ti-test-table tr, .ti-test-table td, .ti-test-table tbody th { display: block; width: 100%; box-sizing: border-box; }
  .ti-test-table thead { display: none; }
  .ti-test-table tr { border: 1px solid #d6d2c8; border-radius: 4px; padding: .5rem .7rem; margin-bottom: .6rem; background: #fff; }
  .ti-test-table td { padding: .15rem 0; border: 0; text-align: left !important; }
  .record.ti-test-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
}
.ti-test-table .nw { white-space: nowrap; }
.ti-side { display: flex; flex-direction: column; gap: 1rem; }

/* Today's insights on phones: compact cards, folded extras (desktop keeps the tables) */
.ti-cards, .tt-recs-m { display: none; }
.ti-more > summary, .ti-testing > summary { list-style: none; cursor: pointer; }
.ti-more > summary::-webkit-details-marker, .ti-testing > summary::-webkit-details-marker { display: none; }
.ti-testing > summary h2 { display: inline; }
.tt-sum { display: none; }
@media (min-width: 701px) {
  .ti-more > summary { display: none; }
  .ti-testing > summary { cursor: default; pointer-events: none; }
}
@media (max-width: 700px) {
  .ti-main { display: none; }
  .ti-cards { display: grid; gap: .6rem; margin-bottom: 1rem; }
  .ti-card { background: #fff; border: 1px solid #ddd8cc; border-radius: 6px; padding: .65rem .75rem; }
  .ti-card-h { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; font-size: 1.02rem; line-height: 1.3; }
  .ti-card-h > b { flex: 1 1 auto; min-width: 0; }
  .ti-card-odds { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ti-card-ev { color: var(--muted); font-size: .86rem; margin-top: .1rem; }
  .ti-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; align-items: center; }
  .ti-chip { font-size: .76rem; padding: .12rem .45rem; border-radius: 3px; background: #efece4; color: #3d3a35; }
  .ti-chips .risk { font-size: .76rem; padding: .1rem .4rem; margin: 0; }
  .ti-card .ti-score, .ti-card .legs { font-size: .84rem; margin: .35rem 0 0; }
  .ti-card-why { margin-top: .4rem; font-size: .88rem; }
  .ti-card-why > summary { color: var(--accent, #6b1d2a); font-weight: 600; cursor: pointer; }
  .ti-card-why p { margin: .3rem 0 0; }
  .ti-more { margin: 0 0 1rem; border: 1px solid #ddd8cc; border-radius: 6px; background: #f3f1ea; }
  .ti-more > summary { padding: .6rem .75rem; font-weight: 600; font-size: .92rem; }
  .ti-more > summary::after { content: " ▾"; }
  .ti-more[open] > summary::after { content: " ▴"; }
  .ti-more .ti-top { padding: 0 .5rem .5rem; }
  .ti-testing { padding: .7rem .8rem; }
  .ti-testing > summary h2 { font-size: 1.05rem; }
  .tt-sum { display: block; font-size: .82rem; color: #5f6660; margin-top: .2rem; }
  .ti-testing > summary::after { content: "Show ▾"; display: block; font-size: .82rem; font-weight: 600; margin-top: .3rem; color: var(--accent, #6b1d2a); }
  .ti-testing[open] > summary::after { content: "Hide ▴"; }
  .ti-test-table { display: none; }
  .tt-recs-m { display: block; list-style: none; margin: .3rem 0 0; padding: 0; }
  .tt-recs-m li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; padding: .45rem 0; border-top: 1px solid #dcd8ce; font-size: .92rem; }
  .tt-recs-m li > b { flex: 1 1 12rem; }
  .tt-rec-res { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .85rem; white-space: nowrap; }
  .tt-recs-m .tt-facts { flex-basis: 100%; }
  .ti-acc { padding: .6rem .75rem; }
  .ti-acc h3 { font-size: 1rem; margin: 0 0 .25rem; }
  .ti-acc p { margin: .2rem 0; font-size: .92rem; }
}
.ti-also { margin-top: .45rem; }
.ti-meets { font-size: .82rem; color: #5f6660; margin-top: .15rem; }

/* Racing criteria: factor filters and the one-year test */
.rc-more { margin: .6rem 0; border: 1px solid #ddd8cc; border-radius: 6px; background: #faf9f5; }
.rc-more > summary { padding: .6rem .8rem; font-weight: 600; cursor: pointer; }
.rc-more > fieldset, .rc-more > p { margin-left: .8rem; margin-right: .8rem; }
.rc-on { font-size: .75rem; font-weight: 700; background: #1f6b4a; color: #fff; border-radius: 3px; padding: .05rem .35rem; margin-left: .3rem; }
.rc-break { display: block; height: .25rem; }
.rc-result { margin: .8rem 0; padding: .8rem 1rem; border: 1px solid #ddd8cc; border-radius: 6px; background: #fff; }
.rc-result h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.rc-big { font-size: 1.05rem; }
.rc-big.up b { color: #1f6b4a; } .rc-big.down b { color: #a33a2b; }
.rc-months { width: 100%; max-width: 28rem; font-size: .9rem; margin-top: .4rem; }
.rc-months td.n, .rc-months th.n { text-align: right; }
.nw { white-space: nowrap; }

/* OW-CORE v4.46: Today's timeline, shapes on one left-to-right line */
.tl { margin: 0 0 1.25rem; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tl-top h2 { margin: 0 0 .5rem; }
.tl-alerts { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .4rem; }
.tl-alert { padding: .55rem .75rem; border-radius: 6px; background: #fdf0d5; border: 1px solid #e0b84d; }
.tl-alert.tl-problem { background: #fbe6e2; border-color: var(--loss); }
.tl-scroll { overflow-x: auto; padding: .25rem 0 .35rem; }
.tl-row { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.tl-pt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 3.1rem; flex: none; }
.tl-pt::before { content: ""; position: absolute; top: .62rem; left: 0; right: 0; height: 3px; background: var(--rule); z-index: 0; }
.tl-pt:first-child::before { left: 50%; }
.tl-pt:last-child::before { right: 50%; }
.tl-pt.tl-past::before { background: var(--win); }
.tl-t { font-size: .7rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.tl-shape { position: relative; z-index: 1; display: inline-block; width: 1.05rem; height: 1.05rem; box-sizing: border-box; border: 2.5px solid #9aa39d; background: #fff; }
.tl-data { border-radius: 50%; }
.tl-picks { border-radius: 999px; width: 1.7rem; height: 1.05rem; }
.tl-price { border-radius: 3px; }
.tl-result { transform: rotate(45deg) scale(.88); border-radius: 2px; }
.tl-s-done, .tl-s-nothing-due { background: var(--win); border-color: var(--win); }
.tl-s-running, .tl-s-in-progress { border-color: var(--win); }
.tl-s-missed, .tl-s-failed, .tl-s-attention { background: var(--loss); border-color: var(--loss); }
.tl-s-not-recorded { border-style: dashed; }
.tl-flag { box-shadow: 0 0 0 3px #e0b84d; }
.tl-key { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: .5rem 0 0; font-size: .8rem; }
.tl-key > span { display: inline-flex; align-items: center; gap: .35rem; }
.tl-key .tl-shape { width: .85rem; height: .85rem; }
.tl-key .tl-picks { width: 1.4rem; }

/* OW-WEB: first-visit guide (content in guide.js). Card on wide screens, full-screen sheet on phones. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.gd-open { overflow: hidden; }
.gd-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(37, 25, 18, .62); }
.gd { --gd-colour: #FFC83D; display: flex; flex-direction: column; width: min(34rem, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  background: var(--paper); color: var(--ink); border-radius: 14px; border-top: 10px solid var(--gd-colour); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .75rem 0 1.25rem; }
.gd-count { font: 600 1rem var(--display); color: var(--muted); letter-spacing: .02em; }
.gd-skip { min-height: 44px; min-width: 44px; padding: 0 .9rem; background: none; border: 0; color: var(--green); font: 600 1rem var(--body); text-decoration: underline; cursor: pointer; border-radius: 6px; }
.gd-body { flex: 1 1 auto; overflow-y: auto; padding: .5rem 1.5rem 1rem; outline: none; -webkit-overflow-scrolling: touch; }
.gd-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gd-colour); display: flex; align-items: center; justify-content: center; margin: .25rem 0 .75rem; overflow: hidden; }
.gd-icon img { width: 100%; height: 100%; object-fit: cover; }
.gd-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--walnut); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-where { margin: 0 0 .15rem; font-size: .95rem; color: var(--muted); }
.gd h2 { margin: 0 0 .6rem; font-size: 1.9rem; color: var(--green); }
.gd-points { margin: 0 0 .9rem; padding-left: 1.2rem; font-size: 1.05rem; line-height: 1.55; }
.gd-points li { margin: 0 0 .45rem; }
.gd-tip { margin: 0; padding: .7rem .9rem; border-radius: 8px; background: #f6f1e4; border-left: 4px solid var(--brass); font-size: 1rem; }
.gd-tip b { margin-right: .35rem; color: var(--walnut); }
.gd-foot { flex: none; padding: .75rem 1.5rem 1rem; border-top: 1px solid var(--rule); background: var(--paper); }
.gd-dots { list-style: none; display: flex; gap: .45rem; margin: 0 0 .75rem; padding: 0; }
.gd-dots li { width: .7rem; height: .7rem; border-radius: 50%; background: var(--rule); }
.gd-dots li.gd-done { background: var(--win); }
.gd-dots li.gd-now { background: var(--win); box-shadow: 0 0 0 3px #cfe8d8; }
.gd-btns { display: flex; justify-content: flex-end; gap: .6rem; }
.gd-btns .button { min-height: 44px; margin: 0; font-size: 1.05rem; }
.gd-btns .button.quiet { margin-left: 0; }
.gd-18 { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.gd :focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (max-width: 600px), (max-height: 520px) {
  .gd-overlay { padding: 0; align-items: stretch; }
  .gd { width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .gd-foot { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .gd-body { padding: .25rem 1.25rem 1rem; }
  .gd-icon { width: 56px; height: 56px; }
  .gd-icon svg { width: 30px; height: 30px; }
  .gd h2 { font-size: 1.7rem; }
  .gd-points { font-size: 1rem; }
  .gd-btns .button { flex: 1; text-align: center; }
  .gd-18 { font-size: .8rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .gd-icon { display: none; }
  .gd-foot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .25rem 1rem; padding-top: .5rem; }
  .gd-dots { margin: 0; }
  .gd-18 { grid-column: 1 / -1; margin-top: .25rem; }
}
.fx-mine { margin: .45rem 0 0; padding: .3rem .55rem; font-size: .88rem; background: #e9f3ec; border-left: 3px solid var(--win); }

/* Favourite Watch (Racing lab, OW-CORE v4.55) */
.fw { margin: 1.5rem 0; }
.fw-sub { font: 700 1.1rem/1.3 var(--display); margin: 1rem 0 .4rem; }
.fw-g { font: 600 .95rem var(--body); margin: .9rem 0 .4rem; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .6rem; }
.fw-card { background: var(--paper); border: 1px solid #ddd8cc; border-left: 4px solid #b9b2a3; border-radius: 6px; padding: .6rem .75rem; font-size: .9rem; }
.fw-card.fw-solid { border-left-color: var(--win); }
.fw-card.fw-beatable { border-left-color: var(--loss); }
.fw-card p { margin: .25rem 0; }
.fw-h { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.fw-time { font: 700 .95rem var(--display); }
.fw-badge { margin-left: auto; font: 700 .72rem var(--body); padding: .1rem .4rem; border-radius: 2px; border: 1px solid; }
.fw-b-solid { color: #1d6b3d; background: #e6f2ea; }
.fw-b-beatable { color: #8e2a1f; background: #fbeae7; }
.fw-b-close { color: var(--muted); background: #f1efe9; }
.fw-fav { margin: .3rem 0 .2rem; }
.fw-score { height: 6px; background: #ece9e1; border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.fw-score span { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.fw-sc { font-size: .78rem; }
.fw-for { color: #1d6b3d; }
.fw-against { color: #8e2a1f; }
.fw-more { margin-top: .7rem; }
.fw-more summary { cursor: pointer; font-weight: 600; }
.fw-record table { width: 100%; }
@media (max-width: 700px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fw-record thead { display: none; }
  .fw-record tr { display: block; border-bottom: 1px solid var(--rule); padding: .4rem 0; }
  .fw-record th[scope="row"] { display: block; text-align: left; }
  .fw-record td { display: flex; justify-content: space-between; gap: 1rem; padding: .1rem 0; }
  .fw-record td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}
.fw-record { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; }
.fw-record th, .fw-record td { padding: .45rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; font-size: .9rem; }
.fw-record .n { text-align: right; }
.fw-record thead th { font-weight: 600; color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) { .fw-record th, .fw-record td { border-bottom: 0; } .fw-record .n { text-align: right; } }

/* OW-WEB: Old Man Woll's weekly column (wollColumn), friendly cartoon style like the holding page */
.woll-col { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem 1rem; background: #FFF6E5; border: 3px solid var(--walnut); border-radius: 18px; box-shadow: 6px 6px 0 var(--walnut); }
.woll-col-head { display: flex; align-items: center; gap: .9rem; }
.woll-col-head img { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--walnut); background: #FFC83D; object-fit: cover; }
.woll-col-kicker { margin: 0; font: 700 .95rem var(--display); color: var(--green); }
.woll-col-kicker span { font: 600 .85rem var(--body); color: var(--muted); }
.woll-col h2 { margin: .1rem 0 0; font-size: 1.6rem; line-height: 1.2; color: var(--walnut); }
.woll-col-intro { margin: .7rem 0 0; font-size: 1.05rem; line-height: 1.55; }
.woll-col-intro p, .woll-col-more p { margin: 0 0 .6rem; }
.woll-col-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 .8rem; padding: 0; }
.woll-col-chips li { padding: .35rem .7rem; background: #fff; border: 2px solid var(--walnut); border-radius: 999px; font-size: .92rem; }
.woll-col-chips b { color: var(--green); }
.woll-col-more summary { cursor: pointer; font-weight: 700; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.woll-col-more h3 { margin: .8rem 0 .3rem; font-size: 1.15rem; color: var(--walnut); }
.woll-col-more p { line-height: 1.55; }
.woll-col-sign { margin: .6rem 0 0; font: italic 600 1.05rem var(--display); color: var(--walnut); }
.woll-col-foot { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 600px) {
  .woll-col { padding: .9rem 1rem; box-shadow: 4px 4px 0 var(--walnut); border-radius: 14px; }
  .woll-col-head img { width: 52px; height: 52px; }
  .woll-col h2 { font-size: 1.35rem; }
  .woll-col-intro { font-size: 1rem; }
}
.total-money { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); }
.total-money b { color: var(--ink); }
.week-money { margin: .2rem .75rem .35rem; font-size: .85rem; color: var(--muted); }
.fw-notes { color: var(--muted); }
.fw-notes .fw-for, .fw-notes .fw-against { color: inherit; }
.fw-beaten { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .4rem; }
.fw-beaten li { background: var(--paper); border: 1px solid #ddd8cc; border-radius: 6px; padding: .45rem .7rem; font-size: .9rem; }
.fw-had { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.fw-bars { display: grid; gap: .3rem; margin: .4rem 0 .8rem; max-width: 34rem; }
.fw-bar { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: .5rem; font-size: .88rem; }
.fw-bar-t { height: 10px; background: #ece9e1; border-radius: 4px; overflow: hidden; }
.fw-bar-t span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.fw-bar-v { text-align: right; font-variant-numeric: tabular-nums; }
.fw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .9rem; }
.fw-cols ul { margin: .3rem 0; padding-left: 1.1rem; }
@media (max-width: 700px) { .fw-cols { grid-template-columns: 1fr; } .fw-bar { grid-template-columns: 7rem 1fr 2.6rem; } }

.fw-call { background: #fdf6e3; border: 1px solid #e8d49a; border-radius: 4px; padding: .35rem .5rem; margin: .35rem 0; font-size: .88rem; }
/* v4.59: Favourite Watch as one drop-down section */
.fw-drop { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .2rem .9rem; }
.fw-drop > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; min-height: 44px; padding: .55rem 0; }
.fw-drop > summary::-webkit-details-marker { display: none; }
.fw-drop > summary::before { content: "▸"; color: var(--green); font-weight: 700; }
.fw-drop[open] > summary::before { content: "▾"; }
.fw-drop-t { font: 700 1.25rem var(--display); color: var(--green); }
.fw-drop-s { flex-basis: 100%; margin-left: 1.1rem; color: var(--muted); font-size: .88rem; }
.fw-drop[open] { padding-bottom: .9rem; }
.fw-pick-l { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 .8rem; font-weight: 600; }
.fw-pick { font: inherit; font-weight: 400; padding: .4rem .5rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; max-width: 100%; min-height: 40px; }
.fw-pick-l { flex-wrap: wrap; }
.fw-pick { flex: 1 1 12rem; min-width: 0; width: 100%; max-width: 26rem; }
/* v4.63: country and league on football rows */
.ti-comp { display: inline-block; margin-top: .15rem; font-size: .78rem; font-weight: 600; color: var(--green); background: #eef3ee; border-radius: 3px; padding: .05rem .4rem; }
/* v4.64: football list sorting: highlight the column being sorted */
.fx-grid > div.fx-sorted { background: #eef3ee; border-radius: 4px; box-shadow: inset 0 0 0 1px #cfe0cf; }
/* OW-WEB: "View my criteria" switch (Summary / Full list) and matches marked in the full list */
.crit-view { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: .9rem 0 .6rem; font-weight: 700; color: var(--walnut); scroll-margin-top: 1rem; }
.crit-view .seg { min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--green); border-radius: 999px; background: var(--paper); color: var(--green); font: 600 .95rem var(--body); cursor: pointer; }
.crit-view .seg[aria-pressed="true"] { background: var(--green); color: #fff; }
.crit-view .seg:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
article.fx.mine { border-left: 4px solid var(--win); background: #f4faf6; }
@media (max-width: 600px) { .crit-view .seg { flex: 1 1 100%; } }
/* v4.65: "More" in the phone bottom bar */
.more-sheet { display: none; }
@media (max-width: 48rem) {
  .more-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: calc(3.75rem + 2px + env(safe-area-inset-bottom)); z-index: 7;
    background: var(--walnut); border-top: 2px solid var(--brass); box-shadow: 0 -8px 24px rgba(0,0,0,.25); padding: .4rem 0 .6rem; }
  .more-sheet nav { display: grid; }
  .more-sheet:not([hidden]) { max-height: calc(100vh - 5rem - env(safe-area-inset-bottom)); max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom)); overflow-y: auto; }
  .more-sheet .more-acct { color: #fff; background: none; border: 0; text-align: left; font: inherit; font-size: 1rem; padding: .75rem 1.1rem; min-height: 44px; cursor: pointer; }
  .more-sheet .more-acct:active, .more-sheet .more-acct:focus-visible { background: #3a2c21; }
  .more-sheet a[hidden] { display: none; }
  .more-sheet .more-h { margin: .5rem 1.1rem .2rem; color: var(--brass); font: 700 .75rem var(--body); letter-spacing: .08em; text-transform: uppercase; }
  .more-sheet a { color: #fff; text-decoration: none; padding: .75rem 1.1rem; font-size: 1rem; min-height: 44px; }
  .more-sheet a:active, .more-sheet a:focus-visible { background: #3a2c21; }
  .tabbar .tab-more.current, .tabbar .tab-more[aria-expanded="true"] { color: var(--brass); font-weight: 700; box-shadow: inset 0 3px 0 var(--brass); background: rgba(201, 162, 90, .12); }
}
/* v4.66: Favourite Watch simple scoreboard */
.fw-simple { overflow-x: auto; margin: .3rem 0 .4rem; }
.fw-simple table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fw-simple th, .fw-simple td { padding: .55rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; }
.fw-simple thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fw-simple .n { text-align: right; white-space: nowrap; }
.fw-simple td b { font: 700 1.35rem var(--display); color: var(--ink, #2a1f17); }
.fw-simple .fw-s-row td b { color: var(--green); }
.fw-lost { display: block; font-size: .8rem; color: var(--muted); }
.fw-detail { margin-top: .8rem; }
.fw-detail > summary { font-weight: 600; }
@media (max-width: 600px) { .fw-simple th[scope="row"] { font-size: .9rem; } .fw-simple td b { font-size: 1.15rem; } }
@media (max-width: 600px) { .fw-simple tr > :nth-child(3):not(:last-child) { display: none; } .fw-simple th, .fw-simple td { padding: .5rem .35rem; } }
.fw-of { display: block; font-size: .72rem; color: var(--muted); }

/* ROI next to profit figures (20 Nov) */
.roi { font-size: .85em; font-weight: 500; opacity: .85; white-space: nowrap; margin-left: .3em; }

/* OW-CORE v4.71: Today's insights tiers and fold-outs */
.ti-legend{background:rgba(0,0,0,.035);border-radius:10px;padding:.6rem .9rem;margin:0 0 1rem}
.ti-legend p{margin:.25rem 0;font-size:.92rem}
.ti-tier{display:inline-block;font-size:.78rem;font-weight:600;padding:.1rem .5rem;border-radius:6px;margin-right:.35rem;white-space:nowrap}
.ti-tier-ins{background:#e3f1dc;color:#2f5d12}
.ti-tier-wal{background:#fbefd6;color:#7a4b06}
.ti-tier-none{background:#ece9e2;color:#5f5e5a}
.ti-grp{border:1px solid rgba(0,0,0,.1);border-radius:10px;margin:0 0 .8rem;padding:0 .8rem}
.ti-grp>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.6rem 0;list-style:none}
.ti-grp>summary::-webkit-details-marker{display:none}
.ti-grp>summary::before{content:"\25B8";font-size:.9rem;transition:transform .15s}
.ti-grp[open]>summary::before{transform:rotate(90deg)}
.ti-grp>summary h2.pick-group{margin:0;font-size:1.1rem}
.ti-tier-h{margin:.6rem 0 .3rem;font-size:1rem}
.progress-timeline{margin:1rem 0 1.5rem}
/* OW-CORE v4.72: Favourite Watch guidance row */
.fw-simple tr.fw-guide th,.fw-simple tr.fw-guide td{background:#e3f1dc;color:#2f5d12}
.fw-simple tr.fw-guide-part th{padding-left:1.4rem;font-weight:400;font-size:.9em}
.fw-simple tr.fw-guide-part td{font-size:.9em}

/* Admin waiting list drop-down (20 Nov) */
.wl-drop { border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .9rem; background: #fff; }
.wl-drop > summary { cursor: pointer; font-size: 1.05rem; }
.wl-drop[open] > summary { margin-bottom: .5rem; }

/* Admin testers by filter (20 Nov) */
table.testers td.filter-words { min-width: 16rem; max-width: 26rem; font-size: .9rem; }

/* Criteria record: by market (20 Nov) */
.rec-mkt-h { margin: 1.2rem 0 .4rem; }
table.rec-mkt th[scope="row"] { font-weight: 500; white-space: nowrap; }

/* Criteria day tables: chance column (20 Nov) */
.rec-table td.chance { white-space: nowrap; }
.rec-table td.chance .who { display: block; }

/* Morning banner: today's insights not out yet (shown until the morning upload) */
.morning-strip { background: #eef4ee; border-bottom: 1px solid #c6d9c8; }
.morning-strip[hidden] { display: none; }
.morning-row { padding-top: .5rem; padding-bottom: .5rem; }
.morning-label { font-weight: 700; color: var(--ink); }
.morning-note { color: var(--ink); }

/* Results tracker: our record (Woll's insights) and the separate Worth a look test record (21 Nov) */
.rec-head { margin: .25rem 0 .25rem; }
.rec-note { margin: 0 0 1rem; color: #6b6358; font-size: .92rem; }
.wal-record { margin: 2rem 0 1rem; padding: .75rem 1rem; border: 1px dashed var(--rule, #c9bfae); background: var(--paper); }
.wal-record > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.wal-record[open] > summary { margin-bottom: 1rem; }
.yday-wal { margin-top: .5rem; font-size: .92rem; }

/* v4.82 (21 Nov 2026): Today's insights in two sections: Woll's insights, then For information only */
.ti-woll, .ti-info { margin: 1.25rem 0; padding: 1rem 1.1rem; border-radius: 12px; }
.ti-woll { border: 2px solid var(--green); background: var(--paper); }
.ti-info { border: 1px dashed var(--muted); background: transparent; }
.ti-woll > h2, .ti-info > h2 { margin: 0 0 .25rem; }
.ti-info > h2 { color: var(--muted); }
.ti-lead { margin: 0 0 .75rem; color: var(--muted); }
.ti-market > summary h3, .ti-info .ti-grp > summary h3 { margin: 0; font-size: 1.05rem; display: inline; }
.ti-nosel { margin: .5rem 0; }
.ti-nb-sports { margin: 0 0 .75rem; padding-left: 1.1rem; }

/* v4.91 (21 Nov 2026): testing experiments are a normal dropdown inside For information only */
.ti-info .ti-testing { margin: 0 0 .8rem; padding: 0 .8rem; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; background: transparent; }
.ti-info .ti-testing > summary { pointer-events: auto; cursor: pointer; }
.ti-info .ti-testing > summary::after { content: none; }
.ti-info .ti-testing > summary h3 { margin: 0; font-size: 1.05rem; display: inline; }

/* v4.92 (21 Nov 2026, Paul): My insights football on a phone. PC keeps the wide card; phones get a short card
   (meets criteria + next two highest), tap to open, a Watch button, and filters in a panel from the bottom. */
.fx-phone { display: none; }
.fx-filter-bar, .om-sheet-head, .om-sheet-bg, .om-sheet-foot, .vs-ph, .rc-watch { display: none; }
@media (max-width: 700px) {
  .fx { padding: .75rem .85rem; border-left-width: 4px; border-radius: 10px; }
  .fx > :not(.fx-phone) { display: none; }
  .fx-phone { display: block; }
  .fx-open > summary { list-style: none; cursor: pointer; display: grid; gap: .35rem; }
  .fx-open > summary::-webkit-details-marker { display: none; }
  .fx-p-head { font-size: .8rem; color: var(--muted); }
  .fx-p-teams { font-size: 1.08rem; font-weight: 700; }
  .fx-p-met { display: grid; gap: .1rem; background: #f3ecdc; border-radius: 8px; padding: .45rem .6rem; }
  .fx-p-met small { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #6b1d2a); }
  .fx-p-line { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; font-size: .98rem; }
  .fx-p-met .fx-p-line { font-weight: 600; }
  .fx-p-line span:last-child { white-space: nowrap; }
  .fx-p-line small { color: var(--muted); font-weight: 400; }
  .fx-p-more { font-size: .9rem; padding: 0 .6rem; color: #3d3833; }
  .fx-p-tap { font-size: .75rem; color: var(--muted); }
  .fx-open[open] .fx-p-tap { display: none; }
  .fx-p-table { width: 100%; border-collapse: collapse; margin: .6rem 0 .4rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
  .fx-p-table th, .fx-p-table td { padding: .5rem .4rem; border-top: 1px solid var(--rule); text-align: right; }
  .fx-p-table th:first-child, .fx-p-table thead th:first-child { text-align: left; }
  .fx-p-table thead th { font-size: .72rem; color: var(--muted); font-weight: 600; border-top: 0; }
  .fx-p-table tr.met { background: #f3ecdc; }
  .fx-p-table td.up { color: var(--pos, #1f6b3a); font-weight: 700; }
  .fx-p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .4rem 0; }
  .fx-p-facts div { background: #faf8f4; border-radius: 8px; padding: .4rem .5rem; display: grid; }
  .fx-p-facts small { font-size: .7rem; color: var(--muted); }
  .fx-p-form { display: grid; gap: .2rem; font-size: .88rem; margin: .3rem 0; }
  .fx-p-form div { display: flex; justify-content: space-between; gap: .5rem; }
  .fx-p-form b { letter-spacing: .12em; }
  .fx-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; }
  .mon-btn { min-height: 46px; border-radius: 10px; border: 2px solid #2b5c8a; background: #fff; color: #2b5c8a; font: 700 .95rem var(--sans, inherit); }
  .mon-btn.on { background: #2b5c8a; color: #fff; }
  .mon-btn:disabled { opacity: .55; }
  .fx-filter-bar { display: block; margin: .25rem 0 .75rem; }
  .fx-filter-bar .button { width: 100%; min-height: 46px; }
  #om-football .om-tools { display: none; }
  #om-football.filters-open .om-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper, #fff); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; max-height: 82vh; overflow: auto; box-shadow: 0 -8px 30px rgba(0,0,0,.18); margin: 0; }
  #om-football.filters-open .om-tools label { display: grid; }
  #om-football.filters-open .om-tools input[type="search"], #om-football.filters-open .om-tools select { min-width: 0; width: 100%; }
  #om-football.filters-open .om-tools .check { grid-column: 1 / -1; }
  #om-football.filters-open .om-sheet-head { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; margin: 0; font-size: 1.1rem; }
  #om-football.filters-open .om-tools .check { display: flex; align-items: center; gap: .5rem; }
  #om-football.filters-open .om-tools .check input { width: 1.4rem; height: 1.4rem; }
  #om-football.filters-open .om-sheet-foot { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); background: var(--paper, #fff); margin: .4rem -1rem calc(-1rem - env(safe-area-inset-bottom)); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
  #om-football.filters-open .om-sheet-foot .button { flex: 1; min-height: 46px; }
  body:has(#om-football.filters-open) .tabbar { display: none; }
  .rc-watch { display: block; margin-top: .4rem; }
  .rc-watch .mon-btn { min-height: 40px; padding: 0 1rem; font-size: .88rem; }
  .vs-pc { display: none; }
  .vs-ph { display: inline; }
  .crit-view { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .crit-view .seg { padding: .4rem .5rem; font-size: .9rem; }
  .crit-view > span:first-child { grid-column: 1 / -1; }
  .crit-view .seg { min-height: 44px; }
  #om-football.filters-open .om-sheet-bg { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(43,38,34,.45); }
}

/* Members' league opt-in (22 Nov) */
.league-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.league-form .league-name input { margin-left: .4rem; padding: .35rem .5rem; min-width: 12rem; }

/* v4.97 (22 Nov 2026, Paul): "Add to my shouts" next to Watch (Briefing rows and phone cards); one Watch per match. */
.call-btn { display: inline-flex; align-items: center; margin: 0 .4rem .25rem 0; padding: .2rem .6rem; border-radius: 999px; border: 1.5px solid #8a5a00; background: #fff; color: #8a5a00; font: 600 .78rem var(--sans, inherit); cursor: pointer; }
.call-btn.on { background: #8a5a00; color: #fff; }
.call-btn:disabled { opacity: .55; cursor: default; }
.row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.row-acts .call-btn { margin: 0; }
.fx-p-for { margin: .3rem 0 0; font-size: .78rem; }
@media (max-width: 700px) {
  .fx-actions .call-btn, .rc-watch .call-btn { min-height: 46px; border-radius: 10px; border-width: 2px; justify-content: center; font-size: .95rem; margin: 0; padding: 0 .8rem; }
  .fx-actions { grid-template-columns: 1fr 1fr; }
  .rc-watch { display: flex; gap: .4rem; flex-wrap: wrap; }
  .rc-watch .call-btn { min-height: 40px; font-size: .88rem; }
}

/* v4.98 (22 Nov 2026, Paul): prices shown as a UK fraction with the decimal underneath. */
.odd-f { display: block; font-weight: 600; white-space: nowrap; }
.odd-d { display: block; font-size: .75em; color: var(--muted); white-space: nowrap; }
.ti-card-odds .odd-f, .ti-card-odds .odd-d { text-align: right; }

/* Admin: every section is a drop-down, closed when the page opens (Paul, 22 Nov) */
.admin-sec { margin: 0 0 .9rem; }
.admin-sec > summary .sec-count { font: 600 .95rem var(--body); color: var(--muted); }
.admin-sec-body { padding: 0 1rem 1rem; }
.admin-sec-body > .note:first-child { margin-top: 0; }
.wl-table td:first-child { text-align: center; }
.wl-table .wl-tick { width: 20px; height: 20px; accent-color: var(--green); }
.wl-table tr.wl-done td { color: var(--muted); background: #f3f3f0; }
.wl-table tr.wl-done a { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-sec > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.admin-sec > summary::-webkit-details-marker { display: none; }
.admin-sec > summary::after { content: "▾"; color: var(--muted); font-size: 1.1rem; }
.admin-sec[open] > summary::after { content: "▴"; }

/* UK compatible (Paul, 22 Nov): small label beside the fixture name, top right of the card; criteria toggle */
.uk-tag { display: inline-flex; align-items: center; gap: .25rem; font: 600 .72rem/1.2 var(--body); padding: .12rem .45rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; margin-left: .4rem; }
.uk-yes { background: #e3f1e6; color: #1d5a2e; border: 1px solid #b9dcc2; }
.uk-no { background: transparent; color: #5f5f5f; border: 1px solid #a9a9a9; }
.fx-teams, .fx-p-teams { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.fx-teams .uk-tag, .fx-p-teams .uk-tag { margin-left: 0; flex-shrink: 0; margin-top: .1rem; }
.race > summary .uk-tag { margin-left: auto; align-self: center; }
.uk-set .switch { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; }
.uk-set .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uk-set .switch-ui { width: 44px; height: 24px; border-radius: 12px; background: #bdbdbd; position: relative; transition: background .15s; flex-shrink: 0; }
.uk-set .switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.uk-set .switch input:checked + .switch-ui { background: var(--green); }
.uk-set .switch input:checked + .switch-ui::after { transform: translateX(20px); }
.uk-set .switch input:focus-visible + .switch-ui { outline: 3px solid var(--brass); outline-offset: 2px; }
.uk-set .switch-text { font-weight: 600; }
.uk-set .om-meta { width: 100%; margin: .1rem 0 0; }
@media (prefers-reduced-motion: reduce) { .uk-set .switch-ui, .uk-set .switch-ui::after { transition: none; } }

/* v5.00 (22 Nov): Match builder lab inside Testing experiments */
.bl-lab .bl-game { margin: 1rem 0 .3rem; font-size: 1rem; }
.bl-lab .bl-chk { display: inline-block; margin-left: .35rem; padding: 0 .4rem; border: 1px solid var(--rule); border-radius: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* v5.01 (22 Nov): Build an accumulator on each criteria */
.acca-panel .acca-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .4rem 0 .6rem; }
.acca-panel .acca-n { width: 4.5rem; margin-left: .3rem; }
.acca-panel .acca-list { margin: .4rem 0; padding-left: 1.4rem; }
.acca-panel .acca-list li { margin: .35rem 0; }
.acca-panel .acca-total { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 6px; }
.acca-panel .acca-total span { color: var(--muted); font-size: .85rem; }
.acca-panel .acca-warn, .acca-panel .acca-err { color: var(--loss); }
@media (max-width: 640px) { .acca-panel .acca-total { flex-direction: column; position: sticky; bottom: 0; background: var(--paper); } }
.acca-wrap { padding: 0 1rem 1rem; }

/* v5.03 (23 Nov): line-up re-priced builders */
.bl-lab .bl-lu { border-color: var(--sky); color: var(--sky); }

/* v5.04 (23 Nov): Favourite Watch, Woll's pick without the favourite and the doubt rule note */
.fw-card .fw-wo { border-left: 3px solid var(--sky); padding-left: .5rem; }
.fw-card .fw-gate { font-size: .8rem; margin-top: .3rem; }
/* v5.07 (23 Nov): Testing experiments folds */
.ti-testing .tt-fold { margin: .5rem 0; }
.ti-testing .tt-sub { margin-left: .75rem; }

/* v5.08 (23 Nov): Old Man Woll's shouts for today's league */
.ws-box .ws-list { margin: .5rem 0 0; padding-left: 1.25rem; }
.ws-box .ws-list li { margin: 0 0 .75rem; }
.ws-box .ws-label { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; opacity: .75; margin-right: .35rem; }

/* Members' league on the home page (Paul, 23 Nov): two drop-downs side by side, stacked on a phone */
.home-league .league-pair { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: start; }
@media (min-width: 900px) { .home-league .league-pair { grid-template-columns: 1fr 1fr; } }
.league-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.league-table th, .league-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line, #ddd); text-align: right; }
.league-table th:nth-child(2), .league-table td:nth-child(2) { text-align: left; }
.league-table th:first-child, .league-table td:first-child { text-align: center; width: 2.2rem; }
.league-table tr.lg-house td { background: #f4efe2; }
.league-table tr.lg-me td { background: #e3f1e6; font-weight: 700; }
.league-week { margin-top: .75rem; }
.league-week > summary { font-size: .95rem; }
.league-table tr.lg-gap td { text-align: center; color: var(--muted); border-bottom: 0; }
.lg-tag { display: inline-block; font: 600 .7rem/1.2 var(--body); padding: .1rem .4rem; border-radius: 999px; border: 1px solid #b8a575; color: #6b5522; margin-left: .3rem; vertical-align: middle; }
.lg-tag.lg-you { border-color: #b9dcc2; color: #1d5a2e; }
.league-teaser p { margin: .4rem 0; }
@media (max-width: 600px) {
  .home-league .admin-sec-body { padding: 0 .4rem .6rem; }
  .league-table { font-size: .9rem; }
  .league-table th, .league-table td { padding: .4rem .25rem; }
  .league-table th:first-child, .league-table td:first-child { width: 1.6rem; }
  .league-table .lg-tag { display: table; margin: .15rem 0 0; }
}

/* Nickname screen (Paul, 23 Nov 12:52): shown at sign-in until a nickname is saved */
.nick .gd-body { padding: 1rem 1.5rem 1.25rem; }
.nick label { display: block; font-weight: 700; margin-top: .5rem; }
.nick input[type="text"] { width: 100%; min-height: 48px; font: 1.1rem var(--body); padding: .5rem .75rem; border: 2px solid var(--walnut); border-radius: 8px; }
.nick input[type="text"]:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.nick .nick-msg { color: #8a1c1c; font-weight: 600; min-height: 1.2em; }
body.nick-open { overflow: hidden; }

/* v5.17 (23 Nov): the blend's value pick, inside Woll's insights */
.bv-box p { margin: .4rem 0; }

/* Favourite Watch KPI scorecard in Admin (Paul, 23 Nov) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: .75rem 0 1rem; }
.kpi-box { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: .75rem .9rem; background: #fff; }
.kpi-box.kpi-target { border: 2px solid var(--brass); }
.kpi-box p { margin: .15rem 0; }
.kpi-id { font: 700 .8rem var(--body); color: var(--muted); }
.kpi-label { font-weight: 600; min-height: 2.6em; }
.kpi-now { font: 700 1.9rem/1.1 var(--display, var(--body)); font-variant-numeric: tabular-nums; }
.kpi-n, .kpi-goal { font-size: .9rem; }
.kpi-goal { font-weight: 600; color: #6b5522; }
.kpi-change { font-size: .88rem; font-variant-numeric: tabular-nums; }
.kpi-change.good { color: #1d5a2e; font-weight: 600; }
.kpi-change.bad { color: #8a1c1c; font-weight: 600; }
.kpi-dir { font-size: .8rem; }
.kpi-bench { font-weight: 600; }
.kpi-graph { margin: 0; }
.kpi-graph svg { width: 100%; max-width: 720px; height: auto; display: block; }
.kg-grid { stroke: #e2ded5; stroke-width: 1; }
.kg-axis { font: 11px var(--body); fill: #6b6b6b; }
.kg-line { fill: none; stroke-width: 2.5; }
.kg-line.k1 { stroke: #1d5a2e; } .kg-line.k8 { stroke: #8a1c1c; } .kg-line.k6 { stroke: #4a5d8a; stroke-dasharray: 1 0; }
.kg-target { stroke-width: 1.5; stroke-dasharray: 6 4; }
.kg-target.k1 { stroke: #1d5a2e; } .kg-target.k8 { stroke: #8a1c1c; }
.kpi-graph figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; margin-top: .4rem; }
.kg-key::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: .35rem; vertical-align: middle; }
.kg-key.k1::before { background: #1d5a2e; } .kg-key.k8::before { background: #8a1c1c; } .kg-key.k6::before { background: #4a5d8a; }

/* v5.26 (OW-CORE, Paul 24 Nov 08:58): tidy Woll's insights - sport, then market, one line per call. */
.ti-woll .wm-sport > summary { display: flex; align-items: center; gap: .5rem; }
.ti-woll .wm-market { border-top: 1px solid #eadfcd; padding: .6rem 0 .2rem; }
.ti-woll .wm-market:first-of-type { border-top: 0; }
.ti-woll .wm-h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-size: 1rem; }
.ti-woll .wm-list { list-style: none; margin: 0; padding: 0; }
.ti-woll .wm-pick { padding: .3rem 0; line-height: 1.45; }
.ti-woll .wm-pick + .wm-pick { border-top: 1px dashed #efe6d6; }
.ti-woll .wm-label { display: inline-block; font-size: .75rem; font-weight: 600; color: #5c1a26; background: #f6eee2; border-radius: 4px; padding: 0 .35rem; margin-right: .25rem; }
.ti-woll .wm-price { white-space: nowrap; font-weight: 600; margin-left: .25rem; }
.ti-woll .wm-none { margin: 0 0 .3rem; }
.ti-woll .wm-patent { margin-top: .6rem; padding: .5rem .6rem; background: #faf6ee; border-radius: 6px; }
.sp-bit { white-space: nowrap; }
@media (max-width: 640px) { .ti-woll .wm-price { display: inline-block; } .ti-woll .wm-label { display: table; margin-bottom: .15rem; } }
/* v5.27 (OW-CORE, Paul 24 Nov 09:05): racing by racecourse, then race time; "No pick" where we have no horse. */
.ti-woll .wm-race { padding: .3rem 0; line-height: 1.45; }
.ti-woll .wm-race + .wm-race { border-top: 1px dashed #efe6d6; }
.ti-woll .wm-off { display: inline-block; min-width: 3.2rem; font-weight: 700; }
.ti-woll .wm-race .wm-list { margin: .15rem 0 0 3.2rem; }
.ti-woll .wm-nopick { color: #8a8070; font-size: .85rem; white-space: nowrap; }
@media (max-width: 640px) { .ti-woll .wm-race .wm-list { margin-left: 0; } }
/* v5.29: market and racecourse blocks are drop-downs */
.ti-woll details.wm-market > summary.wm-h { cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; margin: 0 0 .35rem; }

/* ---------------- UAT v6.00: Today's insights grid (Paul, 25 Nov). Compact, same on PC and phone. */
.g-wrap { max-width: 44rem; margin: 0 auto 1rem; font-size: .9rem; }
.g-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; margin: 0 0 .6rem; }
.g-tab { display: flex; justify-content: center; align-items: center; gap: .3rem; white-space: nowrap; border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: .4rem .3rem; font: 600 .85rem/1.2 var(--body); cursor: pointer; }
.g-tab span { font-weight: 500; font-size: .75rem; background: var(--chalk); border-radius: 999px; padding: 0 .45rem; }
.g-tab.on { background: var(--green); border-color: var(--green); color: #fff; }
.g-tab.on span { background: rgba(255,255,255,.2); }
.g-comp { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); margin: 0 0 .5rem; overflow: hidden; }
.g-comp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: #f1ede6; font: 600 1rem/1.2 var(--display); color: var(--green); }
.g-comp > summary::-webkit-details-marker, .g-match > summary::-webkit-details-marker, .g-info > summary::-webkit-details-marker { display: none; }
.g-comp > summary::after { content: "▾"; margin-left: .3rem; color: var(--muted); }
.g-comp:not([open]) > summary::after { content: "▸"; }
.g-n { margin-left: auto; font: 500 .78rem/1 var(--body); color: var(--muted); }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 3.1rem); gap: 3px; align-items: center; padding: .35rem .5rem; list-style: none; cursor: pointer; }
.g-head { cursor: default; padding-top: .3rem; padding-bottom: 0; font-size: .7rem; color: var(--muted); text-align: center; }
.g-match { border-top: 1px solid var(--rule); }
.g-match[open] { background: #fbfaf7; }
.g-ev { line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.g-ev small { display: block; color: var(--muted); font-size: .72rem; }
.gc { display: block; text-align: center; padding: .3rem 0; border-radius: 6px; background: var(--chalk); color: #9aa19c; font-size: .8rem; line-height: 1.15; }
.gc b { display: block; font-weight: 700; }
.gc small { display: block; font-size: .62rem; font-weight: 500; }
.gp.g-todo { background: #eceae5; color: #3d443f; outline: 1px solid #b9b5ad; }
.gp.g-live { background: #dfeaf6; color: #17406a; outline: 1.5px solid var(--sky); }
.gp.g-won { background: #dcefe3; color: #11502c; outline: 1.5px solid var(--win); }
.gp.g-lost { background: #f6e0dc; color: #6e2117; outline: 1.5px solid var(--loss); }
.gp.g-void { background: #eceae5; color: #56615a; }
.g-rrow { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 4.4rem; gap: .5rem; align-items: center; padding: .4rem .5rem; list-style: none; cursor: pointer; }
.g-why { padding: .1rem .7rem .6rem; font-size: .82rem; }
.g-why p { margin: .2rem 0; }
.g-lab { font-size: .7rem; background: #f1ede6; color: var(--green); border-radius: 4px; padding: 0 .35rem; }
.g-acc { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: .5rem .7rem; margin: 0 0 .5rem; }
.g-comp .g-acc { border: 0; border-top: 1px solid var(--rule); border-radius: 0; margin: 0; }
.g-acc > p:first-child { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; }
.g-acc .gc { min-width: 4.2rem; padding: .25rem .4rem; }
.g-acc ol { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .82rem; }
.g-empty, .g-note { color: var(--muted); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .8rem; margin: 0 0 .5rem; }
.g-note { border: 0; background: none; padding: .2rem .2rem; font-size: .8rem; }
.g-key { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); margin: .4rem 0 0; }
.g-key .gc { display: inline-block; padding: .1rem .45rem; font-size: .7rem; }
.g-info { max-width: 44rem; margin: .8rem auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.g-info > summary { list-style: none; cursor: pointer; padding: .55rem .7rem; font: 600 1rem/1.2 var(--display); color: var(--muted); }
.g-info > summary::after { content: " ▸"; }
.g-info[open] > summary::after { content: " ▾"; }
.g-info > .ti-info { padding: 0 .7rem .7rem; }
@media (max-width: 420px) { .g-tabs { gap: .2rem; } .g-tab { font-size: .72rem; gap: .15rem; padding: .4rem .1rem; } .g-tab span { padding: 0 .28rem; font-size: .66rem; } .g-row { grid-template-columns: minmax(0, 1fr) repeat(5, 2.75rem); gap: 2px; padding: .3rem .35rem; } .gc { font-size: .74rem; } }
.gc small.gw { text-transform: none; letter-spacing: 0; }
.gp b { font-size: .88rem; }
.gp { padding: .45rem 0; }
.g-st { font-size: .7rem; border-radius: 4px; padding: 0 .35rem; }
.g-st.g-todo { background: #eceae5; color: #3d443f; } .g-st.g-live { background: #dfeaf6; color: #17406a; }
.g-st.g-won { background: #dcefe3; color: #11502c; } .g-st.g-lost { background: #f6e0dc; color: #6e2117; } .g-st.g-void { background: #eceae5; color: #56615a; }
.g-stack { display: grid; gap: 2px; }
.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; }
.g-list .g-head { position: sticky; top: 0; background: var(--paper); z-index: 1; padding-bottom: .25rem; }
.g-whyd { margin: 0 0 .35rem; }
.g-whyd > summary { list-style: none; cursor: pointer; display: inline-block; font-size: .75rem; font-weight: 600; color: var(--green); border: 1px solid var(--rule); border-radius: 999px; padding: .05rem .55rem; }
.g-whyd > summary::-webkit-details-marker { display: none; }
.g-whyd > summary::after { content: " ▸"; } .g-whyd[open] > summary::after { content: " ▾"; }
.g-whyd > p { margin: .3rem 0 0; }
.g-match > .g-row, .g-match > .g-rrow { cursor: default; padding-bottom: .1rem; }
.g-match > .g-whyd { margin: 0 .5rem .35rem; }
.g-match > .g-whyd > .g-why { padding: .3rem 0 .1rem; }
.g-match:has(.g-whyd[open]) { background: #fbfaf7; }
/* v6.05: 7 market columns */
.g-list .g-row { grid-template-columns: minmax(0, 1fr) repeat(7, 2.9rem); }
.g-list .g-head span { line-height: 1.15; }
@media (max-width: 420px) { .g-list .g-row { grid-template-columns: minmax(0, 1fr) repeat(7, 2.3rem); gap: 2px; padding: .3rem .3rem; } .g-list .gp b { font-size: .76rem; } .g-list .g-ev { font-size: .8rem; } .g-list .g-head { font-size: .62rem; } }
@media (max-width: 560px) {
  .g-list .g-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: .35rem .45rem .2rem; }
  .g-list .g-row > .g-ev { grid-column: 1 / -1; overflow-wrap: normal; font-size: .86rem; }
  .g-list .g-row > .g-ev br { display: none; }
  .g-list .g-row > .g-ev small { display: inline; margin-left: .35rem; }
  .g-list .g-head > span:first-child { display: none; }
  .g-list .g-head { font-size: .66rem; }
  .g-list .gp b { font-size: .82rem; }
}
.g-v { display: none; }
@media (max-width: 560px) { .g-list .g-v { display: inline; } }
/* v6.06: compact game rows, row = Why toggle */
.g-game > summary { list-style: none; cursor: pointer; }
.g-game > summary::-webkit-details-marker { display: none; }
.g-whyt { display: block; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--green); margin-top: .1rem; }
.g-whyt::after { content: " ▸"; } .g-game[open] .g-whyt::after { content: " ▾"; }
.g-game > .g-why { padding: .1rem .6rem .5rem; }
.g-game[open] { background: #fbfaf7; }
@media (max-width: 560px) {
  .g-wrap { font-size: .82rem; }
  .g-tab { padding: .3rem .1rem; }
  .g-list .g-row { padding: .3rem .4rem .35rem; gap: 2px; }
  .g-list .g-row > .g-ev { font-size: .8rem; line-height: 1.2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3rem; }
  .g-list .g-row > .g-ev small { font-size: .66rem; margin-left: 0; }
  .g-list .g-whyt { display: inline; margin: 0 0 0 auto; font-size: .66rem; }
  .g-list .gc { padding: .22rem 0; border-radius: 5px; font-size: .7rem; }
  .g-list .gp b { font-size: .76rem; }
  .g-list .g-head { font-size: .6rem; padding: .2rem .4rem 0; }
  .g-game > .g-why { font-size: .76rem; padding: 0 .45rem .4rem; }
  .g-key { font-size: .66rem; }
}
/* v6.08: colour by call type; result as a small mark */
.gc.gp { position: relative; outline-width: 1.5px; outline-style: solid; }
.gt-hc { background: #f3e1e4 !important; color: #5c1a24 !important; outline-color: #5c1a24 !important; }
.gt-ma { background: #dfeaf6 !important; color: #17406a !important; outline-color: #2c5f8a !important; }
.gt-vo { background: #f8ecd4 !important; color: #6b4a0e !important; outline-color: #c9a25a !important; }
.gt-ba { background: #ece4f6 !important; color: #46286e !important; outline-color: #6b46a3 !important; }
.gt-mf { background: #dcefe3 !important; color: #11502c !important; outline-color: #1d7a45 !important; }
.gt-gi { background: #dff1f1 !important; color: #0f4f52 !important; outline-color: #2a8a8e !important; }
.gt-dp { background: #fbe6d6 !important; color: #7a3410 !important; outline-color: #c46a2b !important; }
.gt-ls { background: #e6e8eb !important; color: #2d3640 !important; outline-color: #6b7580 !important; }
.gt-xx { background: #eceae5 !important; color: #3d443f !important; outline-color: #b9b5ad !important; }
.g-mk { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: .6rem; font-weight: 700; line-height: 1; }
.gm-won .g-mk { color: #1d7a45; } .gm-lost .g-mk { color: #a33a2c; } .gm-live .g-mk { color: #2c5f8a; }
.g-keyd { margin: .5rem 0 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: .8rem; }
.g-keyd > summary { list-style: none; cursor: pointer; padding: .45rem .7rem; font: 600 .95rem/1.2 var(--display); color: var(--green); }
.g-keyd > summary::-webkit-details-marker { display: none; }
.g-keyd > summary::after { content: " ▸"; } .g-keyd[open] > summary::after { content: " ▾"; }
.g-keyd > p, .g-keyd > .g-rules { margin: 0 .7rem .6rem; }
.g-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.g-chips .gc { display: inline-block; padding: .15rem .5rem; font-size: .72rem; font-weight: 600; }
.g-mark-key { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .74rem; }
.g-rules table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.g-rules th, .g-rules td { text-align: left; vertical-align: top; padding: .3rem .35rem; border-top: 1px solid var(--rule); }
.g-rules thead th { color: var(--muted); font-weight: 600; border-top: 0; }
.gt-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .35rem; outline: 1.5px solid; vertical-align: -.05rem; }
@media (max-width: 560px) {
  .g-rules thead { display: none; }
  .g-rules tr { display: block; border-top: 1px solid var(--rule); padding: .35rem 0; }
  .g-rules th, .g-rules td { display: block; border: 0; padding: .05rem 0; }
  .g-rules td::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media (max-width: 560px) { .g-rules td.g-empty-td { display: none; } }
.g-keybox { margin: .5rem 0 0; padding: .5rem .6rem .35rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.g-keybox p { margin: 0 0 .3rem; }
.g-keyd { margin-top: .4rem; }
/* v6.10 (Paul, 25 Nov 02:43): smaller key */
.g-keybox { padding: .35rem .45rem .2rem; }
.g-keybox p { margin: 0 0 .2rem; }
.g-chips { gap: .2rem; }
.g-chips .gc { padding: .05rem .35rem; font-size: .62rem; font-weight: 600; border-radius: 4px; outline-width: 1px; }
.g-mark-key { gap: .6rem; font-size: .62rem; }
.g-keyd > summary { font-size: .8rem; padding: .3rem .55rem; }
/* v6.11: confidence colours (positive), signal icon */
.gc-firm { background: #d9efe1 !important; color: #0f4d2a !important; outline-color: #1d7a45 !important; }
.gc-fair { background: #dceaf7 !important; color: #16416b !important; outline-color: #2c5f8a !important; }
.gc-open { background: #f8eccf !important; color: #634509 !important; outline-color: #c9a25a !important; }
.gc-none { background: #eceae5 !important; color: #56615a !important; outline-color: #c9c5bc !important; }
.g-sig { display: inline-flex; align-items: flex-end; gap: 1px; height: .6rem; margin-right: .25rem; vertical-align: -.02rem; }
.g-sig b { display: block; width: 2px; background: currentColor; opacity: .25; border-radius: 1px; }
.g-sig b:nth-child(1) { height: 35%; } .g-sig b:nth-child(2) { height: 65%; } .g-sig b:nth-child(3) { height: 100%; }
.g-sig-open b:nth-child(1), .g-sig-fair b:nth-child(-n+2), .g-sig-firm b { opacity: 1; }
.gp > .g-sig { position: absolute; top: 3px; left: 3px; height: .5rem; margin: 0; }
.g-cf { display: inline-flex; align-items: center; font-weight: 700; font-size: .78rem; padding: 0 .35rem; border-radius: 4px; }
.g-rules-plain table { margin-bottom: .2rem; }
@media (max-width: 560px) {
  .g-rules-plain thead { display: table-header-group; }
  .g-rules-plain tr { display: table-row; padding: 0; }
  .g-rules-plain th, .g-rules-plain td { display: table-cell; border-top: 1px solid var(--rule); padding: .25rem .3rem; }
  .g-rules-plain td::before { content: none; }
}
.gp > .g-sig { position: static; height: .55rem; margin: 0 .2rem 0 0; }
.g-row > .gc.gp, .g-rrow > .gc.gp, .g-stack > .gc.gp { display: flex; align-items: center; justify-content: center; }
.g-row > .gc.gp > b, .g-stack > .gc.gp > b { display: inline; }
.g-chips .gc { display: inline-flex; align-items: center; }
.g-mk { top: 0; right: 2px; font-size: .55rem; }
.g-types { margin-top: .15rem !important; }
.g-tnote { flex-basis: 100%; font-size: .62rem; color: var(--muted); }
/* v6.14: For information only grid */
.gi-wal { background: #dcefe3 !important; color: #11502c !important; outline-color: #1d7a45 !important; }
.gi-chk { background: #f8eccf !important; color: #634509 !important; outline-color: #c9a25a !important; }
.gi-tst { background: #e6e8eb !important; color: #2d3640 !important; outline-color: #6b7580 !important; }
.g-infogrid { padding: .2rem .6rem .6rem; }
.g-sub { font: 600 1rem/1.2 var(--display); color: var(--green); margin: .6rem 0 .3rem; display: flex; align-items: center; gap: .4rem; }
.g-sub span { font: 500 .72rem/1 var(--body); background: var(--chalk); border-radius: 999px; padding: .15rem .45rem; color: var(--muted); }
.g-infofull { margin: .2rem .6rem .7rem; }
.g-infofull > .ti-info { padding: 0 .6rem .6rem; }
.g-rrow { list-style: none; cursor: pointer; }
.g-race { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.g-rrow .g-whyt { font-size: .66rem; }
@media (max-width: 560px) { .g-rrow { grid-template-columns: 2.6rem minmax(0, 1fr) 3.8rem; gap: .4rem; padding: .3rem .45rem; } .g-rrow .g-ev { font-size: .8rem; } }
.g-acc > p.muted { font-size: .78rem; margin: .2rem 0 0; }
.g-acc { padding: .4rem .6rem; }
/* v6.15: week-by-week days as drop-downs with the grid */
.day-drop > summary { list-style: none; cursor: pointer; }
.day-drop > summary::-webkit-details-marker { display: none; }
.day-drop > summary.day-head b::after { content: " ▸"; font-weight: 400; color: var(--muted); }
.day-drop[open] > summary.day-head b::after { content: " ▾"; }
.day-drop .g-comp { margin-top: .4rem; }
.day-drop > summary.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: 0; }
.day-drop[open] > summary.day-head { margin-bottom: .3rem; }
.days .g-comp { margin: .4rem 0 0; }
.gt-rt { background: #e9e3f5 !important; color: #3d2a66 !important; outline-color: #6b46a3 !important; }
/* v6.17: racing "For" column */
.g-rrow { grid-template-columns: 2.8rem minmax(0, 1fr) 6.2rem 4.4rem; }
.g-rhead { cursor: default; font-size: .68rem; color: var(--muted); padding-top: .3rem; padding-bottom: .1rem; }
.g-rhead > span:last-child { text-align: center; }
.g-for { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.g-forp { display: inline-block; max-width: 100%; font-size: .66rem; font-weight: 600; line-height: 1.25; padding: .05rem .35rem; border-radius: 4px;
  background: #f1ede6; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .g-rrow { grid-template-columns: 2.5rem minmax(0, 1fr) 5.2rem 3.6rem; gap: .35rem; } .g-forp { font-size: .6rem; } }
.g-race b { font-weight: 600; color: var(--ink); }
.g-rnote > summary { color: var(--green); }
.g-rnote-b { padding: .45rem .7rem .55rem; font-size: .84rem; }
.g-rnote-b p { margin: 0 0 .35rem; }
/* v6.22: Build your own football as the grid (6 market columns) */
.fx-list6 .g-row { grid-template-columns: minmax(0, 1fr) repeat(6, 3.4rem); }
.fx-list6 .gc small { display: block; font-size: .6rem; font-weight: 500; opacity: .8; }
.fx-list6 .gc b { font-size: .82rem; }
.fx-list6 .g-match.mine { box-shadow: inset 3px 0 0 #1d7a45; }
.gc-up { background: #eef4ef !important; color: #11502c !important; outline-color: #bcd8c4 !important; }
.fx-list6 .fx-sorted { box-shadow: inset 0 -2px 0 var(--green); }
.fx-list6 .g-why .fx-form { font-family: var(--mono, monospace); letter-spacing: .05em; }
@media (max-width: 560px) {
  .fx-list6 .g-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.fx-list6 .g-row > .gc, .fx-list6 .g-row > .gc.gp { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .25rem 0; }
.fx-list6 .g-why { font-size: .8rem; }
.fx-list6 .g-why p { margin: .15rem 0; }

.g-rnote-b { padding: .45rem .7rem .55rem; font-size: .84rem; }
.g-rnote-b p { margin: 0 0 .35rem; }
/* v6.23: Multiples tab */
.g-multi > p:first-child { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.g-multi .g-forp { white-space: normal; }
.g-forp-woll { background: #f3e1e4; color: #5c1a24; }
.g-multi ol { margin: .35rem 0 0; padding-left: 1.2rem; font-size: .8rem; }
.g-multi li { margin: .1rem 0; }
.g-legmk { font-size: .7rem; margin-left: .2rem; }
.g-pts { font-size: .85rem; white-space: nowrap; }
.g-pnote { font-size: .74rem; margin: .3rem 0 0; }
.g-wrap .g-multi ol, .g-wrap .g-multi li { font-size: .76rem; line-height: 1.35; }
.g-multi li .muted { font-size: .72rem; }
.g-legmk.gm-won { color: #1d7a45; } .g-legmk.gm-lost { color: #a33a2c; }
/* v6.24: multiples legs in the grid */
.g-legs { margin: .4rem -.6rem 0; border-top: 1px solid var(--rule); }
.g-legs .g-row { padding: .3rem .6rem; }
.g-legs .g-legrow + .g-legrow { border-top: 1px solid var(--rule); }
.g-legs .gc b { font-size: .8rem; }
.g-multi { padding-bottom: 0; }
/* v6.25: results in the insights format */
.res-grid { max-width: 44rem; }
.res-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-big { font-size: .95rem; margin-bottom: .4rem !important; }
.res-big .res-pnl { font-size: 1.25rem; font-weight: 700; margin-right: .4rem; }
.res-line { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); margin: .1rem 0 !important; border-top: 1px dashed var(--rule); padding-top: .15rem; }
.res-line b, .g-ptsr, .res-pnl { font-weight: 700; }
.pos { color: #1d7a45; } .neg { color: #a33a2c; }
.res-week > summary .g-n, .res-day > summary > span { display: flex; align-items: baseline; gap: .4rem; font: 500 .78rem/1.2 var(--body); }
.res-week > summary .res-pnl { font-size: .9rem; }
.res-day { border-top: 1px solid var(--rule); }
.res-day > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .45rem .7rem; background: #faf8f4; }
.res-day > summary::-webkit-details-marker { display: none; }
.res-day > summary b::after { content: " ▸"; font-weight: 400; color: var(--muted); }
.res-day[open] > summary b::after { content: " ▾"; }
.res-day > summary small, .res-week small { color: var(--muted); font-size: .72rem; }
.res-day > .g-comp, .res-day > .g-list { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.res-day > .g-comp > summary { font-size: .88rem; }
.res-day > .g-acc { border-radius: 0; border-left: 0; border-right: 0; margin: 0; }
.g-ptsr { font-size: .68rem; margin-left: .35rem; white-space: nowrap; }
.g-mright { display: inline-flex; align-items: center; gap: .4rem; }
.res-more { margin: .45rem 0 0; }
.res-week > summary { flex-wrap: wrap; }
.res-week > summary .g-n { margin-left: auto; }

/* Racing tests tiles (OW-CORE v5.46, 25 Nov 2026): one tile per racing category, every horse in a dropdown. */
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .75rem; margin: .75rem 0; }
.rl-tile { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; }
.rl-tile.rl-counted { border-top: 3px solid var(--green); }
.rl-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.rl-h h3 { margin: 0; font: 600 1.15rem/1.2 var(--display); color: var(--green); }
.rl-tag { font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; white-space: nowrap; }
.rl-tag.counted { background: var(--green); color: #fff; }
.rl-tag.test { background: #ece9e2; color: var(--muted); }
.rl-what { margin: 0; font-size: .85rem; }
.rl-wl { margin: .2rem 0 0; font-size: 1.4rem; }
.rl-wl .fw-lost { display: inline; font-size: .95rem; margin-left: .4rem; }
.rl-pts, .rl-week { margin: 0; font-size: .9rem; }
.rl-drop { margin-top: .4rem; }
.rl-drop > summary { cursor: pointer; font-weight: 600; color: var(--green); }
.rl-day { margin: .35rem 0 0 .2rem; }
.rl-day > summary { cursor: pointer; font-size: .9rem; }
.rl-list { list-style: none; margin: .25rem 0 .5rem; padding: 0; }
.rl-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; padding: .4rem 0; border-top: 1px solid var(--rule); font-size: .85rem; }
.rl-row .rl-when { flex: 1 1 100%; color: var(--muted); }
.rl-row .rl-when b { color: var(--ink); font-weight: 500; }
.rl-row .rl-horse { flex: 1 1 auto; }
.rl-row .rl-price { color: var(--muted); }
.rl-row .rl-res { flex: 1 1 auto; }
.rl-row .rl-tag { margin-left: auto; }
.rl .pos { color: var(--win); font-weight: 600; } .rl .neg { color: var(--loss); font-weight: 600; }
@media (max-width: 40rem) { .rl-grid { grid-template-columns: 1fr; } }
.fx-list6 .fx-acts { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; padding: .25rem .5rem .6rem; border-bottom: 1px solid var(--line, #e6e0d6); }
.fx-list6 .fx-acts .om-meta { margin: 0 auto 0 0; font-size: .8rem; }
.fx-list6 .fx-acts button { font-size: .8rem; padding: .3rem .7rem; min-height: 0; }
.fx-list6 .fx-g { border-bottom: 0; }
.fx-list6 .fx-acts .mon-btn, .fx-list6 .fx-acts .call-btn { font-size: .78rem !important; padding: .2rem .65rem !important; min-height: 0 !important; line-height: 1.3; }
.fx-list6 .fx-acts { padding: 0 .5rem .45rem; }
/* UAT v6.27 (Paul, 25 Nov 08:33): members' league, one table by ROI, in one drop-down */
.home-card.lg2 { padding: 0; border-top: 0; border-left: 4px solid var(--green); overflow: hidden; }
.lg2-box > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1rem 1.25rem; background: linear-gradient(180deg, #fff, #faf8f4); }
.lg2-box > summary::-webkit-details-marker { display: none; }
.lg2-box > summary::after { content: "▾"; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; color: var(--green); font-size: 1.1rem; transition: transform .2s; }
.lg2-box[open] > summary::after { transform: rotate(180deg); }
.lg2-head { display: flex; flex-direction: column; }
.lg2-title { font: 700 1.6rem/1.05 var(--display); color: var(--green); letter-spacing: .01em; }
.lg2-sub { font-size: .85rem; color: var(--muted); }
.lg2-you { grid-column: 1 / -1; justify-self: start; font: 600 .85rem/1.2 var(--body); background: #e3f1e6; color: #1d5a2e; padding: .25rem .6rem; border-radius: 999px; }
.lg2-podium { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.lg2-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .3rem; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: .85rem; }
.lg2-chip b { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font: 700 .75rem/1 var(--body); background: #eee; color: var(--ink); }
.lg2-chip em, .lg2-you em { font-style: normal; font-weight: 700; }
.lg2 .pos { color: var(--win); } .lg2 .neg { color: var(--loss); }
.lg2 .p1 { background: var(--brass) !important; color: #fff !important; } .lg2 .p2 { background: #a9adb3 !important; color: #fff !important; } .lg2 .p3 { background: #b07a4a !important; color: #fff !important; }
.lg2-body { padding: .25rem 1.25rem 1.1rem; border-top: 1px solid var(--rule); }
.lg2-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .8rem 0 .6rem; }
.lg2-tabs button { font: 600 .85rem/1 var(--body); padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--green); background: #fff; color: var(--green); cursor: pointer; }
.lg2-tabs button[aria-pressed="true"] { background: var(--green); color: #fff; }
.lg2-tabs .om-meta { margin: 0 0 0 auto; }
.lg2-list { list-style: none; margin: 0; padding: 0; }
.lg2-row { display: grid; grid-template-columns: 2rem 1fr 6.5rem; align-items: center; gap: .6rem; padding: .55rem .25rem; border-bottom: 1px solid var(--rule); }
.lg2-row.house { background: #f8f4ea; }
.lg2-row.me { background: #eef7f0; }
.lg2-pos { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #f0eee9; font: 700 .85rem/1 var(--body); }
.lg2-row.house .lg2-pos { background: transparent; border: 1px solid #b8a575; color: #6b5522; font-size: .7rem; }
.lg2-who b { font-weight: 600; } .lg2-who small { display: block; color: var(--muted); font-size: .78rem; }
.lg2-roi { text-align: right; font: 700 1.15rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.lg2-roi i { display: block; height: 4px; margin: .25rem 0 0 auto; width: var(--w); min-width: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.lg2-gap { text-align: center; color: var(--muted); padding: .2rem; }
.lg2-empty { padding: .6rem 0; color: var(--muted); }
.lg2-me { margin: .7rem 0 0; }
.lg2-rules { margin-top: .6rem; } .lg2-rules > summary { cursor: pointer; font-size: .85rem; color: var(--green); }
@media (max-width: 600px) { .lg2-box > summary { padding: .85rem .9rem; } .lg2-body { padding: .2rem .8rem .9rem; } .lg2-title { font-size: 1.4rem; } .lg2-row { grid-template-columns: 1.9rem 1fr 5.2rem; gap: .45rem; } }
/* 25 Nov 13:21 (Paul): ROI column lined up on PC; no bar or stray tick when nothing has settled yet */
.lg2-roi { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; align-self: center; }
.lg2-roi i { margin: .25rem 0 0; }
.lg2-roi.none { color: var(--muted); font-weight: 600; }
/* v6.28 (Paul, 25 Nov 14:55): SP column on the racing tab */
.g-rrow { grid-template-columns: 2.8rem minmax(0, 1fr) 6.2rem 4.4rem 3.4rem; }
.g-sp { text-align: center; font: 600 .85rem/1.2 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); }
.g-sp.none { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .g-rrow { grid-template-columns: 2.3rem minmax(0, 1fr) 4.6rem 3.4rem 2.6rem; gap: .3rem; } .g-sp { font-size: .75rem; } }
/* v6.29 (Paul, 25 Nov 15:07): ROI at SP under each racing total */
.res-sp { display: block; color: var(--muted); }
.res-sp .res-spv { font-weight: 700; }
.res-sp .pos { color: var(--win); } .res-sp .neg { color: var(--loss); }
.res-week > summary .g-n, .res-day > summary > span:last-child { text-align: right; }
.res-week > summary .g-n, .res-day > summary > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 .5rem; }
.res-week > summary .g-n small, .res-day > summary > span:last-child small { white-space: nowrap; }
.res-week .res-sp, .res-day .res-sp { flex-basis: 100%; text-align: right; }
/* v6.30 (Paul, 25 Nov 15:48): points under each ROI in the members' league */
.lg2-roi .lg2-pts { display: block; font: 600 .8rem/1.2 var(--body); margin-top: .1rem; }
/* 25 Nov 13:26 (Paul): values flush with the right edge (same line as the date above); "Not settled yet" instead of a dash */
.lg2-row { padding-right: 0; grid-template-columns: 2rem 1fr 7.5rem; }
.lg2-roi { width: 100%; }
.lg2-roi i { width: var(--w); max-width: 100%; }
.lg2-roi.none { font: 500 .8rem/1.2 var(--body); color: var(--muted); text-align: right; }
@media (max-width: 600px) { .lg2-row { grid-template-columns: 1.9rem 1fr 5.6rem; } }

/* Gravy Train (OW-CORE v5.54, 26 Nov 2026) */
.gt-games { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.gt-g { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: .25rem .9rem; cursor: pointer; font-weight: 600; }
.gt-g.on { background: var(--green); color: #fff; border-color: var(--green); }
.gt-mine { margin-left: auto; font-size: .9rem; }
.gt-status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .8rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; margin: .5rem 0; }
.gt-status p { margin: 0; flex: 1 1 auto; }
.gt-off { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: .4rem .8rem; cursor: pointer; font-weight: 600; }
.gt-reset { background: none; border: 1px solid var(--rule); border-radius: 6px; padding: .35rem .7rem; cursor: pointer; }
.gt-stop { border: 1px solid var(--rule); border-radius: 6px; margin: .4rem 0; padding: .35rem .7rem; background: var(--paper); }
.gt-stop > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.gt-stop.gt-current { border-left: 4px solid var(--green); }
.gt-stop.gt-win { border-left: 4px solid var(--win); } .gt-stop.gt-loss { border-left: 4px solid var(--loss); }
.gt-pick { font-size: .9rem; } .gt-now { font-size: .85rem; color: var(--green); font-weight: 600; }
.gt-ride { margin: .4rem 0; font-size: .9rem; }
.gt-ev { margin: .5rem 0; } .gt-evh { margin: 0 0 .25rem; font-size: .9rem; }
.gt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .3rem; }
.gt-opt { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; align-items: baseline; text-align: left; border: 1px solid var(--rule); background: #fff; border-radius: 6px; padding: .3rem .5rem; cursor: pointer; font-size: .85rem; }
.gt-opt[disabled] { cursor: default; opacity: .75; }
.gt-opt.on { border-color: var(--green); background: #eef5ef; font-weight: 600; opacity: 1; }
.gt-o { color: var(--muted); } .gt-c { color: var(--green); font-weight: 600; }
.gt-woll { margin: .6rem 0; } .gt-wl { margin: .3rem 0 .3rem 1.2rem; font-size: .88rem; } .gt-foot { font-size: .82rem; }

/* Every rule since we started (OW-CORE v5.55, 26 Nov 2026) */
.progress-rules { margin: 1rem 0; border: 1px solid var(--rule); border-radius: 6px; padding: .4rem .9rem; background: var(--paper); }
.progress-rules > summary { cursor: pointer; } .progress-rules > summary h2 { display: inline; font-size: 1.15rem; margin: 0; }
.rp-scroll { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .3rem 0 1rem; }
.rp-table th, .rp-table td { text-align: left; padding: .3rem .45rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rp-table td:nth-child(2) { white-space: normal; }
.rp-table th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.rp-table tr.rp-counted td:nth-child(3) { font-weight: 600; color: var(--green); }
.rp-table .neg { color: var(--loss); font-weight: 600; }
.rp-sort { font-size: .9rem; } .rp-b { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: .15rem .7rem; cursor: pointer; }
.rp-b.on { background: var(--green); color: #fff; border-color: var(--green); }
/* Gravy Train v5.56: horses to win or to place */
.gt-horses { display: grid; gap: .25rem; }
.gt-horse { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(10rem, 12rem) minmax(10rem, 12rem); gap: .3rem; align-items: center; }
.gt-hn { font-size: .88rem; font-weight: 600; }
@media (max-width: 560px) { .gt-horse { grid-template-columns: 1fr 1fr; } .gt-hn { grid-column: 1 / -1; } }
.rp-table td.rp-today { font-weight: 600; color: var(--green); }

/* Today's selections: how many rules agree (OW-CORE v5.58) */
.pm-table td.pm-c, .pm-table td.pm-t { white-space: normal; min-width: 10rem; font-size: .82rem; }
.pm-table td.pm-c { color: var(--green); font-weight: 600; }
.pm-won { color: var(--win); font-weight: 600; } .pm-lost { color: var(--loss); font-weight: 600; }
.pm-table td:nth-child(3), .pm-table td:nth-child(4) { white-space: normal; min-width: 8rem; }
.pm-table td.pm-c, .pm-table td.pm-t { min-width: 9rem; max-width: 16rem; }
/* Rule ROI arrows on insights (OW-CORE v5.59) */
.g-ra { font-size: .7em; margin-right: .15em; vertical-align: .1em; }
.g-ra-up { color: var(--win, #1f7a3a); } .g-ra-down { color: var(--loss, #b3261e); }
.g-rl { font-size: .8rem; margin-top: .1rem; }
.pm-table td.pm-ins { font-weight: 600; color: var(--green); } .pm-table td.pos { color: var(--win, #1f7a3a); font-weight: 600; } .pm-table td.neg { color: var(--loss, #b3261e); font-weight: 600; }

/* UAT v6.33 mock-up (Paul, 26 Nov 19:24): Build your own in three parts — criteria, matches (scrolls), watch list */
.byo { display: grid; gap: 1rem; }
.byo-top, .byo-mid, .byo-bot { background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.byo-top { padding: .9rem; }
.byo-switch { display: grid; grid-template-columns: 1fr 1fr; background: #f1ece3; border-radius: 999px; padding: 4px; margin-bottom: .8rem; }
.byo-switch button { border: 0; background: transparent; border-radius: 999px; padding: .6rem; font: 700 .95rem/1 var(--body); color: var(--muted); cursor: pointer; }
.byo-switch button[aria-selected="true"] { background: var(--green); color: #fff; }
.byo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.byo-tile { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--rule); border-radius: 10px; padding: .55rem .65rem; background: #fbf9f5; text-align: left; font: inherit; color: inherit; }
.byo-wide { grid-column: 1 / -1; }
.byo-l { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.byo-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.byo-chips button { border: 1px solid var(--green); background: #fff; color: var(--green); border-radius: 999px; padding: .35rem .7rem; font: 600 .82rem/1 var(--body); cursor: pointer; }
.byo-chips button[aria-pressed="true"] { background: var(--green); color: #fff; }
.byo-step { display: grid; grid-template-columns: 2rem 1fr 2rem; align-items: center; }
.byo-step button { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--rule); background: #fff; font: 700 1.1rem/1 var(--body); color: var(--green); cursor: pointer; }
.byo-step b { text-align: center; font: 700 1.05rem/1 var(--display); color: var(--ink); }
.byo-sw { cursor: pointer; justify-content: space-between; }
.byo-knob { align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: #e7e2d8; color: var(--muted); font: 700 .8rem/1 var(--body); }
.byo-sw[aria-pressed="true"] .byo-knob { background: var(--win); color: #fff; }
.byo-tile select { font: inherit; padding: .35rem; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.byo-save { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; }
.byo-save .om-meta { margin: 0; font-size: .8rem; }
.byo-mid { overflow: hidden; }
.byo-mid-h, .byo-watch > summary { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); background: #faf8f4; }
.byo-mid-h h3, .byo-watch h3 { margin: 0; font: 700 1rem/1.2 var(--display); color: var(--green); }
.byo-scroll { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.byo-list, .byo-wl { list-style: none; margin: 0; padding: 0; }
.byo-ev { padding: .6rem .9rem; border-bottom: 1px solid var(--rule); }
.byo-ev-h { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.byo-time { font: 700 .9rem/1 var(--body); font-variant-numeric: tabular-nums; }
.byo-ev-t b { display: block; font-weight: 600; } .byo-ev-t small { display: block; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byo-ev .mon-btn { font-size: .8rem; padding: .35rem .8rem; min-height: 0; }
.byo-mk { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 0 3.5rem; }
.byo-m { font-size: .78rem; background: #f3eee4; border-radius: 999px; padding: .2rem .6rem; }
.byo-m.best { background: #e3f1e6; color: #1d5a2e; } .byo-m small { color: var(--muted); }
.byo-watch > summary { cursor: pointer; list-style: none; } .byo-watch > summary::-webkit-details-marker { display: none; }
.byo-wl li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto 4.6rem; gap: .5rem; align-items: center; padding: .55rem .9rem; border-bottom: 1px solid var(--rule); }
.byo-odds { font-variant-numeric: tabular-nums; } .byo-res { text-align: right; font-weight: 700; font-size: .85rem; } .byo-res small { display: block; font-weight: 600; font-size: .75rem; }
.byo .pos { color: var(--win); } .byo .neg { color: var(--loss); } .byo .muted { color: var(--muted); }
.byo-bot .om-meta { padding: .5rem .9rem .8rem; margin: 0; }
@media (min-width: 760px) { .byo-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .byo-wide { grid-column: span 2; } .byo-scroll { max-height: 420px; } }
.byo-more { margin-top: .6rem; border: 1px dashed var(--rule); border-radius: 10px; padding: .6rem .65rem; background: #fdfcf9; display: grid; gap: .5rem; }
.byo-groups { display: flex; flex-wrap: wrap; gap: .35rem; }
.byo-groups button { flex: none; border: 1px solid var(--rule); background: #fff; border-radius: 8px; padding: .4rem .65rem; font: 600 .8rem/1 var(--body); color: var(--ink); cursor: pointer; }
.byo-groups button.has { border-color: var(--green); color: var(--green); }
.byo-groups button b { display: inline-grid; place-items: center; min-width: 1.1rem; height: 1.1rem; border-radius: 999px; background: var(--green); color: #fff; font-size: .7rem; margin-left: .2rem; }
.byo-groups button[aria-expanded="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.byo-groups button[aria-expanded="true"] b { background: #fff; color: var(--green); }
.byo-gpanel { display: grid; gap: .5rem; }
.byo-mini { padding: .45rem .55rem; }
.byo-onchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.byo-x { border: 0; background: #e3f1e6; color: #1d5a2e; border-radius: 999px; padding: .25rem .6rem; font: 600 .75rem/1 var(--body); cursor: pointer; }
/* v6.34 (Paul, 26 Nov 19:38): Build your own in two parts — your criteria with their records, then today's selections */
.byo-crit { background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.byo-crit-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; padding: .7rem .9rem; background: #faf8f4; border-bottom: 1px solid var(--rule); }
.byo-crit-h h3 { margin: 0; font: 700 1.05rem/1.2 var(--display); color: var(--green); } .byo-crit-h .om-meta { margin: 0; font-size: .78rem; }
.byo-crs { display: grid; }
.byo-cr { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 3.6rem); align-items: center; gap: .3rem; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: #fff; padding: .6rem .9rem; font: inherit; color: inherit; cursor: pointer; border-left: 4px solid transparent; }
.byo-cr.on { background: #f6efe6; border-left-color: var(--green); }
.byo-cr-n b { display: block; font-weight: 700; } .byo-cr-n small { display: block; color: var(--muted); font-size: .74rem; }
.byo-st { text-align: center; } .byo-st small { display: block; font-size: .66rem; color: var(--muted); } .byo-st b { font: 700 .95rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.byo-crit .pos { color: var(--win); } .byo-crit .neg { color: var(--loss); }
.byo-editd > summary { cursor: pointer; padding: .65rem .9rem; font-weight: 700; color: var(--green); }
.byo-edit.byo-top { border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
.byo-acts { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.byo-acts button { font-size: .78rem !important; padding: .3rem .7rem !important; min-height: 0 !important; white-space: nowrap; }
@media (max-width: 600px) {
  .byo-cr { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: .45rem; }
  .byo-cr-n { grid-column: 1 / -1; }
}
/* v6.35 (Paul, 26 Nov 19:49): reset criteria */
.byo-reset { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--rule); }
.byo-reset .om-meta { margin: 0 auto 0 0; font-size: .82rem; }
.byo-reset-btn { border: 0; background: none; color: var(--loss); font: 600 .85rem/1 var(--body); text-decoration: underline; cursor: pointer; padding: .3rem 0; }
/* v6.36 (Paul, 26 Nov 19:58): up to 5 criteria — count, delete, add (greyed at 5) */
.byo-count { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: #e3f1e6; color: #1d5a2e; font: 700 .78rem/1.3 var(--body); vertical-align: middle; }
.byo-count.full { background: #f3e0dc; color: var(--loss); }
.byo-crw { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem; border-bottom: 1px solid var(--rule); }
.byo-crw .byo-cr { border-bottom: 0; }
.byo-del { border: 0; border-left: 1px solid var(--rule); background: #fff; color: var(--muted); font-size: 1rem; cursor: pointer; }
.byo-del:hover, .byo-del:focus-visible { background: #fbeceb; color: var(--loss); }
.byo-add { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); }
.byo-add .byo-l { width: 100%; }
.byo-add-btn { border: 1px dashed var(--green); background: #fff; color: var(--green); border-radius: 999px; padding: .5rem 1rem; font: 700 .88rem/1 var(--body); cursor: pointer; }
.byo-add-btn:disabled { border-color: #cfc9be; color: #a8a297; background: #f2efe9; cursor: not-allowed; }
.byo-add.full .om-meta { margin: 0; font-size: .8rem; }
.byo-cancel { border-color: var(--rule) !important; color: var(--muted) !important; }
.byo-over { margin: 0; padding: .55rem .9rem; background: #fbf3e2; font-size: .85rem; }

/* rules tables, periods (Paul 27 Nov 16:01) */
.rp-periods td.rp-c { font-weight: 600; font-variant-numeric: tabular-nums; cursor: help; white-space: nowrap; }
.rp-periods td.rp-c:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.rp-periods .rp-h { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; }
.rp-periods .rp-h.on { text-decoration: underline; font-weight: 700; }
.rp-periods tr.rp-tip td { font-size: .85em; background: rgba(0,0,0,.04); color: inherit; }
.rp-periods td.rp-c { position: relative; }
@media (hover: hover) {
  .rp-periods td.rp-c[data-tip]:hover::after, .rp-periods td.rp-c[data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 280px;
    white-space: normal; font-weight: 400; font-size: 13px; line-height: 1.4; text-align: left; color: #fff; background: #3a2a2e;
    padding: 6px 9px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
}
.rp-periods td.rp-won { white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-for .g-rule { display: block; margin-top: .15rem; font-size: .7rem; line-height: 1.25; color: var(--muted); white-space: normal; }
.g-multi .g-mko { display: inline-block; margin: 0 .4rem; padding: .1rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; }
.g-multi .g-mko.started { color: var(--muted); }
.res-tl { display: block; color: var(--muted); }
.res-tl .pos, .res-tline .pos { color: var(--pos, #2e7d4f); } .res-tl .neg, .res-tline .neg { color: var(--neg, #a33a3a); }
.g-multi.res-test { opacity: .8; border-style: dashed; }
.res-tline { color: var(--muted); font-style: italic; }

/* 28 Nov: rule table (members' football) and health check */
.rt-scroll { overflow-x: auto; }
.rt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rt-table th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--muted); padding: .35rem .5rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rt-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.rt-table td small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.rt-table .rt-n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-table .pos { color: var(--pos, #2e7d4f); } .rt-table .neg { color: var(--neg, #a33a3a); }
.rt-num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--ink, #5a1a24); color: #fff; }
.rt-price .gc { margin: 0; }
.kp-woll td { font-weight: 600; }
.kp-early { display: inline-block; font-size: .65rem; font-weight: 600; padding: 0 .35rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); vertical-align: middle; }
@media (max-width: 640px) { .rt-table { font-size: .82rem; } .rt-table td, .rt-table th { padding: .35rem .3rem; } }
.rt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: .25rem 0 .5rem; }
.rt-top h3 { margin: 0; font-size: 1.15rem; } .rt-top span { font-size: .8rem; color: var(--muted); }
.rt-num { background: #dbeafb; color: #1d4f91; }
.rt-pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #eee; color: #555; }
.rt-pill.won { background: #dff1e4; color: #1f6b3a; } .rt-pill.lost { background: #f7dede; color: #8f2c2c; } .rt-pill.void { background: #ececec; color: #666; }
.rt-total td { background: rgba(0,0,0,.03); }
.rt-past, .rt-big { margin-top: .75rem; }
.rt-res .rt-match { min-width: 10.5rem; } .rt-res .rt-ins { min-width: 7rem; }

/* 28 Nov 10:53 (Paul): rule tables as cards on a phone. Line 1: rule badge, insight, price. Line 2: match or race.
   Line 3: the rule's record (Wins, ROI, Drop, Since win) as four small labelled figures. */
.rt-res .rt-pts { display: none; }
@media (max-width: 640px) {
  .rt-scroll { overflow: visible; }
  .rt-table:not(.rt-list):not(.kp-table) thead { display: none; }
  .rt-table:not(.rt-list):not(.kp-table), .rt-table:not(.rt-list):not(.kp-table) tbody { display: block; }
  .rt-table:not(.rt-list):not(.kp-table) tr { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem;
    padding: .55rem .2rem; border-bottom: 1px solid var(--rule); }
  .rt-table:not(.rt-list):not(.kp-table) td { display: block; border: 0; padding: 0; }
  .rt-table .rt-rule { order: 1; flex: 0 0 auto; }
  .rt-table .rt-ins { order: 2; flex: 1 1 0; min-width: 0; font-weight: 600; font-size: .95rem; }
  .rt-table .rt-price { order: 3; flex: 0 0 auto; text-align: right; }
  .rt-table .rt-price small { text-align: right; }
  .rt-table .rt-match { order: 4; flex: 1 0 100%; padding-left: 2.25rem !important; min-width: 0 !important; }
  .rt-table .rt-match b { font-weight: 500; font-size: .85rem; } .rt-table .rt-match b br { display: none; }
  .rt-table .rt-match small { display: inline; } .rt-table .rt-match small::before { content: " · "; }
  .rt-table .rt-res-c { order: 5; flex: 1 0 100%; padding-left: 2.25rem !important; }
  .rt-res .rt-pts { display: inline; margin-left: .4rem; font-variant-numeric: tabular-nums; }
  .rt-table .rt-hide-m { display: none !important; }
  .rt-table .rt-s { order: 6; flex: 1 1 0; font-size: .8rem; text-align: left; line-height: 1.2; }
  .rt-table .rt-price + .rt-s, .rt-table .rt-hide-m + .rt-s { margin-left: 2.25rem; }
  .rt-table .rt-s::before { content: attr(data-l); display: block; font-size: .65rem; color: var(--muted); font-weight: 400; }
  .rt-table .rt-num { min-width: 1.75rem; height: 1.75rem; }
  .rt-table tr.rt-total { justify-content: space-between; } .rt-table tr.rt-total td[colspan="4"] { display: none; }
  .rt-table tr.rt-total td { order: 0; }
  .rt-top h3 { font-size: 1.05rem; }
}

/* 28 Nov: Gravy Train points and ROI after each stop; the member's last 5 days */
.gt-run { display: inline-block; margin-left: .4rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.gt-run b { color: var(--ink, inherit); } .gt-run .pos { color: var(--pos, #2e7d4f); } .gt-run .neg { color: var(--neg, #a33a3a); }
.gt-report { margin-top: 1rem; } .gt-rep { margin: .4rem 0 .8rem; } .gt-rep-g { margin: .2rem 0; font-weight: 700; }
.gt-rep details { margin: .15rem 0; } .gt-rep summary { cursor: pointer; font-size: .9rem; }
.gt-report .pos { color: var(--pos, #2e7d4f); } .gt-report .neg { color: var(--neg, #a33a3a); }
.rt-bet b { font-weight: 600; } .rt-bet small.pos { color: var(--pos, #2e7d4f); } .rt-bet small.neg { color: var(--neg, #a33a3a); }
@media (max-width: 640px) { .rt-table .rt-bet small { display: none; } }

/* 28 Nov: Tests today table under the rule table (same columns) */
.rt-tests{margin-top:.6rem}
.rt-tests .rt-table td.rt-match{min-width:15em}
.rt-tests>summary .g-n{margin-left:.3rem}
.rt-table td.rt-rule .rt-tag{display:block;margin-top:.2rem;font-size:.68rem;font-weight:600;color:#2f6b3a}
.rt-table td.rt-rule .rt-tag-t{color:#7a6a55}
.rt-table tr.rt-testrow td.rt-ins,.rt-table tr.rt-testrow td.rt-match b{color:#5d5348}
.rt-table td.rt-match{min-width:15em}
/* 28 Nov (Paul 16:57): today's totals above the rule table */
.rt-sums{display:flex;flex-wrap:wrap;gap:.5rem;margin:.2rem 0 .7rem}
.rt-sum{flex:1 1 18rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.55rem .8rem;border:1px solid #e3ddd3;border-radius:10px;background:#fff}
.rt-sum>b{flex:1 0 100%;font-size:.8rem;color:#5e1a22}
.rt-sum-t>b{color:#7a6a55}
.rt-sum span{display:flex;flex-direction:column;font-size:1.05rem;font-weight:600;min-width:4.2rem}
.rt-sum span i{font-style:normal;font-size:.7rem;font-weight:500;color:#7a7067}
.rt-sum em{font-style:normal}
/* 29 Nov (Paul 09:44): running accumulator value at the start of each Gravy Train stop */
.gt-stop>summary .gt-pot{display:inline-block;min-width:6.2rem;margin-right:.5rem;font-weight:700;color:#5e1a22;font-variant-numeric:tabular-nums}
.gt-stop>summary .gt-pot-in{color:#2f7a3d}
.gt-stop>summary .gt-pot-x{color:#9a948c;text-decoration:line-through;font-weight:500}
.gt-wl .gt-pot{display:inline-block;min-width:6.2rem;margin-right:.4rem;font-weight:700;color:#5e1a22}
.gt-wl .gt-pot-in{color:#2f7a3d}
.gt-wl .gt-pot-x{color:#9a948c;text-decoration:line-through;font-weight:500}
/* 29 Nov: Big Game Watch (test) */
.bgw .ff-chips{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.25rem}
.bgw .ff-chip{font-size:.68rem;padding:.05rem .4rem;border-radius:999px;background:#e8f0fb;color:#1d4f91}
.bgw td.bgw-why{font-size:.8rem;color:#5d5348;min-width:14em}
.bgw .bgw-p{display:block;color:#5d5348;font-size:.72rem;margin-top:.1rem}
.bs-sum td.bs-c b{display:block}
.bs-sum td.bs-c small{color:#7a7067}
/* 29 Nov (Paul 10:05): Build a bet results */
.br .br-all{font-size:1rem;margin:.2rem 0 .6rem}
.br .br-grid{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-start}
.br .br-grid table{width:auto;min-width:16rem}
.br td.br-c b{display:block}
.br td.br-c small{font-size:.72rem}
.br .br-g{border-bottom:1px solid #ece6dc;padding:.35rem 0}
.br .br-g>summary{display:flex;align-items:center;gap:.8rem;cursor:pointer;list-style:none}
.br .br-g>summary::-webkit-details-marker{display:none}
.br .br-m{flex:1;display:flex;flex-direction:column}
.br .br-m small{color:#7a7067}
.br .br-t{display:flex;flex-direction:column;align-items:center;min-width:4.2rem;font-size:.95rem}
.br .br-t i{font-style:normal;font-size:.68rem;color:#7a7067}
.br .br-legs{margin:.4rem 0 .2rem;padding-left:.2rem;list-style:none;font-size:.85rem}
.br .br-legs li{margin:.2rem 0}
.rt-table td.rt-rule .rt-also{display:block;margin-top:.2rem;font-size:.68rem;color:#8a8178;white-space:nowrap}
.rt-table td.rt-rule b .rt-num{font-weight:800}
.rt-table small.rt-sp{display:block;color:#7a7067;font-size:.7rem;margin-top:.1rem}
.gt-house .gt-late{display:inline-block;font-size:.7rem;padding:0 .4rem;border-radius:999px;background:#f3e6c8;color:#7a5a14;margin-left:.3rem}
.rp-table .rp-num{margin-right:.35rem;vertical-align:middle}
.rt-sum span.rt-sum-sp{color:#4a4440}
.rt-sum span.rt-sum-sp i{color:#8a7f75}
.rt-sum-of{flex:1 0 100%;font-size:.72rem;color:#7a7067;margin-top:-.4rem}
.kp-table tr.kp-sub td:first-child{padding-left:1.6rem;color:#5c544c;font-size:.92em}
.kp-table tr.kp-sub td{background:#fbfaf7}
.gt-rebuilt{background:#fff4e0;border-left:3px solid #c98a1b;padding:.45rem .7rem;margin:.5rem 0;font-size:.9rem;color:#4a3a1c}
