/* RiskBias UI v2 — app2 surface. Mobile-first, primitives-first.
   All chrome comes from an-viz-ui (--avui-* tokens, theme-flipped for
   light/dark by ThemeProvider); this file only lays out v2 screens.
   Classes are rb2- prefixed: zero collision with lb-/lbx- (v1).
   Breakpoints follow the compact canon: 767 / 1120 only. */

.rb2-gate { max-width: 36rem; margin: 3rem auto; padding: 0 1rem; width: 100%; }
/* Build stamp — serving revision, bottom-right whisper. */
.rb2-buildfoot {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    color: var(--avui-muted, #9BA6BD);
    opacity: 0.7;
}
/* Billing — contract. Activity uses the shared Heatmap primitive
   (inline theme-token styles; no classes here). */
.rb2-contract-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.rb2-contract-export { font-size: 0.85rem; }
.rb2-contract-doc {
    white-space: pre-wrap;
    border: 1px solid var(--avui-border, rgba(128,128,128,0.35));
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    max-height: 22rem;
    overflow: auto;
}
.rb2-sign { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.rb2-sign-agree { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; }
/* Package offer (unsigned contract state). */
.rb2-package { margin-bottom: 1rem; }
.rb2-package-price { font-size: 2rem; font-weight: 700; margin: 0; }
.rb2-package-per { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.rb2-package-name { margin: 0.2rem 0 0.6rem; opacity: 0.85; }
.rb2-package-list { margin: 0 0 0.6rem; padding-left: 1.1rem; line-height: 1.55; }

/* Sign-in (aligned 2026-10-26): evidence surface, plain words.
   Serif motto is a brand splash; everything else is the workspace. */
.rb2-login { display: flex; flex-direction: column; min-height: 100%; background: var(--avui-bg); color: var(--avui-text); font-family: var(--avui-font); }
.rb2-login-top {
    display: flex; align-items: center; gap: 0.6rem; min-height: 52px;
    padding: 6px 16px; padding-top: max(6px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--avui-border); background: var(--avui-bg-panel);
}
.rb2-login-main {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
}
.rb2-login-card {
    width: min(26rem, 100%); border: 1px solid var(--avui-border); border-radius: var(--avui-radius-lg);
    background: var(--avui-bg-card); padding: 1.5rem 1.4rem 1.3rem;
    display: flex; flex-direction: column; gap: 0.9rem;
}
.rb2-login-motto { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 14px; color: var(--avui-text-muted); }
.rb2-login-title { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.rb2-login-foot { margin: 0; font-size: 12px; color: var(--avui-text-muted); text-align: center; }
.rb2-login-prf {
    border: 1px solid var(--avui-border); border-radius: var(--avui-radius-lg);
    padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.55rem;
    font-size: 13px; line-height: 1.6; color: var(--avui-text);
}
.rb2-login-prf p { margin: 0; }

.rb2-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--avui-text); }
.rb2-brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--avui-accent); color: var(--avui-bg); font-size: 15px;
}
.rb2-brand-name { font-weight: 750; letter-spacing: 0.02em; font-size: 16px; }
.rb2-header-spacer { flex: 1; }
.rb2-icon-btn {
    width: 44px; height: 44px; border-radius: 999px; flex: none;
    border: 1px solid var(--avui-border); background: transparent;
    color: var(--avui-text); font-size: 16px; cursor: pointer;
}
/* Shared-primitive overrides (chrome unification, docs/CHROME_UNIFICATION.md).
   an-viz-ui.css hardcodes the primary label and a blue secondary hover.
   Evidence dark sets --avui-accent to off-white, so #fff disappears. */
.rb2-login .avui-btn-primary,
.rb2-grant .avui-btn-primary {
    color: var(--avui-bg);
}
.rb2-login .avui-btn-secondary:hover:not(:disabled),
.rb2-grant .avui-btn-secondary:hover:not(:disabled) {
    background: var(--avui-glass-fill);
}
/* Notes — reading column inside .landing-inner. Shell scrolls and
   paints the evidence ground. Sans from the theme token. */
