/* Reports view on the pipeline board (reports-view.js), to the approved design
   (ops/control/docs/design/report-engine-mockup.html). Every class is `rp-`
   prefixed: the board already styles bare .card/.bar/.row/.li/.tab.
   Colours are tokens on .rp: dark is the default here because the site's dark
   theme is the token default, and body.light (appearance.js) re-steps them —
   a re-step, not a flip. The won/lost pair is the mockup's, validated in both
   modes (amber #b26d0b / blue #3f6fb5 light, #c27f1f / #5f8bd2 dark).
   Narrow layouts key on the REPORT'S width (container queries), not the
   window's: the board's rail sits beside it at some widths and not others. */
.rp {
  --rp-bg: var(--bg, #0a0b0d); --rp-surface: #111317; --rp-raise: #171a1f;
  --rp-ink: #f4f1ea; --rp-ink2: #aaa79e; --rp-ink3: #8a877e;
  --rp-line: rgba(244, 241, 234, .10); --rp-line2: rgba(244, 241, 234, .05);
  --rp-amber: #c27f1f; --rp-amber-ink: #f2b95c; --rp-ghost: #6b5228; --rp-ghost-fill: rgba(194, 127, 31, .10); --rp-amber-tint: #2e2415;
  --rp-blue: #5f8bd2; --rp-blue-tint: #1d2a45; --rp-hatch: rgba(244, 241, 234, .45);
  --rp-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 22px 44px -28px rgba(0, 0, 0, .9);
  --rp-on: #6cc08e; --rp-on-tint: #173324; --rp-off: #ee8a80; --rp-off-tint: #3a1a17;
  container-type: inline-size;
  padding: 22px 28px 64px; color: var(--rp-ink);
  font: 400 0.9375rem/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
body.light .rp {
  --rp-surface: #fbf9f4; --rp-raise: #ffffff;
  --rp-ink: #15140f; --rp-ink2: #55524a; --rp-ink3: #77746a;
  --rp-line: rgba(21, 20, 15, .09); --rp-line2: rgba(21, 20, 15, .05);
  --rp-amber: #b26d0b; --rp-amber-ink: #8f5606; --rp-ghost: #e7cf9f; --rp-ghost-fill: rgba(178, 109, 11, .07); --rp-amber-tint: #f6ead3;
  --rp-blue: #3f6fb5; --rp-blue-tint: #e3eaf6; --rp-hatch: rgba(21, 20, 15, .42);
  --rp-shadow: 0 1px 0 rgba(21, 20, 15, .03), 0 18px 40px -28px rgba(21, 20, 15, .25);
  --rp-on: #2f7a4c; --rp-on-tint: #e2f0e6; --rp-off: #b03a32; --rp-off-tint: #f8e1de;
}
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp button { font: inherit; color: inherit; }
.rp :focus-visible { outline: 2px solid var(--rp-amber); outline-offset: 2px; border-radius: 6px; }
.rp a { color: inherit; text-decoration: none; }

/* top line, title, settings */
.rp-top { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 14px; }
/* the board and as-of chips match the Excel / slides buttons beside them (Kevin, 2026-11-19) */
.rp-chip { align-self: center; font-size: 0.75rem; color: var(--rp-ink2); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 99px; padding: 3px 10px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rp .rp-dl { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--rp-ink2); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 99px; padding: 3px 11px 3px 9px; cursor: pointer; white-space: nowrap; }
.rp .rp-dl:hover { color: var(--rp-ink); border-color: var(--rp-ghost); }
.rp .rp-dl span { color: var(--rp-amber-ink); }
/* Download CSV + Download slides: one pair that never splits across rows. On a report
   760 px wide or narrower (measured 2026-11-16: the long pair wraps at a 760 px window;
   a window reaches a 760 px report at about 800) the word "Download" goes; each button's
   aria-label keeps it. Tighter still in the 600px block below. */
.rp-dls { display: inline-flex; gap: 8px; flex-wrap: nowrap; flex: none; align-self: center; align-items: center; }
.rp .rp-dl .rp-dlw { color: inherit; }
.rp .rp-dl[disabled] { cursor: progress; opacity: .75; }
@container (max-width: 760px) { .rp .rp-dls .rp-dlw { display: none; } }
/* with Which boards on the line too, the pair is short at every width, so the line keeps its rows */
.rp-top:has(.rp-scopes) .rp-dlw { display: none; }
.rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.rp-head h1 { font: 400 2.625rem/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; margin: 0; color: var(--rp-ink); }
.rp-head h1 i { color: var(--rp-amber-ink); }
.rp .rp-filters-btn { display: none; border: 1px solid var(--rp-line); background: var(--rp-surface); border-radius: 10px; padding: 7px 12px; font-size: 0.8125rem; color: var(--rp-ink2); cursor: pointer; text-align: left; }
.rp-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rp-seg { display: inline-flex; flex-wrap: wrap; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 10px; padding: 3px; }
.rp-seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 0.8125rem; color: var(--rp-ink2); cursor: pointer; white-space: nowrap; }
.rp-seg button[aria-pressed="true"] { background: var(--rp-raise); color: var(--rp-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--rp-line); }
.rp-seg button[disabled] { opacity: .5; cursor: default; }
.rp-segnote { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-panel > .rp-seg { margin-bottom: 26px; }

/* tabs */
.rp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rp-line); overflow-x: auto; scrollbar-width: none; margin-bottom: 34px; }
.rp-tabs::-webkit-scrollbar { display: none; }
.rp .rp-tab { border: 0; background: none; padding: 10px 14px; font-size: 0.875rem; color: var(--rp-ink3); cursor: pointer; position: relative; white-space: nowrap; }
.rp-tab:hover { color: var(--rp-ink2); }
.rp-tab[aria-selected="true"] { color: var(--rp-ink); font-weight: 500; }
.rp-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rp-amber); }
.rp-tab .n { display: inline-block; font-size: 0.6875rem; font-weight: 600; color: var(--rp-amber-ink); background: var(--rp-amber-tint); border-radius: 99px; padding: 0 6px; margin-left: 6px; line-height: 17px; }

