/*
 * THE REVIEW SURFACE (Today and each IPO's page, owner 28 Sep 2026). Light
 * only, on paper.css. Colour only by meaning, and always beside a word:
 *   red   (--neg)   act now: a deadline within 24 hours, closes today, a wrong value
 *   amber (--warn)  needs your judgment: a single reading, an estimate, an
 *                   unverified source, a wait past the 72-hour target
 *   blue  (--brand) the one primary action on the screen
 * Everything else is neutral. There is no green for "fine": fine is quiet.
 */
body { max-width: 1440px; padding-left: 20px; padding-right: 20px; }
.red { color: var(--neg); font-weight: 600; }
.amber { color: var(--warn); font-weight: 600; }
.tag { display: inline-block; font: 600 11px/15px var(--ui); padding: 1px 7px; border-radius: 999px; background: var(--greyTint); color: var(--sec); white-space: nowrap; vertical-align: 1px; }
.tag.red { background: var(--negTint); color: var(--neg); }
.tag.amber { background: var(--warnTint); color: var(--warn); }
.sme { font: 700 9.5px/13px var(--ui); letter-spacing: .8px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--sec); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
kbd { font: 600 10.5px/14px var(--figure); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: #fff; color: var(--sec); min-width: 16px; display: inline-block; text-align: center; }
button kbd { background: transparent; border-color: currentColor; color: inherit; opacity: .75; margin-left: 4px; }
.keyline { font: 400 12.5px/19px var(--ui); color: var(--ter); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.keyline span { display: inline-flex; gap: 4px; align-items: center; }

/* The review panel. */
.rv { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.rv .hd { padding: 12px 16px 10px; border-bottom: 1px solid var(--border); }
.rv .hd h2 { font: 700 18px/24px var(--ui); letter-spacing: -.2px; margin: 0; }
.rv .hd h2 a { color: var(--ink); text-decoration: none; }
.rv .hd h2 a:hover { text-decoration: underline; }
.rv .hd h2 .what { font-weight: 500; color: var(--sec); }
.rv .hd .meta { font: 400 12.5px/17px var(--ui); color: var(--ter); margin-top: 2px; }
.rv .body { padding: 12px 16px; overflow: auto; min-height: 0; }
.why { font: 500 13px/19px var(--ui); background: var(--surface2); border-left: 3px solid var(--line); padding: 6px 10px; border-radius: 0 6px 6px 0; margin-bottom: 6px; }
.why.red { background: var(--negTint); border-left-color: var(--neg); color: var(--ink); font-weight: 500; }
.tapline { font: 600 13px/19px var(--ui); color: var(--warn); background: var(--warnTint); border-left: 3px solid var(--warn); padding: 6px 10px; border-radius: 0 6px 6px 0; margin-bottom: 6px; }
details.passed { font: 400 12.5px/17px var(--ui); color: var(--ter); margin: 2px 0 6px; }
details.passed summary { cursor: pointer; }
details.passed ul { margin: 4px 0 0; padding-left: 18px; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; align-items: start; }
.vs > div > .label { display: block; margin-bottom: 5px; }
.rrow { margin-bottom: 10px; }
.rlabel { font: 600 13.5px/19px var(--ui); }
.rlabel .was, .floor .was { font: 400 12px/17px var(--ui); color: var(--ter); }
.change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.change .from { font: 500 14px/20px var(--figure); color: var(--ter); }
.change .arrow { color: var(--ter); }
.change .to { font: 600 17px/23px var(--figure); font-variant-numeric: tabular-nums; }
.change .to.prose { font: 400 14.5px/22px var(--prose); }
.floor { font: 400 12.5px/17px var(--ui); color: var(--sec); margin-top: 2px; }
.scroll { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
table.set { border-collapse: collapse; width: 100%; font: 400 12.5px/17px var(--ui); }
table.set th { position: sticky; top: 0; background: var(--surface2); font: 600 10px/13px var(--ui); letter-spacing: .8px; text-transform: uppercase; color: var(--ter); text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); z-index: 1; }
table.set td { padding: 4px 6px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
table.set th.n, table.set td.n { text-align: right; font-family: var(--figure); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.set td.i { color: var(--ter); font-family: var(--figure); width: 26px; }
table.set tr[data-row] { cursor: default; outline: none; }
table.set tr.lit td { background: var(--brandTint); }
table.set tr.bad td { background: var(--negTint); }
table.set tr.total td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
table.set td input { width: 100%; padding: 2px 5px; font: 500 12.5px/17px var(--figure); border-radius: 4px; }
table.set td.nm input { font-family: var(--ui); }
table.set td.diff { background: var(--negTint); }
table.set td.diff .v1, table.set td.diff .v2 { display: block; }
table.set td.diff .v2 { color: var(--sec); font-size: 11.5px; }
table.set td.diff .off { text-decoration: line-through; opacity: .5; }
.bad-word { font: 600 11px/15px var(--ui); color: var(--neg); white-space: nowrap; }
.recon { font: 500 12.5px/17px var(--ui); color: var(--ter); margin-top: 6px; }
.recon.bad { color: var(--neg); font-weight: 600; }
textarea.edit { width: 100%; min-height: 110px; font: 400 13px/19px var(--figure); }
input.edit { width: 100%; font: 600 16px/22px var(--figure); }
.dochead { display: flex; justify-content: space-between; gap: 8px; font: 500 12.5px/17px var(--ui); color: var(--sec); margin-bottom: 5px; }
.crop { border: 1px solid var(--border); border-radius: 6px; background: #fff; max-height: 520px; overflow: auto; }
.crop .frame { position: relative; line-height: 0; width: 100%; }
.crop img { width: 100%; height: auto; display: block; min-height: 30px; }
.crop .qbox { position: absolute; border: 2px solid var(--line); border-radius: 3px; pointer-events: none; }
.crop .rowbox { position: absolute; border-radius: 2px; }
.crop .rowbox.lit { background: rgba(61, 52, 176, 0.14); outline: 2px solid var(--brand); }
.pages { display: flex; gap: 8px; margin-top: 6px; overflow-x: auto; padding-bottom: 4px; }
.pages figure { margin: 0; flex: 0 0 min(360px, 90%); }
.pages img { width: 100%; height: auto; display: block; min-height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.pages figcaption, .spans { font: 500 11.5px/15px var(--ui); color: var(--ter); margin-top: 3px; }
blockquote { margin: 6px 0 0; padding: 5px 10px; border-left: 3px solid var(--line); font: 400 13px/19px var(--prose); color: var(--sec); white-space: pre-wrap; overflow-wrap: anywhere; }
.waitline { font: 600 12.5px/17px var(--ui); color: var(--warn); }
.pick { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pick button { background: #fff; }
.pick button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.actbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface2); border-radius: 0 0 10px 10px; flex-wrap: wrap; }
.actbar button { padding: 7px 13px; font-size: 13.5px; }
.actbar .msg2 { font: 500 12.5px/17px var(--ui); color: var(--ter); margin-left: auto; }
.actbar .msg2.bad { color: var(--neg); }
.actbar .msg2.ask { color: var(--warn); font-weight: 600; }
.actbar .rj { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.actbar .rj button { background: #fff; font-size: 12.5px; }
.actbar .rj .t { width: 100%; }
.empty { padding: 60px 20px; text-align: center; color: var(--ter); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 9px; font: 500 13px/18px var(--ui); display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 50; max-width: min(760px, 92vw); }
.toast button { background: transparent; color: var(--bg); border-color: rgba(248,226,212,.4); padding: 3px 8px; font-size: 13px; }
