/* Report page components. Signature devices: sentences that resolve into citations with a trace line to the passage,
   evidence numbers wired between section 7 and section 6, and QA review told in four numbered chapters with a pin in the margin.
   Synthetic data only. */

.rp-ip { color: var(--ok); }
.rp-dim { color: var(--fg-3); }
.rp-lbl { font-size: 12px; color: var(--fg-3); margin-bottom: 10px; }
.rp-lbl span { margin-left: 8px; color: var(--fg-4); }
.rp-ico { width: 14px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1.25px var(--fg-3); position: relative; flex: none; }
.rp-ico::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 1.25px; background: var(--fg-3); box-shadow: 0 3px 0 var(--fg-3); }
[class^="rp-"] .r, .rp-acc .r { margin-left: auto; }

/* ---------- pillar 1: the drafting steps behind ---------- */
.rp-steps-b { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.rp-sb { display: flex; align-items: center; gap: 12px; }
.rp-sb b { font-weight: 500; }
.rp-sb .ap-badge { margin-left: auto; }
.rp-sb-l { margin-left: 34px; display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.rp-n { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; box-shadow: inset 0 0 0 1px var(--fg-4); color: var(--fg-2); flex: none; }

/* ---------- pillar 1: the report page, sentences that resolve into citations ---------- */
.rp-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); height: calc(100% - 44px); }
.rp-work { padding: 20px 24px; border-right: 1px solid var(--line); min-width: 0; }
.rp-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-3); margin-bottom: 18px; }
/* drafted text is a .doc-page: copper while suggested, the normal surface once accepted (never white); a sentence still suggested carries a thin copper underline */
.rp-narr { position: relative; padding: 22px 26px; font-size: 14.5px; line-height: 1.85; min-height: 236px; --cu-ink: var(--cu); }
.rp-narr .ap-ev { height: 19px; font-size: 10.5px; }
.rp-narr .ap-ev.hot { background: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu-line); color: var(--cu); }
.rp-sen.sg .w { padding-bottom: 2px; background: linear-gradient(color-mix(in srgb, var(--cu-ink) 75%, transparent), color-mix(in srgb, var(--cu-ink) 75%, transparent)) no-repeat 0 100% / 100% 1px; transition: opacity .35s var(--ease-enter), filter .35s var(--ease-enter), background-size .5s var(--ease-swap); }
.rp-sen.sg.acc .w { background-size: 0% 1px; background-position: 100% 100%; }
.rp-dim { color: var(--fg-4); }
.rp-src-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-src-h h6 { margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-src-h small { margin-left: auto; font-family: "Geist Mono", monospace; flex: none; }
.rp-sen { position: relative; display: inline; }
.rp-sen .w { opacity: 0; filter: blur(5px); transition: opacity .35s var(--ease-enter), filter .35s var(--ease-enter); transition-delay: calc(var(--i) * 32ms); }
.rp-sen.on .w { opacity: 1; filter: none; }
.rp-sen .ap-ev { margin: 0 4px 0 2px; opacity: 0; transform: scale(.7); transform-origin: 0 50%; transition: opacity .35s var(--ease-enter), transform var(--dur-enter) var(--ease-spring), background .6s, box-shadow .6s, color .6s; }
.rp-sen .ap-ev.in { opacity: 1; transform: none; }
.rp-sen .ap-ev .tk { width: 10px; height: 10px; color: var(--ok); opacity: 0; transition: opacity .4s .5s; }
.rp-sen .ap-ev.in .tk { opacity: 1; }
.rp-ghost { position: absolute; left: 18px; right: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; transition: opacity .5s; }
.rp-ghost .ph { background: color-mix(in srgb, var(--fg-1) 7%, transparent); }
.rp-refs { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); }
.rp-acc { margin-top: 14px; min-height: 40px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 12.5px; opacity: .4; transition: opacity .5s; }
.rp-acc .r { display: flex; gap: 8px; }
.rp-acc.ready { opacity: 1; }
.rp-acc.done { color: var(--fg-2); }
.rp-acc svg { width: 15px; height: 15px; color: var(--ok); }
.rp-pane { background: var(--bg-1); min-width: 0; overflow: hidden; }
:root[data-theme="light"] .rp-pane { background: #fafafa; }
.rp-srcs { display: flex; flex-direction: column; }
.rp-src { padding: 14px 16px; border-bottom: 1px solid var(--line-2); transition: background .5s; }
.rp-src.hot { background: color-mix(in srgb, var(--fg-1) 3%, transparent); }
.rp-src h6 { margin: 8px 0 0; font-size: 12.5px; font-weight: 500; }
.rp-src small { color: var(--fg-3); font-size: 11.5px; }
.rp-src .src-excerpt { margin-top: 10px; font-size: 12.5px; padding: 10px 12px; }
.rp-mono { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.rp-trace path { fill: none; stroke: color-mix(in srgb, var(--cu) 70%, transparent); stroke-width: 1; transition: opacity .5s; }
.rp-trace circle { fill: var(--cu); }
@keyframes rp-march { to { stroke-dashoffset: -18; } }

/* ---------- cells under pillar 1 ---------- */
.rp-card { border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; overflow: hidden; font-size: 13px; }
:root[data-theme="light"] .rp-card, :root[data-theme="light"] .rp-home, :root[data-theme="light"] .rp-tally, :root[data-theme="light"] .rp-tocheck { box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #00000012; }
.rp-st { position: relative; padding: 14px 16px 14px 48px; border-bottom: 1px solid var(--line-2); }
.rp-st:last-child { border-bottom: 0; }
.rp-st .rp-n { position: absolute; left: 16px; top: 14px; transition: background .4s, box-shadow .4s, color .4s; }
.rp-st.ok .rp-n { background: var(--ok); box-shadow: none; color: var(--bg); }
.rp-st-h { display: flex; align-items: center; gap: 10px; }
.rp-st-h b { font-weight: 500; }
.rp-st-h .ap-badge { margin-left: auto; }
.rp-st p { margin-top: 4px; color: var(--fg-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rp-st .ap-btn { margin-top: 10px; }
.rp-home { padding: 16px 18px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; font-size: 13px; }
.rp-home-h { display: flex; align-items: center; gap: 10px; }
.rp-home-h b { font-weight: 500; }
.rp-home p { margin: 4px 0 12px 24px; color: var(--fg-3); font-size: 12.5px; }
.rp-home-r { display: grid; grid-template-columns: 96px 1fr; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--fg-3); }
.rp-home-r b { font-weight: 500; color: var(--fg-1); }
.rp-home-r b.rp-ip { color: var(--ok); }
.rp-home-s { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; color: var(--fg-2); }
.rp-bt { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-2); transition: opacity .4s; }
.rp-bt .r { color: var(--fg-3); font-size: 12px; transition: color .3s; }
.rp-bt.on .r { color: var(--ok); }
.rp-bt.flag { color: var(--fg-4); }
.rp-bt.flag .r { color: var(--amber); }
.rp-bt .ev-box { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.25px var(--fg-4); display: grid; place-items: center; color: transparent; transition: all .25s; flex: none; }
.rp-bt .ev-box svg { width: 11px; height: 11px; }
.rp-bt.tick .ev-box { background: var(--fg-1); box-shadow: none; color: var(--bg); }
.rp-bt.flag .ev-box { opacity: .3; }
.rp-bbar { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); background: var(--bg-2); }
.rp-bbar .ap-btn { margin-left: auto; }
.rp-sw { width: 30px; height: 18px; border-radius: 99px; background: var(--bg-4); position: relative; transition: background .3s; flex: none; }
.rp-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 99px; background: var(--fg-1); transition: transform .3s var(--ease-enter); }
.rp-sw.on { background: var(--cu); }
.rp-sw.on::after { transform: translateX(12px); }
.rp-na-row { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); color: var(--fg-2); }
.rp-na-row .r { font-size: 12px; color: var(--fg-3); transition: color .3s; }
.rp-type { min-height: 64px; margin: 0 14px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-1); line-height: 1.55; }
.rp-type .typing::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; background: var(--fg-1); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.rp-mcalls { font-variant-numeric: tabular-nums; color: var(--fg-1); }