.rb2-notes {
    max-width: 760px;
    padding-top: 2.2rem;
    font-family: var(--avui-font);
    color: var(--avui-text);
}
ul.rb2-case-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rb2-notes-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    font-size: 12px;
    color: var(--avui-text-muted);
}
.rb2-notes-article {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.rb2-notes .rb2-mono {
    overflow-wrap: anywhere;
}
/* Injected post HTML. Sans, not Playfair. Mono only on code. */
.rb2-notes-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--avui-text);
}
.rb2-notes-body h2,
.rb2-notes-body h3 {
    font-family: var(--avui-font);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--avui-text);
    margin: 1.8rem 0 0.8rem;
}
.rb2-notes-body p { margin: 0 0 1.1rem; }
.rb2-notes-body code,
.rb2-notes-proof code {
    font-family: var(--avui-font-mono);
    font-size: 0.86em;
    background: var(--avui-glass-fill);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
}
.rb2-notes-body pre {
    background: var(--avui-bg-card);
    border: 1px solid var(--avui-border);
    border-radius: var(--avui-radius);
    padding: 1rem 1.1rem;
    overflow-x: auto;
    margin: 1.2rem 0;
}
.rb2-notes-body pre code { background: none; padding: 0; }
.rb2-notes-body a,
.rb2-notes .avui-link {
    color: var(--avui-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rb2-notes-proof {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--avui-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    align-items: baseline;
}
.rb2-notes-proof .rb2-filing-kicker { margin: 0; }
/* Legal — prose column. Counsel copy untouched; this is frame only. */
.rb2-prose {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--avui-font);
    color: var(--avui-text);
    padding: 2.2rem 0 2.6rem;
    border-top: 1px solid var(--avui-border);
}
.rb2-prose-body {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 44rem;
}
.rb2-prose-body h2 {
    font-family: var(--avui-font);
    font-weight: 750;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin: 1.4rem 0 0.45rem;
    color: var(--avui-text);
}
.rb2-prose-body p { margin: 0 0 1.1rem; }
.rb2-prose-body p:last-child { margin-bottom: 0; }
.rb2-prose-body a {
    color: var(--avui-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Login-with-Account grant card on the shared modal frame. */
.rb2-grant-overlay.avui-modal-overlay {
    padding: 1.5rem;
}
.rb2-grant.avui-modal {
    min-width: 0;
    width: min(30rem, 100%);
    font-family: var(--avui-font);
}
.rb2-grant .avui-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rb2-grant .rb2-screen-note { max-width: none; }

.rb2-screen { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.rb2-screen-head { display: flex; flex-direction: column; gap: 0.35rem; }
.rb2-screen-title { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--avui-text); }
.rb2-screen-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--avui-text-muted); max-width: 42rem; }

.rb2-form { display: flex; flex-direction: column; gap: 1rem; }
.rb2-field { display: flex; flex-direction: column; gap: 6px; }
.rb2-field-label { font-size: 12px; font-weight: 500; color: var(--avui-text-muted); }
.rb2-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rb2-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--avui-text-muted); }
.rb2-text-btn {
    min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--avui-radius);
    border: 1px solid var(--avui-border); background: transparent;
    color: var(--avui-text); font: inherit; cursor: pointer;
}

.rb2-preview { display: flex; flex-direction: column; gap: 0.75rem; }
.rb2-preview-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rb2-preview-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--avui-text); }
.rb2-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }

@media (min-width: 768px) {
    .rb2-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .rb2-screen-title { font-size: 26px; }
}

