/* Track record: the board (tally and score panel), the next-result band, the ledgers, the cabinet, calibration, trend. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ph { display: inline-block; max-width: 100%; }                      /* a phrase that must not break inside */
.gloss { color: var(--dim); font-size: 13px; line-height: 1.55; margin-top: 10px; text-wrap: pretty; }

/* ---------- the board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pad); min-height: 72vh; min-height: 72svh; padding: clamp(96px, 14vh, 150px) var(--pad) clamp(28px, 5vh, 52px); }
.fig { display: flex; align-items: baseline; font-size: clamp(130px, 19vw, 300px); line-height: .8; margin: 4px 0 0 -.05em; view-transition-name: vt-tally; }
.fig.long { font-size: clamp(92px, 13.5vw, 220px); }
.fig b { font-weight: inherit; }
.fig span { font-size: .46em; color: var(--dim); letter-spacing: -.04em; margin-left: .05em; }
.tally h1 { font: 300 clamp(26px, 2.5vw, 40px)/1.15 var(--sans); letter-spacing: -.03em; margin-top: clamp(24px, 4.4vh, 44px); text-wrap: balance; }
:lang(zh-CN) .tally h1 { letter-spacing: -.01em; line-height: 1.25; }
.lede { color: var(--dim); margin: 8px 0 clamp(20px, 3.6vh, 36px); text-wrap: balance; }
/* both columns run the full height of the board: their labels share a line at the top, facts and gauge level at the bottom */
.tally, .score { display: flex; flex-direction: column; }
.tally > .mono, .blk-h { display: flex; align-items: center; min-height: 26px; }      /* as tall as the tag that can sit beside a label */
.tally .facts { margin-top: auto; width: min(100%, 520px); }
.score { justify-content: space-between; }