/* ---------- pillar 2: the evidence numbers, wired ---------- */
.rp-resolve { color: var(--ok); opacity: 0; transition: opacity .6s; }
.rp-resolve.on { opacity: 1; }
.rp-cols { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14%; padding: 28px 32px; }
.rp-col { position: relative; z-index: 2; min-width: 0; }
.rp-rr { position: relative; min-height: 56px; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-2); }
.rp-rr .r { display: flex; gap: 6px; }
.rp-rr.ph-r { opacity: .5; }
.rp-rr.ph-r .ph { flex: 0 0 40%; }
.rp-num { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-1); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3); transition: background .5s, box-shadow .5s, color .5s; }
.rp-num.flip { color: var(--fg-1); background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--fg-3); }
.rp-hist { flex-basis: 100%; max-height: 0; overflow: hidden; opacity: 0; color: var(--fg-3); font-size: 12px; transition: max-height .5s var(--ease-enter), opacity .5s; }
.rp-hist.on { max-height: 24px; opacity: 1; }
.rp-en { position: relative; height: 52px; padding: 0 12px; margin-bottom: 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-2); white-space: nowrap; overflow: hidden; transition: height .6s var(--ease-enter), margin .6s var(--ease-enter), opacity .5s, box-shadow .5s, background .5s; }
.rp-en > span:last-child:not(.rp-menu) { overflow: hidden; text-overflow: ellipsis; }
.rp-pn { min-width: 82px; font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-1); }
.rp-en.hot { box-shadow: inset 0 0 0 1px var(--fg-3); background: var(--bg-3); }
.rp-en.gone { height: 0; margin-bottom: 0; opacity: 0; }
.rp-menu { position: absolute; right: 10px; height: 28px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3), 0 8px 20px #00000059; color: var(--fg-1); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s, background .2s; }
.rp-menu.on { opacity: 1; transform: none; }
.rp-menu.press { background: var(--inv); color: var(--inv-fg); }
.rp-gap { height: 0; margin-bottom: 0; overflow: hidden; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--fg-4); font-size: 12px; font-family: "Geist Mono", monospace; box-shadow: inset 0 0 0 1px var(--line-2); background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px); opacity: 0; transition: height .6s var(--ease-enter), margin .6s var(--ease-enter), opacity .6s; }
.rp-gap.on { height: 34px; margin-bottom: 10px; opacity: 1; }
.rp-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.rp-wires path { fill: none; stroke: var(--fg-4); stroke-width: 1; transition: opacity .4s, stroke var(--dur-hover); }
.rp-wires path.hot { stroke: var(--fg-2); }
.rp-wires circle { fill: var(--fg-4); }

