/* One-Call Lab (one-call-token-by-token post, "Try It: Follow the Call"): token-driven only. Every colour is a site
   token, so light and dark follow the tokens and no theme-specific rule is needed (none is written; a dark rule added
   later is written twice, per docs/STYLE.md). One face per role, two weights (400, 600), no italic, sentence case: the site
   sans for controls, labels and counts; the serif for what the reader reads (captions, the messages, the streamed reply,
   the symptoms); mono only for literal tokens and ids. Loaded by the post itself.
   Every state is a shape, a word and a colour, and no colour is a verdict. A marker token is a dashed tile in violet,
   named "Marker token" in the key. The drawn candidate is a thick ink outline and the word "Drawn". The ticket id's four
   pieces share one thick ink outline. The stop-reason slot is dashed and reads "Not known yet" until it fills, solid,
   with its word. On "Whose step?" the reader's pick is gold (the site's colour for the reader's own marks) and the
   answer a thick ink outline, each with its word; not answered is neutral. */
.one-call-lab {
  --ocl-target: 2.75rem; /* 44 CSS px touch target */
  --ocl-line: 0.0625rem;
  --ocl-mid: 0.125rem;
  --ocl-thick: 0.1875rem;
  --ocl-mine: var(--color-pop-gold-text);
  --ocl-mark: var(--color-pop-violet-text);
  --ocl-motion: 1.1s; /* every step's motion ends within 1.2 s (docs/FIGURES.md 4.4) */
  --ocl-tile: 0.75rem; /* token text: 12px */
  --ocl-small: 0.6875rem; /* ids and keys: 11px, the label floor */
  position: relative;
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: var(--ocl-line) solid var(--color-border);
  border-radius: 0.5em;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
}
.one-call-lab[hidden], .one-call-lab [hidden] { display: none !important; }
@media (max-width: 39.99em) { .one-call-lab { padding: var(--space-sm); } }
.one-call-lab :where(p) { margin: 0; padding: 0; }
.one-call-lab ul, .one-call-lab li { margin: 0; padding: 0; list-style: none; }
.one-call-lab li::marker { content: none; }
.one-call-lab strong { font-weight: 600; }
.one-call-lab code { font-family: var(--font-mono); font-size: var(--ocl-tile); background: none; padding: 0; border: 0; color: inherit; }
.ocl__sr { position: absolute; width: 0.0625rem; height: 0.0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Ghosts reserve the room of the widest or tallest content in one grid cell, so nothing moves between frames. */
.ocl__count, .ocl__title, .ocl__cap { display: grid; }
.ocl__count > *, .ocl__title > *, .ocl__cap > * { grid-area: 1 / 1; min-width: 0; }
.ocl__ghost { visibility: hidden; }

/* Head: the step counter and the frame's name; Show markers at the right (kept in place, dimmed where it does nothing). */
.ocl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.ocl__titles { display: flex; align-items: baseline; gap: var(--space-sm); min-width: 0; }
.ocl__count { color: var(--color-text-muted); font-size: var(--text-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocl__title { font-family: var(--font-serif); font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.4rem); font-weight: 600; line-height: 1.15; }
.ocl__markers { display: inline-flex; align-items: center; gap: 0.35em; min-height: var(--ocl-target); font-size: var(--text-ui); cursor: pointer; white-space: nowrap; }
.ocl__markers input { width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--color-text); }
.ocl__markers.is-off { color: var(--color-text-muted); cursor: default; }

/* The rail: Request, the seven numbered steps, Whose step?. A bracket over 4 to 6 says they repeat for each token. */
.ocl__rail {
  position: relative; display: grid; grid-template-columns: minmax(min-content, 1.15fr) repeat(7, minmax(min-content, 1fr)) minmax(min-content, 1.3fr); gap: 0.25rem;
  margin-bottom: var(--space-sm); padding-top: 1.1em;
}
.ocl__chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05em;
  min-height: var(--ocl-target); min-width: 0; padding: 0.2em 0.15em;
  border: var(--ocl-line) solid var(--color-text-muted); border-radius: 0.35em;
  background: var(--color-bg); color: var(--color-text);
  font: inherit; font-size: var(--text-ui); line-height: 1.1; text-align: center; cursor: pointer;
}
.ocl__chip--frame { border-style: dashed; }
.ocl__chip-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.ocl__chip-name { hyphens: none; font-size: 0.75rem; } /* 12px: every name whole in its chip at 1280 */
.ocl__mark { margin-left: 0.2em; font-size: var(--ocl-small); color: var(--color-text); }
.ocl__chip:hover { border-color: var(--color-text); }
/* States change no border width or weight (a wider border or a bolder name could wrap a chip and move the rail). */
.ocl__chip.is-current { border-color: var(--color-text); box-shadow: inset 0 0 0 var(--ocl-mid) var(--color-text); background: var(--color-bg-alt); }
.ocl__chip.is-ask { border-style: dashed; border-color: var(--ocl-mine); box-shadow: inset 0 0 0 var(--ocl-line) var(--ocl-mine); }
.ocl__chip.is-answer { border-color: var(--color-text); box-shadow: inset 0 0 0 var(--ocl-thick) var(--color-text); }
.ocl__chip.is-mine { color: var(--ocl-mine); border-color: var(--ocl-mine); box-shadow: inset 0 0 0 var(--ocl-mid) var(--ocl-mine); }
.ocl__chip.is-mine.is-answer { box-shadow: inset 0 0 0 var(--ocl-mid) var(--ocl-mine), inset 0 0 0 calc(var(--ocl-mid) + var(--ocl-thick)) var(--color-text); }
.ocl__chip:focus-visible, .ocl__btn:focus-visible, .ocl__range:focus-visible, .ocl__markers input:focus-visible, .ocl__cap-link:focus-visible {
  outline: 0.125rem solid var(--color-accent); outline-offset: 0.125rem;
}
.ocl__loop {
  position: absolute; top: 0; left: 0; width: 0; min-width: max-content; height: 1.15em; padding: 0 0.4em; box-sizing: border-box;
  transform: translateX(-50%); /* centred over Score to Stream by the script; never narrower than its words */
  border: var(--ocl-line) solid var(--color-text-muted); border-bottom: 0; border-radius: 0.3em 0.3em 0 0;
  color: var(--color-text-muted); font-size: var(--ocl-small); line-height: 1; text-align: center; white-space: nowrap;
}
.ocl__rail.is-looping .ocl__loop { border-color: var(--color-text); color: var(--color-text); }
/* A phone: the seven steps by number in one row, each a full 44px target; the two framing chips take a second row,
   Request under 1 and 2, Whose step? under 7, and the bracket hangs between them under 4 to 6 (an under-bracket, its arms
   up to the three chips), so the rail needs no row of its own for it. Under 22em (a 320 phone) the seven cannot be 44px
   wide: the bracket goes back on top and the framing chips take the second row's ends. The name stays each chip's
   accessible name. */
