:root {
  --series-0: #0072b2;
  --series-1: #d55e00;
  --series-2: #009e73;
  --series-3: #cc79a7;
  --series-4: #8a6d00;
  --series-5: #5b5fc7;
  --background: #f4f5f2;
  --surface: #ffffff;
  --line: #dfe2da;
  --text: #1c2420;
  --muted: #66716a;
  --accent: #1f6f4a;
  --play: #1f7a4d;
  --play-soft: #dff2e6;
  --close: #9a6a00;
  --close-soft: #fbefcf;
  --skip-soft: #e9ebe6;
  --players: #9aa7a0;
  --model: #1f6f4a;
  --danger: #b3261e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --series-0: #56b4e9;
    --series-1: #ff8c42;
    --series-2: #3ddc97;
    --series-3: #f0a6ca;
    --series-4: #f0e442;
    --series-5: #a5a8ff;
    --background: #121614;
    --surface: #1b211e;
    --line: #2c3530;
    --text: #e7ece8;
    --muted: #96a39b;
    --accent: #6fcf9a;
    --play: #6fcf9a;
    --play-soft: #17392a;
    --close: #f0c35a;
    --close-soft: #3b3113;
    --skip-soft: #262d29;
    --players: #5d6963;
    --model: #6fcf9a;
    --danger: #ff8a80;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}

header, main, .information { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 0; }
h4 { margin: 0 0 6px; font-size: 14px; }
h4 small, small { color: var(--muted); font-weight: 400; }
.title { display: flex; align-items: baseline; gap: 10px; }
.title span, .status, .hint, .muted, .information { color: var(--muted); }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.information { font-size: 13px; margin-top: 4px; min-height: 19px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.dot.on { background: var(--play); }

section { margin: 22px 0; }
.heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.heading label, .hint { font-size: 13px; color: var(--muted); }

.cards { display: grid; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card.done { opacity: 0.78; }

button { font: inherit; color: inherit; cursor: pointer; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; }
.summary {
  display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left;
}
.summary:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.when, .what { display: flex; flex-direction: column; min-width: 0; }
.when strong { font-size: 16px; }
.countdown { font-size: 13px; color: var(--muted); white-space: nowrap; }
.countdown.soon { color: var(--close); font-weight: 600; }
.what span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.what .type { display: inline-block; padding: 0 6px; margin-right: 2px; border-radius: 5px; background: var(--accent); color: var(--surface); font-size: 12px; }

.verdict { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--skip-soft); color: var(--muted); }
.verdict.play { background: var(--play-soft); color: var(--play); }
.verdict.close { background: var(--close-soft); color: var(--close); }

.details { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.comments { margin: 10px 0 12px; padding-left: 18px; }
.comments li { margin: 3px 0; }
.comments li:first-child { font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
td { padding: 5px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
td small { display: block; }
.right { text-align: right; }
.number { width: 28px; color: var(--muted); }
.strong { font-weight: 650; }
tr.scratched { color: var(--muted); text-decoration: line-through; }
tr.winner td { background: var(--play-soft); }
tr.value .strong { color: var(--play); }
tr.marked .number { color: var(--accent); font-weight: 700; }
tr.marked .number::after { content: " ●"; font-size: 9px; vertical-align: middle; }

.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.system { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.system.out { opacity: 0.55; }
.system.won { border-color: var(--play); background: var(--play-soft); }
.system ol { margin: 0 0 8px; padding-left: 20px; }
.system li { margin: 3px 0; }
.payouts { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.payouts p { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.payout-bars { display: flex; align-items: flex-end; gap: 2px; margin: 6px 0; }
.payout-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; font-size: 11px; }
.payout-bar b { font-weight: 400; font-variant-numeric: tabular-nums; }
.payout-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--series-0); }
.payout-bar small { color: var(--muted); border-top: 1px solid var(--line); width: 100%; text-align: center; }
.mark { display: inline-block; min-width: 24px; padding: 0 5px; margin: 1px 3px 1px 0; border-radius: 5px; background: var(--skip-soft); text-align: center; font-weight: 600; }
.mark.hit { background: var(--play); color: var(--surface); }
dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }

.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 10px; }
.bars { width: 34%; min-width: 70px; }
.bar { display: block; height: 5px; margin: 2px 0; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; }
.bar.players span { background: var(--players); }
.bar.model span { background: var(--model); }

.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.guide dl { grid-template-columns: 130px 1fr; gap: 8px 14px; margin-top: 10px; font-size: 14px; }
.guide dd { text-align: left; }

body.login { display: grid; place-items: center; min-height: 100vh; }
.login form { width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.login p { color: var(--muted); margin: 6px 0 14px; }
.login input, .login button[type=submit] { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.login input { background: var(--background); color: var(--text); margin-bottom: 10px; }
.login button[type=submit] { background: var(--accent); color: var(--surface); border-color: var(--accent); font-weight: 600; }
.error { color: var(--danger) !important; min-height: 20px; margin: 10px 0 0 !important; }

@media (max-width: 560px) {
  .summary { grid-template-columns: 76px 1fr; }
  .summary .verdict { grid-column: 2; justify-self: start; }
  .guide dl { grid-template-columns: 1fr; }
  .race th:nth-child(4), .race td:nth-child(4), .race th:nth-child(7), .race td:nth-child(7) { display: none; }
}

nav { max-width: 980px; margin: 14px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--skip-soft); border-radius: 10px; }
.tab { border: 0; background: none; padding: 7px 16px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.tab span { font-weight: 400; font-size: 12px; margin-left: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 600; }
.verdict.lost { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.summary-line { margin: 16px 0 -6px; font-weight: 600; }
.summary-line:empty { display: none; }
section[hidden] { display: none; }

.what .bet { color: var(--text); font-size: 13px; margin-top: 3px; white-space: normal; }
.what .bet.played strong { color: var(--accent); }
.what .strip { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; color: var(--text); overflow: visible; }
.strip-leg { display: inline-flex; align-items: center; gap: 2px; }
.strip-leg i { font-style: normal; font-size: 11px; color: var(--muted); margin-right: 3px; }
.strip .mark { min-width: 20px; padding: 0 4px; margin: 0; font-size: 12px; color: var(--text); }
.strip .mark.hit, .mark.hit { color: var(--surface); }
.mark.miss { background: var(--danger); color: var(--surface) !important; }
.strip .pending { color: var(--muted); font-size: 13px; }
.strip-leg + .strip-leg { padding-left: 12px; border-left: 1px solid var(--line); }
.tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--skip-soft); color: var(--muted); vertical-align: 1px; }
.tag.played { background: var(--accent); color: var(--surface); }
tr.pick td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.live { border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background-color 2s ease-out; }
.live.changed { background: color-mix(in srgb, var(--close) 35%, transparent); transition: none; }

.trend-cell { white-space: nowrap; }
.trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.trend svg { display: block; overflow: visible; }
.trend polyline { fill: none; stroke: var(--players); stroke-width: 1.5; stroke-linejoin: round; }
.trend circle { fill: var(--players); }
.trend span { min-width: 40px; text-align: left; }
.trend.played { color: var(--text); font-weight: 600; }
.trend.played polyline { stroke: var(--accent); }
.trend.played circle { fill: var(--accent); }
.trend.drift { color: var(--text); }
.trend.drift polyline { stroke: var(--close); }
.trend.drift circle { fill: var(--close); }
.movers { margin: 8px 0 10px; font-size: 14px; }
@media (max-width: 560px) {
  .race th:nth-child(4), .race td:nth-child(4), .race th:nth-child(7), .race td:nth-child(7) { display: revert; }
  .race th:nth-child(5), .race td:nth-child(5), .race th:nth-child(8), .race td:nth-child(8) { display: none; }
  .trend svg { width: 48px; }
  .bars { display: none; }
}

.chart-title { margin: 14px 0 22px; }
.value-chart { margin: 0 0 16px; }
.value-rows { position: relative; display: grid; gap: 2px; }
.value-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.value-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.value-track { height: 12px; }
.value-bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--players); transition: width 0.4s ease; }
.value-number { text-align: right; font-weight: 600; }
.value-row.play .value-bar { background: var(--play); }
.value-row.play .value-name, .value-row.play .value-number { color: var(--play); font-weight: 700; }
.value-row.close .value-bar { background: var(--close); }
.value-row.close .value-name { color: var(--text); }
/* The lines are drawn over the bars: an overlay with the same columns as the rows, where the middle one is the scale */
.value-overlay { position: absolute; inset: -16px 0 0 0; display: grid; grid-template-columns: minmax(110px, 190px) 1fr 44px; gap: 10px; pointer-events: none; }
.value-scale { position: relative; }
.value-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--muted); }
.value-line i { position: absolute; top: -3px; left: 5px; font-style: normal; font-size: 11px; white-space: nowrap; color: var(--muted); }
.value-line.limit { border-left: 2px solid var(--play); }
.value-line.limit i { color: var(--play); font-weight: 700; }
.value-line.even i { left: auto; right: 5px; }
.leg .trend svg { width: 52px; }
.leg .trend span { min-width: 26px; }
.details { overflow-x: auto; }
@media (max-width: 560px) {
  table { font-size: 13px; }
  th, td { padding: 4px 3px; }
  .trend svg { width: 38px; }
  .trend span { min-width: 0; }
  .details { padding: 4px 10px 12px; }
  .value-row, .value-overlay { grid-template-columns: minmax(90px, 130px) 1fr 38px; gap: 6px; }
}