/* ---------- pillar 3: the outline and the Approve ROC dialog ---------- */
.rp-outline { padding: 10px 0; }
.rp-ol { height: 54px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); color: var(--fg-2); }
.rp-ol .rp-n { box-shadow: none; background: var(--bg-3); }
.rp-ol .r { color: var(--ok); font-size: 12px; }
/* calm dialogs: a title, one fact (a progress ring with its conditions on hover), the button */
.rp-dlg { border-radius: 12px 12px 0 0; }
.rp-dlg-in { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.rp-dlg h4, .rp-qa-dlg h4 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.012em; }
.rp-sub { margin-top: -12px; display: flex; gap: 10px; color: var(--fg-3); font-size: 12.5px; }
.rp-sub span { color: var(--fg-4); }
.rp-cond { position: relative; }
.rp-cond-h { height: 36px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-variant-numeric: tabular-nums; cursor: default; }
.rp-cond-h b { color: var(--fg-1); font-weight: 500; }
.rp-ring { width: 16px; height: 16px; flex: none; --p: 0; }
.rp-ring svg { width: 16px; height: 16px; display: block; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.rp-ring .t { stroke: var(--line-3); }
.rp-ring .p { stroke: var(--fg-3); stroke-dasharray: var(--p) 1; transition: stroke-dasharray .3s, stroke .3s; }
.rp-ring.ok .p { stroke: var(--ok); }
.rp-pop { position: absolute; left: -8px; top: 40px; z-index: 6; width: min(340px, 100%); padding: 6px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #0000004d; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-hover), transform var(--dur-hover); pointer-events: none; }
.rp-cond:hover .rp-pop { opacity: 1; transform: none; }
.rp-c { height: 30px; padding: 0 8px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 12.5px; }
.rp-c.ok { color: var(--fg-1); }
.rp-c em { margin-left: auto; font-style: normal; color: var(--fg-4); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-c::after { content: ""; width: 12px; height: 12px; border-radius: 99px; flex: none; box-shadow: inset 0 0 0 1.25px var(--fg-4); transition: box-shadow .3s, background .3s; }
.rp-c.ok::after { box-shadow: inset 0 0 0 1.25px var(--ok); background: radial-gradient(circle, var(--ok) 0 2px, transparent 2.5px); }
.rp-counts { display: flex; flex-direction: column; gap: 10px; }
.rp-bar { height: 6px; display: flex; gap: 2px; }
.rp-bar i { flex: var(--n) 1 0; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s var(--ease-swap); }
.rp-counts.in .rp-bar i { transform: none; }
.rp-bar i:nth-child(2) { transition-delay: .08s; } .rp-bar i:nth-child(3) { transition-delay: .16s; } .rp-bar i:nth-child(4) { transition-delay: .24s; } .rp-bar i:nth-child(5) { transition-delay: .32s; }
.rp-counts i.rec { background: var(--fg-4); } .rp-counts i.acc { background: var(--fg-2); } .rp-counts i.ed { background: var(--fg-3); } .rp-counts i.ag { background: var(--cu); } .rp-counts i.own { background: var(--blue); }
.rp-bar-k { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--fg-4); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rp-bar-k i { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.rp-dlg-f { display: flex; align-items: center; gap: 10px; padding-top: 4px; color: var(--fg-4); font-size: 12px; }
.rp-dlg-f .r { display: flex; gap: 8px; margin-left: auto; }
.rp-dlg-f.done { color: var(--fg-2); font-size: 12.5px; }
.rp-dlg-f .r.rp-dim { color: var(--fg-4); }
.rp-dlg .fade { display: none; }
.rp-qa-dlg { width: min(420px, 100%); margin: 40px auto 0; padding: 22px 24px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); display: flex; flex-direction: column; gap: 18px; }

/* ---------- cells under pillar 3 ---------- */
.rp-chk { padding: 14px 16px; }
.rp-chk-h { display: flex; align-items: center; gap: 8px; }
.rp-chk-h b { font-weight: 500; }
.rp-chk-h .ap-badge { margin-left: auto; }
.rp-chk p { margin-top: 8px; color: var(--fg-3); line-height: 1.5; }
.rp-chk-r { padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); color: var(--fg-2); }
.rp-chk-r .r { font-size: 12px; color: var(--fg-3); }
.rp-chk-r .val { font-family: "Geist Mono", monospace; font-size: 12px; transition: color .4s; }
.rp-chk-r .val.bad { color: var(--amber); }
.rp-chk-r .val.good { color: var(--ok); }
.rp-why { margin: 0 16px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-1); min-height: 40px; }
.rp-why .typing::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; background: var(--fg-1); vertical-align: -2px; animation: blink 1.2s steps(1) infinite; }
.rp-kst { max-height: 0; overflow: hidden; opacity: 0; display: flex; gap: 8px; align-items: center; padding: 0 16px; color: var(--fg-2); font-size: 12.5px; transition: max-height .5s var(--ease-enter), opacity .5s, padding .5s; }
.rp-kst.on { max-height: 50px; opacity: 1; padding: 0 16px 14px; }
.rp-tally { padding: 16px 18px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; font-size: 13px; }
.rp-tally-h { display: flex; align-items: center; gap: 10px; }
.rp-tally-h b { font-weight: 500; }
.rp-tally-h .r { color: var(--fg-3); font-size: 12px; }
.rp-bars { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.rp-bars div { display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center; color: var(--fg-3); }
.rp-bars i { height: 6px; border-radius: 3px; background: var(--bg-3); position: relative; overflow: hidden; }
.rp-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--fg-2); border-radius: 3px; }
.rp-bars b { text-align: right; font-weight: 500; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.rp-tally-f { padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; color: var(--fg-3); }
.rp-tally-f .r { color: var(--fg-1); font-weight: 500; }
.rp-fl { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.rp-fl-h { display: flex; align-items: center; gap: 8px; }
.rp-fl-h b { font-weight: 500; }
.rp-fl-h .tag { height: 20px; padding: 0 6px; border-radius: 5px; font-family: "Geist Mono", monospace; font-size: 10.5px; display: inline-flex; align-items: center; color: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 40%, transparent); }
.rp-fl small { display: block; margin-top: 4px; color: var(--fg-3); font-size: 12px; }
.rp-fc { height: 38px; padding: 0 16px; display: flex; align-items: center; gap: 10px; color: var(--fg-3); border-bottom: 1px solid var(--line-2); transition: color .3s; }
.rp-fc::before { content: ""; width: 12px; height: 12px; border-radius: 99px; flex: none; box-shadow: inset 0 0 0 1.25px var(--fg-4); transition: all .3s; }
.rp-fc.ok { color: var(--fg-1); }
.rp-fc.ok::before { box-shadow: inset 0 0 0 1.25px var(--ok); background: radial-gradient(circle, var(--ok) 0 2px, transparent 2.5px); }
.rp-fdl { padding: 12px 16px; display: flex; gap: 8px; opacity: .35; transition: opacity .5s; }
.rp-fdl.on { opacity: 1; }

/* ---------- pillar 4: QA review in chapters ---------- */
.rp-guide { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.rp-ch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 120px; }
.rp-ch button { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; cursor: pointer; position: relative; overflow: hidden; color: var(--fg-3); transition: background .4s, color .4s; }
.rp-ch button:focus-visible { outline: 2px solid var(--fg-3); outline-offset: 2px; }
.rp-ch b { font-size: 17px; font-weight: 500; color: var(--fg-2); letter-spacing: -0.01em; transition: color .4s; }
.rp-ch button > span:not(.rp-chn) { font-size: 14px; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-enter), opacity .5s; }
.rp-chn { font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-4); }
.rp-ch i { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.rp-ch i::after { content: ""; position: absolute; inset: 0; background: var(--fg-2); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rp-ch li.on button { background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.rp-ch li.on b { color: var(--fg-1); }
.rp-ch li.on button > span:not(.rp-chn) { max-height: 90px; opacity: 1; }
.rp-ch li.on i { opacity: 1; }
.rp-gstage { margin-top: 0; }
.rp-gstage .stage2-in { height: 640px; }
.rp-panes { position: relative; height: calc(100% - 44px); }
.rp-pane-q { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; transform: translateY(10px); filter: blur(3px); pointer-events: none; transition: opacity .6s var(--ease-enter), transform .6s var(--ease-enter), filter .6s var(--ease-enter); display: flex; flex-direction: column; gap: 14px; }
.rp-pane-q.on { opacity: 1; transform: none; filter: none; }
.rp-q-h { display: flex; align-items: center; gap: 10px; }
.rp-q-h b { font-weight: 560; font-size: 15px; letter-spacing: -0.01em; }
.rp-q-h .ap-badge { margin-left: auto; }
.rp-stampl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--fg-1); }
.rp-stampl small { flex-basis: 100%; padding-left: 30px; color: var(--fg-3); font-size: 12px; }
.rp-qtext { max-width: 56%; padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-3); line-height: 1.8; color: var(--fg-1); }
.rp-s1 { border-radius: 4px; transition: background .5s, box-shadow .5s; }
.rp-s1.on { background: color-mix(in srgb, var(--amber) 9%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--amber) 60%, transparent); }
.rp-pin { position: absolute; left: calc(26px + 56% + 12px); top: 150px; width: 28px; height: 28px; border-radius: 99px 99px 99px 3px; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--amber); color: #1a1306; box-shadow: 0 0 0 3px var(--bg-1); opacity: 0; transform: translateY(-16px) scale(.8); transition: opacity .3s, transform .55s var(--ease-spring); }
.rp-pin.on { opacity: 1; transform: none; }
.rp-note { position: absolute; left: calc(26px + 56% + 52px); right: 26px; top: 138px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #00000059; opacity: 0; transform: translateX(-8px); filter: blur(2px); transition: all .6s var(--ease-enter); }
:root[data-theme="light"] .rp-note { box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #00000014; }
.rp-note.on { opacity: 1; transform: none; filter: none; }
.rp-note-h { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.rp-note-h .ap-badge { margin-left: auto; }
.rp-tags { margin-top: 8px; display: flex; gap: 6px; }
.rp-tags span { height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11.5px; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.rp-note p { margin-top: 10px; color: var(--fg-1); line-height: 1.5; }
.rp-sb-top { display: flex; align-items: center; color: var(--fg-3); }
.rp-sb-top .ap-btn { margin-left: auto; }
.rp-back { height: 50px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; gap: 12px; box-shadow: inset 0 0 0 1px var(--line-3); background: var(--bg-2); color: var(--fg-2); }
.rp-back .r { font-size: 12px; color: var(--fg-2); }
.rp-back.ph-r { opacity: .5; }
.rp-back.ph-r .ph { flex: 0 0 34%; }
.rp-back.ph-r .r { color: var(--fg-3); }
.rp-sent { max-height: 0; overflow: hidden; opacity: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--ok-tint); color: var(--fg-1); transition: all .6s var(--ease-enter); }
.rp-sent.on { max-height: 60px; opacity: 1; padding: 14px; }
.rp-sent svg, .rp-ans-done svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.rp-sugg { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; }
.rp-sugg-h { height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); }
.rp-sugg-h b { font-weight: 500; color: var(--fg-1); }
.rp-sugg p { padding: 14px 16px; line-height: 1.8; color: var(--fg-1); }
.rp-sugg mark { color: inherit; background: none; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fg-1) 40%, transparent); text-underline-offset: 3px; }
.rp-ans { padding: 0 16px 14px; display: flex; gap: 8px; justify-content: flex-end; transition: opacity .3s; }
.rp-ans-done { max-height: 0; overflow: hidden; opacity: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 16px; border-radius: 10px; background: var(--ok-tint); color: var(--fg-1); transition: all .6s var(--ease-enter); }
.rp-ans-done small { color: var(--fg-3); font-size: 12px; margin-left: 4px; }
.rp-ans-done.on { max-height: 60px; opacity: 1; padding: 12px 14px; margin: 0 16px 14px; }
.rp-kept { height: 50px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; gap: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); opacity: .7; }
.rp-kept .r { font-size: 12px; color: var(--fg-3); }

/* ---------- cells under pillar 4 ---------- */
.rp-ban { padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; background: var(--amber-tint); border-bottom: 1px solid var(--line-2); transition: background .5s; }
.rp-ban svg { width: 15px; height: 15px; color: var(--amber); flex: none; margin-top: 2px; }
.rp-ban b { font-weight: 500; display: block; }
.rp-ban small { color: var(--fg-3); font-size: 12px; }
.rp-ban.done { background: var(--bg-2); }
.rp-ban-a { padding: 12px 16px; display: flex; gap: 8px; justify-content: flex-end; transition: opacity .3s; }
.rp-tocheck { border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; overflow: hidden; font-size: 13px; }
.rp-tc-h { height: 46px; padding: 0 14px; display: flex; align-items: center; border-bottom: 1px solid var(--line-2); }
.rp-tc-h b { font-weight: 500; }
.rp-tc-h .r { color: var(--fg-3); font-size: 12px; }
.rp-tc { height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-2); }
.rp-tc:last-child { border-bottom: 0; }
.rp-tc .ap-badge { margin-left: auto; }
.rp-tc.dim { color: var(--fg-4); }