@media (max-width: 39.99em) {
  .ocl__rail { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.2rem; padding-top: 0; }
  .ocl__chip:not(.ocl__chip--frame) { grid-row: 1; }
  .ocl__chip:not(.ocl__chip--frame) .ocl__chip-name { display: none; }
  .ocl__chip--frame { grid-row: 2; padding: 0.2em 0.2em; font-size: var(--ocl-small); white-space: normal; }
  .ocl__chip[data-id="request"] { grid-column: 1 / span 2; }
  .ocl__chip[data-id="whose"] { grid-column: 7; }
  .ocl__loop { top: calc(var(--ocl-target) + 0.2rem); border-top: 0; border-bottom: var(--ocl-line) solid var(--color-text-muted); border-radius: 0 0 0.3em 0.3em; height: 1.5em; padding-top: 0.2em; }
  .ocl__rail.is-looping .ocl__loop { border-color: var(--color-text); }
  .ocl__reply { grid-template-columns: minmax(0, 1fr) auto; }
  .ocl__stop { min-width: 6.5em; }
}
@media (max-width: 21.99em) {
  .ocl__rail { padding-top: 1.1em; }
  .ocl__chip--frame { min-height: 2.25rem; font-size: var(--text-ui); }
  .ocl__chip[data-id="request"] { grid-column: 1 / span 3; }
  .ocl__chip[data-id="whose"] { grid-column: 5 / span 3; }
  .ocl__loop { top: 0; border-bottom: 0; border-top: var(--ocl-line) solid var(--color-text-muted); border-radius: 0.3em 0.3em 0 0; height: 1.15em; padding-top: 0; }
  .ocl__rail.is-looping .ocl__loop { border-color: var(--color-text); }
}