@media (min-width: 1120px) {
    .rb2-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Report (Gate 4) — one document, five beats. Verdict hues only on
   verdict words (DESIGN §1); everything else is ink/paper. */
.rb2-report { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.rb2-report-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.rb2-report-id { font-family: var(--avui-font-mono); font-size: 12px; color: var(--avui-text-muted); flex: 1; text-align: center; }
.rb2-fixture-note, .rb2-lens-note {
    margin: 0; padding: 0.6rem 0.8rem; border: 1px dashed var(--avui-border-focus);
    border-radius: var(--avui-radius); font-size: 13px; line-height: 1.5; color: var(--avui-text);
}
.rb2-beat { display: flex; flex-direction: column; gap: 0.6rem; }
.rb2-beat-title { margin: 0; font-size: 16px; font-weight: 750; display: flex; align-items: center; gap: 0.55rem; color: var(--avui-text); }
.rb2-beat-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px;
    border: 1.5px solid var(--avui-text); font-size: 12px; font-weight: 800;
}
.rb2-answer { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--avui-text); }
.rb2-verdict-good { color: var(--avui-success); }
.rb2-verdict-bad { color: var(--avui-danger); }
/* Warn is monochrome by design (no amber, §1): weight carries it. */
.rb2-verdict-warn { color: var(--avui-text); text-decoration: underline; text-underline-offset: 3px; }
.rb2-metric--bad .avui-kpi-value { color: var(--avui-danger); }
.rb2-metric--good .avui-kpi-value { color: var(--avui-success); }
.rb2-story { margin: 0 0 0.8rem; font-size: 14px; line-height: 1.65; color: var(--avui-text); }
.rb2-flow { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }
.rb2-flow-node {
    display: flex; flex-direction: column; gap: 1px; padding: 0.55rem 0.7rem;
    border: 1px solid var(--avui-border); border-radius: var(--avui-radius); background: var(--avui-bg);
}
.rb2-flow-role { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--avui-text-muted); }
.rb2-flow-name { font-weight: 700; font-size: 13px; color: var(--avui-text); overflow-wrap: anywhere; }
.rb2-flow-note { font-size: 11px; color: var(--avui-text-muted); }
.rb2-chart { margin: 0.4rem 0 0.9rem; overflow: hidden; }
.rb2-chart-caption { margin: 0.6rem 0 0; font-size: 11px; line-height: 1.5; color: var(--avui-text-muted); }
.rb2-donut { display: flex; justify-content: center; }
.rb2-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 13px; color: var(--avui-text); }
.rb2-timeline-when { font-family: var(--avui-font-mono); font-size: 11px; color: var(--avui-text-muted); margin-right: 0.5rem; }
.rb2-evidence { display: flex; flex-direction: column; gap: 0.8rem; }
.rb2-parties { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: 13px; line-height: 1.55; color: var(--avui-text); }
.rb2-limits-head { margin: 0 0 0.5rem; font-weight: 750; font-size: 14px; color: var(--avui-text); }
.rb2-limits .avui-card { border-style: dashed; }
.rb2-about { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.3rem 0.8rem; margin: 0.9rem 0 0; font-size: 12px; }
.rb2-about dt { color: var(--avui-text-muted); font-weight: 600; }
.rb2-about dd { margin: 0; color: var(--avui-text); overflow-wrap: anywhere; }
.rb2-mono { font-family: var(--avui-font-mono); font-size: 11px; }

/* Addresses: short form is the glance, never the whole record.
   The full address is one tap away (Show full → selectable text)
   and the copy button writes it either way. */