button.trend { background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; font: inherit; font-size: 12px; cursor: zoom-in; }
button.trend:hover, button.trend:focus-visible { background: color-mix(in srgb, var(--text) 8%, transparent); outline: none; }

dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-head h2 { font-size: 19px; }
.chart-head p { margin: 2px 0 0; font-size: 13px; }
/* Not `.close`: that is the class of the verdict Tveksam and of a bar in the value chart */
.dialog-close { border: 0; background: var(--skip-soft); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); flex: none; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin: 12px 0 6px; }
.chart-plot { position: relative; min-height: 320px; touch-action: none; }
.chart-plot svg { display: block; }
.chart-plot .grid { stroke: var(--line); stroke-width: 1; }
.chart-plot .axis { fill: var(--muted); font-size: 11px; }
.chart-plot .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart-plot .dot { fill: var(--accent); }
.chart-plot .dot.ring { stroke: var(--surface); stroke-width: 2; }
.chart-plot .latest { fill: var(--text); font-size: 13px; font-weight: 700; }
.chart-plot .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-plot .start { stroke: var(--close); stroke-width: 1.5; }
.chart-plot .tip { position: absolute; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--background); font-size: 12px; white-space: nowrap; pointer-events: none; text-align: center; }
.chart-plot .tip strong { display: block; font-size: 14px; }
.chart-plot .empty { padding: 120px 0; text-align: center; }
#chart-note { font-size: 12px; margin: 6px 0 0; }