/* The picture: one fixed height (the tallest frame, measured by the script), drawn on paper. */
.ocl__pic {
  position: relative; overflow: hidden;
  border: var(--ocl-line) solid var(--color-border); border-radius: 0.5em; background: var(--color-bg);
}
.ocl__pic-in { padding: var(--space-sm); }
.ocl__probe { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }
.ocl__frame { display: grid; gap: var(--space-sm); }
/* From Read on: the cache and the reply on one side, the next-token panel on the other (stacked on a phone). */
@media (min-width: 40em) {
  .ocl__frame.is-decode { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: var(--space-md); }
}
.ocl__side { display: grid; gap: var(--space-sm); min-width: 0; }

/* Request: the three messages as your code holds them. */
.ocl__msgs { display: grid; gap: var(--space-xs); }
.ocl__msg { padding: 0.45em 0.7em; border: var(--ocl-line) solid var(--color-border); border-radius: 0.4em; background: var(--color-bg-alt); }
.ocl__msg-k { color: var(--color-text-muted); font-size: var(--text-ui); font-weight: 600; }
.ocl__msg-v { font-family: var(--font-serif); font-size: var(--text-base); line-height: 1.35; overflow-wrap: anywhere; }
.ocl__msg-v.is-mono { display: block; font-family: var(--font-mono); font-size: var(--ocl-tile); line-height: 1.5; }

/* The document: one line of token tiles. Render shows them as one string (no padding, border, gap or id line, so
   nothing parts the text); Tokenize cuts them and writes each id under its piece. The reflow stays inside the picture's
   fixed height, so no control moves. */