/* hero: one number, one finding */
.rp-panel { animation: rp-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rp-panel { animation: none; } .rp * { transition: none !important; } }
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.rp-eyebrow { font-size: 0.8125rem; font-weight: 500; color: var(--rp-ink2); margin-bottom: 8px; }
.rp-big { font: 600 4.75rem/.95 Inter, sans-serif; letter-spacing: -.045em; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
.rp-big.muted { color: var(--rp-ink3); }
.rp-finding { font-size: 1.0625rem; line-height: 1.45; color: var(--rp-ink2); margin: 16px 0 0; max-width: 520px; }
.rp-finding b { color: var(--rp-ink); font-weight: 600; }
.rp-minis { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rp-line); border-radius: 14px; overflow: hidden; background: var(--rp-surface); }
.rp-mini { padding: 16px 18px; min-width: 0; }
.rp-mini + .rp-mini { border-left: 1px solid var(--rp-line); }
.rp-mini .h { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-mini .v { font: 600 1.625rem/1.15 Inter, sans-serif; letter-spacing: -.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rp-mini .s { font-size: 0.75rem; color: var(--rp-ink3); margin-top: 3px; }
.rp-alert { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--rp-amber-tint); border: 1px solid var(--rp-ghost); border-radius: 14px; padding: 14px 18px; margin: -10px 0 28px; font-size: 0.9375rem; }
.rp-alert b { font-weight: 650; }

/* cards */
.rp-card { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--rp-shadow); margin-bottom: 20px; min-width: 0; }
.rp-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rp-card h2 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--rp-ink); font-family: Inter, sans-serif; }
.rp-card .hint { font-size: 0.8125rem; color: var(--rp-ink3); margin: 4px 0 0; }
.rp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rp-sw.w, .rp-sw.won { background: var(--rp-amber); }
.rp-sw.o { border: 1px solid var(--rp-ghost); background: var(--rp-ghost-fill); }
.rp-sw.lost { background: var(--rp-blue); }