@media (max-width: 1024px) {
  .rp-guide { grid-template-columns: 1fr; }
  .rp-ch { position: static; flex-direction: row; overflow-x: auto; }
  .rp-ch li { flex: 1 0 200px; }
}
@media (max-width: 900px) {
  .rp-split { grid-template-columns: 1fr; }
  .rp-pane { display: none; }
  .rp-cols { grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 16px; }
  .rp-en > span:last-child:not(.rp-menu), .rp-en .ap-ev { display: none; }
  .rp-rr > span:nth-child(2) { display: none; }
  .rp-qtext { max-width: none; }
  .rp-pin { left: auto; right: 30px; top: 110px; }
  .rp-note { left: 26px; top: auto; bottom: 40px; }
  .rp-bars div { grid-template-columns: 96px 1fr 30px; }
}
@media (max-width: 768px) {
  .rp-gstage .stage2-in { height: 600px; }
  .rp-ch li { flex-basis: 220px; }
}
.rp-num, .rp-pn { white-space: nowrap; }
#rp-page .win-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 900px) {
  #rp-stage1 .win.back, #rp-stage3 .win.back { display: none; }
  #rp-page { left: 4% !important; width: 92% !important; }
  #rp-dlg { left: 10px !important; width: calc(100% - 20px) !important; margin-left: 0 !important; }
  #rp-link { left: 3% !important; width: 94% !important; }
  .rp-menu { right: 4px; font-size: 11px; padding: 0 6px; }
  .rp-meta span:last-child { display: none; }
}
.rp-card .ap-key, .rp-tally .ap-key, .rp-tocheck .ap-key { white-space: nowrap; flex: none; }
@media (prefers-reduced-motion: reduce) { .rp-trace path, .rp-wires path { animation: none; } }

/* ================= creative pieces: the report map (pillar 1) and every sentence's source (pillar 3) ================= */
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rp-mapstage, .rp-srcstage { position: relative; margin-top: 64px; padding: 36px 40px 0; border-radius: 20px; background: radial-gradient(70% 90% at 50% 0%, #1d1e21 0%, #121315 40%, var(--bg) 85%); box-shadow: inset 0 1px 0 #ffffff12, inset 0 0 0 1px #ffffff0a; }
.rp-srcstage { padding-bottom: 32px; }
:root[data-theme="light"] .rp-mapstage, :root[data-theme="light"] .rp-srcstage { background: radial-gradient(70% 90% at 50% 0%, #f1f1f3 0%, #f7f7f8 50%, var(--bg) 100%); box-shadow: inset 0 0 0 1px #0000000d; }
.rp-cap { margin-top: 28px; max-width: 640px; }
.rp-cap h3 { font-size: 15px; font-weight: 500; color: var(--fg-1); }
.rp-cap p { margin-top: 4px; color: var(--fg-3); font-size: 15px; }
.rp-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 13px; color: var(--fg-3); }
.rp-run { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1px var(--line-3); background: var(--bg-1); color: var(--fg-2); white-space: nowrap; min-width: 0; overflow: hidden; }
.rp-run > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.rp-run-d { width: 7px; height: 7px; border-radius: 99px; background: var(--fg-4); flex: none; }
.rp-run.busy .rp-run-d { background: var(--fg-2); }
.rp-run.ok .rp-run-d { background: var(--ok); }
@keyframes rp-pulse { 50% { opacity: .3; } }
.rp-count { margin-left: auto; display: flex; gap: 20px; white-space: nowrap; }
.rp-count b { color: var(--fg-1); font-weight: 560; font-size: 15px; font-variant-numeric: tabular-nums; }

/* the map: the outline in print order, each row tagged with the drafting step it belongs to */
.rp-maprow, .rp-srcrow { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.rp-toc { display: flex; flex-direction: column; min-width: 0; }
.rp-row { display: grid; grid-template-columns: 22px 250px minmax(0, 1fr) 62px; gap: 12px; align-items: center; min-height: 24px; padding: 3px 0; font-size: 12.5px; color: var(--fg-3); }
.rp-row.h { margin-top: 8px; }
.rp-row.sub .rp-rl { padding-left: 14px; }
.rp-row.sub .rp-rl b { display: none; }
.rp-row:hover .rp-rl, .rp-row.act .rp-rl { color: var(--fg-1); }
.rp-sn { width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; font-size: 10.5px; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-3); transition: color .3s, box-shadow .3s, background .3s; }
.rp-row.sub .rp-sn, .rp-row.h .rp-sn { box-shadow: none; }
.rp-row.sub .rp-sn::before { content: ""; width: 1px; height: 24px; background: var(--line-3); }
.rp-row.act .rp-sn:not(:empty) { color: var(--cu); box-shadow: inset 0 0 0 1px var(--cu); }
.rp-rl { display: flex; gap: 10px; min-width: 0; white-space: nowrap; transition: color .3s; }
.rp-rl b { font-weight: 500; color: var(--fg-2); min-width: 26px; }
.rp-rl span { overflow: hidden; text-overflow: ellipsis; }
.rp-row.h .rp-rl { color: var(--fg-2); }
.rp-tiles { display: flex; flex-wrap: wrap; gap: 3px; }
.rp-t { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-3); transition: background .45s var(--ease-enter), box-shadow .45s var(--ease-enter), opacity .45s; }
.rp-t.p { background: var(--bg-4); box-shadow: none; animation: rp-pulse 1s ease-in-out infinite; }
.rp-t.s { background: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu); }
.rp-t.f { background: var(--amber); box-shadow: none; }
.rp-t.rc { background: color-mix(in srgb, var(--ok) 32%, transparent); box-shadow: none; }
.rp-t.c { background: var(--ok); box-shadow: none; opacity: .88; }
.rp-rc { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rp-dr, .rp-insp, .rp-checks { padding: 16px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 40px #0000004d; font-size: 13px; }
:root[data-theme="light"] .rp-dr, :root[data-theme="light"] .rp-insp, :root[data-theme="light"] .rp-checks { box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #0000000f; }
.rp-dr-h, .rp-insp-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.rp-dr-h b, .rp-insp-h b { font-weight: 500; color: var(--fg-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-dr-h span { margin-left: auto; color: var(--fg-3); font-size: 12px; }
.rp-ds { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.rp-ds .rp-n { transition: color .3s, box-shadow .3s, background .3s; }
.rp-ds.act .rp-n { color: var(--cu); box-shadow: inset 0 0 0 1px var(--cu); }
.rp-ds.done .rp-n { background: var(--ok); color: var(--bg); box-shadow: none; }
.rp-ds-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-ds-t b { font-weight: 500; color: var(--fg-1); }
.rp-ds-t small { color: var(--fg-3); font-size: 12px; line-height: 1.45; }
.rp-ds .ap-badge { white-space: nowrap; }
.rp-ds-b { grid-column: 2 / -1; justify-self: start; display: none; transition: transform .16s, filter .16s; }
.rp-ds-b.on { display: inline-flex; }
.rp-ds-b.press { transform: scale(.94); filter: brightness(1.2); }
.rp-ai { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--fg-3); font-size: 12px; }
.rp-ai b { margin-left: auto; color: var(--fg-2); font-weight: 500; text-align: right; }
.rp-log { display: flex; flex-direction: column; gap: 0; padding: 0 4px; min-height: 172px; }
.rp-le { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--fg-3); opacity: 0; transform: translateY(6px); filter: blur(2px); transition: opacity .5s var(--ease-enter), transform .5s var(--ease-enter), filter .5s; }
.rp-le.in { opacity: 1; transform: none; filter: none; }
.rp-le span { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg-4); }
.rp-le p { color: var(--fg-2); line-height: 1.45; }
.rp-legend { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--fg-3); }
.rp-legend span { display: inline-flex; gap: 8px; align-items: center; }
.rp-legend i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-3); }
.rp-legend i.p { background: var(--bg-4); box-shadow: none; }
.rp-legend i.s { background: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu); }
.rp-legend i.f { background: var(--amber); box-shadow: none; }
.rp-legend i.rc { background: color-mix(in srgb, var(--ok) 32%, transparent); box-shadow: none; }
.rp-legend i.c { background: var(--ok); box-shadow: none; }
.rp-tabs { margin: 32px -40px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rp-tab { appearance: none; border: 0; background: none; font: inherit; text-align: left; color: var(--fg-1); padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; opacity: .4; transition: opacity .2s; position: relative; }
.rp-tab + .rp-tab { border-left: 1px solid var(--line); }
.rp-tab b { font-weight: 500; font-size: 15px; }
.rp-tab span { color: var(--fg-3); font-size: 14px; }
.rp-tab:hover { opacity: .75; }
.rp-tab[aria-selected="true"] { opacity: 1; }
.rp-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: var(--fg-1); }
.rp-tab:focus-visible { outline: 2px solid var(--fg-2); outline-offset: -4px; border-radius: 8px; }