.ocl__doc { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 0.1em; font-family: var(--font-mono); font-size: var(--ocl-tile); line-height: 1.3; }
.ocl__br { flex-basis: 100%; height: 0; }
.ocl__tile {
  display: inline-flex; flex-direction: column; align-items: stretch;
  padding: 0 0.1em; border: var(--ocl-line) solid transparent; border-radius: 0.2em; white-space: pre;
}
.ocl__tile-t { text-align: left; }
.ocl__tile-id { font-size: var(--ocl-small); line-height: 1.2; color: var(--color-text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.ocl__tile.is-marker { border: var(--ocl-line) dashed var(--ocl-mark); color: var(--ocl-mark); }
.ocl__doc.is-bare .ocl__tile.is-marker { display: none; }
.ocl__doc.is-cut .ocl__tile { border-color: var(--color-border); margin-right: 0.08em; }
/* Render: one string. A marker keeps its colour and a dashed underline (a shape that takes no room). */
.ocl__doc:not(.is-cut) .ocl__tile { padding: 0; border-width: 0; margin: 0; }
.ocl__doc:not(.is-cut) .ocl__tile-id { display: none; }
.ocl__doc:not(.is-cut) .ocl__tile.is-marker .ocl__tile-t { text-decoration: underline dashed var(--ocl-mark); text-decoration-thickness: var(--ocl-line); text-underline-offset: 0.2em; }
.ocl__doc.is-cut .ocl__tile.is-marker { border-color: var(--ocl-mark); }
.ocl__tile.is-id { box-shadow: 0 var(--ocl-thick) 0 0 var(--color-text), 0 calc(var(--ocl-thick) * -1) 0 0 var(--color-text); }
.ocl__tile.is-id-first { box-shadow: 0 var(--ocl-thick) 0 0 var(--color-text), 0 calc(var(--ocl-thick) * -1) 0 0 var(--color-text), calc(var(--ocl-thick) * -1) 0 0 0 var(--color-text); }
.ocl__tile.is-id-last { box-shadow: 0 var(--ocl-thick) 0 0 var(--color-text), 0 calc(var(--ocl-thick) * -1) 0 0 var(--color-text), var(--ocl-thick) 0 0 0 var(--color-text); }
.ocl__doc:not(.is-cut) .ocl__tile.is-id { box-shadow: none; }
.ocl__open {
  display: inline-flex; align-items: center; margin-left: 0.2em; padding: 0.1em 0.5em; min-height: 1.6em;
  border: var(--ocl-mid) dashed var(--color-text); border-radius: 0.25em;
  font-family: var(--font-sans); font-size: var(--ocl-small); color: var(--color-text);
}
@media (prefers-reduced-motion: no-preference) {
  .ocl__doc.is-enter .ocl__tile { animation: ocl-cut 300ms ease-out both; animation-delay: calc(var(--i) * 11ms); }
  @keyframes ocl-cut { from { border-color: transparent; } }
  .ocl__doc.is-enter .ocl__tile-id { animation: ocl-rise 300ms ease-out both; animation-delay: calc(var(--i) * 11ms); }
  @keyframes ocl-rise { from { transform: translateY(-0.4em); color: transparent; } }
}

.ocl__note, .ocl__counts { font-size: var(--text-ui); color: var(--color-text-muted); }
.ocl__counts { color: var(--color-text); }
.ocl__key { display: flex; flex-wrap: wrap; gap: 0.3em 1em; color: var(--color-text-muted); font-size: var(--ocl-small); }
.ocl__key-i { display: inline-flex; align-items: center; gap: 0.35em; }
.ocl__key-marker { padding: 0 0.25em; border: var(--ocl-line) dashed var(--ocl-mark); border-radius: 0.2em; color: var(--ocl-mark); font-family: var(--font-mono); }
.ocl__key-dot { font-family: var(--font-mono); color: var(--color-text); font-weight: 600; }
.ocl__key-id { padding: 0 0.25em; border: var(--ocl-thick) solid var(--color-text); color: var(--color-text); font-family: var(--font-mono); }

/* The KV cache: one cell per position, to scale. The window's are filled ink; the reply's are hatched; the cell computed
   for this draw is outlined. */
.ocl__cache { display: grid; gap: 0.3em; }
.ocl__cache-k { font-size: var(--text-ui); font-variant-numeric: tabular-nums; }
.ocl__cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(0.6rem, 1fr)); gap: 0.15rem; }
.ocl__cell { display: inline-block; width: 0.6rem; height: 0.6rem; border: var(--ocl-line) solid var(--color-border); border-radius: 0.1rem; background: transparent; }
.ocl__cells .ocl__cell { width: auto; }
.ocl__cell.is-window { background: var(--color-text-muted); border-color: var(--color-text-muted); }
.ocl__cell.is-reply { border-color: var(--color-text); background: repeating-linear-gradient(135deg, var(--color-text) 0 0.08rem, transparent 0.08rem 0.22rem); }
.ocl__cell.is-new { outline: var(--ocl-mid) solid var(--color-text); outline-offset: 0.06rem; }
@media (prefers-reduced-motion: no-preference) {
  .ocl__cells.is-enter .ocl__cell.is-window { animation: ocl-fill 500ms ease-out both; }
  @keyframes ocl-fill { from { background: transparent; border-color: var(--color-border); } }
}