/* quarter rows: the numbers ARE the chart; the bar only supports them */
.rp-qhead, .rp-qrow { display: grid; grid-template-columns: minmax(0, 1.1fr) 92px 100px 96px 50px minmax(0, 1.3fr); gap: 14px; align-items: center; }
.rp-qhead { font-size: 0.75rem; color: var(--rp-ink3); padding: 0 10px 8px; border-bottom: 1px solid var(--rp-line); }
.rp-qhead > span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.rp-qhead .lg { display: flex; gap: 12px; justify-content: flex-end; }
.rp-qhead .lg > span { display: inline-flex; align-items: center; gap: 6px; }
.rp-qrow { padding: 11px 10px; border-radius: 10px; border: 0; background: none; text-align: left; width: 100%; cursor: pointer; color: var(--rp-ink); }
.rp-qrow + .rp-qrow, .rp-qcards + .rp-qrow { box-shadow: inset 0 1px 0 var(--rp-line2); }
.rp-qrow[aria-disabled="true"] { cursor: default; }
.rp-qrow:hover, .rp-qrow.hl { background: var(--rp-amber-tint); }
.rp-qrow[aria-disabled="true"]:hover { background: none; }
.rp-qrow .q { font-size: 0.875rem; font-weight: 500; min-width: 0; }
.rp-qrow small { display: block; font-size: 0.75rem; color: var(--rp-ink3); font-weight: 400; }
.rp-qrow .won small { font-size: 0.6875rem; }
.rp-qrow.now .q { color: var(--rp-amber-ink); }
.rp-qrow.past .q, .rp-qrow.overdue .q { color: var(--rp-ink2); }
.rp-qrow .won { font-size: 0.9375rem; color: var(--rp-amber-ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rp-qrow .wv { font-size: 1.0625rem; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rp-qrow .ov { font-size: 0.9375rem; color: var(--rp-ink2); text-align: right; font-variant-numeric: tabular-nums; }
.rp-qrow .cn { font-size: 0.875rem; color: var(--rp-ink3); text-align: right; font-variant-numeric: tabular-nums; }
.rp-qrow .wv.note, .rp-qrow.sub .wv.note, .rp-qrow.overdue .wv { font-size: 0.8125rem; font-weight: 500; color: var(--rp-ink3); white-space: nowrap; }
.rp-qrow .qb { position: relative; height: 14px; border-radius: 4px; background: var(--rp-line2); }
.rp-qrow .qb .o { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; border: 1px solid var(--rp-ghost); background: var(--rp-ghost-fill); }
.rp-qrow .qb .w { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--rp-amber); }
.rp-qrow .qb .w.wonbar { opacity: .5; }
.rp-qrow.zero .wv, .rp-qrow.zero .ov { color: var(--rp-ink3); font-weight: 400; }
.rp-qrow.sub { cursor: default; }
.rp-qrow.sub:hover { background: none; }
.rp-qrow.sub.link { cursor: pointer; }
.rp-qrow.sub.link:hover { background: var(--rp-amber-tint); }
.rp-qrow.sub .q { font-weight: 600; }
.rp-qrow.sub .wv { font-size: 1.125rem; }
.rp-qrow.sub .ov { color: var(--rp-ink); font-weight: 600; }
.rp-qcards { margin: 0 0 6px 18px; padding: 0 10px; border-left: 2px solid var(--rp-ghost); }

/* lists (pursuits, card by card) */
.rp-list { display: flex; flex-direction: column; }
.rp-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; text-align: left; align-items: center; transition: background .15s; color: var(--rp-ink); }
.rp-qcards .rp-li { margin: 0; }
.rp-li + .rp-li { box-shadow: inset 0 1px 0 var(--rp-line2); }
a.rp-li:hover, .rp-li.hl { background: var(--rp-amber-tint); }
.rp-li .t { font-size: 0.875rem; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.rp-li .m { font-size: 0.75rem; color: var(--rp-ink3); grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.rp-li .r { grid-column: 2; grid-row: 1 / 3; text-align: right; font-variant-numeric: tabular-nums; }
.rp-li .r b { display: block; font-size: 0.9375rem; font-weight: 600; }
.rp-li .r > span:not(.rp-delta) { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-delta { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.rp-delta.dn { background: var(--rp-blue-tint); color: var(--rp-ink); }
.rp-delta.na { background: var(--rp-line2); color: var(--rp-ink2); }

/* changes: the since picker's note and the card-by-card groups */
.rp-delta.up { background: var(--rp-amber-tint); color: var(--rp-amber-ink); }
.rp-panel > .rp-since-note { margin: -14px 0 24px; }
.rp-grid2.rp-chg { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.rp-chg-g { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 22px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--rp-line); }
.rp-card-h + .rp-chg-g { margin-top: 0; }
.rp .rp-chg-g h3 { margin: 0; font: 600 0.875rem/1.3 Inter, sans-serif; color: var(--rp-ink); }
.rp-chg-g h3 b { color: var(--rp-amber-ink); margin-right: 6px; }

/* bridge: a horizontal waterfall from one figure to another */
.rp-bridge { display: flex; flex-direction: column; }
.rp-row { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 84px; align-items: center; gap: 18px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; border: 0; background: none; text-align: left; width: calc(100% + 20px); color: var(--rp-ink); }
.rp-row.click { cursor: pointer; }
.rp-row.click:hover { background: var(--rp-amber-tint); }
.rp-row .lbl { font-size: 0.875rem; color: var(--rp-ink2); min-width: 0; }
.rp-row .lbl small { display: block; font-size: 0.75rem; color: var(--rp-ink3); }
.rp-row.total .lbl { color: var(--rp-ink); font-weight: 600; }
.rp-row .amt { text-align: right; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--rp-ink2); }
.rp-row.total .amt { color: var(--rp-ink); font-weight: 600; font-size: 0.9375rem; }
.rp-row .track { position: relative; height: 14px; }
.rp-bar { position: absolute; top: 0; height: 14px; border-radius: 4px; }
.rp-bar.base { border: 1px solid var(--rp-ghost); background: var(--rp-ghost-fill); }
.rp-bar.out { background: repeating-linear-gradient(135deg, var(--rp-hatch) 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px var(--rp-line); }
.rp-bar.in { background: var(--rp-amber); opacity: .55; }
.rp-bar.final { background: var(--rp-amber); }
.rp-sep { height: 1px; background: var(--rp-line); margin: 6px 0; }
.rp-note { font-size: 0.8125rem; color: var(--rp-ink3); margin: 16px 0 0; }

/* tables */
.rp-tscroll { overflow-x: auto; }
.rp-dtable { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin-top: 4px; }
/* the board's own `thead th` is sticky, mono, upper-case and filled: undone here, both themes */
.rp .rp-dtable thead th { position: static; z-index: auto; font-family: Inter, sans-serif; letter-spacing: normal; text-transform: none; font-weight: 500; font-size: 0.75rem; color: var(--rp-ink3); text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--rp-line); background: none; white-space: nowrap; }
.rp-dtable td { padding: 8px 10px; border-bottom: 1px solid var(--rp-line2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--rp-ink); }
.rp .rp-dtable thead th:first-child, .rp-dtable td:first-child, .rp-dtable td.l { text-align: left; }
.rp-dtable td.l { white-space: normal; }
.rp-dtable td b { font-weight: 500; }
.rp-dtable td a:hover { color: var(--rp-amber-ink); text-decoration: underline; }
.rp-dtable .ag { color: var(--rp-ink3); font-size: 0.75rem; }
.rp-dtable td.res-won { color: var(--rp-amber-ink); font-weight: 600; }
.rp-dtable td.res-lost { color: var(--rp-blue); font-weight: 600; }
.rp-dtable .pm { display: none; color: var(--rp-ink2); font-size: 0.75rem; }

/* scope, first on the top line: Which boards (This board | All my boards) and
   Whose cards (Everyone | My pursuits) — two controls, because they compose */
/* one live board: the Whose control alone, main's rule; two: both in one group, the same place */
.rp-top > .rp-scope { margin-right: auto; }
.rp-top .rp-scopes { margin-right: auto; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.rp-scope button, .rp-boards button { padding: 3px 10px; font-size: 0.75rem; }
.rp-scopenote { align-self: center; }
/* what All my boards covers: boards, cards, buys counted once, each board's name */
.rp-scopeline { font-size: 0.8125rem; color: var(--rp-ink2); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 12px; padding: 10px 14px; margin: -8px 0 22px; }
.rp-scopeline p { margin: 0; overflow-wrap: anywhere; }
.rp-scopeline b { color: var(--rp-ink); font-weight: 600; }
.rp-scopeline .rp-scopeboards { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--rp-ink3); font-size: 0.75rem; }
.rp-scopeline .rp-sb { min-width: 0; overflow-wrap: anywhere; }
.rp-scopeline .rp-sb b { color: var(--rp-ink2); font-weight: 500; }
/* Changes across boards: the boards not in the comparison */
.rp-notin .rp-li .m { color: var(--rp-ink2); }
/* By owner (Forecast, Win/loss): one row per owner, the total the sum of the rows */
.rp-otable td.c { text-align: right; }
.rp-otable b.former, .rp-otable b.none { color: var(--rp-ink2); font-style: italic; }
.rp-otable tr.tot td { border-top: 1px solid var(--rp-line); border-bottom: 0; font-weight: 600; }
.rp-otable tr.tot td b { font-weight: 600; }

/* win/loss */
.rp-wl-strip { display: flex; height: 10px; gap: 2px; margin: 22px 0 10px; max-width: 520px; }
.rp-wl-strip span { height: 100%; border-radius: 99px; }
.rp-wl-strip .won { background: var(--rp-amber); }
.rp-wl-strip .lost { background: var(--rp-blue); }
.rp-wl-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--rp-ink2); }
.rp-wl-keys span { display: inline-flex; align-items: center; gap: 6px; }
.rp-hb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 6px 0; }
.rp-hb .n { font-size: 0.875rem; }
.rp-hb .m { text-align: right; font-size: 0.8125rem; color: var(--rp-ink2); font-variant-numeric: tabular-nums; }
.rp-hb .tr { grid-column: 1 / -1; height: 8px; background: var(--rp-line2); border-radius: 99px; overflow: hidden; }
.rp-hb .tr i { display: block; height: 100%; border-radius: 99px; background: var(--rp-blue); }
.rp-empty { padding: 30px 24px; text-align: center; color: var(--rp-ink2); border: 1px dashed var(--rp-line); border-radius: 14px; font-size: 0.875rem; }
.rp-empty b { display: block; color: var(--rp-ink); font-size: 0.9375rem; margin-bottom: 4px; }

/* activity */
.rp-mcols, .rp-axis { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 10px; }
.rp-mcols { height: 120px; margin-top: 30px; }
.rp-col { position: relative; }
.rp-col .w { position: absolute; bottom: 0; left: 50%; width: min(22px, 40%); transform: translateX(-50%); background: var(--rp-amber); border-radius: 4px 4px 0 0; }
.rp-col .w.now { opacity: .55; }
/* decided not to bid (Activity): a neutral bar, so it never reads as won (amber) or lost (blue) */
.rp-col .w.nb { background: var(--rp-ink3); }
.rp-nb .rp-list { margin-top: 8px; }
/* the no-bids not placed in a quarter: a finding with its cards behind a disclosure (a control that looks like one) */
.rp-nbmore { margin-top: 4px; }
.rp-nbmore > summary { display: inline-block; cursor: pointer; color: var(--rp-amber-ink); font-size: 0.8125rem; font-weight: 500; border-bottom: 1px solid var(--rp-ghost); list-style: none; }
.rp-nbmore > summary::-webkit-details-marker { display: none; }
.rp-nbmore > summary::before { content: "▸ "; }
.rp-nbmore[open] > summary::before { content: "▾ "; }
.rp-col .lab { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--rp-ink); transform: translateY(-4px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-axis { border-top: 1px solid var(--rp-line); padding-top: 8px; }
.rp-axis div { text-align: center; font-size: 0.75rem; color: var(--rp-ink2); line-height: 1.35; }
.rp-axis div small { display: block; font-size: 0.6875rem; color: var(--rp-ink3); }
.rp-axis .now, .rp-axis .now small { color: var(--rp-amber-ink); font-weight: 600; }

/* gaps */
.rp-gcard { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 18px; box-shadow: var(--rp-shadow); margin-bottom: 16px; overflow: hidden; scroll-margin-top: 80px; }
.rp-gcard-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rp-line); flex-wrap: wrap; }
.rp .rp-gcard-h h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--rp-ink); font-family: Inter, sans-serif; }
.rp-gcard-h h3 b { display: inline-block; min-width: 26px; margin-right: 6px; color: var(--rp-amber-ink); }
.rp-gcard-h span { font-size: 0.8125rem; color: var(--rp-ink3); }
.rp-gcard .rp-li { margin: 0; padding: 12px 22px; border-radius: 0; }

