/* readout.css — the Readout (registry Q56) on the Explorer's own tokens, so
   the saved theme and font carry over. Rules: a column of about a hundred
   characters for cards and grids, prose at a reading measure; three tones
   of text (muted for structure, body for content, bright only for the
   reader's own command); green, amber and red only for meaning (pass;
   partial, not checked, unresolved or a locked door; fail), never for
   decoration, held by explorer/test/readout-colour.test.js; the theme's
   accent for titles, headings, the graphs and the controls; buttons of
   one height; room below so the newest screen can always reach the top
   of the view. */
/* The frame: the page itself never scrolls. Header on top, the stage in the
   middle (its scroll box holds the log; its bottom edge holds the arrow),
   the buttons below as a footer. The scroll bar lives only in the stage. */
body.ro-page { height: 100vh; height: 100dvh; overflow: hidden; }
body.ro-page #app { height: 100%; min-height: 0; }
body.ro-page header { flex: 0 0 auto; }
.ro-bed { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; background: var(--dot-texture); }
.ro-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.ro-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ro-spacer { height: 0; }
/* Before the history file arrives: the platform's dot-matrix loader (the
   Explorer's scene loader, 8 by 8, the same wave, its label under it),
   centred in the stage and not on the page (the owner, 2026-10-13). The
   bar that read "Readout · loading" above the log is gone with it: every
   screen opens with its own heading, so the bar said nothing the screen
   did not. readout.js builds the dots and hides the loader when the
   history has answered. */
.ro-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; color: var(--text-dim); }
.ro-loading[hidden] { display: none; }
.ro-loading-matrix { display: inline-grid; grid-template-columns: repeat(8, 6px); gap: 2px; padding: 8px; }
.ro-loading-matrix .ro-dot { width: 6px; height: 6px; border-radius: 1px; background: currentColor; opacity: 0.2; animation: ro-matrix-flow 2.5s ease-out infinite; }
.ro-loading-label { font-size: 12px; letter-spacing: 4px; font-weight: 600; color: var(--text-dim); }
@keyframes ro-matrix-flow { 0%, 100% { opacity: 0.20; } 15% { opacity: 1.00; } 30% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .ro-loading-matrix .ro-dot { animation: none; opacity: 0.85; } }
/* One frame for everything on the page: the text, the charts, the cards and
   the buttons share one width, capped at about eighty characters (the owner,
   2026-10-12, on desktop: the buttons ran wider than the text; the frame he
   picked is his second screenshot's). Nothing inside sets a narrower measure. */