/* The next-token panel: candidates ranked, a dot on one score axis or a chance bar from zero, the strip and its needle. */
.ocl__mid { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.ocl__panel { display: grid; gap: 0.3em; }
.ocl__panel-k { font-size: var(--text-ui); font-weight: 600; }
.ocl__panel.is-empty { place-items: center; min-height: 6em; border: var(--ocl-line) dashed var(--color-text-muted); border-radius: 0.4em; }
.ocl__panel-empty { color: var(--color-text-muted); font-size: var(--text-ui); text-align: center; padding: 0 var(--space-sm); }
.ocl__rows { display: grid; gap: 0.2em; }
.ocl__row { display: grid; grid-template-columns: 7.6em minmax(2.5em, 1fr) 3.1em 3.2em; align-items: center; gap: 0.45em; min-height: 1.6em; font-size: var(--text-ui); }
.ocl__cand { min-width: 0; }
.ocl__cand-t {
  display: inline-block; padding: 0.05em 0.3em; border: var(--ocl-line) solid var(--color-border); border-radius: 0.2em;
  font-family: var(--font-mono); font-size: var(--ocl-tile); white-space: pre; background: var(--color-bg-alt);
}
.ocl__cand-t.is-marker { border-style: dashed; border-color: var(--ocl-mark); color: var(--ocl-mark); }
.ocl__cand-rest { color: var(--color-text-muted); font-size: var(--text-ui); }
.ocl__row.is-drawn .ocl__cand-t { border: var(--ocl-thick) solid var(--color-text); }
.ocl__track { position: relative; height: 1em; border-left: var(--ocl-line) solid var(--color-text-muted); }
.ocl__dot { position: absolute; top: 50%; width: 0.7em; height: 0.7em; margin: -0.35em 0 0 -0.35em; border-radius: 50%; background: var(--color-text); }
.ocl__bar { position: absolute; left: 0; top: 0.15em; bottom: 0.15em; background: var(--color-text-muted); }
.ocl__row.is-drawn .ocl__bar { background: var(--color-text); }
.ocl__track .ocl__dot + .ocl__bar { top: 0.35em; bottom: 0.35em; } /* a beat: the dot sits on its bar */
.ocl__val { font-variant-numeric: tabular-nums; font-size: var(--text-ui); text-align: right; }
.ocl__tag { font-size: var(--text-ui); font-weight: 600; }
.ocl__axis { color: var(--color-text-muted); font-size: var(--ocl-small); }
.ocl__strip { position: relative; height: 1.5em; margin: 0.5em 0 0.2em; border: var(--ocl-line) solid var(--color-text-muted); }
.ocl__seg { position: absolute; top: 0; bottom: 0; border-right: var(--ocl-line) solid var(--color-text-muted); }
.ocl__seg.is-drawn { background: repeating-linear-gradient(135deg, var(--color-border) 0 0.15rem, transparent 0.15rem 0.35rem); }
.ocl__needle { position: absolute; top: -0.4em; bottom: -0.4em; width: var(--ocl-mid); margin-left: calc(var(--ocl-mid) / -2); background: var(--color-text); }
@media (prefers-reduced-motion: no-preference) {
  .ocl__needle.is-enter { animation: ocl-needle 900ms cubic-bezier(.2, .7, .3, 1) both; }
  @keyframes ocl-needle { from { left: 0; } }
}

/* The streamed reply and the stop-reason slot: the slot stays empty, dashed, until the end. */
.ocl__low { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-sm); }
.ocl__reply { display: grid; gap: var(--space-xs); grid-column: 1 / -1; }
.ocl__bubble { display: grid; gap: 0.1em; padding: 0.45em 0.7em; border: var(--ocl-line) solid var(--color-text-muted); border-radius: 0.6em 0.6em 0.6em 0.1em; background: var(--color-bg-alt); min-height: 3.6em; }
.ocl__bubble-k, .ocl__stop-k, .ocl__dec-k { color: var(--color-text-muted); font-size: var(--text-ui); }
.ocl__bubble-t { font-family: var(--font-serif); font-size: var(--text-base); line-height: 1.35; white-space: pre-wrap; overflow-wrap: break-word; }
.ocl__bubble-wait { color: var(--color-text-muted); font-family: var(--font-sans); font-size: var(--text-ui); }
.ocl__word { white-space: pre-wrap; }
.ocl__stop { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 0.25em 0.7em; min-height: 2.9em; box-sizing: border-box; border: var(--ocl-mid) dashed var(--color-text-muted); border-radius: 0.4em; }
.ocl__stop-v { font-size: var(--text-ui); color: var(--color-text-muted); }
.ocl__stop.is-finished, .ocl__stop.is-limit { border: var(--ocl-thick) solid var(--color-text); }
.ocl__stop.is-finished .ocl__stop-v, .ocl__stop.is-limit .ocl__stop-v { color: var(--color-text); font-size: var(--text-base); font-weight: 600; }
.ocl__dec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5em; grid-column: 1 / -1; min-height: 1.5em; }
.ocl__dec-t.is-marker { padding: 0 0.25em; border: var(--ocl-line) dashed var(--ocl-mark); color: var(--ocl-mark); }
.ocl__dec-id { color: var(--color-text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .ocl__word.is-new { animation: ocl-in 900ms ease-out both; }
  @keyframes ocl-in { from { transform: translateY(-1.2em); background: var(--color-border); } }
  .ocl__word.is-rest { animation: ocl-show 200ms ease-out both; animation-delay: calc(var(--j) * 100ms); }
  @keyframes ocl-show { from { color: transparent; } }
  .ocl__stop-v.is-enter { animation: ocl-show 480ms ease-out both; }
}
@media (max-width: 39.99em) {
  .ocl__br { display: none; } /* a phone: the document flows; the breaks are only for reading */
}
@media (max-width: 39.99em) {
  /* A phone: the document's tiles touch (their hairlines still part them) and its text steps down to 12px. */
  .ocl__tile { margin-right: 0 !important; padding: 0 0.04em; }
  .ocl__doc { row-gap: 0.05em; line-height: 1.15; }
  .ocl__tile-id { line-height: 1; }
  .ocl__pic-in { padding: var(--space-xs); }
  .ocl__cap-t { font-size: 1rem; }
  .ocl__msg-v { font-size: var(--text-sm); }
  /* A phone: the stacked decode frame and the end list close up, so the head, rail, picture, caption and Next fit
     375x812 under the sticky bars. */
  .ocl__frame, .ocl__side, .ocl__low { gap: var(--space-xs); }
  .ocl__row { min-height: 1.35em; }
  .ocl__cells { grid-template-columns: repeat(auto-fill, minmax(0.5rem, 1fr)); }
  .ocl__cells .ocl__cell { height: 0.5rem; }
  .ocl__strip { margin: 0.4em 0 0.1em; }
  .ocl__sym { gap: 0.35em; }
  .ocl__sym-list { gap: 0.1em; }
  .ocl__sym-li { row-gap: 0; padding-bottom: 0.1em; line-height: 1.2; }
}

/* Whose step?: the symptom as the hero, the answer large with the reader's pick beside it, then the table's cells. */
.ocl__sym { display: grid; gap: 0.5em; align-content: start; justify-items: start; }
.ocl__sym-n { color: var(--color-text-muted); font-size: var(--text-ui); font-variant-numeric: tabular-nums; }
.ocl__sym-s { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600; line-height: 1.2; }
.ocl__sym-a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.7em; }
.ocl__sym-a-k { color: var(--color-text-muted); font-size: var(--text-ui); }
.ocl__sym-a-v { font-family: var(--font-serif); font-size: var(--text-lg); padding: 0 0.35em; border: var(--ocl-thick) solid var(--color-text); border-radius: 0.3em; }
.ocl__sym-a-mine { color: var(--ocl-mine); font-size: var(--text-ui); font-weight: 600; padding: 0.1em 0.4em; border: var(--ocl-mid) solid var(--ocl-mine); border-radius: 0.3em; }
.ocl__sym-a-mine.is-none, .ocl__sym-li-m.is-none { color: var(--color-text-muted); border: var(--ocl-line) dotted var(--color-text-muted); font-weight: 400; }
.ocl__sym-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 0.6em; font-size: var(--text-ui); }
.ocl__sym-row-v { font-family: var(--font-serif); font-size: var(--text-sm); line-height: 1.35; }
.ocl__sym-end { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600; }
.ocl__sym-list { display: grid; gap: 0.3em; width: 100%; }
.ocl__sym-li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6em; align-items: baseline; padding-bottom: 0.25em; border-bottom: var(--ocl-line) solid var(--color-border); }
.ocl__sym-li-s { font-family: var(--font-serif); }
.ocl__sym-li-m { color: var(--ocl-mine); font-size: var(--text-ui); padding: 0 0.35em; border: var(--ocl-line) dashed var(--ocl-mine); border-radius: 0.3em; }
@media (max-width: 29.99em) {
  .ocl__sym-row { grid-template-columns: 1fr; gap: 0; }
  .ocl__sym-li { grid-template-columns: 1fr auto; }
  .ocl__sym-li-s { grid-column: 1 / -1; }
}