.rp .rp-link { color: var(--rp-amber-ink); cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--rp-ghost); padding: 0; font-size: inherit; font-weight: 500; }
.rp-foot { margin-top: 28px; font-size: 0.75rem; color: var(--rp-ink3); max-width: 720px; }

@container (max-width: 860px) {
  .rp-hero { grid-template-columns: 1fr; gap: 24px; }
  .rp-grid2, .rp-grid2.rp-chg { grid-template-columns: 1fr; }
}
@container (max-width: 600px) {
  /* the download pair, short (see .rp-dls above) */
  .rp .rp-dls .rp-dlw { display: none; }
  .rp-dls { gap: 4px; }
  .rp .rp-dls .rp-dl { padding: 3px 8px 3px 7px; }
  .rp-head h1 { font-size: 2.125rem; }
  .rp .rp-filters-btn { display: inline-block; width: 100%; }
  .rp-controls { display: none; width: 100%; }
  .rp-controls.open { display: flex; }
  .rp-seg button { white-space: normal; }
  .rp-tabs { flex-wrap: wrap; gap: 0; margin-bottom: 26px; }
  .rp .rp-tab { padding: 9px 10px; font-size: 0.8125rem; }
  .rp-big { font-size: 3.625rem; }
  .rp-finding { font-size: 1rem; }
  .rp-card { padding: 20px 16px; border-radius: 16px; }
  .rp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .rp-row .track { grid-column: 1 / -1; grid-row: 2; }
  .rp-mcols, .rp-axis { gap: 4px; }
  .rp-col .lab { font-size:0.6875rem; }
  .rp-axis div { font-size: 0.6875rem; }
  .rp-axis div small { font-size:0.6875rem; }
  .rp .rp-dtable thead th:nth-child(n+5), .rp-dtable td:nth-child(n+5) { display: none; }
  .rp-dtable .pm { display: inline; }
  /* By owner becomes one block per owner: the name (Cards and Decisions under it),
     then Open · Weighted · Won · Win rate, each labelled from its cell's data-l —
     nothing scrolls sideways, down to 320 px */
  .rp .rp-otable thead { display: none; }
  .rp-otable, .rp-otable tbody { display: block; }
  .rp-otable tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--rp-line2); }
  .rp-otable tr.tot { border-top: 1px solid var(--rp-line); border-bottom: 0; }
  .rp .rp-otable td, .rp .rp-otable tr.tot td { display: block; padding: 0; border: 0; text-align: left; font-size: 0.8125rem; white-space: nowrap; }
  .rp .rp-otable td:first-child { grid-column: 1 / -1; white-space: normal; }
  .rp .rp-otable tr td:nth-child(2), .rp .rp-otable tr td:nth-child(6), .rp .rp-otable tr.tot td:nth-child(2), .rp .rp-otable tr.tot td:nth-child(6) { display: none; }
  .rp-otable td[data-l]::before { content: attr(data-l); display: block; font-size: 0.6875rem; font-weight: 400; color: var(--rp-ink3); }
  .rp-otable .pm br { display: none; }
  .rp-otable .pm::before { content: " · "; }
  .rp-top > .rp-scope, .rp-top .rp-scopes { margin-right: 0; }
  /* a quarter is three lines here: its name, then Won · Weighted · Open, then the bar */
  .rp-qhead, .rp-qrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
  .rp-qhead > span:first-child, .rp-qhead > span:nth-child(5), .rp-qrow .cn, .rp-qhead .lg { display: none; }
  .rp-qrow .q { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .rp-qrow .q small { display: inline; }
  .rp-qrow .won small { display: inline; margin-left: 4px; }
  .rp-qrow .qb { grid-column: 1 / -1; }
  .rp-qrow.sub > span:last-child, .rp-qrow.overdue > span:last-child { display: none; }
  .rp-qrow .wv, .rp-qrow.sub .wv { font-size: 1rem; }
  .rp-qcards { margin-left: 6px; }
  .rp-gcard .rp-li { padding: 12px 16px; }
  .rp-minis { grid-template-columns: 1fr 1fr; }
}
/* a phone: By owner's four figures in two columns, so a total over a billion ($14,407.2M) fits */
@container (max-width: 440px) {
  .rp-otable tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the board's .main already gives the phone its side gutter */
@media (max-width: 600px) { .rp { padding: 8px 0 60px; } }

/* THE SIMPLE REPORT (Kevin, 2026-11-19: "radically simplify"): every tab is one
   number, one line, then a table or charts. Superseded the same day by the
   dashboard below; what stays here is the hero, the bars and the funnel. */
.rp-hero1 { margin-bottom: 30px; }
.rp-hero1 .rp-finding { max-width: none; }
.rp-big.up { color: var(--rp-amber-ink); }
.rp-how { font-size: 0.8125rem; color: var(--rp-ink3); margin: 8px 0 0; text-wrap: pretty; }
.rp-foot2 { font-size: 0.875rem; color: var(--rp-ink2); margin: 4px 0 0; }
.rp-who { color: var(--rp-ink2); }
.rp-li .r b .up { color: var(--rp-amber-ink); }
.rp-li .r b .dn { color: var(--rp-blue); }
.rp-res { font-size: 0.75rem; font-weight: 600; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.rp-res.won { background: var(--rp-amber-tint); color: var(--rp-amber-ink); }
.rp-res.lost { background: var(--rp-blue-tint); color: var(--rp-ink); }

/* horizontal bars: name · bar · figure */
.rp-hbars { display: flex; flex-direction: column; gap: 2px; }
.rp-hbar { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 128px; gap: 12px; align-items: center; padding: 6px 0; font-variant-numeric: tabular-nums; }
.rp-hbar .n { font-size: 0.875rem; min-width: 0; overflow-wrap: anywhere; }
.rp-hbar.muted .n { color: var(--rp-ink3); }
.rp-hbar .tr { height: 10px; background: var(--rp-line2); border-radius: 5px; overflow: hidden; }
.rp-hbar .tr i { display: block; height: 100%; background: var(--rp-amber); border-radius: 5px; }
.rp-hbar.muted .tr i { opacity: .5; }
.rp-hbar .a { font-size: 0.875rem; font-weight: 600; text-align: right; }
.rp-hbar .a small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--rp-ink3); }