.rb2-addr { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; min-width: 0; }
.rb2-addr-text { font-family: var(--avui-font-mono); font-size: 11px; overflow-wrap: anywhere; }
.rb2-addr-toggle {
    min-height: 28px; padding: 0.15rem 0.5rem; border-radius: var(--avui-radius);
    border: 1px solid var(--avui-border); background: transparent;
    color: var(--avui-text-muted); font: inherit; font-size: 11px; font-weight: 600;
    white-space: nowrap; cursor: pointer;
}
.rb2-addr-toggle:hover { color: var(--avui-text); border-color: var(--avui-border-focus); }
.rb2-party { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.rb2-party-open {
    display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
    margin: 0; padding: 0; border: 0; background: transparent;
    color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rb2-party-open:hover, .rb2-party-open:focus-visible {
    text-decoration: underline; text-underline-offset: 2px;
}

/* Reading mode (canon v3 §10). Sticks inside the shell's scrolling
   main so lens + Save as PDF stay put after the rail leaves. Ink
   and the existing border token only. */
.rb2-readbar {
    position: sticky; top: 0; z-index: 4;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
    padding: 0.45rem 0 0.55rem;
    background: var(--avui-bg);
    border-bottom: 1px solid var(--avui-border);
}
.rb2-readbar-pdf { margin-left: auto; }
.rb2-readbar .avui-segmented { flex: 1 1 16rem; min-width: 0; }

/* Counterparty sheet body. The sheet chrome is an-viz-ui's; this is
   ink on the working surface, with no verdict hue. */
.rb2-cp {
    display: flex; flex-direction: column; gap: 0.75rem;
    color: var(--avui-text); font-size: 14px; line-height: 1.5;
}
.rb2-cp-label { margin: 0; font-weight: 750; color: var(--avui-text); }
.rb2-cp-lists { margin: 0; color: var(--avui-text); }

@media (min-width: 768px) {
    .rb2-answer { font-size: 20px; }
    .rb2-flow { flex-direction: row; }
    .rb2-flow-node { flex: 1; }
}

/* Portfolio (P4) */
.rb2-pf-result { display: flex; flex-direction: column; gap: 0.9rem; }
.rb2-pf-hero { display: flex; flex-direction: column; gap: 0.6rem; }
.rb2-weights { display: flex; flex-direction: column; gap: 0.9rem; }
.rb2-weight-head { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: baseline; margin-bottom: 0.35rem; }
.rb2-weight-symbol { font-weight: 750; font-size: 14px; color: var(--avui-text); }
.rb2-shares { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.rb2-share { display: grid; grid-template-columns: minmax(6rem, 1fr) 2fr auto; gap: 0.6rem; align-items: center; font-size: 12px; }
.rb2-share-label { color: var(--avui-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb2-share-meta { font-family: var(--avui-font-mono); font-size: 11px; color: var(--avui-text-muted); text-align: right; }
.rb2-track { display: block; height: 0.45rem; border-radius: 999px; background: var(--avui-border); overflow: hidden; }
.rb2-fill { display: block; height: 100%; background: var(--avui-text); border-radius: 999px; }
.rb2-chain-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.rb2-chain-card { border: 1px solid var(--avui-border); border-radius: var(--avui-radius-lg); padding: 0.75rem 0.9rem; background: var(--avui-bg); }
.rb2-chain-head { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.rb2-chain-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--avui-text); }
.rb2-dust { margin-top: 0.5rem; font-size: 12px; color: var(--avui-text-muted); }
.rb2-pf-notes { display: flex; flex-direction: column; gap: 0.3rem; }
.rb2-limits-line { margin: 0; padding: 0.5rem 0.7rem; border: 1px dashed var(--avui-border-focus); border-radius: var(--avui-radius); font-size: 12px; line-height: 1.5; color: var(--avui-text); }
@media (min-width: 768px) {
    .rb2-chain-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Report for filing (reviewer's document) */
.rb2-filing {
    max-width: 52rem; margin: 0 auto; background: var(--avui-bg-card);
    border: 1px solid var(--avui-border); border-radius: var(--avui-radius-lg);
    padding: 1.6rem 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 1.3rem;
    color: var(--avui-text);
}
.rb2-filing-cover { border-bottom: 2px solid var(--avui-text); padding-bottom: 1rem; }
.rb2-filing-kicker {
    margin: 0 0 0.6rem; font-family: var(--avui-font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--avui-text-muted);
}
.rb2-filing-question {
    margin: 0 0 0.5rem; font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
.rb2-filing-headline { margin: 0 0 1rem; font-size: 17px; font-weight: 700; line-height: 1.45; }
.rb2-filing-lede { font-weight: 500; }
.rb2-filing-meta { display: grid; grid-template-columns: 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 13px; }
.rb2-filing-meta div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; }
.rb2-filing-meta dt { color: var(--avui-text-muted); font-weight: 600; }
.rb2-filing-meta dd { margin: 0; overflow-wrap: anywhere; }
.rb2-filing-sec h2 {
    margin: 0 0 0.55rem; font-size: 15px; font-weight: 750;
    border-bottom: 1px solid var(--avui-border); padding-bottom: 0.35rem;
}
.rb2-filing-sec p { margin: 0 0 0.6rem; font-size: 14px; line-height: 1.65; }
.rb2-filing-list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 13.5px; line-height: 1.6; }
.rb2-filing-note { font-size: 12px; line-height: 1.6; color: var(--avui-text-muted); }
.rb2-filing-foot {
    border-top: 1px solid var(--avui-border); padding-top: 0.6rem;
    font-family: var(--avui-font-mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--avui-text-muted);
}
@media (min-width: 768px) {
    .rb2-filing-meta { grid-template-columns: 1fr 1fr; }
    .rb2-filing-question { font-size: 30px; }
}

/* Cases (P3) */
.rb2-report-wrap { display: flex; flex-direction: column; gap: 0.9rem; max-width: 52rem; margin: 0 auto; width: 100%; }
.rb2-error { margin: 0; font-size: 13px; line-height: 1.55; color: var(--avui-danger); }
.rb2-cases { display: flex; flex-direction: column; gap: 0.6rem; }
.rb2-cases-title { margin: 0; font-size: 16px; font-weight: 750; color: var(--avui-text); }
.rb2-case-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rb2-case {
    display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
    min-height: 52px; padding: 0.65rem 0.8rem; border-radius: var(--avui-radius-lg);
    border: 1px solid var(--avui-border); background: var(--avui-bg-card);
    color: var(--avui-text); font: inherit;
}
.rb2-case:hover { border-color: var(--avui-border-focus); }
.rb2-case-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.rb2-case-head .rb2-addr-text { font-size: 13px; font-weight: 650; }
.rb2-case-open {
    min-height: 32px; padding: 0.25rem 0.6rem; border-radius: var(--avui-radius);
    border: 1px solid var(--avui-border); background: transparent; flex: none;
    color: var(--avui-text); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
}
.rb2-case-body {
    display: flex; flex-direction: column; gap: 2px; text-align: left;
    padding: 0; border: 0; background: transparent;
    color: var(--avui-text); font: inherit; cursor: pointer;
}
.rb2-case-meta { font-size: 12px; color: var(--avui-text-muted); }
.rb2-case-summary { font-size: 12px; line-height: 1.5; color: var(--avui-text-muted); }

@media print {
    /* Print is a first-class rendering of the report (DESIGN §9:
       the document prints as itself). The app lives in a fixed-
       height scroll shell; without this reset, browsers paginate
       the scroll box and everything past the first screenful is
       silently cut (the 2026-10-27 production PDF: 2 pages, the
       second holding one orphan line). */
    @page { margin: 13mm 12mm; }
    html, body { overflow: visible !important; height: auto !important; background: #fff !important; }
    #app { height: auto !important; display: block !important; }
    .avui-shell { height: auto !important; display: block !important; background: #fff !important; }
    .avui-shell-body { display: block !important; }
    .avui-shell-main { overflow: visible !important; height: auto !important; padding: 0 !important; }

    /* Chrome out, identity stays: buttons and nav hide. The filing
       cover is the printed identity — the desk id line and the
       build stamp are screen furniture and must not print
       (canon v3 Phase 1: filed PDF carries no double header). */
    .avui-shell-top, .avui-shell-bottom, .avui-shell-rail,
    .avui-segmented, .rb2-fixture-note, .rb2-lens-note,
    .rb2-report-top, .rb2-buildfoot, .rb2-readbar,
    .avui-sheet-backdrop { display: none !important; }
    /* Screen controls, not paper: the revealed full text itself
       still prints if the reader expanded it first. */
    .rb2-addr-toggle, .rb2-addr .avui-copy-btn { display: none !important; }

    /* Force the paper palette regardless of the screen theme. */
    .rb2-report, .rb2-report-wrap {
        --avui-bg: #FFFFFF; --avui-bg-card: #FFFFFF; --avui-bg-panel: #FFFFFF;
        --avui-text: #0B0B0C; --avui-text-muted: #444444;
        --avui-border: #CCCCCC; --avui-border-focus: #888888;
        --avui-success: #146C2E; --avui-danger: #C81E1E;
        --avui-chart-1: #0B0B0C; --avui-chart-2: #5C5C5E; --avui-chart-3: #8A8A86;
        --avui-chart-4: #146C2E; --avui-chart-5: #C81E1E; --avui-chart-6: #2E2E30;
        --avui-chart-grid: rgba(11, 11, 12, 0.08); --avui-chart-axis: #5C5C5E;
        color: #0B0B0C;
    }
    .rb2-report { max-width: none; }
    .rb2-kpi-grid { grid-template-columns: repeat(4, 1fr); }

    /* Pagination: the short beats don't split; the long Story and
       Evidence beats may flow, but never mid-chart or mid-card. */
    .rb2-beat { break-inside: auto; }
    .rb2-beat:nth-of-type(1), .rb2-beat:nth-of-type(2), .rb2-beat:nth-of-type(5) { break-inside: avoid-page; }
    .rb2-beat:has(.rb2-chart), .rb2-evidence .avui-card { break-inside: auto; }

    /* On paper the payments exhibit is a table again, not phone
       cards: 200 card-rows made a 40-page PDF out of this report. */
    .avui-data-table--cards .avui-data-table-scroll { overflow: visible; }
    .avui-data-table--cards table { display: table; width: 100%; border-collapse: collapse; font-size: 10px; }
    .avui-data-table--cards thead { display: table-header-group; }
    .avui-data-table--cards tbody { display: table-row-group; }
    .avui-data-table--cards .avui-data-table-row {
        display: table-row; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0;
    }
    .avui-data-table--cards td {
        display: table-cell; border: 0; border-bottom: 1px solid #E5E5E1;
        padding: 3px 6px 3px 0; text-align: left; overflow-wrap: normal;
    }
    .avui-data-table--cards td::before { display: none; content: none; }
    .avui-data-table--cards .avui-data-table-num { text-align: right; }
    .rb2-beat-title { break-after: avoid-page; }
    .rb2-chart, .avui-card { break-inside: avoid-page; }
    .rb2-flow-node, .rb2-timeline li { break-inside: avoid-page; }
    a { text-decoration: none; color: inherit; }

    /* Filing document on paper: full-bleed document, running footer. */
    .rb2-filing {
        --avui-bg: #FFFFFF; --avui-bg-card: #FFFFFF; --avui-bg-panel: #FFFFFF;
        --avui-text: #0B0B0C; --avui-text-muted: #444444;
        --avui-border: #CCCCCC; --avui-border-focus: #888888;
        --avui-success: #146C2E; --avui-danger: #C81E1E;
        border: 0; border-radius: 0; padding: 0 0 16mm; max-width: none;
    }
    .rb2-filing-sec { break-inside: auto; }
    .rb2-filing-cover { break-inside: avoid-page; }
    .rb2-filing-sec h2 { break-after: avoid-page; }
    .rb2-filing-foot {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; padding-top: 4px;
    }
}

/* Summary beat: verdict word, then up to three evidence lines.
   Unknown stays ink — it is never the good hue. */
.rb2-summary-points {
    list-style: disc;
    margin: 0;
    padding-left: 1.15rem;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--avui-text);
}
.rb2-summary-points li { margin: 0.35rem 0 0; }
.rb2-summary-points li:first-child { margin-top: 0; }
.rb2-verdict-unknown { color: var(--avui-text); text-decoration: none; }