/* Caption, reserved at the tallest of every frame's sentence. */
.ocl__cap { margin: var(--space-xs) 0 var(--space-sm); padding-left: 0.75em; border-left: var(--ocl-mid) solid var(--color-text); }
.ocl__cap-t { font-family: var(--font-serif); font-size: var(--text-base); line-height: 1.4; }
.ocl__cap-link { font-family: var(--font-sans); font-size: var(--text-ui); color: var(--color-text); text-decoration: underline; text-underline-offset: 0.15em; }

/* Controls: Back and Next, and the length limit with its convention and its outcome, at every step in one place. */
.ocl__foot { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs) var(--space-md); align-items: start; }
.ocl__nav { display: flex; gap: var(--space-xs); }
.ocl__btn {
  min-height: var(--ocl-target); min-width: 5.5em; padding: 0.3em 1em;
  border: var(--ocl-mid) solid var(--color-text); border-radius: 999px;
  background: var(--color-text); color: var(--color-bg);
  font: inherit; font-size: var(--text-ui); font-weight: 600; cursor: pointer;
}
.ocl__btn--quiet { background: var(--color-bg); color: var(--color-text); }
.ocl__btn:disabled { cursor: default; background: var(--color-bg-alt); color: var(--color-text-muted); border-color: var(--color-border); }
.ocl__limit { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 0.75em; min-width: 0; }
.ocl__limit-k { font-size: var(--text-ui); font-weight: 600; white-space: nowrap; }
.ocl__limit-v { font-weight: 400; font-variant-numeric: tabular-nums; display: inline-block; min-width: 4.6em; }
.ocl__range { width: 100%; min-height: var(--ocl-target); margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --ocl-fill: 100%; }
/* The range drawn in site tokens, the same in every engine (WebKit's own track is near-black on the dark paper): a
   muted track (5.5:1 on the lab's paper in light, 7:1 in dark) filled in ink up to the thumb, and an ink thumb ringed
   in the paper colour. --ocl-fill is set by the script from the value. */