/* the stage funnel: one centred bar per stage, width by card count */
.rp-funnel { display: flex; flex-direction: column; gap: 6px; }
.rp-funnel .fn { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 12px; align-items: center; }
.rp-funnel .s { font-size: 0.875rem; color: var(--rp-ink2); min-width: 0; overflow-wrap: anywhere; }
.rp-funnel .b { justify-self: center; height: 32px; background: var(--rp-amber); border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--rp-raise); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 8px; min-width: 0; max-width: 100%; overflow: hidden; }

/* THE DASHBOARD (Kevin, 2026-11-19: "more like a dashboard where I can quickly see all of
   the relevant info"). The report is the board's full width; every tab is a strip of key
   numbers, then a grid of chart cards — three to a row, two below 1100 px of report width,
   one below 680 — then one full-width table that sorts. */
.rp-kpis { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border: 1px solid var(--rp-line); border-radius: 14px;
  background: var(--rp-surface); overflow: hidden; margin-bottom: 18px; }
.rp-kpi { padding: 14px 18px; min-width: 0; display: flex; flex-direction: column; gap: 2px; box-shadow: -1px 0 0 var(--rp-line); }
.rp-kpi .h { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-kpi .v { font: 600 1.75rem/1.1 Inter, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-kpi .s { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-kpi .s b { color: var(--rp-ink2); font-weight: 600; }
.rp-kpi.lead .v { color: var(--rp-amber-ink); font-size: 2.125rem; }
.rp-kpi.warn .v { color: var(--rp-amber-ink); }
.rp .up { color: var(--rp-amber-ink); }
.rp .dn { color: var(--rp-blue); }
.rp .dim { color: var(--rp-ink3); font-weight: 400; }
.rp-panel > .rp-finding, .rp-panel > .rp-how { margin: 0 0 16px; max-width: none; }
.rp-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.rp-dgrid .span2 { grid-column: span 2; }
.rp-dgrid .span3 { grid-column: 1 / -1; }
.rp-dcard { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rp-dhd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rp-dhd h2 { margin: 0; font: 600 0.875rem/1.3 Inter, sans-serif; color: var(--rp-ink); }
.rp-dhd .hint { font-size: 0.75rem; color: var(--rp-ink3); }
.rp-dhd.sub { margin-top: 6px; }
.rp .rp-go { font-size: 0.75rem; color: var(--rp-amber-ink); white-space: nowrap; }
.rp-dcard .mini, .rp-dline .mini { font-size: 0.75rem; color: var(--rp-ink3); margin: 0; }
.rp-dline { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.rp-big2 { font: 600 1.625rem/1 Inter, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-big2.muted { color: var(--rp-ink3); }
.rp-wlbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--rp-line2); }
.rp-wlbar i { display: block; } .rp-wlbar .w { background: var(--rp-amber); } .rp-wlbar .l { background: var(--rp-blue); }
.rp-hbar .tr i.lost { background: var(--rp-blue); }
.rp-pill { display: inline-block; font-size: 0.6875rem; font-weight: 600; border-radius: 99px; padding: 1px 8px; white-space: nowrap; background: var(--rp-line2); color: var(--rp-ink2); }
.rp-pill.due { background: var(--rp-amber-tint); color: var(--rp-amber-ink); }
/* a short list inside a card: title (+ a line under it) · figure */
.rp-mlist { display: flex; flex-direction: column; }
.rp-mlist .ml { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 7px 0; }
.rp-mlist .ml + .ml { box-shadow: inset 0 1px 0 var(--rp-line2); }
.rp-mlist .t { font-size: 0.8125rem; min-width: 0; overflow-wrap: anywhere; }
.rp-mlist .t small, .rp-ttable td small { display: block; font-size: 0.6875rem; color: var(--rp-ink3); }
.rp-mlist .t a:hover, .rp-ttable td a:hover { color: var(--rp-amber-ink); text-decoration: underline; }
.rp-mlist .f { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the column chart */
.rp-qcols, .rp-qax { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.rp-qcols { height: 150px; align-items: end; padding-top: 22px; }
.rp-qcols.tall { height: 190px; }
.rp-qc { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rp-qc i { display: block; width: 60%; max-width: 46px; background: var(--rp-amber); border-radius: 5px 5px 0 0; }
.rp-qc.next i { background: repeating-linear-gradient(135deg, var(--rp-amber) 0 5px, var(--rp-amber-tint) 5px 9px); }
.rp-qc b { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-qc b.dim { color: var(--rp-ink3); }
.rp-qax { text-align: center; font-size: 0.75rem; color: var(--rp-ink2); border-top: 1px solid var(--rp-line); padding-top: 6px; }
.rp-qax .now { color: var(--rp-amber-ink); font-weight: 600; }
.rp-qax small { display: block; font-size: 0.6875rem; color: var(--rp-ink3); font-weight: 400; }
/* the table that sorts */
.rp-ttable { width: 100%; border-collapse: collapse; font-size: 0.8125rem; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
.rp-ttable th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--rp-ink3); padding: 0; border-bottom: 1px solid var(--rp-line); white-space: nowrap; }
.rp-ttable th.n { text-align: right; }
.rp .rp-ttable th button { border: 0; background: none; padding: 6px 8px; font-size: 0.75rem; color: var(--rp-ink3); cursor: pointer; width: 100%; text-align: inherit; }
.rp .rp-ttable th button:hover, .rp-ttable th[aria-sort] button { color: var(--rp-ink); }
.rp-ttable td { padding: 8px; border-bottom: 1px solid var(--rp-line2); vertical-align: top; }
.rp-ttable td.n { text-align: right; white-space: nowrap; }
.rp-ttable tr:last-child td { border-bottom: 0; }
.rp-ttable tbody tr:hover td, .rp-ttable tbody tr.hl td { background: var(--rp-amber-tint); }
.rp-ttable tr.now td:first-child { color: var(--rp-amber-ink); font-weight: 600; }
.rp-ttable tr.tot td { box-shadow: inset 0 1px 0 var(--rp-line); }
@container (max-width: 1100px) {
  .rp-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-dgrid .span2 { grid-column: 1 / -1; }
  .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-kpi { box-shadow: -1px 0 0 var(--rp-line), 0 -1px 0 var(--rp-line); }
}
@container (max-width: 680px) {
  .rp-dgrid { grid-template-columns: minmax(0, 1fr); }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-kpi .v { font-size: 1.375rem; } .rp-kpi.lead .v { font-size: 1.625rem; }
}

/* the board's Calendar view (app.js pbCalRender): Reports' two switches and a line, then the Calendar
   page's own code (explorer/calendar.css) in the same gutter */
.rp.pb-calhead { padding-bottom: 6px; }
.rp.pb-calhead .rp-scopes { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.pb-calline { margin: 12px 0 0; font-size: 0.875rem; color: var(--rp-ink2); }
.pb-calline b { color: var(--rp-ink); font-weight: 600; }
.pb-calroot { padding: 8px 28px 64px; }
.pb-calroot > .pb-calline { color: var(--ink-dim); }
@media (max-width: 760px) { .pb-calroot { padding: 8px 16px 48px; } }

/* ── CFO forecast (reports-view.js cfoTab) ──
   Won is solid amber, pipeline the lighter amber; options are the hatched twin of
   each, so secured revenue reads apart from hoped-for revenue. */
.rp-cfo-ctl { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.rp-cfo-fy { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--rp-ink2); }
.rp-cfo-fy select { font: inherit; font-size: 0.8125rem; color: var(--rp-ink); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 8px; padding: 5px 8px; }
.rp-cfo .wonFirm { background: var(--rp-amber); }
.rp-cfo .wonOpt { background: repeating-linear-gradient(135deg, var(--rp-amber) 0 5px, var(--rp-amber-tint) 5px 8px); }
/* your other contracts (the federal record): grey, so they read apart from the pipeline's won and hoped-for */
.rp-cfo .bookFirm { background: var(--rp-ink3); }
.rp-cfo .bookOpt { background: repeating-linear-gradient(135deg, var(--rp-ink3) 0 5px, var(--rp-line) 5px 8px); }
.rp-cfo .pipeBase { background: var(--rp-cfo-pipe); }
.rp-cfo .pipeOpt { background: repeating-linear-gradient(135deg, var(--rp-cfo-pipe) 0 5px, var(--rp-ghost-fill) 5px 8px); }
.rp-cfo-bars { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; height: 200px; align-items: end; padding-top: 22px; }
.rp-cfo-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rp-cfo-col .stk { display: flex; flex-direction: column-reverse; width: 60%; max-width: 56px; border-radius: 5px 5px 0 0; overflow: hidden; }
.rp-cfo-col .stk i { display: block; min-height: 1px; }
.rp-cfo-col b { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-cfo-col b.dim { color: var(--rp-ink3); }
.rp-cfo-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.75rem; color: var(--rp-ink2); }
.rp-cfo-key span { display: inline-flex; align-items: center; gap: 6px; }
.rp-cfo-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.rp-cfo-t td.dim, .rp-cfo-t th.dim { color: var(--rp-ink3); }
.rp-cfo-t .qd { color: var(--rp-ink2); font-size: 0.75rem; }
.rp-cfo-t tr.grp td { font-weight: 600; color: var(--rp-ink2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 16px; }
.rp-cfo-t tr.tot.all td { box-shadow: inset 0 2px 0 var(--rp-line); }
.rp-cfo-t tbody tr.grp:hover td, .rp-cfo-t tbody tr.tot:hover td, .rp-cfo-t tbody tr.rp-cfo-edit:hover td { background: none; }
.rp-cfo-t td:first-child { min-width: 200px; }
.rp-cfo-shape { font-size: 0.75rem; color: var(--rp-ink2); min-width: 170px; }
.rp-cfo-rec { display: block; margin-top: 3px; font-size: 0.6875rem; color: var(--rp-ink3); }
.rp .rp-cfo-editb { margin-left: 14px; font-size: 0.75rem; }
.rp-assumed { display: inline-block; font-size:0.6875rem; line-height: 1.4; padding: 0 6px; border-radius: 99px; border: 1px solid var(--rp-line); color: var(--rp-ink3); vertical-align: 1px; }
.rp-assumed.warn { color: var(--rp-amber-ink); border-color: var(--rp-ghost); }
.rp-assumed.hitch { color: var(--rp-blue); border-color: var(--rp-blue-tint); background: var(--rp-blue-tint); }
.rp-cfo-hold { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding-top: 10px; border-top: 1px solid var(--rp-line2); }
.rp-cfo-hold input[data-cfof="contract_holder"] { width: 220px; }
.rp-cfo-hold input[data-cfof="contract_ref"] { width: 200px; }
.rp-cfo-hold .mini { flex-basis: 100%; margin: 0; }
.rp-cfo-cands { flex-basis: 100%; margin: 0; padding: 0; }
.rp-cfo-cands li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0; font-size: 0.75rem; color: var(--rp-ink2); }
.rp-cfo-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 6px 0 4px; }
.rp-cfo-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--rp-ink3); }
.rp-cfo-form input { font: inherit; font-size: 0.8125rem; color: var(--rp-ink); background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 8px; padding: 5px 8px; width: 120px; }
.rp-cfo-form input[type="date"] { width: 150px; }
.rp-cfo-form p { flex-basis: 100%; margin: 0; }
.rp-cfo-form p.warn { color: var(--rp-amber-ink); }
.rp-cfo-btns { display: inline-flex; align-items: center; gap: 14px; margin-left: 14px; }
.rp .rp-btn { border: 1px solid var(--rp-ghost); background: var(--rp-amber-tint); color: var(--rp-ink); border-radius: 8px; padding: 5px 14px; font-size: 0.8125rem; cursor: pointer; }
.rp .rp-btn[disabled] { opacity: .6; cursor: progress; }
/* the pipeline's colour in the chart: the ghost amber is too dark on the dark theme (review 2026-11-23) */
.rp { --rp-cfo-pipe: #9a7a45; }
body.light .rp { --rp-cfo-pipe: var(--rp-ghost); }
.rp-cfo-set { font-size: 0.8125rem; color: var(--rp-ink2); margin: -10px 0 18px; }
.rp-cfo-set .rp-link { font-size: 0.8125rem; }
.rp-cfo-t th .rp-cfo-qm { color: var(--rp-ink3); font-size: 0.6875rem; }
.rp-cfo-t th { white-space: nowrap; }
.rp-cfo-t th button { display: inline; width: auto !important; }
.rp .rp-cfo-widen { display: none; margin-top: 14px; font-size: 0.8125rem; }
/* a narrow report: this FY, next FY and Total; "Show every year" widens it (it then scrolls) */
@container (max-width: 600px) {
  .rp-cfo-t:not(.wide) .far { display: none; }
  .rp .rp-cfo-widen { display: inline-block; }
  .rp-cfo-t td:first-child { min-width: 150px; }
  .rp-cfo-shape { min-width: 130px; }
}
/* Quarters: twelve bars — the figures on top give way to the axis on a narrow report (each bar's
   hover and the table carry them) */
@container (max-width: 760px) { .rp-cfo-bars.many .rp-cfo-col b { display: none; } }
.rp-cfo-bars.many { gap: 6px; }
.rp-cfo-t td.ysum { font-weight: 600; box-shadow: inset -1px 0 0 var(--rp-line); }
/* THE SCORECARD TAB (reports-view.js scoreTab; ops/control/docs/design/bd-scorecard.md). Redrawn 2026-11-24
   (Kevin: "simpler, more dynamic, easier to read"): a side switch, then one row per measure — status dot,
   name, a bar (actual) with a tick (target), the figure — that opens to what is behind it. On / off are their
   own tokens (green / red, both themes); near is the report's amber. */
.rp-sc-sides { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.rp .rp-sc-sides button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rp-line); background: var(--rp-surface); color: var(--rp-ink2);
  border-radius: 99px; padding: 6px 13px; font-size: 0.8125rem; cursor: pointer; }
.rp .rp-sc-sides button[aria-pressed="true"] { background: var(--rp-raise); color: var(--rp-ink); border-color: var(--rp-ghost); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 500; }
.rp-sc-sides .n { font-size: 0.75rem; color: var(--rp-ink3); font-variant-numeric: tabular-nums; }
.rp-sc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: none; box-shadow: inset 0 0 0 1.5px var(--rp-ink3); }
.rp-sc-dot.on { background: var(--rp-on); box-shadow: none; }
.rp-sc-dot.near { background: var(--rp-amber); box-shadow: none; }
.rp-sc-dot.off { background: var(--rp-off); box-shadow: none; }
.rp-sc-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.rp-sc-quad.one { grid-template-columns: minmax(0, 1fr); }
@container (max-width: 900px) { .rp-sc-quad { grid-template-columns: minmax(0, 1fr); } }
.rp-sc-card { padding: 14px 18px 8px; gap: 0; }
.rp-sc-gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rp-sc-gh h2 { margin: 0; font: 600 0.9375rem/1.3 Inter, sans-serif; color: var(--rp-ink); }
.rp-sc-q { margin: 2px 0 6px; font-size: 0.75rem; color: var(--rp-ink3); }
.rp-sc-obj { margin: 0 0 8px; padding: 0; }
.rp-sc-obj li { padding: 4px 0; font-size: 0.7812rem; color: var(--rp-ink); text-wrap: pretty; }
.rp-sc-obj li b { font-weight: 600; }
.rp-sc-obj .ms { display: block; font-size: 0.7188rem; color: var(--rp-ink3); }
.rp-sc-hid { margin: 0 0 10px; font-size: 0.75rem; color: var(--rp-ink3); text-wrap: pretty; }
.rp-sc-tag { font-size: 0.75rem; font-weight: 600; border-radius: 99px; padding: 2px 9px; white-space: nowrap; color: var(--rp-ink3); background: var(--rp-line2); }
.rp-sc-tag.on { color: var(--rp-on); background: var(--rp-on-tint); }
.rp-sc-tag.near { color: var(--rp-amber-ink); background: var(--rp-amber-tint); }
.rp-sc-tag.off { color: var(--rp-off); background: var(--rp-off-tint); }
.rp-sc-item { box-shadow: inset 0 1px 0 var(--rp-line2); }
.rp .rp-sc-row { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) minmax(60px, 34%) 64px 14px; gap: 14px; align-items: center;
  border: 0; background: none; padding: 11px 0; text-align: left; cursor: pointer; color: var(--rp-ink); }
.rp .rp-sc-row:hover .nm { color: var(--rp-amber-ink); }
.rp-sc-row .nm { font-size: 0.875rem; font-weight: 500; min-width: 0; }
.rp-sc-row .nm small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--rp-ink3); }
.rp-sc-row .fig { font: 600 1.125rem/1 Inter, sans-serif; letter-spacing: -.01em; text-align: right; font-variant-numeric: tabular-nums; }
.rp-sc-row .fig.dim { color: var(--rp-ink3); }
/* change since a past day (bd-scorecard.md §13.3): under the figure, green / red on graded rows, grey otherwise */
.rp-sc-chg { display: block; margin-top: 4px; font: 500 0.7188rem/1.2 Inter, sans-serif; letter-spacing: 0; color: var(--rp-ink3); white-space: nowrap; }
.rp-sc-chg.good { color: var(--rp-on); }
.rp-sc-chg.bad { color: var(--rp-off); }
.rp-sc-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.rp-sc-cmpw { font-size: 0.75rem; color: var(--rp-ink3); flex: 1 1 260px; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-sc-row .chev { font-size: 1rem; color: var(--rp-ink3); text-align: center; }
.rp-sc-bar { position: relative; height: 10px; border-radius: 5px; background: var(--rp-line2); }
.rp-sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--rp-ink3); }
.rp-sc-bar i.on { background: var(--rp-on); } .rp-sc-bar i.near { background: var(--rp-amber); } .rp-sc-bar i.off { background: var(--rp-off); }
.rp-sc-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--rp-ink); border-radius: 1px; }
.rp-sc-bar.none { background: repeating-linear-gradient(90deg, var(--rp-line2) 0 6px, transparent 6px 10px); }
.rp-sc-more { padding: 0 0 14px 23px; display: flex; flex-direction: column; gap: 8px; }
.rp-sc-more p { margin: 0; font-size: 0.8125rem; color: var(--rp-ink2); text-wrap: pretty; }
.rp-sc-more .rp-sc-why { background: var(--rp-amber-tint); border-radius: 8px; padding: 6px 9px; }
.rp-sc-more .rp-sc-mh { font-size: 0.75rem; font-weight: 600; color: var(--rp-ink3); }
/* a figure here can be words (an awardee, a stage): it wraps inside its share of the row, never widening the page */
.rp-sc-more .ml .f { white-space: normal; text-align: right; min-width: 0; max-width: 45%; overflow-wrap: anywhere; }
@container (max-width: 520px) {
  .rp .rp-sc-row { grid-template-columns: 9px minmax(0, 1fr) 64px 14px; row-gap: 8px; }
  .rp-sc-row .rp-sc-bar { grid-column: 2 / 4; grid-row: 2; }
  .rp-sc-more { padding-left: 0; }
}