.ro { max-width: 80ch; width: 100%; margin: 0 auto; padding: 14px 16px 0; box-sizing: border-box; font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--text); }
.ro-log { padding: 16px 0 0; }
.ro-entry { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; transition: opacity 300ms ease; min-width: 0; }
.ro-entry.dim { opacity: 0.45; }
.ro-head { color: var(--accent); letter-spacing: 0.08em; }
.ro-h { color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; margin-top: 6px; }
.ro-p { margin-bottom: 14px; }
.ro-src { color: var(--text-dim); font-size: 12px; }
.ro-sys { color: var(--accent); }
.ro-ok { color: var(--ok); }
.ro-warn { color: var(--warn); }
.ro-err { color: var(--err); }
.ro-q { color: var(--text-hi); }
.ro-cursor { display: inline-block; width: 0.6em; height: 1em; vertical-align: -0.15em; background: var(--accent); margin-left: 2px; animation: ro-blink 1s steps(1) infinite; }
@keyframes ro-blink { 50% { opacity: 0; } }
.ro-code { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 3px; padding: 0 3px; overflow-wrap: anywhere; }
.ro-id { color: var(--text); background: var(--bg-inset); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; white-space: nowrap; cursor: help; }
.ro-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 6px; margin: 2px 0 14px; }
.ro-lead { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-lead.ok { color: var(--ok); } .ro-lead.warn { color: var(--warn); } .ro-lead.err { color: var(--err); }
.ro-txt { min-width: 0; overflow-wrap: anywhere; }
.ro-txt .ro-k { color: var(--text); font-weight: 700; }
.ro-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; row-gap: 6px; margin: 2px 0 14px; }
.ro-kl { color: var(--text); font-weight: 700; white-space: nowrap; }
.ro-kvv { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.ro-kvv.ok { color: var(--ok); } .ro-kvv.warn { color: var(--warn); } .ro-kvv.err { color: var(--err); }
.ro-kvv .ro-note { color: var(--text-dim); }
.ro-srcs { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 2px; margin: 0 0 4px; font-size: 12px; color: var(--text-dim); }
.ro-tag { color: var(--text-muted); white-space: nowrap; }
/* A source row (the owner, 2026-10-14): the path and its anchor as one text
   run that wraps, the chip after them in a column of one width at the
   row's right edge, so every chip sits in the same place whatever the
   length of the line before it. */
.ro-path { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ro-path .ro-pathtext { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ro-path .chip { flex: none; margin-left: auto; min-width: 8.4em; text-align: center; box-sizing: border-box; background: var(--bg); }   /* on the base tone, not see-through to the dots (the owner, 2026-10-14) */
.ro-path .ro-anchor { color: var(--text-muted); }
.ro-link { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.ro-legend { color: var(--text-muted); font-size: 11px; margin: 0 0 14px; }
/* On a phone the "source" label sits above the rows and the rows take the
   full width (the owner, 2026-10-14: in the second column the text had
   little room and sat in the middle of the screen). */
@media (max-width: 600px) { .ro-srcs { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } .ro-srcs .ro-tag:empty { display: none; } }
.ro-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
@media (max-width: 600px) { .ro-cards { grid-template-columns: minmax(0, 1fr); } }
.ro-card { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 4px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ro-card .ro-ttl { color: var(--accent); overflow-wrap: anywhere; }
.ro-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-card .ro-why { font-size: 12px; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ro-card .ro-asks { color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--border); padding-top: 6px; }
.ro-bars { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 10px; row-gap: 5px; align-items: center; margin: 2px 0 14px; max-width: 48ch; font-size: 12px; }
.ro-bl { color: var(--text-dim); white-space: nowrap; }
.ro-bb { height: 10px; border: 1px solid var(--border); border-radius: 2px; background: linear-gradient(to right, color-mix(in srgb, var(--accent) 70%, transparent) calc(var(--w) * 1%), transparent calc(var(--w) * 1%)); }
.ro-bn { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ro-lane { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; margin: 4px 0 8px; }
.ro-lane .ro-m, .ro-matrix .ro-m { text-align: center; font-size: 10px; color: var(--text-dim); }
/* The instant tooltip on chart cells: no delay, no fade, the corpus heat
   map's look. */
.ro-tip { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; visibility: hidden; background: var(--bg-raised); border: 1px solid var(--border-mid); color: var(--text); font-size: 11px; padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.ro-tip.visible { visibility: visible; }
[data-tip] { cursor: default; }
.ro-lane .ro-c, .ro-matrix .ro-c { height: 18px; border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) calc(var(--w) * 1%), transparent); border-radius: 2px; }
.ro-lane .ro-n { text-align: center; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ro-matrix { display: grid; grid-template-columns: max-content repeat(var(--n), minmax(0, 1fr)); gap: 5px; align-items: center; margin: 2px 0 6px; font-size: 11px; }
.ro-matrix .ro-rl { color: var(--text-dim); white-space: nowrap; padding-right: 6px; }
.ro-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.ro-form input { font: inherit; font-size: 13px; background: var(--bg-inset); color: var(--text-hi); border: 1px solid var(--border-hi); border-radius: 4px; padding: 8px 10px; min-width: 0; flex: 1 1 240px; }
.ro-form input:focus-visible { outline: 2px solid var(--accent); }
.ro-form button { font: inherit; background: var(--bg-raised); color: var(--text-hi); border: 1px solid var(--border-hi); border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.ro-row { flex: 0 0 auto; position: relative; z-index: 3; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, #000 12%); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
/* Buttons: three across above phone width, two on a phone; a last button
   that would sit alone in its row spans the row ("Check a record" across the
   bottom). */
.ro-row .ro-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 56px; gap: 8px; }
.ro-row .ro-inner .ro-btn:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.ro-btn { font: inherit; font-size: 13px; line-height: 1.3; text-align: left; height: 56px; box-sizing: border-box; padding: 6px 12px; background: var(--bg-raised); color: var(--text-hi); border: 1px solid var(--border-hi); border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.ro-btn:hover { border-color: var(--accent); }
.ro-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ro-btn .ro-key { color: var(--accent); font-variant-numeric: tabular-nums; }
.ro-btn .ro-label { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ro-btn .ro-lock { flex: 0 0 auto; margin-left: auto; color: var(--warn); line-height: 0; }
.ro-btn .ro-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ro-btn.quiet { color: var(--text-dim); border-color: var(--border); }
@media (max-width: 600px) { .ro-row .ro-inner { grid-template-columns: 1fr 1fr; } .ro-row .ro-inner .ro-btn:last-child:nth-child(3n+1) { grid-column: auto; } .ro-row .ro-inner .ro-btn:last-child:nth-child(odd) { grid-column: 1 / -1; } .ro-btn { font-size: 12px; padding: 6px 10px; } }
.ro-jump { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 18px; background: var(--bg-raised); color: var(--text-hi); border: 1px solid var(--border-hi); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.ro-jump[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ro-entry { transition: none; } .ro-cursor { animation: none; } }