/* every sentence and its source: the report zoomed out, one line per sentence */
.rp-field { position: relative; min-width: 0; }
.rp-field canvas { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.rp-insp { min-height: 248px; }
.rp-insp-h .ap-key { white-space: nowrap; flex: none; }
.rp-insp-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 6px; color: var(--fg-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.rp-insp-sum b { color: var(--fg-2); font-weight: 500; }
.rp-insp-sum span { display: inline-flex; gap: 6px; align-items: center; }
.rp-insp i, .rp-flt i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
/* quiet source tones: grey by default, muted copper and slate only when asked for */
.rp-srcstage { --sl-pg: #ffffff07; --sl-pg-on: #ffffff12; --sl-ln: #ffffff21; --sl-ev: #b48660; --sl-int: #8794a6; --sl-rec: #686b72; --sl-own: #a4a7ad; --sl-flag: #d9a95a; --sl-ok: #5fae86; }
:root[data-theme="light"] .rp-srcstage { --sl-pg: #0000000a; --sl-pg-on: #00000014; --sl-ln: #00000026; --sl-ev: #a8774b; --sl-int: #687790; --sl-rec: #a6a8ae; --sl-own: #6f7278; --sl-flag: #a87510; --sl-ok: #2e8a5c; }
#rp-src i.ev { background: var(--sl-ev); } #rp-src i.int { background: var(--sl-int); } #rp-src i.rec { background: var(--sl-rec); } #rp-src i.own { background: var(--sl-own); }
#rp-src i.all { background: conic-gradient(var(--sl-ev) 0 25%, var(--sl-int) 0 50%, var(--sl-rec) 0 75%, var(--sl-own) 0); }
#rp-src .rp-insp, #rp-src .rp-checks { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
#rp-src .rp-ck .h .ap-badge { height: auto; padding: 0; background: none; box-shadow: none; font-size: 12px; color: var(--fg-3); }
#rp-src .rp-ck .h .ap-badge.amber { color: var(--sl-flag); }
#rp-src .rp-ck .h .ap-badge.ok { color: var(--sl-ok); }
#rp-src .rp-run.busy .rp-run-d { background: var(--sl-flag); }
.rp-is { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); align-items: start; }
.rp-is i { margin-top: 5px; }
.rp-is p { color: var(--fg-2); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 3px; }
.rp-is em { font-style: normal; color: var(--fg-4); font-size: 11.5px; font-family: "Geist Mono", ui-monospace, monospace; }
.rp-is .ph { display: block; height: 7px; margin: 5px 0 2px; border-radius: 4px; background: var(--bg-4); }
.rp-ck-h { color: var(--fg-1); font-weight: 500; margin-bottom: 4px; }
.rp-ck { display: none; padding: 10px 0; border-top: 1px solid var(--line-2); }
.rp-ck.in { display: block; animation: rp-in var(--dur-enter) var(--ease-spring); }
@keyframes rp-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.rp-ck .h { display: flex; gap: 8px; align-items: center; }
.rp-ck .h .ap-key { white-space: nowrap; flex: none; }
.rp-ck .h b { font-weight: 500; color: var(--fg-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-ck .h .ap-badge { margin-left: auto; white-space: nowrap; }
.rp-ck p { margin-top: 4px; color: var(--fg-3); font-size: 12px; line-height: 1.45; }
.rp-ck.fixed p { color: var(--fg-2); }
.rp-checks:not(:has(.rp-ck.in))::after { content: "Checks run in the Summary step, then after every change."; display: block; color: var(--fg-4); font-size: 12px; line-height: 1.5; }
.rp-filters { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-flt { appearance: none; border: 0; font: inherit; min-height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-3); font-size: 13px; cursor: pointer; transition: color .2s, background .2s; }
.rp-flt:hover { color: var(--fg-1); }
.rp-flt[aria-pressed="true"] { background: var(--bg-3); color: var(--fg-1); }
.rp-flt:focus-visible { outline: 2px solid var(--fg-3); outline-offset: 2px; }
.rp-field canvas:focus-visible { outline: 2px solid var(--fg-3); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 860px) {
  .rp-flt { min-height: 40px; max-width: 100%; }
  #rp-src .ap-key { font-size: 12px; }
  #rp-src .rp-is em, #rp-src .rp-ck .h .ap-badge { font-size: 12px; }
  #rp-src .rp-is p, #rp-src .rp-ck p, #rp-src .rp-checks:not(:has(.rp-ck.in))::after { font-size: 15px; }
  #rp-src .rp-is .ph { height: 8px; }
}

@media (max-width: 1100px) {
  .rp-maprow, .rp-srcrow { grid-template-columns: 1fr; gap: 28px; }
  .rp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .rp-log { min-height: 0; }
  .rp-insp { min-height: 0; }
}
@media (max-width: 900px) {
  .rp-mapstage, .rp-srcstage { padding: 24px 16px 0; margin-top: 40px; }
  .rp-srcstage { padding-bottom: 24px; }
  .rp-top { flex-wrap: wrap; gap: 10px; }
  .rp-count { margin-left: 0; flex-wrap: wrap; gap: 4px 16px; }
  .rp-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; padding: 5px 0; }
  .rp-tiles { grid-column: 2 / -1; }
  .rp-rc { grid-row: 1; grid-column: 3; }
  .rp-row.sub { padding: 2px 0; }
  .rp-row.h .rp-tiles { display: none; }
  .rp-side { grid-template-columns: 1fr; }
  .rp-tabs { margin: 28px -16px 0; grid-template-columns: 1fr; }
  .rp-tab + .rp-tab { border-left: 0; border-top: 1px solid var(--line); }
  .rp-tab { padding: 16px 20px; }
  .rp-tab[aria-selected="true"]::before { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
}
@media (max-width: 560px) { .rp-t { width: 10px; height: 10px; } .rp-row.sub .rp-sn::before { height: 20px; } }
@media (prefers-reduced-motion: reduce) { .rp-t.p, .rp-run.busy .rp-run-d { animation: none; } .rp-ck.in { animation: none; } }

/* ---------- phone: each scene shows its front window across the column, and its caption reads below the scene, not over it ---------- */
@media (max-width: 640px) {
  .stage2 { padding: 6px; border-radius: 16px; }
  .stage2-in { height: 500px; }
  .stage2-cap { position: static; max-width: none; padding: 18px 10px 10px; }
  .stage2-in > .win.back { display: none; }
  .stage2-in > .win:not(.back) { left: 10px !important; width: calc(100% - 20px) !important; top: 28px !important; }
  .win-bar { gap: 8px; padding: 0 12px; }
  .win-bar b, .win-bar .r { flex: none; white-space: nowrap; }
  .win-bar > span:not(.r):not(.ap-key):not(.as-crumb) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .win-bar .ap-key, .win-bar .as-crumb { flex: none; }
  .rp-chn { font-size: 12px; }
  .rp-ch { scroll-snap-type: x mandatory; scroll-padding-left: 0; }
  .rp-ch li { scroll-snap-align: start; }
}

/* ================= integration pass, 24 Oct ================= */

/* read by a person (D10): one drafted ROC sentence, a highlight wipes across its clause, a named flag lands, then it is accepted */
.rp-hl-sec .pillar-head { margin-bottom: 56px; }
.rp-hl { --who: #3b4a5c; --who-fg: #eef3f8; --who-hl: color-mix(in srgb, #6f8bab 30%, transparent); margin: 0; }
:root[data-theme="light"] .rp-hl { --who: #3b4a5c; --who-fg: #fff; --who-hl: #dbe5f0; }
.rp-hl-page { position: relative; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3);
  -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent 96%); mask-image: linear-gradient(90deg, #000 52%, transparent 96%); }
.rp-hl-bar { grid-column: 1 / -1; height: 48px; padding: 0 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.rp-hl-bar b { font-weight: 500; }
.rp-hl-bar .r { margin-left: 32px; color: var(--fg-3); }
.rp-hl-body { padding: 28px 40px 32px 24px; min-width: 0; }
.rp-hl-lbl { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--fg-3); }
.rp-hl-doc.doc-page { padding: 22px 22px; font-size: 15px; line-height: 1.75; }
.rp-hl-line .ap-ev { vertical-align: 1px; }
.rp-hl-doc p + p { margin-top: 14px; }
.rp-hl-dim { opacity: .35; filter: blur(1.5px); user-select: none; }
.rp-hl-line { position: relative; }
.rp-hl-mark { background: linear-gradient(var(--who-hl), var(--who-hl)) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: slice; box-decoration-break: slice; border-radius: 2px; transition: background-size 500ms linear; }
.rp-hl.on .rp-hl-mark { background-size: 100% 100%; }
.rp-flag-at { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: -0.12em; }
.rp-flag-at::before { content: ""; position: absolute; left: -1px; top: -2px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--who); opacity: 0; transition: opacity 200ms linear 500ms; }
.rp-flag { position: absolute; left: -1px; bottom: calc(100% + 2px); height: 20px; padding: 0 7px; border-radius: 5px 5px 5px 0; display: inline-flex; align-items: center; background: var(--who); color: var(--who-fg); font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  opacity: 0; transform: translate(-4px, 4px) scale(.9); transform-origin: 0 100%; transition: opacity 200ms var(--ease-spring) 700ms, transform 300ms var(--ease-spring) 700ms; }
.rp-hl.on .rp-flag-at::before { opacity: 1; }
.rp-hl.on .rp-flag { opacity: 1; transform: none; }
.rp-hl-foot { position: relative; height: 22px; margin-top: 14px; font-size: 12.5px; }
.rp-hl-by, .rp-hl-ok { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--dur-enter) var(--ease-swap); }
.rp-hl-ok { color: var(--fg-2); opacity: 0; }
.rp-hl.done .rp-hl-by { opacity: 0; }
.rp-hl.done .rp-hl-ok { opacity: 1; }
.rp-hl-side { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rp-hl-sh { font-size: 12px; color: var(--fg-3); margin: 6px 0 2px; }
.rp-hl-src { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.rp-hl-cap { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--fg-3); max-width: 760px; }
@media (max-width: 768px) {
  .rp-hl-page { grid-template-columns: minmax(0, 1fr); -webkit-mask-image: none; mask-image: none; }
  .rp-hl-side { display: none; }
  .rp-hl-bar .r { display: none; }
  .rp-hl-bar { padding: 0 16px; }
  .rp-hl-body { padding: 20px 16px 22px; }
  .rp-hl-doc.doc-page { padding: 16px; font-size: 15px; }
  .rp-hl-line { line-height: 2.5; }
  .rp-hl-doc p.rp-hl-line { margin-top: 8px; }
  .rp-hl-sec .pillar-head { margin-bottom: 32px; }
}
.rp-tb-m { margin-top: 40px; font: 13px "Geist Mono", ui-monospace, monospace; color: var(--fg-4); }

/* option B: the report's contents page, ported from films/report-map-options (B), scoped to #rp-map */
#rp-map { --lw: color-mix(in srgb, var(--fg-4) 55%, transparent); --lp: var(--fg-3); --ls: var(--cu); --lf: var(--amber); --lrc: color-mix(in srgb, var(--ok) 42%, transparent); --lc: var(--ok);
  margin-top: 64px; border-radius: 16px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 28px 0; overflow: hidden; }
#rp-map[data-mode="none"] { --ls: var(--fg-2); }
#rp-map .rm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; font-size: 13px; }
#rp-map .rm-run { display: flex; align-items: center; gap: 8px; color: var(--fg-2); min-height: 22px; }
#rp-map .rm-run::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--fg-4); flex: none; transition: background var(--dur-hover); }
#rp-map .rm-run.ok::before { background: var(--ok); }
#rp-map .rm-run.busy::before { display: none; }
#rp-map .rm-run-ic:empty { display: none; }
#rp-map .rm-run-ic { line-height: 0; }
#rp-map .rm-orb-r { --ai-mark-size: 20px; }
#rp-map .rm-run.busy .rm-run-t { color: var(--fg-1); }
#rp-map .rm-count { display: flex; gap: 20px; color: var(--fg-3); }
#rp-map .rm-count b { color: var(--fg-1); font-weight: 560; font-variant-numeric: tabular-nums; }
#rp-map .rm-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
#rp-map .rm-vis { position: relative; min-width: 0; }
#rp-map .rm-card { border-radius: 12px; background: var(--bg-2); box-shadow: var(--glass); padding: 4px 14px; font-size: 13px; }
#rp-map .rm-card-h { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
#rp-map .rm-card-h b { font-weight: 560; }
#rp-map .rm-card-h span { color: var(--fg-3); }
#rp-map .rm-ds { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
#rp-map .rm-ds-t b { font-weight: 500; display: block; }
#rp-map .rm-ds-t small { color: var(--fg-3); font-size: 12px; line-height: 1.4; display: block; }
#rp-map .rm-ds:not(.act):not(.done) .rm-ds-t b { color: var(--fg-3); }
#rp-map .rm-ic { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; font-size: 11px; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
#rp-map .rm-ic.orb, #rp-map .rm-ic.ok { box-shadow: none; }
#rp-map .rm-ic.ok { color: var(--ok); }
#rp-map .rm-ic.ok svg { width: 20px; height: 20px; }
#rp-map .rm-orb-s { --ai-mark-size: 24px; }
#rp-map .rm-ds-b { grid-column: 2 / 4; justify-self: start; display: none; transition: transform var(--dur-hover), filter var(--dur-hover); }
#rp-map .rm-ds-b.on { display: inline-flex; }
#rp-map .rm-ds-b.press { transform: scale(.97); filter: brightness(1.15); }
#rp-map .rm-ai { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--fg-3); }
#rp-map .rm-ai b { color: var(--fg-2); font-weight: 500; text-align: right; }
#rp-map .rm-log { margin-top: 10px; font-size: 12.5px; min-height: 150px; }
#rp-map .rm-le { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line-2); opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring); }
#rp-map .rm-le.in { opacity: 1; transform: none; filter: none; }
#rp-map .rm-le span { color: var(--fg-4); font-variant-numeric: tabular-nums; }
#rp-map .rm-le p { margin: 0; color: var(--fg-2); }
#rp-map .rm-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 18px; font-size: 12px; color: var(--fg-3); }
#rp-map .rm-legend span { display: inline-flex; align-items: center; gap: 7px; }
#rp-map .lg { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
#rp-map .lg.w { background: var(--lw); } #rp-map .lg.p { background: var(--lp); } #rp-map .lg.s { background: var(--ls); } #rp-map .lg.f { background: var(--lf); } #rp-map .lg.rc { background: var(--lrc); } #rp-map .lg.c { background: var(--lc); }
#rp-map .rm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -28px; border-top: 1px solid var(--line); }
#rp-map .rm-tab { text-align: left; background: none; border: 0; font: inherit; color: var(--fg-3); padding: 16px 28px 18px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px; transition: color var(--dur-hover); }
#rp-map .rm-tab + .rm-tab { border-left: 1px solid var(--line); }
#rp-map .rm-tab b { font-weight: 500; font-size: 15px; color: var(--fg-3); }
#rp-map .rm-tab span { font-size: 13.5px; color: var(--fg-4); }
#rp-map .rm-tab[aria-selected="true"] b { color: var(--fg-1); }
#rp-map .rm-tab[aria-selected="true"] span { color: var(--fg-3); }
#rp-map .rm-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg-1); }
#rp-map .rm-tab:focus-visible { outline: 2px solid var(--fg-3); outline-offset: -4px; }
@media (any-hover: hover) { #rp-map .rm-tab:hover b { color: var(--fg-1); } }
#rp-map .tc-page { position: relative; padding: 6px 4px 4px; }
#rp-map .tc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
#rp-map .tc-h b { font-size: 17px; font-weight: 560; letter-spacing: -.01em; }
#rp-map .tc-h span { color: var(--fg-3); font-size: 12.5px; text-align: right; }
#rp-map .tc-r { display: grid; grid-template-columns: 22px 34px auto minmax(28px, 1fr) 64px; align-items: center; gap: 0 10px; height: 27px; font-size: 13.5px; }
#rp-map .tc-r.sub { height: 23px; font-size: 12.5px; }
#rp-map .tc-r.sub .tc-t { grid-column: 3; padding-left: 0; }
#rp-map .tc-r.sub::before { content: ""; grid-column: 1 / 3; }
#rp-map .tc-r.sub .tc-k { display: none; }
#rp-map .tc-st { width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; font-size: 10px; color: var(--fg-4); box-shadow: inset 0 0 0 1px var(--line-3); transition: color .4s, box-shadow .4s; }
#rp-map .tc-k { font: 12px "Geist Mono", monospace; color: var(--fg-3); }
#rp-map .tc-r.h .tc-st { visibility: hidden; }
#rp-map .tc-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-3); transition: color .5s; }
#rp-map .tc-r.h .tc-t, #rp-map .tc-r.res .tc-t { color: var(--fg-2); }
#rp-map .tc-r.done .tc-t, #rp-map .tc-r.cur .tc-t { color: var(--fg-1); }
#rp-map .tc-ld { position: relative; height: 10px; min-width: 0; }
#rp-map .tc-ld i { position: absolute; inset: 0; transition: background .4s; -webkit-mask: radial-gradient(circle, #000 1.05px, transparent 1.6px) 0 50% / 6px 10px repeat-x; mask: radial-gradient(circle, #000 1.05px, transparent 1.6px) 0 50% / 6px 10px repeat-x; }
#rp-map .tc-r.sub .tc-ld i { -webkit-mask-size: 5px 10px; mask-size: 5px 10px; }
#rp-map .tc-pg { position: relative; text-align: right; font-variant-numeric: tabular-nums; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
#rp-map .tc-num { color: var(--fg-3); opacity: 0; filter: blur(4px); transform: translateY(4px); transition: opacity var(--dur-reveal) var(--ease-spring), filter var(--dur-reveal) var(--ease-spring), transform var(--dur-reveal) var(--ease-spring), color .5s; }
#rp-map .tc-ph { position: absolute; right: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--line-3); transition: opacity .4s; }
#rp-map .tc-r.res .tc-num { opacity: 1; filter: none; transform: none; }
#rp-map .tc-r.res .tc-ph { opacity: 0; }
#rp-map .tc-r.done .tc-num { color: var(--fg-1); }
#rp-map .tc-r.aoc .tc-num { font-size: 12.5px; }
#rp-map .tc-sep { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-4); }
#rp-map .tc-orb { position: absolute; left: 0; top: 0; --ai-mark-size: 32px; transition: transform .55s var(--ease-spring), opacity .5s; opacity: 0; pointer-events: none; }
@media (max-width: 920px) { #rp-map .rm-body { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  #rp-map { padding: 16px 14px 0; border-radius: 14px; margin-top: 40px; }
  #rp-map .rm-count { gap: 14px; font-size: 13px; }
  #rp-map .rm-tabs { grid-template-columns: 1fr; margin: 0 -14px; }
  #rp-map .rm-tab { padding: 12px 16px; min-height: 56px; }
  #rp-map .rm-tab + .rm-tab { border-left: 0; border-top: 1px solid var(--line); }
  #rp-map .rm-tab[aria-selected="true"]::before { width: 2px; height: auto; top: 0; bottom: 0; right: auto; }
  #rp-map .tc-r, #rp-map .tc-r.sub { grid-template-columns: 18px 26px auto minmax(18px, 1fr) 52px; gap: 0 6px; font-size: 13px; }
  #rp-map .tc-r.sub { font-size: 12.5px; }
  #rp-map .tc-h { flex-direction: column; gap: 2px; }
  #rp-map .tc-h span { text-align: left; }
  #rp-map .rm-le { grid-template-columns: 84px 1fr; }
  #rp-map .rm-log { min-height: 0; }
}

/* one fact, every page */
.rp-fact { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding: 32px; border-radius: 16px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; transition: opacity .4s var(--ease-swap), filter .4s var(--ease-swap); }
.rp-fact.out { opacity: 0; filter: blur(4px); }
.rp-fact-rec { border-radius: 12px; background: var(--bg-2); box-shadow: var(--glass); padding: 4px 16px 14px; }
.rp-fact-h { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rp-fact-k { font-size: 12px; color: var(--fg-3); padding: 2px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-3); }
.rp-fact-h b { font-weight: 500; }
.rp-fr { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--fg-2); }
.rp-fr b { font-weight: 500; color: var(--fg-1); }
.rp-fr span { color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.rp-fr.add { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring), background var(--dur-hover); }
.rp-fact.added .rp-fr.add { opacity: 1; transform: none; filter: none; }
.rp-fact-by { margin-top: 12px; font-size: 12.5px; color: var(--ok); opacity: 0; transform: translateY(5px); filter: blur(3px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring); }
.rp-fact.stamped .rp-fact-by { opacity: 1; transform: none; filter: none; }
.rp-fact-ph { font-size: 12px; color: var(--fg-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.rp-fp { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rp-fp .ap-key { justify-self: start; white-space: nowrap; }
.rp-fp .t { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-fp .v { display: inline-grid; justify-items: end; font-variant-numeric: tabular-nums; }
.rp-fp .v > span { grid-area: 1 / 1; transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring), filter var(--dur-enter) var(--ease-spring); white-space: nowrap; }
.rp-fp .o { color: var(--fg-3); }
.rp-fp .n { color: var(--fg-1); opacity: 0; transform: translateY(8px); filter: blur(4px); }
.rp-fp.on .o { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.rp-fp.on .n { opacity: 1; transform: none; filter: none; }
.rp-fp .s { grid-column: 2 / -1; font-size: 12px; color: var(--fg-4); transition: color var(--dur-hover); }
.rp-fp.on .s { color: var(--fg-3); }
@media (max-width: 900px) {
  .rp-fact { grid-template-columns: 1fr; gap: 24px; padding: 18px 16px; margin-top: 40px; }
}
@media (max-width: 560px) {
  .rp-fp { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rp-fp .t { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .rp-fact, .rp-fact * { transition: none !important; } }

/* ---------- feature cells: quiet product surfaces with status icons ---------- */
.rq-grid { margin-top: 56px; }
.rq { border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; font-size: 13px; color: var(--fg-1); }
.rq-h { height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); font-size: 12.5px; }
.rq-h b { color: var(--fg-1); font-weight: 500; white-space: nowrap; }
.rq-h .r { margin-left: auto; color: var(--fg-4); white-space: nowrap; }
.rq-r { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); }
.rq-r .k { color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-r time { margin-left: auto; color: var(--fg-4); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rq-r .ai-mark { --ai-mark-h: 12px; }
.rq-f { padding: 10px 14px; display: flex; align-items: center; gap: 8px; color: var(--fg-4); font-size: 12px; }
.rq-f .r { margin-left: auto; }
.rq-f .ap-av { width: 18px; height: 18px; font-size: 8px; }
.rq-f .ap-btn.inv { margin-left: auto; }
.rq-p { padding: 6px 14px 8px; display: grid; grid-template-columns: 90px minmax(0, 1fr); font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.rq-p > span { height: 32px; display: flex; align-items: center; }
.rq-p > span:nth-child(odd) { color: var(--fg-3); }
.rq-dim { color: var(--fg-4); } .rq-strong { color: var(--fg-1); }
.rq-why { padding: 14px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.rq-due { width: 8px; height: 8px; border-radius: 99px; background: var(--amber); flex: none; }
.rq-tog { width: 26px; height: 15px; border-radius: 99px; background: var(--fg-2); position: relative; }
.rq-tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 99px; background: var(--bg); }
.rq-bar { height: 36px; padding: 0 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; align-items: center; gap: 10px; color: var(--fg-3); font-size: 12.5px; }
.rq-bar i { height: 4px; border-radius: 2px; background: linear-gradient(var(--fg-2), var(--fg-2)) no-repeat 0 0 / var(--w) 100%, var(--line-3); }
.rq-bar b { text-align: right; font-weight: 500; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.rq .si { width: 14px; height: 14px; display: block; flex: none; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rq .si.ok circle { fill: var(--ok); stroke: none; } .rq .si.ok path { stroke: var(--bg); stroke-width: 1.6; }
.rq .si.half circle { stroke: var(--fg-3); } .rq .si.half path { fill: var(--fg-3); stroke: none; }
.rq .si.open circle { stroke: var(--fg-4); }

/* ================= Invention round: the template and the draft, one divider ================= */
.rp-tv { margin-top: 64px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #0000004d; overflow: hidden; }
:root[data-theme="light"] .rp-tv { background: #fff; box-shadow: inset 0 0 0 1px #00000014, 0 20px 60px #00000014; }
.rp-tv-bar { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--fg-3); }
.rp-tv-bar b { color: var(--fg-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-tv-bar .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.rp-tv-lab { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap; --ai-mark-h: 12px; transition: opacity var(--dur-hover); }
.rp-tv-lab.d { color: var(--cu); box-shadow: inset 0 0 0 1px var(--cu-line); background: var(--cu-tint); }
.rp-tv-stage { position: relative; padding: 28px; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
/* the blank template is a normal product surface (not white, not copper); only the drafted side (.d) is copper */
.rp-tv-page { padding: 28px 32px 30px; font-size: 14px; line-height: 1.6; border-radius: 6px; background: var(--bg-2); color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--line-3); }
.rp-tv-req { display: flex; gap: 14px; align-items: baseline; padding-bottom: 16px; border-bottom: 1.5px solid var(--fg-1); }
.rp-tv-req .n { font-family: "Geist Mono", monospace; font-size: 13px; color: var(--fg-1); font-weight: 600; flex: none; }
.rp-tv-req p { font-weight: 560; font-size: 15px; letter-spacing: -0.01em; }
.rp-tv-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--line-3); }
.rp-tv-row .k { padding: 14px 18px 14px 0; font-size: 12.5px; color: var(--fg-3); border-right: 1px solid var(--line-3); }
/* the response cell holds both versions in one grid area, so the row keeps one height; the draft is clipped from the left */
.rp-tv-c { display: grid; }
.rp-tv-c > div { grid-area: 1 / 1; padding: 14px 0 14px 18px; min-height: 52px; }
/* the template side is the normal surface; the drafted side is copper (opaque, so it covers the blank template under it). Neither side is white. */
.rp-tv-c .d { background: linear-gradient(var(--cu-tint), var(--cu-tint)), var(--bg-2); box-shadow: inset 2px 0 0 var(--cu-line); clip-path: inset(0 0 0 calc(18px + (100% - 18px) * var(--xn, .4))); }
.rp-tv-c .b .ph { display: inline-block; padding: 2px 6px; border-radius: 3px; background: var(--bg-3); color: var(--fg-3); font-family: "Geist Mono", monospace; font-size: 12px; }
.rp-tv-c .ap-ev, .rp-tv-c .ap-key { margin: 0 2px; }
.rp-tv-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--fg-2); }
.rp-tv-f .bx { width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 1.25px var(--fg-3); margin-left: 6px; flex: none; position: relative; }
.rp-tv-f .bx:first-child { margin-left: 0; }
.rp-tv-f .bx.on { background: var(--fg-1); box-shadow: none; }
.rp-tv-f .bx.on::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3px; height: 6.5px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.rp-tv-handle { position: absolute; top: var(--ht, 90px); bottom: 40px; left: var(--hx, 60%); width: 2px; margin-left: -1px; background: var(--fg-1); z-index: 3; outline: none; }
.rp-tv-handle .grip { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; display: grid; place-items: center; background: var(--fg-1); color: var(--bg); box-shadow: 0 0 0 3px var(--bg-2), 0 6px 18px #0000004d; transition: transform var(--dur-hover) var(--ease-spring); }
.rp-tv-handle .grip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rp-tv-handle:focus-visible .grip, .rp-tv-stage:active .grip { transform: scale(1.08); }
.rp-tv-handle:focus-visible .grip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg-2); }
.rp-tv-sec .rp-cap, .rp-fly-sec .rp-cap { margin-top: 28px; }
@media (max-width: 768px) {
  .rp-tv-stage { padding: 14px; }
  .rp-tv-page { padding: 18px 16px 20px; font-size: 13px; }
  .rp-tv-row { grid-template-columns: minmax(0, 1fr); }
  .rp-tv-row .k { border-right: 0; padding: 12px 0 4px; font-size: 12px; }
  .rp-tv-c > div { padding: 2px 0 12px; min-height: 0; }
  .rp-tv-bar b { display: none; }
}

/* ================= Invention round: follow a sentence to the line it cites (a scroll-driven camera) ================= */
.rp-fly { position: relative; height: 640vh; margin-top: 40px; }
.rp-fly-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1600px; perspective-origin: 50% 40%; }
.rp-fly-world { position: absolute; left: 0; top: 0; width: 2240px; height: 1560px; transform-origin: 0 0; will-change: transform; transform-style: preserve-3d; }
.rp-fly-world > * { transition: opacity var(--dur-swap) var(--ease-swap), filter var(--dur-swap) var(--ease-swap); }
.rp-fly-world.focus > [data-k]:not(.lit) { opacity: .32; filter: blur(1.5px); }
.rp-fly-win { position: absolute; left: 0; top: 330px; width: 1000px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000066; overflow: hidden; font-size: 13px; }
:root[data-theme="light"] .rp-fly-win { background: #fff; box-shadow: inset 0 0 0 1px #00000014, 0 20px 60px #0000001a; }
.rp-fly-meta { display: flex; gap: 16px; padding: 16px 24px 0; font-size: 12.5px; color: var(--fg-3); }
.rp-fly-doc { margin: 14px 24px 0; padding: 26px 30px; font-size: 17px; line-height: 1.9; }
.rp-fly-s { transition: background var(--dur-swap) var(--ease-swap); border-radius: 3px; }
.rp-fly-s.on { background: color-mix(in srgb, var(--fg-1) 7%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg-1) 7%, transparent); }
.rp-fly-doc .ap-ev { height: 21px; font-size: 11.5px; }
.rp-fly-doc .ap-ev.hot { background: var(--cu-tint); box-shadow: inset 0 0 0 1px var(--cu-line); color: var(--cu); }
.rp-fly-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px 20px; color: var(--fg-3); font-size: 12.5px; }
.rp-fly-foot .r { margin-left: auto; display: flex; gap: 6px; }
.rp-fly-file { position: absolute; width: 700px; font-size: 15px; line-height: 1.7; }
.rp-fly-file[data-k="f0"] { left: 1300px; top: 0; }
.rp-fly-file[data-k="f1"] { left: 1340px; top: 820px; width: 640px; }
.rp-fly-file[data-k="f2"] { left: 200px; top: 1060px; width: 660px; }
.rp-fly-file .src-excerpt-h { font-size: 13px; }
.rp-fly-file p + p { margin-top: 10px; }
.rp-fly-file .q { color: #6b6f76; font-size: 13.5px; }
.rp-fly-file .h { font-weight: 600; }
.rp-fly-code { margin: 0; padding: 0; list-style: none; counter-reset: ln 107; font-family: "Geist Mono", monospace; font-size: 13.5px; line-height: 1.75; white-space: pre; }
.rp-fly-code li { counter-increment: ln; display: flex; }
.rp-fly-code li::before { content: counter(ln); width: 40px; flex: none; color: #a1a4aa; }
.rp-fly-code li[data-hit] { background: #0000000a; }
.rp-fly-wires { position: absolute; z-index: 5; left: 0; top: 0; width: 2240px; height: 1560px; overflow: visible; pointer-events: none; }
.rp-fly-wires path { fill: none; stroke: var(--fg-3); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rp-fly-hud { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; pointer-events: none; }
.rp-fly-say { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; color: var(--fg-1); background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rp-fly-jump { display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.rp-fly-jump button { border: 0; height: 30px; padding: 0 10px 0 6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12.5px; color: var(--fg-2); background: color-mix(in srgb, var(--bg-1) 88%, transparent); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-3); cursor: pointer; transition: color var(--dur-hover), box-shadow var(--dur-hover); }
.rp-fly-jump button:hover, .rp-fly-jump button[aria-current="true"] { color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--fg-4); }
.rp-fly-jump button:focus-visible { outline: 2px solid var(--fg-2); outline-offset: 2px; }
.rp-fly-jump .ap-ev { pointer-events: none; }
@media (max-width: 768px) { .rp-fly { height: 560vh; } .rp-fly-hud { bottom: 18px; } .rp-fly-jump button { padding: 0 6px; gap: 0; font-size: 0; } .rp-fly-jump button .ap-ev { font-size: 11px; } }
/* reduced motion: no ride; the whole spread at rest, every thread drawn, every cited line marked */
@media (prefers-reduced-motion: reduce) {
  .rp-fly { height: auto; }
  .rp-fly-pin { position: relative; height: 760px; }
  .rp-fly-wires path { stroke-dashoffset: 0; }
  .rp-fly-jump { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 768px) { .rp-fly-pin { height: 420px; } }