/* Scorecard initiatives (0313) */
.rp-sci { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rp-line); }
.rp-sci-i { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--rp-line); }
.rp-sci-i .t { min-width: 0; font-size: 0.7812rem; color: var(--rp-ink); text-wrap: pretty; }
.rp-sci-i .t small { display: block; font-size: 0.7188rem; color: var(--rp-ink3); }
.rp-sci-i.done .t { color: var(--rp-ink3); }
.rp-sci-i .a { display: flex; gap: 14px; flex: none; }
.rp-sci-od { font-weight: 600; color: var(--rp-off); font-size: 0.7188rem; }
.rp-sci-b { border: 1px solid var(--rp-line); background: none; color: var(--rp-ink); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 0.75rem; cursor: pointer; }
.rp-sci-b:disabled { opacity: .5; cursor: default; }
.rp-sci-fold { border: 0; background: none; color: var(--rp-ink3); font: inherit; font-size: 0.75rem; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.rp-sci-add { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.rp-sci-add .rp-sci-in { flex: 1 1 220px; min-width: 0; }
.rp-sci-add input, .rp-sci-add select { font: inherit; font-size: 0.7812rem; padding: 4px 7px; border: 1px solid var(--rp-line); border-radius: 6px; background: transparent; color: var(--rp-ink); }
.rp-sci-msg { margin: 6px 0 0; font-size: 0.75rem; color: var(--rp-ink3); }
.rp-sci-msg.bad { color: var(--rp-off); }