.ocl__range::-webkit-slider-runnable-track {
  height: 0.375rem; border: 0; border-radius: 999px;
  background: linear-gradient(to right, var(--color-text) 0 var(--ocl-fill), var(--color-text-muted) var(--ocl-fill) 100%);
}
.ocl__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 1.25rem; height: 1.25rem; margin-top: -0.4375rem;
  border: var(--ocl-mid) solid var(--color-bg-alt); border-radius: 50%; background: var(--color-text); box-shadow: 0 0 0 var(--ocl-line) var(--color-text);
}
.ocl__range::-moz-range-track { height: 0.375rem; border: 0; border-radius: 999px; background: var(--color-text-muted); }
.ocl__range::-moz-range-progress { height: 0.375rem; border-radius: 999px; background: var(--color-text); }
.ocl__range::-moz-range-thumb {
  width: 1rem; height: 1rem; border: var(--ocl-mid) solid var(--color-bg-alt); border-radius: 50%; background: var(--color-text); box-shadow: 0 0 0 var(--ocl-line) var(--color-text);
}
.ocl__conv, .ocl__echo { grid-column: 1 / -1; font-size: var(--text-ui); color: var(--color-text-muted); }
.ocl__echo { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 0.6em; color: var(--color-text); }
.ocl__echo-k { color: var(--color-text-muted); }
.ocl__echo-v { display: grid; font-size: var(--text-ui); }
.ocl__echo-v > * { grid-area: 1 / 1; min-width: 0; }
.ocl__echo-r { font-family: var(--font-sans); font-size: var(--text-ui); font-weight: 600; }
@media (max-width: 39.99em) {
  .ocl__foot { grid-template-columns: 1fr; }
  .ocl__nav .ocl__btn { flex: 1 1 0; }
}
/* Wider: Back and Next with the limit's outcome beside them, then the limit and its convention in one row under them,
   so at 1280x800 the picture, Next, the limit and its outcome share the window. Tab order (Back, Next, the limit) is
   the reading order. */
@media (min-width: 40em) {
  .ocl__foot { grid-template-columns: auto minmax(7rem, 1fr) minmax(0, 1fr); grid-template-areas: "n e e" "k r c"; align-items: center; gap: var(--space-xs) var(--space-sm); }
  .ocl__limit { display: contents; }
  .ocl__nav { grid-area: n; }
  .ocl__echo { grid-area: e; }
  .ocl__limit-k { grid-area: k; }
  .ocl__range { grid-area: r; }
  .ocl__conv { grid-area: c; }
  /* the frame tightens a little so the whole lab fits a 1280x800 window under the sticky bars */
  .one-call-lab { padding: var(--space-sm) var(--space-md); }
  .ocl__head { margin-bottom: 0; }
  .ocl__rail { margin-bottom: var(--space-xs); }
  .ocl__pic-in { padding: var(--space-xs) var(--space-sm); }
  .ocl__cap { margin: var(--space-xs) 0; }
  .ocl__range { min-height: 2rem; } /* a pointer target; the phone keeps 44px */
}