/* Several horses in the large chart: a colour each, also on the button that picks the horse and in the labels */
.chart-plot .line.series-0 { stroke: var(--series-0); }
.chart-plot .dot.series-0 { fill: var(--series-0); }
.chart-plot tspan.series-0 { fill: var(--series-0); }
.swatch.series-0 { background: var(--series-0); }
.chip.horse.series-0 { background: var(--series-0); border-color: var(--series-0); }
.chart-plot .line.series-1 { stroke: var(--series-1); }
.chart-plot .dot.series-1 { fill: var(--series-1); }
.chart-plot tspan.series-1 { fill: var(--series-1); }
.swatch.series-1 { background: var(--series-1); }
.chip.horse.series-1 { background: var(--series-1); border-color: var(--series-1); }
.chart-plot .line.series-2 { stroke: var(--series-2); }
.chart-plot .dot.series-2 { fill: var(--series-2); }
.chart-plot tspan.series-2 { fill: var(--series-2); }
.swatch.series-2 { background: var(--series-2); }
.chip.horse.series-2 { background: var(--series-2); border-color: var(--series-2); }
.chart-plot .line.series-3 { stroke: var(--series-3); }
.chart-plot .dot.series-3 { fill: var(--series-3); }
.chart-plot tspan.series-3 { fill: var(--series-3); }
.swatch.series-3 { background: var(--series-3); }
.chip.horse.series-3 { background: var(--series-3); border-color: var(--series-3); }
.chart-plot .line.series-4 { stroke: var(--series-4); }
.chart-plot .dot.series-4 { fill: var(--series-4); }
.chart-plot tspan.series-4 { fill: var(--series-4); }
.swatch.series-4 { background: var(--series-4); }
.chip.horse.series-4 { background: var(--series-4); border-color: var(--series-4); }
.chart-plot .line.series-5 { stroke: var(--series-5); }
.chart-plot .dot.series-5 { fill: var(--series-5); }
.chart-plot tspan.series-5 { fill: var(--series-5); }
.swatch.series-5 { background: var(--series-5); }
.chip.horse.series-5 { background: var(--series-5); border-color: var(--series-5); }
.chip.horse { min-width: 36px; }
.chart-plot .tip span { display: block; }
.chart-plot .tip-row { display: flex !important; align-items: center; gap: 6px; text-align: left; }
.chart-plot .tip-row strong { display: inline; margin-left: auto; padding-left: 12px; font-size: 12px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* More horses than colours: the seventh to the twelfth have a dashed line, the ones after that a dotted one */
.chart-plot .line.dash-1 { stroke-dasharray: 7 4; }
.chart-plot .line.dash-2 { stroke-dasharray: 2 3; }
.chip.horse.dash-1 { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgb(255 255 255 / 35%) 5px 8px); }
.chip.horse.dash-2 { background-image: radial-gradient(rgb(255 255 255 / 45%) 1.2px, transparent 1.6px); background-size: 6px 6px; }
.swatch.dash-1 { background-image: linear-gradient(90deg, transparent 0 3px, var(--text) 3px 6px); background-blend-mode: normal; }
.swatch.dash-2 { border-radius: 50%; }
.chart-plot .latest.small { font-size: 11px; }
/* With several horses the label is beside the line under the pointer, not over the lines it tells about */
.chart-plot .tip.right { transform: translateX(14px); }
.chart-plot .tip.left { transform: translateX(calc(-100% - 14px)); }