.blk { border-top: 1px solid var(--line); padding: 14px 0 20px; }
.blk:first-child { border-top: 0; padding-top: 0; }
.blk:last-child { padding-bottom: 0; }
.blk-h { justify-content: space-between; gap: 12px; }
.vs { list-style: none; padding: 0; }
.vs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; padding-top: 12px; font: 400 clamp(28px, 2.6vw, 40px)/1.15 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.vs .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs .val { position: relative; font-weight: 400; }
.vs .none { color: var(--dim); }
.vs .lead .val::before { content: ""; position: absolute; left: -.6em; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); animation: breathe 5s ease-in-out infinite; }
/* both bars share one scale: 0 to .25, the error of always saying 50%; a worse score runs off the end, into the page margin */
.bar { grid-column: 1 / -1; position: relative; height: 3px; margin: 10px 0 2px; background: var(--line); }
.bar::after { content: ""; position: absolute; right: 0; top: -5px; bottom: -5px; border-left: 1px solid var(--dim); }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--fg); }      /* drawn at its value: a bar never passes through lengths that are not the score */
.base .bar i { background: var(--dim); }
.bar.over::before { content: "›"; position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-54%); font: 400 15px/1 var(--mono); letter-spacing: 0; color: var(--fg); }
.scale { display: flex; justify-content: space-between; margin-top: 10px; }
.wlt { font: 400 clamp(17px, 1.45vw, 21px)/1.25 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.wlt b { font-weight: 400; color: var(--fg); }
.wlt i { font-style: normal; color: var(--faint); margin: 0 .2em; }
:lang(zh-CN) .wlt { font-size: clamp(15px, 1.2vw, 17px); }
:lang(zh-CN) .wlt b { font-size: 1.24em; }
/* one tick per result needed; every tenth stands taller, like a ruler */
.sample { display: flex; justify-content: space-between; align-items: flex-end; height: 14px; margin-top: 12px; }
.sample i { width: 2px; height: 8px; background: var(--faint); }
.sample i:nth-child(10n) { height: 14px; }
.sample i.on { background: var(--fg); }

/* ---------- next result: one link across the page ---------- */
.upnext { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pad); align-items: center; padding: 18px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.upnext:hover, .upnext:focus-visible { background: var(--bg-2); }
.upnext:focus-visible { outline-offset: -5px; }
.upnext::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.upnext:hover::after, .upnext:focus-visible::after { transform: scaleX(1); }
.un-what { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); min-width: 0; }
.un-what .pill { height: 76px; flex: none; margin: -4px 0; }
.un-what > span:last-child { display: grid; gap: 7px; min-width: 0; }
.un-name { font: 300 clamp(22px, 2.2vw, 34px)/1.15 var(--sans); letter-spacing: -.03em; }
.un-name .t { font: 400 12px var(--mono); letter-spacing: .08em; color: var(--glow); vertical-align: .5em; margin-right: 6px; }
.un-meta { font: 400 clamp(14px, 1.2vw, 17px) var(--mono); letter-spacing: -.02em; margin-left: .7em; white-space: nowrap; }
.un-meta i { font-style: normal; color: var(--faint); margin: 0 .2em; }
.un-when { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.un-clock { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.un-clock em { font: 400 .46em var(--sans); letter-spacing: 0; color: var(--dim); margin: 0 .35em 0 .2em; }
.un-go { font: 400 20px/1 var(--mono); color: var(--dim); transition: transform .5s var(--ease), color .3s; }
.upnext:hover .un-go, .upnext:focus-visible .un-go { transform: translateX(6px); color: var(--fg); }

/* ---------- ledgers: pending forecasts and results ---------- */
/* section statements, one size all the way down: the figure on the board stays the loudest thing on the page */
.sec-head h2 { font-size: clamp(22px, 2.35vw, 38px); line-height: 1.22; letter-spacing: -.03em; max-width: 26em; text-wrap: balance; }
:lang(zh-CN) .sec-head h2 { letter-spacing: 0; line-height: 1.4; max-width: 24em; }
.ledger { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ledger th { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: left; vertical-align: bottom; white-space: nowrap; padding: 14px 12px 10px 0; border-bottom: 1px solid var(--line); }
:lang(zh-CN) .ledger th { font-size: 12px; letter-spacing: .12em; }
.ledger td { height: 58px; padding: 0 12px 0 0; border-bottom: 1px solid var(--line); font: 400 14px/1.3 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.ledger .w { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.ledger .yr, .voided .yr { display: block; font-size: 11px; }
/* whatever belongs to the base rate is dim, here as on the board; the forecast is the number a pending row is about */
.ledger .b, .ledger .eb, .ledger .base { color: var(--dim); }
.pend .p { font-size: 17px; }
.ledger .th, .lg-head { display: none; }
.ledger .e { padding-left: 14px; }
.ledger .v { position: relative; }
.ledger .lo::before, .key i { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px rgba(var(--glow-rgb), .7); }
/* a what-if pair: two numbers under one heading, each keeping a slot for the dot so they line up from row to row */
.ledger .g { display: block; white-space: normal; margin: 0 0 8px 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ledger .pr { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }      /* "Forecast" is the longer heading */
.ledger .pr > * { justify-self: start; margin-left: 14px; }
.ledger .pr > i { display: none; font-style: normal; color: var(--faint); }
.ledger .pair { font-size: 13px; }
.ledger .l { text-align: right; padding-right: 0; }
.ledger td.l { font-size: 13px; }
.ledger .l em { font: 400 12px var(--sans); color: var(--dim); margin-left: .3em; }
.ledger .c span { color: var(--dim); margin-right: .5em; font-size: 12px; letter-spacing: .02em; }
.ledger .c .up { color: var(--fg); }
.ledger .c-w { width: 8%; } .ledger .c-p { width: 8.5%; } .ledger .c-b { width: 7.5%; } .pend .c-e { width: 19%; } .pend .c-l { width: 7%; }
.done .c-o { width: 15%; } .done .c-e { width: 8%; } .done .c-eb { width: 9%; } .done .c-c { width: 13%; }

.drug { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; font: 400 15px/1.4 var(--sans); letter-spacing: 0; white-space: normal; }
.drug .pill { height: 44px; flex: none; margin-left: -4px; }
.drug .t { flex: none; min-width: 4.6em; font: 400 12px var(--mono); letter-spacing: .04em; color: var(--dim); }
/* a long name takes a second line before it is cut */
.drug .n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; text-decoration: underline transparent 1px; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.drug:hover .n, .drug:focus-visible .n { text-decoration-color: var(--glow); }
.key { position: relative; color: var(--dim); font-size: 13px; margin-top: 16px; padding-left: 14px; }
.key i { left: 0; top: .8em; }

/* ---------- the cabinet: every forecast as a capsule on a shelf ---------- */
/* --c0 … --c5: columns per breakpoint, worked out by the server so the rows come out even (track.py, SHELF_ROW) */
.shelf { --ph: clamp(104px, 10.5vw, 156px); --cols: var(--c4); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); row-gap: 30px; overflow: hidden; }
.shelf.dense { --ph: clamp(84px, 7vw, 108px); }
.shelf.yrs { row-gap: 40px; padding-bottom: 18px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .shelf:not(.in) .slot { opacity: 0; transform: translateY(10px); }
.slot .pill { height: var(--ph); }
/* the capsule's foot sits at 90% of its frame: draw the shelf there, and let the last capsule finish the line */
.slot::before, .slot:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--ph) * .9); border-top: 1px solid var(--line); }
.slot:last-child::after { left: 100%; right: auto; width: 100vw; }
.slot .mono { letter-spacing: .04em; }
.slot .yr { position: absolute; top: 100%; margin-top: 1px; }             /* the first capsule of each year, when the shelf spans more than one */
.cabinet .sec-head { border-bottom: 0; margin-bottom: clamp(18px, 3vw, 40px); }
.cabinet .on-phone { display: none; }
.shelf-key { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; }
.shelf-key span { display: inline-flex; align-items: center; gap: 8px; }
.shelf-key i { width: 6px; height: 13px; border-radius: 3px; background: var(--glow); }
.shelf-key .k-no { background: var(--crl); }
.shelf-key .k-void { background: var(--dim); }
.shelf-key .k-wait { opacity: .45; }

/* ---------- calibration ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--pad); padding-top: 28px; }
.cal-side p { color: var(--dim); font-size: 14px; max-width: 30em; }
.cal-key { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 9px; }
.cal-key li { display: flex; align-items: center; gap: 10px; }
.cal-key i { flex: none; width: 14px; }
.cal-key .k-want { border-top: 1px dashed var(--dim); }
.cal-key .k-got, .cal-key .k-few { height: 11px; border: 1px solid var(--fg); }
.cal-key .k-got { background: var(--fg); }
.cal-key .k-few { border-color: var(--dim); }
.cal { --h: clamp(200px, 22vw, 300px); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding-top: 22px; }
.cal-y { display: flex; flex-direction: column; justify-content: space-between; height: var(--h); text-align: right; line-height: 1; }
.cal-y span:first-child { margin-top: -5px; } .cal-y span:last-child { margin-bottom: -5px; }
.cal-plot { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); height: var(--h); border-bottom: 1px solid var(--line-2);
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.cal-plot li { position: relative; font: 400 11px/1 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cal-plot .want { position: absolute; left: 12%; right: 12%; border-top: 1px dashed var(--dim); }
.cal-plot .got { position: absolute; bottom: 0; left: 50%; width: clamp(8px, 26%, 24px); min-height: 3px; transform: translateX(-50%); border: 1px solid var(--dim); border-bottom: 0; background: var(--bg); }
.cal-plot .full .got { background: var(--fg); border-color: var(--fg); }
.cal-plot .pc { position: absolute; left: 50%; transform: translateX(-50%); margin-bottom: 7px; padding: 1px 4px; background: var(--bg); color: var(--fg); }
.cal-plot .x, .cal-plot .cn { position: absolute; top: 100%; left: 0; transform: translateX(-50%); margin-top: 9px; color: var(--dim); }
.cal-plot .x.last { left: 100%; }
.cal-plot .cn { left: 50%; margin-top: 32px; white-space: nowrap; }
.cal-plot .full .cn, .cal-plot .few .cn { color: var(--fg); }
.cal-x { grid-column: 2; margin-top: 62px; }
.cal-data { margin-top: 26px; border-top: 1px solid var(--line); }
.cal-table th { white-space: normal; letter-spacing: .04em; padding-right: 6px; }
.cal-table th:nth-child(odd) { width: 23%; }
.cal-table td, .cal-table th[scope="row"] { height: 40px; }
.cal-table th[scope="row"] { font: 400 14px var(--mono); letter-spacing: -.02em; text-transform: none; color: var(--fg); vertical-align: middle; padding: 0 12px 0 0; }
.cal-table .nil td, .cal-table .nil th { color: var(--dim); }

/* ---------- trend and furthest misses ---------- */
.trend-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--pad); padding-top: 28px; align-items: start; }
.trend-key { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-left: 38px; }
.trend-key span { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-transform: none; letter-spacing: 0; }
.trend-key i { width: 22px; border-top: 1.5px solid var(--fg); }
.trend-key .k-base { border-top: 1.5px dashed var(--dim); }
.plot { position: relative; height: clamp(210px, 24vw, 330px); margin: 22px 0 0 38px; }
/* a mean above the axis is not flattened onto it: the line is cut at the top edge and its peak is written above */
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(-1px -5px -3px -5px); }
.plot svg * { fill: none; vector-effect: non-scaling-stroke; }
.plot .g { stroke: var(--line); }
.plot .ref { stroke: var(--dim); stroke-dasharray: 1 5; }
.plot .at { stroke: var(--line-2); }
.plot polyline { stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.plot .ours { stroke: var(--fg); }
.plot .base { stroke: var(--dim); stroke-dasharray: 5 4; }
.plot .mono { position: absolute; white-space: nowrap; line-height: 1; }
.plot .gy { right: 100%; margin-right: 10px; transform: translateY(-50%); }
.plot .ref-l { right: 0; margin-top: -17px; }
.plot .at-l { top: 0; margin-left: 8px; }
.plot .at-l.flip { margin-left: -8px; transform: translateX(-100%); }
.plot.off-1 { margin-top: 38px; } .plot.off-2 { margin-top: 54px; }
.plot .off { bottom: 100%; margin: 0 0 6px -4px; letter-spacing: 0; }
.plot .off.ours { color: var(--fg); }
.plot .off.flip { margin-left: 4px; transform: translateX(-100%); }
.off-2 .off.ours { margin-bottom: 22px; }
.plot .tip { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); }
.plot .tip.ours { background: var(--fg); border-color: var(--fg); }
.trend-x { display: flex; justify-content: space-between; margin: 10px 0 0 38px; }
.trend figcaption { color: var(--dim); font-size: 13px; margin: 16px 0 0 38px; }
.misses h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.misses ol { list-style: none; padding: 0; }
.misses a { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 1px 10px; align-items: baseline; padding: 11px 0 12px; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.misses a:hover, .misses a:focus-visible { border-color: var(--glow); }
.misses .i, .misses .t { font: 400 12px var(--mono); letter-spacing: .04em; color: var(--dim); }
.misses .t { margin-right: 10px; }
.misses .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.misses .how { grid-column: 2; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.misses .how i { font-style: normal; color: var(--faint); margin: 0 .15em; }
.misses .err { grid-area: 1 / 3 / span 2; align-self: center; font: 400 clamp(17px, 1.45vw, 21px) var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- results ---------- */
.filters { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 32px; border-bottom: 1px solid var(--line); }
.filters p { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.filters a { position: relative; color: var(--dim); font-size: 14px; padding: 12px 0; transition: color .3s; }      /* 44px tap height */
.filters a:hover, .filters a[aria-current] { color: var(--fg); }
.filters a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; border-top: 1px solid var(--glow); }
.q-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 22px; font: 400 13px/1.4 var(--mono); letter-spacing: 0; color: var(--dim); }
.q-sum b { font: 400 18px/1.3 var(--mono); letter-spacing: -.02em; color: var(--fg); min-width: 5.2em; }
.q-sum .num { color: var(--fg); }
.quarter .fold-body { padding-bottom: 30px; }
.quarter .ledger th { padding-top: 0; }
.quarter .ledger tr:last-child td { border-bottom: 0; }
.empty { color: var(--dim); padding: 28px 0; border-bottom: 1px solid var(--line); }

.voided { padding-top: clamp(40px, 7vh, 80px); }
.voided h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.voided ul { list-style: none; padding: 0; }
.voided li { display: grid; grid-template-columns: 8% minmax(0, 1fr) auto auto; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.voided .tag { margin-left: clamp(14px, 2vw, 32px); }
.voided .w { font: 400 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--dim); }
.voided .p { font: 400 14px var(--mono); letter-spacing: -.02em; color: var(--dim); white-space: nowrap; }

/* ---------- how it is scored ---------- */
#scoring .sec-head { border-bottom: 0; padding-bottom: 0; }
.rules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(28px, 4vw, 48px); }
.rules li { border-top: 1px solid var(--line); padding-top: 12px; color: var(--dim); font-size: 14px; text-wrap: pretty; }
.rules b { display: block; color: var(--fg); font-weight: 400; margin-bottom: 4px; }
.eg { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.eg-line { display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 14px/1.5 var(--mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.eg-line span + span::before { content: "·"; color: var(--faint); margin: 0 .9em; }
.eg .go { position: relative; margin-left: auto; }
.eg .go::before { content: ""; position: absolute; inset: -8px 0; }      /* 44px tap height without moving the underline */

@media (min-width: 1600px) { .shelf { --cols: var(--c5); } }
@media (max-width: 1279px) {
  .shelf { --cols: var(--c3); }
  .pend .c-e { width: 190px; }                        /* "Error if not approved" on one line */
}
@media (min-width: 961px) and (max-width: 1279px) {
  /* the "not approved · CRL" tag needs its width in pixels; the drug column gives */
  .done .c-w { width: 72px; } .done .c-p { width: 78px; } .done .c-b { width: 62px; } .done .c-o { width: 186px; } .done .c-e { width: 70px; } .done .c-eb { width: 106px; } .done .c-c { width: 124px; }
  :lang(zh-CN) .done .c-o { width: 136px; }
  .voided li { grid-template-columns: 72px minmax(0, 1fr) auto auto; }
}
@media (max-width: 1020px) {
  .board { grid-template-columns: 1fr; gap: 44px; min-height: 0; align-items: start; }
  .blk:first-child { border-top: 1px solid var(--line); padding-top: 14px; }
  .cal-wrap, .trend-wrap { grid-template-columns: 1fr; gap: 28px; }
  .rules { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 960px) {
  .shelf { --cols: var(--c2); }
  .drug { gap: 10px; }
  .drug .pill { height: 40px; margin-left: 0; }
  .drug .t { min-width: 3.5em; }
  /* a result becomes a short record of two lines: who and what happened; then the numbers and who was closer */
  .done, .done tbody { display: block; }
  .done thead, .done colgroup { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .done tbody tr { display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; padding: 6px 0 13px; border-bottom: 1px solid var(--line); }
  .done tbody tr::before { content: ""; flex-basis: 100%; order: 2; }
  .done td { height: auto; border: 0; padding: 0; order: 3; font-size: 13px; }
  .done .th { display: inline; margin-right: 6px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
  :lang(zh-CN) .done .th { font-size: 12px; letter-spacing: .04em; }
  .done .w { flex: 0 0 43px; margin-right: 12px; order: 1; }
  .done .d { flex: 1 1 0; min-width: 0; margin-right: 12px; order: 1; }
  .done .o { order: 1; }
  .done .p { margin-left: 55px; }                       /* under the capsule, clear of the date column */
  /* "forecast 96% / base 95%", then "error .002 / .003" in the same order; the gap before a number is the dot's */
  .done .b::before, .done .eb::before { content: "/"; color: var(--faint); margin: 0 .6em; }
  .done .e { padding-left: 0; }
  .done .e:not(.eb) { margin-left: 26px; }
  .done .e .th { margin-right: 16px; }
  .done .eb::before { margin-right: 14px; }
  .done .c { margin-left: auto; }
  .quarter .done tbody tr:last-child { border-bottom: 0; }
  .voided li { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 0 12px; }
  .voided .p { display: none; }
}
@media (min-width: 721px) and (max-width: 960px) {
  /* the pending ledger stays a table down to tablets: tighter columns, header on two lines */
  .pend .c-w { width: 74px; } .pend .c-p { width: 76px; } .pend .c-b { width: 52px; } .pend .c-e { width: 142px; } .pend .c-l { width: 52px; }
}
@media (min-width: 721px) and (max-width: 840px) {
  .pend .c-l, .pend .l { display: none; }               /* the date is in the first column; the name needs the room */
}
@media (max-width: 720px) {
  .shelf { --cols: var(--c1); }
  .upnext { grid-template-columns: 1fr; gap: 14px; padding: 16px var(--pad) 18px; }
  .un-what .pill { height: 64px; }
  .un-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
  .un-meta { margin-left: 0; flex-basis: 100%; }
  .un-meta i:first-child { display: none; }
  .un-name .t { vertical-align: 0; align-self: center; }
  /* a pending row becomes two lines: date, capsule, drug, forecast / base; then what either outcome would score.
     The table's header is out of sight here, so the note on how to read a pair moves above the rows. */
  #pending { display: flex; flex-direction: column; }
  .key { order: 1; margin: 6px 0 16px; }
  .lg-head { order: 2; display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .pend { order: 3; }
  .pend, .pend tbody { display: block; }
  .pend thead, .pend colgroup { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pend tbody tr { display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; padding: 6px 0 13px; border-bottom: 1px solid var(--line); }
  .pend tbody tr::before { content: ""; flex-basis: 100%; order: 2; }
  .pend td { height: auto; border: 0; padding: 0; order: 1; }
  .pend .th { display: inline; margin-right: 16px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
  :lang(zh-CN) .pend .th { font-size: 12px; letter-spacing: .04em; }
  .pend .w { flex: 0 0 43px; margin-right: 12px; }
  .pend .d { flex: 1 1 0; min-width: 0; margin-right: 12px; }
  .pend .p { font-size: 15px; }
  .pend .b::before { content: "/"; color: var(--faint); margin: 0 .55em; }
  .pend .pair, .pend .l { order: 3; }
  .pend .pair { margin-left: 55px; }                     /* under the capsule, clear of the date column */
  .pend .pair + .pair { margin-left: 30px; }
  .pend .pr { display: inline-flex; align-items: baseline; }
  .pend .pr > * { margin-left: 0; }
  .pend .pr > i { display: inline; margin: 0 14px 0 8px; }
  .pend .l { margin-left: auto; }
  .trend-key, .plot, .trend-x, .trend figcaption { margin-left: 30px; }
  .eg { flex-direction: column; align-items: flex-start; }
  .eg-line { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 28px; }
  .eg-line span + span::before { content: none; }
  .eg .go { margin-left: 0; }
}
@media (max-width: 640px) {
  /* each outcome takes half the row, its label above its pair; the first dot hangs in the page margin */
  .pend .pair, .pend .pair + .pair { flex: 0 0 50%; margin-left: 0; }
  .pend .pair .th { display: block; margin: 0 0 1px; }
  .pend .l { display: none; }                           /* the date is on the line above; the pairs need the room */
  /* a result takes three lines: who; what happened and who was closer; the numbers */
  .done .o, .done .c { order: 3; }
  .done tbody tr::after { content: ""; flex-basis: 100%; order: 4; }
  .done .p, .done .b, .done .e { order: 5; }
  .done .p { margin-left: 0; }
  .done .e:not(.eb) { margin-left: auto; }
}
@media (max-width: 560px) {
  .fig { font-size: 38vw; }
  .fig.long { font-size: 24vw; }
  .shelf { --cols: var(--c0); --ph: 92px; row-gap: 22px; }
  .shelf.yrs { row-gap: 34px; }
  /* a dense shelf keeps its latest three rows of seven on a phone (SHELF_PHONE in track.py), and the caption says so */
  .shelf.dense { --cols: 7; --ph: 76px; }
  .shelf.dense .slot:nth-last-child(n + 22) { display: none; }
  .cabinet .off-phone { display: none; }
  .cabinet .on-phone { display: inline-block; }
  .cal { --h: 190px; column-gap: 10px; }
  .cal-plot .u { display: none; }                       /* ten bands in 300px: the bare count, as the axis line says */
  .filters { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slot { transition-delay: 0s !important; }
  .js .shelf:not(.in) .slot { opacity: 1; transform: none; }      /* nothing waits for the observer */
}
.ledger td.p small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .06em; color: var(--dim); }