.flows-title { margin: 22px 0 6px; }
.flows { margin-bottom: 6px; }
.flows-open { margin: 0 0 12px; font-size: 14px; }
.flows-open .link { color: var(--accent); font-weight: 600; }
.flows-body { margin-top: 14px; overflow: auto; max-height: calc(100vh - 190px); }
.flows-body p { font-size: 12px; }

/* The tab of the models and the training runs */
#models .heading { margin-top: 22px; }
#models .heading:first-child { margin-top: 0; }
.card.pad { padding: 14px 16px; }
.card.pad > p { margin: 8px 0 0; }
.small { font-size: 13px; }
.scroll { overflow-x: auto; }
.scroll.tall { max-height: 420px; overflow-y: auto; }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.number { text-align: right; }
td.number small { display: inline; color: var(--muted); margin-left: 4px; }
td.better { color: var(--play); font-weight: 600; }
td.worse { color: var(--danger); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: left; }
.run-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.progress { height: 8px; border-radius: 4px; background: var(--skip-soft); margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 1s linear; }
.state { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--skip-soft); color: var(--muted); white-space: nowrap; }
.state.running { background: var(--close-soft); color: var(--close); }
.state.done { background: var(--play-soft); color: var(--play); }
.state.failed, .state.stopped { color: var(--danger); }
.error { color: var(--danger); }
table.runs tr.run { cursor: pointer; }
table.runs tr.run:hover td, table.runs tr.run.open td { background: color-mix(in srgb, var(--skip-soft) 60%, transparent); }
table.runs td, table.runs th { padding: 8px 10px; }
tr.run-details > td { padding: 12px 16px 18px; background: var(--background); }
table.stages, table.results { margin-top: 12px; }
table.stages tr.waiting td { color: var(--muted); }
.loss-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 12px; margin-top: 14px; }
.loss-chart { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 4px; background: var(--surface); }
.loss-chart figcaption { font-size: 13px; }
.loss-chart .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); }
.loss-chart .legend span { display: inline-flex; align-items: center; gap: 5px; }
.loss-chart svg { display: block; width: 100%; height: auto; }
.loss-chart .grid { stroke: var(--line); stroke-width: 1; }
.loss-chart .axis { fill: var(--muted); font-size: 11px; }
.loss-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.loss-chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.loss-chart .dot.ring { stroke: var(--surface); stroke-width: 2; }
.loss-chart .line.series-0 { stroke: var(--series-0); }
.loss-chart .dot.series-0 { fill: var(--series-0); }
.loss-chart .line.series-1 { stroke: var(--series-1); }
.loss-chart .dot.series-1 { fill: var(--series-1); }
.loss-chart .line.series-2 { stroke: var(--series-2); }
.loss-chart .dot.series-2 { fill: var(--series-2); }
.loss-chart .line.series-3 { stroke: var(--series-3); }
.loss-chart .dot.series-3 { fill: var(--series-3); }
.loss-chart .line.series-4 { stroke: var(--series-4); }
.loss-chart .dot.series-4 { fill: var(--series-4); }
.loss-chart .line.series-5 { stroke: var(--series-5); }
.loss-chart .dot.series-5 { fill: var(--series-5); }
.loss-tip { position: fixed; z-index: 10; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--background); font-size: 12px; pointer-events: none; display: grid; gap: 2px; }
.loss-tip[hidden] { display: none; }
.loss-tip span { display: flex; align-items: center; gap: 6px; }
.loss-tip strong { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
details.features { margin-top: 12px; }
details.features summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.names { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); word-break: break-word; }
td.share { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; }
.share-bar { display: inline-block; width: 90px; height: 7px; margin-right: 8px; background: var(--skip-soft); border-radius: 3px; vertical-align: middle; }
.share-bar span { display: block; height: 100%; background: var(--series-0); border-radius: 3px; }
code { font-size: 12px; }
[hidden] { display: none !important; }
.note { margin: 0 0 6px; }
table.runs td small { max-width: 46ch; }
table.runs td:first-child { white-space: nowrap; }

/* Earlier days and the track record */
.day-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.day-bar select { font: inherit; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.day-bar .chip:disabled { opacity: 0.4; }
.record-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.record-box summary { cursor: pointer; font-weight: 600; }
.record-box table { margin-top: 10px; }
.record-box th:first-child { color: var(--text); font-weight: 600; font-size: 13px; }
