/* EastCo Group Client Portal — design system
   Direction: "ranch ledger" — navy authority, warm paper, saddle-gold accents,
   tabular numerals for money. Not a template; built around how cattlemen read
   a statement. */

/* EastCo Group brand palette — Agent Correspondence Style Guide */
:root {
  --navy-950: #041f3a;
  --navy-900: #052b4e;
  --navy-800: var(--ec-navy); /* EastCo Dark Blue — headers, title bars, table headers */
  --navy-700: var(--ec-navy-700);
  --paper: #f5f3ee;
  --card: #ffffff;
  --line: #e5e0d5;
  --line-2: #d4cdbd;
  --ink: #1b2434;
  /* Secondary/tertiary text pulled darker for older eyes — McLane flagged the
     muted notes as too faint portal-wide (2026-07-18). Hierarchy preserved:
     ink > muted > faint. Was #68707f / #9aa1ad. */
  --muted: #535a68;
  --faint: #727a88;
  --gold: var(--ec-gold); /* EastCo Goldenrod — accents, dividers, secondary highlights */
  --gold-deep: #9c6d00;
  --gold-soft: #f7ecd2;
  --lrp-brown: var(--ec-lrp); /* LRP materials */
  --prf-green: var(--ec-prf); /* PRF materials */
  --af-rust: #391408;   /* Annual Forage materials (legacy; superseded by --af-green) */
  /* Annual Forage identity — deep green family lifted from the estimator's AF
     section. NOTE: --af-green shares its base hex with --prf-green (#1d3a0e);
     AF is differentiated by dominant green-filled surfaces (stat cards, GS
     header bands) vs PRF's navy-dominant surfaces + green hairline. */
  --af-green: var(--ec-af);         /* deep green — dark stat cards / GS header bands / accent */
  --af-green-border: var(--ec-af-border);  /* border on the deep green surfaces */
  --af-green-tint: var(--ec-af-tint);    /* pale green chip / tint background */
  --af-green-label: var(--ec-af-label);   /* muted label text on the deep green cards */
  --af-green-sub: var(--ec-af-sub);     /* secondary text on the deep green cards */
  /* Shared status palette (uniform with PRF — do NOT fork) */
  --af-st-final: #2f7d4f;      --af-st-final-bg: #edf3ed;
  --af-st-est: #b8891e;        --af-st-est-bg: #f7f0da;
  --af-st-live: #bd6a39;       --af-st-live-bg: #f8ecdf;
  --af-st-alert: #bc4a40;      --af-st-alert-bg: #f9e6e3;
  --af-st-up: #8a8678;         --af-st-up-bg: #f4f2ec;
  /* Positive-money green, brightened 2026-07-18 (McLane: positive indemnities
     should read clearly GREEN across the whole book, not muted forest). */
  --green: var(--ec-positive);
  --green-deep: var(--ec-positive-deep);
  --green-soft: #e3f3e9;
  --red: #b3362c;
  --red-soft: #faeae7;
  --blue: #2563a8;
  --blue-soft: #e3eef9;
  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(7, 55, 99, 0.06), 0 1px 6px rgba(7, 55, 99, 0.05);
  --shadow-2: 0 6px 20px rgba(7, 55, 99, 0.12);
  --font-display: var(--ec-font);
  --font-ui: var(--ec-font);
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
}

.num { font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

/* ============================== LOGIN ============================== */

#login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 44%) 1fr;
}
.login-brand {
  /* flat EastCo Dark Blue so the white-on-blue logo blends seamlessly */
  background: var(--navy-800);
  color: #fff;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand .contours {
  position: absolute; inset: 0; opacity: 0.13; pointer-events: none;
}
.brand-mark { display: flex; align-items: center; gap: 0.9rem; }
.us-flag { display: inline-flex; position: relative; line-height: 0; border-radius: 1px; overflow: hidden; flex: none; }
.us-flag .flag-svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.us-flag .slat { transform: none; }
/* Built waving-flag SVG (index.html): one flat flag is sliced into vertical
   columns (.slat), each bobbing on translateY. Amplitude (--amp, set per column
   inline) ramps from 0 at the hoist — the pole stays fixed — up to the fly edge,
   and per-column animation-delay travels the ripple across the width, so the
   cloth reads as fabric in the wind rather than a rocking rectangle. A soft
   diagonal sheen sweeps across for light. All motion is gated on no-preference:
   reduced-motion users get a still, flat flag (columns rest at identity and the
   clipped slices re-tile into a clean flag). */
@media (prefers-reduced-motion: no-preference) {
  .us-flag .slat { will-change: transform; animation: flag-wave 3.4s ease-in-out infinite; }
  @keyframes flag-wave {
    0%, 100% { transform: translateY(calc(var(--amp, 0) * -1px)); }
    50%      { transform: translateY(calc(var(--amp, 0) *  1px)); }
  }
  .us-flag::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.26) 50%, transparent 60%);
    transform: translateX(-130%); animation: flag-sheen 7.5s ease-in-out infinite;
  }
  @keyframes flag-sheen {
    0%, 60%   { transform: translateX(-130%); }
    80%, 100% { transform: translateX(130%); }
  }
}
.brand-img { height: 64px; width: auto; display: block; }
.appbar .brand-img { height: 44px; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.login-hero { position: relative; }
.login-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.login-hero h1 em { font-style: normal; color: var(--gold); }
.login-hero p { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.72); max-width: 42ch; }
.login-foot { position: relative; font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.login-card > p { color: var(--muted); margin: 0.4rem 0 1.6rem; font-size: 0.9rem; }
.login-card label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.45rem;
}
#accessId {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  font-size: 1.05rem; font-family: var(--font-mono); letter-spacing: 0.06em;
  background: #fff; color: var(--ink); outline: none;
  text-transform: uppercase;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#accessId:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 150, 0, 0.16); }
#loginBtn {
  width: 100%; margin-top: 0.9rem; padding: 0.85rem 1rem;
  background: var(--navy-800); color: #fff; border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
#loginBtn:hover { background: var(--navy-700); }
#loginBtn:active { transform: translateY(1px); }
#loginErr { color: var(--red); font-size: 0.85rem; margin-top: 0.7rem; min-height: 1.2em; }
.demo-chips { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.demo-chips span { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.demo-chips .chips { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.chip-btn {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px;
  padding: 0.35rem 0.85rem; font-size: 0.8rem; font-family: var(--font-mono);
  cursor: pointer; color: var(--ink); transition: all 0.15s;
}
.chip-btn:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ============================ NO MATCH (M10) ============================ */

#noMatch { display: none; min-height: 100vh; background: var(--paper); }
body.no-match #noMatch { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
body.no-match #login { display: none; }
.nm-wrap { width: 100%; max-width: 460px; }
.nm-logo { height: 40px; width: auto; display: block; margin: 0 auto 1.5rem; }
.nm-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 2rem 1.75rem;
}
.nm-card h1 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.3; }
.nm-card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.5; }
.nm-sub strong { color: var(--ink); word-break: break-all; }
#nmForm { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
#nmForm label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.45rem;
}
#nmNote {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 0.92rem; color: var(--ink); resize: vertical; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#nmNote:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 150, 0, 0.16); }
#nmRequestBtn {
  width: 100%; margin-top: 0.9rem; padding: 0.85rem 1rem;
  background: var(--navy-800); color: #fff; border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.05s;
}
#nmRequestBtn:hover { background: var(--navy-700); }
#nmRequestBtn:active { transform: translateY(1px); }
#nmRequestBtn:disabled { opacity: 0.6; cursor: default; }
.nm-status { font-size: 0.85rem; margin-top: 0.7rem; min-height: 1.2em; }
.nm-status.ok { color: var(--green-deep); }
.nm-status.err { color: var(--red); }
.nm-alt { text-align: center; font-size: 0.85rem; margin-top: 1.1rem; }

/* =============================== APP =============================== */

#app { display: none; min-height: 100vh; }
body.authed #app { display: block; }
body.authed #login { display: none; }

.appbar {
  background: var(--navy-800);
  color: #fff; padding: 0.7rem 1.5rem;
}
.appbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.appbar-client { margin-left: auto; text-align: right; }
.appbar-client .who { font-weight: 600; font-size: 0.95rem; }
.appbar-client .asof { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }
#logoutBtn {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px;
  padding: 0.45rem 0.9rem; font-size: 0.8rem; cursor: pointer; transition: background 0.15s;
}
#logoutBtn:hover { background: rgba(255, 255, 255, 0.2); }

/* Entity bar — multi-entity accounts (one contact, several entities) pick
   which entity the whole portal is scoped to. Deliberately prominent. */
.entity-bar {
  background: var(--navy-900); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--gold);
}
.entity-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.55rem 1.5rem;
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
}
.entity-bar label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; flex: none;
}
.entity-bar select {
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 150, 0, 0.65); border-radius: 8px;
  padding: 0.45rem 2.2rem 0.45rem 0.8rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d69600' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
  max-width: min(480px, 100%);
}
.entity-bar select:hover { background-color: rgba(255, 255, 255, 0.14); }
.entity-bar select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.entity-bar select option { color: var(--ink); background: #fff; font-weight: 500; }
/* Staff bar (2026-10-09): same control as the entity bar, set apart with a gold wash so
   staff never mistake it for something a customer sees. */
.staff-bar { background: #3a2a05; border-bottom-color: var(--gold); }
.staff-bar + .entity-bar { border-top: 0; }
.staff-combo { position: relative; flex: 1 1 340px; max-width: 520px; }
.staff-combo input {
  width: 100%; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(214, 150, 0, 0.65); border-radius: 8px;
  padding: 0.45rem 0.8rem;
}
.staff-combo input::placeholder { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
/* staff bar -> Agency Console (2026-11-03); the bar itself only shows for staff */
.staff-admin-link { margin-left: auto; color: var(--gold); font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 0.5rem 0.25rem; }
.staff-admin-link:hover { text-decoration: underline; }
.staff-admin-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.staff-combo input:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: rgba(255, 255, 255, 0.14); }
.staff-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0;
  list-style: none; background: #fff; color: var(--ink); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 55, 99, 0.28); max-height: min(60vh, 420px); overflow-y: auto;
}
.staff-list li { padding: 0.45rem 0.85rem; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.staff-list li[aria-selected="true"] { background: #e4ebf4; }
.staff-list li.is-current .staff-opt-name::after { content: "  (viewing)"; color: var(--gold); font-weight: 600; }
.staff-opt-name { font-weight: 600; font-size: 0.95rem; }
.staff-opt-meta { font-size: 0.78rem; color: #52606d; }
.staff-list .staff-empty { cursor: default; color: #52606d; font-style: italic; }
@media (pointer: coarse) { .staff-combo input { font-size: 16px; } }

/* Market ticker — a slow Wall-Street running marquee. renderTicker (app.js)
   duplicates the chip sequence into .ticker-track; the track translates -50%
   on a long loop so the second copy slides in seamlessly, and hovering pauses
   it. The delay badge — and the .ticker-pin quote zone on the left — sit
   outside the scrolling viewport. */
.ticker {
  background: var(--navy-950); color: #d8dee9;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
/* Full-bleed since 2026-07-21 (McLane: "wrap em around the entire length of
   that blue bar") — no max-width cap; the marquee runs edge to edge and the
   delay badge pins to the bar's right end. renderTicker pads the loop with
   extra sequence copies so the -50% translate stays seamless at any width. */
.ticker-inner {
  padding: 0.55rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
/* Pinned quote zone (2026-07-21) — McLane: "leave a little room on the far
   left that doesn't scroll": front-month GF / LE / Corn sit static ahead of
   the marquee behind a hairline divider. flex:none so the loop can never
   squeeze it; the viewport keeps flex:1 + min-width:0 and simply starts
   narrower (renderTicker measures the viewport element, so the seam-padding
   math follows automatically). Naturally static under reduced motion. */
.ticker-pin {
  display: flex; align-items: center; gap: 1.8rem; flex: none;
  padding-right: 1rem; border-right: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
/* Pinned chips read CattleFax-style (2026-07-21): big up/down arrow, product
   name spelled out over the price, tiny month tag. Scrolling chips unchanged. */
.ticker-pin .pin-tick { display: flex; align-items: center; gap: 0.55rem; }
.pin-arrow { font-size: 1.05rem; line-height: 1; flex: none; }
.pin-arrow.up { color: #089981; }
.pin-arrow.down { color: #f23645; }
.pin-arrow.flat { color: #8c97ab; }
.pin-body { display: flex; flex-direction: column; line-height: 1.3; }
.pin-title { white-space: nowrap; }
.pin-name { color: #fff; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; }
.pin-mo { color: #8c97ab; font-size: 0.62rem; letter-spacing: 0.06em; margin-left: 0.4rem; }
.pin-quote { display: flex; align-items: baseline; gap: 0.45rem; }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-track { display: inline-flex; width: max-content; will-change: transform; }
.ticker-seq { display: inline-flex; align-items: center; gap: 1.8rem; padding-right: 1.8rem; white-space: nowrap; flex: none; }
.tick { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.82rem; }
.tick .sym { color: #8c97ab; font-size: 0.72rem; letter-spacing: 0.05em; }
.tick .px { font-family: var(--font-mono); font-weight: 600; color: #fff; }
.tick .vs { font-family: var(--font-mono); font-size: 0.72rem; }
.tick .vs.up { color: #089981; }
.tick .vs.down { color: #f23645; }
.delay-badge {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6);
  border-radius: 999px; padding: 0.18rem 0.6rem; flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker-scroll 64s linear infinite; }
  .ticker-inner:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
/* Reduced motion: no marquee — drop the duplicate copy and let the single
   strip scroll horizontally inside its viewport like the original bar. */
@media (prefers-reduced-motion: reduce) {
  .ticker-viewport { overflow-x: auto; scrollbar-width: thin; }
  .ticker-seq[aria-hidden="true"] { display: none; }
}

/* Tabs */
.tabbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
/* Wrap instead of scrolling sideways (McLane, 2026-09-10): the last tabs were hiding
   off the right edge on narrower windows with no hint they existed. */
.tabbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
/* Tabs read as navigation you're meant to click: heavier labels, a button-like
   hover (tint + lift), and a gold underline that slides in on hover and locks
   full-width + navy-bold on the active tab. */
.tab-btn {
  position: relative;
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 0.95rem 1.15rem 0.8rem; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.005em; color: var(--muted); cursor: pointer; white-space: nowrap;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}
.tab-btn::after {
  content: ""; position: absolute; left: 1.15rem; right: 1.15rem; bottom: 0; height: 3px;
  background: var(--gold); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: center; opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tab-btn:hover { color: var(--navy-800); background: rgba(7, 55, 99, 0.05); transform: translateY(-1px); }
.tab-btn:hover::after { transform: scaleX(0.5); opacity: 0.55; }
.tab-btn.active { color: var(--navy-800); font-weight: 800; background: rgba(214, 150, 0, 0.09); }
.tab-btn.active::after { transform: scaleX(1); opacity: 1; }
.tab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tab-spacer { flex: 0 0 auto; width: 1px; align-self: center; height: 22px; margin: 0 1.1rem; background: var(--line-2); }
/* Phones (2026-09-23 WIG audit): the wrapped bar ran four rows deep (~200px) and
   stayed stuck to the top, so under 720px the sections fold behind one button that
   names the current tab. Open = the same wrapped list, nothing hidden off-screen
   (the 9/10 rule holds); picking a tab folds it again. Desktop is untouched. */
.tabbar-toggle { display: none; }
html { scroll-padding-top: 56px; }   /* anchors and focus land below the sticky bar */
@media (max-width: 720px) {
  .tabbar-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.75rem;
    min-height: 48px; padding: 0.7rem 1.1rem; background: none; border: 0; font: inherit;
    font-weight: 800; color: var(--navy-800); cursor: pointer; text-align: left;
  }
  .tabbar-toggle:focus-visible { outline: 2px solid var(--navy-800); outline-offset: -2px; }
  .tabbar-toggle-hint {
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  }
  .tabbar-toggle-caret { display: inline-block; transition: transform 0.15s; }
  .tabbar.is-open .tabbar-toggle-caret { transform: rotate(180deg); }
  .tabbar:not(.is-open) .tabbar-inner { display: none; }
  .tabbar.is-open .tabbar-inner { border-top: 1px solid var(--line); padding-bottom: 0.35rem; }
}

/* LRP positions — compact so the whole row reads without horizontal scroll,
   and the slider-sensitive columns are highlighted */
/* Dense table — reclaim the page side-padding so the full row fits without
   horizontal scroll, while staying inside the 1280 content box. */
.lrp-positions { margin-inline: -1.5rem; }
.lrp-positions table { font-size: 0.8rem; }
.lrp-positions thead th { padding: 0.55rem 0.44rem; font-size: 0.66rem; }
.lrp-positions tbody td { padding: 0.46rem 0.44rem; }
.lrp-positions thead th:first-child, .lrp-positions tbody td:first-child { padding-left: 0.9rem; }
.lrp-positions thead th:last-child, .lrp-positions tbody td:last-child { padding-right: 0.9rem; }
.lrp-positions .endo-col { white-space: nowrap; }
.lrp-positions .cell-main { font-weight: 600; }
.lrp-positions .cell-sub { font-size: 0.7rem; color: var(--muted); }
.lrp-positions thead th.num, .lrp-positions tbody td.num { white-space: nowrap; }

main { max-width: 1280px; margin: 0 auto; padding: 1.6rem 1.5rem 3rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise 0.25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }
.title-row { display: flex; align-items: center; gap: 0.65rem; }
.title-row img.product-ico { width: 34px; height: 34px; flex: none; }
.product-accent { display: block; width: 52px; height: 4px; border-radius: 2px; margin-top: 0.5rem; background: var(--gold); }

/* Crop-year switcher + head-usage trackers (Overview) */
.cy-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.9rem; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0.9rem; margin-top: 0.8rem; }
.usage-card .u-head { display: flex; align-items: baseline; gap: 0.6rem; justify-content: space-between; flex-wrap: wrap; }
.usage-card .u-big { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.usage-card .u-big .of { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.usage-bar { height: 12px; background: #e9e4d8; border-radius: 6px; overflow: hidden; margin: 0.55rem 0 0.4rem; }
.usage-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--navy-700), var(--navy-800)); transition: width 0.3s ease; }
.usage-fill.full { background: linear-gradient(90deg, #b3362c, #d4574c); }

/* Compact head-usage strip (Overview) — same numbers, quieter presentation */
.usage-strip { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; margin-top: 0.8rem; }
.usage-strip .u-row { display: grid; grid-template-columns: 110px minmax(80px, 1fr) auto; align-items: center; gap: 0.9rem; }
.usage-strip .u-name { font-size: 0.76rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.usage-strip .u-meter { height: 5px; background: #ece7da; border-radius: 999px; overflow: hidden; }
.usage-strip .u-meter > div { height: 100%; border-radius: 999px; background: var(--navy-700); opacity: 0.5; }
.usage-strip .u-meter > div.full { background: var(--red); opacity: 0.75; }
.usage-strip .u-text { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.usage-strip .u-text.neg { color: var(--red); font-weight: 600; white-space: normal; }   /* SEC-9 (11/11): the over-cap line now carries an email + phone, so it must wrap on a phone */
@media (max-width: 620px) {
  .usage-strip .u-row { grid-template-columns: 1fr auto; }
  .usage-strip .u-meter { display: none; }
}
.section-head {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  margin: 1.8rem 0 0.8rem;
}
.section-head h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.section-head .hint { color: var(--faint); font-size: 0.78rem; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.05rem; box-shadow: var(--shadow-1);
}
.kpi .k-label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi .k-value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .k-note { display: block; font-size: 0.74rem; color: var(--faint); margin-top: 0.15rem; }
.kpi.hero { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-color: var(--navy-800); color: #fff; }
.kpi.hero .k-label { color: rgba(255, 255, 255, 0.6); }
.kpi.hero .k-note { color: rgba(255, 255, 255, 0.5); }
.kpi.hero .k-value.pos { color: #6fdc9c; }
.kpi.hero .k-value.neg { color: #f5a399; }
/* Overview only (McLane 2026-08-14): the LRP KPI cards wear the same navy
   slab as the PRF stat row so the Overview reads as one family. The LRP
   Positions tab keeps the light statement look — this is scoped, not global.
   The Net hero keeps a gold edge so the money card still pops. */
#panel-overview .kpi {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-800); color: #fff; box-shadow: var(--shadow-2);
}
#panel-overview .kpi .k-label { color: rgba(255, 255, 255, 0.6); }
#panel-overview .kpi .k-value { color: #fff; }
#panel-overview .kpi .k-note { color: rgba(255, 255, 255, 0.55); }
#panel-overview .kpi .k-value.pos { color: #6fdc9c; }
#panel-overview .kpi .k-value.neg { color: #f5a399; }
#panel-overview .kpi.hero { border-color: var(--gold-deep); }

/* Cards & tables */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 1.1rem 1.2rem;
}
.card + .card { margin-top: 1rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
thead th {
  background: var(--navy-800); color: #fff; text-align: left;
  padding: 0.6rem 0.7rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  position: sticky; top: 0;
}
thead th.num, td.num { text-align: right; }
tbody td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: #faf8f3; }
tbody tr.group-row td {
  background: var(--gold-soft); color: var(--gold-deep); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
tbody tr.group-row.month-row td {
  background: #f3f6fa; color: var(--navy-800);
  text-transform: none; letter-spacing: 0; font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: baseline; gap: 0.55rem;
}
tbody tr.group-row.clickable { cursor: pointer; }
tbody tr.group-row.clickable:hover td { background: #e9eff8; }
.g-chev { color: var(--gold); font-size: 0.7rem; width: 0.9em; }
.g-stats { margin-left: auto; color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
tr.collapsed-row { display: none !important; }
thead th.has-help { cursor: help; text-decoration: underline dotted rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.warn { color: var(--gold-deep); cursor: help; }
tfoot td { padding: 0.65rem 0.7rem; font-weight: 700; background: #f2efe7; border-top: 2px solid var(--line-2); }
.status-chip {
  display: inline-block; border-radius: 999px; padding: 0.13rem 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
}
.status-open { background: var(--blue-soft); color: var(--blue); }
.status-settled { background: #eceae3; color: var(--muted); }
.status-paid { background: var(--green-soft); color: var(--green-deep); }
.status-est { background: var(--gold-soft); color: var(--gold-deep); }

/* PRF interval statuses (match estimator dashboard) */
.iv-final { background: #c6f6d5; color: #1c4532; }
.iv-estimated { background: #fefcbf; color: #5c4a06; }
.iv-live { background: #feebc8; color: #7b341e; }
.iv-none { background: #f1efe8; color: var(--faint); }

/* Coverage bullet bars */
.bullet-list { display: grid; gap: 0.55rem; }
.bullet {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr minmax(150px, auto);
  gap: 0.9rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.65rem 0.9rem; box-shadow: var(--shadow-1);
}
.bullet .b-meta .b-name { font-weight: 600; font-size: 0.85rem; }
.bullet .b-meta .b-sub { font-size: 0.72rem; color: var(--muted); }
.bullet .b-track { position: relative; height: 26px; background: #eee9dd; border-radius: 6px; overflow: visible; }
.bullet .b-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: linear-gradient(90deg, #c9d7ea, #9db8da); }
.bullet .b-cov {
  position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--gold);
  border-radius: 2px; box-shadow: 0 0 0 1px #fff;
}
.bullet .b-mkt { position: absolute; top: 3px; bottom: 3px; width: 3px; background: var(--navy-800); border-radius: 2px; }
.bullet .b-read { text-align: right; font-size: 0.78rem; }
.bullet .b-read strong { font-size: 0.9rem; }

/* Scenario slider */
.scenario {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid #e4d3ac; border-radius: var(--radius);
  padding: 0.8rem 1.1rem; margin-top: 1rem;
}
.scenario label { font-size: 0.8rem; font-weight: 600; color: var(--gold-deep); }
.scenario input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--gold); }
.scenario .scen-read { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; min-width: 90px; }
.scen-prices { display: flex; gap: 0.5rem; flex-wrap: wrap; width: 100%; margin-top: 0.15rem; }
.scen-px {
  font-family: var(--font-mono); font-size: 0.78rem; font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid #e8d6a8; border-radius: 6px; padding: 0.28rem 0.65rem;
}
.scen-px .arrow { color: var(--gold-deep); }
.scenario button {
  border: 1px solid var(--gold); color: var(--gold-deep); background: #fff;
  border-radius: 8px; padding: 0.3rem 0.8rem; font-size: 0.75rem; cursor: pointer;
}

/* Quotes + calculator */
.quotes-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
.toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.toggle button {
  border: none; background: #fff; padding: 0.42rem 1.1rem; font-size: 0.82rem;
  font-weight: 600; color: var(--muted); cursor: pointer;
}
.toggle button.active { background: var(--navy-800); color: #fff; }
.calc .field { margin-bottom: 0.75rem; }
.calc label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.calc select, .calc input[type="number"] {
  width: 100%; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line-2); border-radius: 8px;
  font-size: 0.92rem; background: #fff; color: var(--ink); outline: none;
}
.calc select:focus, .calc input:focus { border-color: var(--gold); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.calc-out { margin-top: 1rem; border-top: 2px solid var(--line); padding-top: 0.9rem; display: grid; gap: 0.45rem; }
.calc-out .row { display: flex; justify-content: space-between; font-size: 0.86rem; }
.calc-out .row strong { font-variant-numeric: tabular-nums; }
.calc-out .row.big { font-size: 1rem; padding-top: 0.4rem; border-top: 1px dashed var(--line-2); }
.calc-out .row.big strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-800); }

/* ---- LRP Daily Quotes: v2 sheet (mirrors Max's daily quote PDF, EastCo-styled) */
.q2-masthead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: var(--navy-800); color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.7rem 1rem; border-bottom: 3px solid var(--gold);
}
.q2-mast-title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; text-transform: uppercase; }
.q2-mast-sub { font-size: 0.72rem; color: #cdd9e6; margin-top: 0.15rem; }
.q2-mast-asof {
  flex: none; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.q2-update { font-size: 0.74rem; color: var(--muted); margin: 0.5rem 0 0.7rem; }
/* Sheet as-of line under the page title (2026-09-29): same shape as the Market
   Update masthead's, on the light theme. .is-stale swaps the gold for amber. */
.sheet-asof { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; margin: 0.55rem 0 0.1rem; }
.sheet-asof-label { font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.sheet-asof-date { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--navy-800); }
.sheet-asof-note { font-size: 0.84rem; color: var(--muted); }
.sheet-asof.is-stale .sheet-asof-label { color: #b3541e; }
.sheet-stale { margin-top: 0.7rem; border-color: #e8c9a0; background: #fdf6ec; color: #7a4a1c; }
/* join the masthead to the first table below it */
.q2-sheet > .table-wrap:first-of-type { border-top-left-radius: 0; border-top-right-radius: 0; border-top: none; }
.q2-subhead {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--navy-800);
  margin: 1.3rem 0 0.5rem; padding-top: 0.9rem; border-top: 2px solid var(--line-2);
}
.q2-foot { margin-top: 0.4rem; }

/* Feeder price adjustments (PAF) — the block the feeder sheet prints above its
   table, kept compact so it reads as a reference card, not a second dataset. */
.q2-paf {
  border: 1.5px solid var(--line-2); border-left: 3px solid var(--gold);
  border-radius: 8px; background: #fdfbf6; padding: 0.6rem 0.75rem; margin-bottom: 0.8rem;
}
.q2-paf-head { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.q2-paf-title { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--navy-800); }
.q2-paf-note { font-size: 0.7rem; color: var(--muted); }
.q2-pafwrap { overflow-x: auto; }
/* these two tables sit inside the global `thead th` / `tbody td` rules (navy
   sticky header, bordered cells), so each override is deliberate, not padding */
.q2-paftable { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.q2-paftable thead th {
  position: static; background: transparent;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 0.2rem 0.5rem 0.3rem; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.q2-paftable thead th.num, .q2-paftable td.num { text-align: right; }
.q2-paftable tbody td {
  padding: 0.28rem 0.5rem; white-space: nowrap; font-variant-numeric: tabular-nums;
  border-bottom: none;
}
.q2-paftable tbody tr:hover { background: transparent; }
.q2-paftable tbody tr + tr td { border-top: 1px solid var(--line); }
.q2-paf-wt { font-weight: 700; color: var(--ink); }

/* Strike-ladder drill-down — the Futures expand idiom in this tab's light
   family: gold caret, gold spine on the open row, one open at a time. */
.q2-row { cursor: pointer; }
.q2-row:hover td { background: rgba(214, 150, 0, 0.06); }
.q2-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink); font-weight: 700; text-align: left;
  font-variant-numeric: tabular-nums;
}
.q2-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.q2-caret::before {
  content: "▸"; display: inline-block; color: var(--gold);
  font-size: 0.72rem; transition: transform 0.18s ease;
}
.q2-row.open .q2-caret::before { transform: rotate(90deg); }
.q2-row.open td { background: rgba(214, 150, 0, 0.10); border-bottom-color: transparent; }
.q2-row.open td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.q2-lad-row > td {
  padding: 0 0.7rem 0.8rem; white-space: normal;
  background: rgba(214, 150, 0, 0.045); box-shadow: inset 3px 0 0 var(--gold);
}
.q2-lad-head { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; padding: 0.55rem 0.2rem 0.45rem; }
.q2-lad-title { font-family: var(--font-display); font-weight: 700; font-size: 0.84rem; color: var(--gold-deep); }
.q2-lad-note { font-size: 0.7rem; color: var(--muted); }
.q2-ladwrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.q2-ladtable { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.q2-ladtable thead th {
  position: static; /* no sticky inside the drill-down */
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); background: #f7f4ec;
  padding: 0.3rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.q2-ladtable thead th.num, .q2-ladtable tbody td.num { text-align: right; }
.q2-ladtable tbody td {
  padding: 0.3rem 0.7rem; white-space: nowrap; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
}
.q2-ladtable tbody tr:last-child td { border-bottom: none; }
.q2-ladtable tbody tr:hover td { background: #fbf8ef; }
.q2-ladtable tbody tr.q2-rung-top td { background: #fdf6e4; font-weight: 700; }
.q2-rung-tag {
  display: inline-block; margin-left: 0.45rem;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(214, 150, 0, 0.14);
  border: 1px solid rgba(214, 150, 0, 0.35); border-radius: 999px;
  padding: 0.06rem 0.4rem; white-space: nowrap;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
@media (max-width: 720px) {
  /* the drill-down is a full-width panel, not a stacked label/value pair */
  table.responsive tbody tr.q2-lad-row { padding: 0; }
  table.responsive tbody tr.q2-lad-row > td { display: block; text-align: left; padding: 0 0.5rem 0.7rem; }
  table.responsive tbody tr.q2-lad-row > td::before { content: none; }
  /* The ladder is a REAL table nested inside the responsive one, and the
     card-stacking rules are descendant selectors that reach it. Opt it back
     out — the `table.responsive` prefix is what outranks them. */
  table.responsive .q2-ladtable thead { display: table-header-group; }
  table.responsive .q2-ladtable tbody { display: table-row-group; }
  table.responsive .q2-ladtable tbody tr { display: table-row; border-bottom: none; padding: 0; }
  table.responsive .q2-ladtable tbody td {
    display: table-cell; text-align: right; white-space: nowrap;
    padding: 0.3rem 0.7rem; border-bottom: 1px solid var(--line);
  }
  table.responsive .q2-ladtable tbody td::before { content: none; }
}

/* Charts */
.chart-card svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--muted); margin-top: 0.5rem; }
.legend .key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 0.4rem; vertical-align: middle; }
.legend .key-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--gold);
  margin-right: 0.4rem; vertical-align: middle;
}
.legend .key-diamond {
  display: inline-block; width: 9px; height: 9px; margin-right: 0.5rem;
  vertical-align: middle; transform: rotate(45deg); background: var(--muted);
}
.legend .key-diamond.hollow { background: #fff; border: 1.5px solid var(--gold); }

/* Booking charts: hover tooltip over the SVG */
.chart-box { position: relative; }
.book-dot, .end-mark, .ahead-mark, .book-overflow { cursor: pointer; }
.book-dot:hover circle:nth-of-type(2) { r: 7; }
.end-mark:hover path, .ahead-mark:hover path, .book-overflow:hover path { stroke-width: 2.4; }
.book-overflow:hover line { opacity: 0.6; }
.chart-tip {
  position: absolute; z-index: 6; opacity: 0; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--navy-800); color: #fff; border-radius: 8px;
  padding: 0.55rem 0.8rem; font-size: 0.76rem; line-height: 1.5;
  width: max-content; max-width: 300px; box-shadow: var(--shadow-2);
  transition: opacity 0.12s ease;
}
.chart-tip.below { transform: translate(-50%, 16px); }
.chart-tip.show { opacity: 1; }
.chart-tip .tip-head { font-weight: 700; color: var(--gold); margin-bottom: 0.25rem; }
.chart-tip .tip-sce + .tip-sce { margin-top: 0.45rem; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 0.45rem; }

/* Overview product sections */
.section-head.product-sec { margin-top: 2.4rem; align-items: center; }
.section-head.product-sec.divided { border-top: 2px solid var(--line-2); padding-top: 1.8rem; margin-top: 2.8rem; }
.section-head.product-sec h3 { font-size: 1.18rem; }
.section-head .product-ico { width: 30px; height: 30px; flex: none; }
.section-head .view-btn { margin-left: auto; }

/* PRF interval matrix (mirrors the estimate PDF) */
.prf-matrix-card { margin-top: 0.9rem; }
.matrix-title { font-weight: 700; font-size: 0.86rem; color: var(--navy-800); margin-bottom: 0.5rem; }
.matrix-wrap { box-shadow: none; border-radius: 8px; }
table.prf-matrix { font-size: 0.76rem; border-collapse: collapse; width: 100%; }
table.prf-matrix td { padding: 0.34rem 0.5rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.prf-matrix .row-label { text-align: left; font-weight: 600; background: #f2efe7; min-width: 132px; }
table.prf-matrix .m-entity td { font-weight: 700; }
table.prf-matrix .m-county .row-label { font-weight: 500; padding-left: 1.1rem; background: #f7f5ef; }
table.prf-matrix .total-col { background: #eceae3; font-weight: 700; }
table.prf-matrix .m-status td { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
table.prf-matrix .m-sub td { color: var(--muted); font-size: 0.68rem; border-bottom: none; }
table.prf-matrix .m-ivnames td { background: var(--navy-800); color: #fff; font-weight: 700; font-size: 0.7rem; }
table.prf-matrix .m-prot td { background: var(--blue-soft); font-weight: 600; }
.iv-mixed { background: linear-gradient(90deg, #c6f6d5 50%, #fefcbf 50%); color: #1c4532; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.m-sub-lbl { font-size: 0.62rem; font-weight: 500; opacity: 0.8; }

/* ===================== PRF tab redesign (coverage strip / hero / matrix) =====================
   Skins the standalone PRF Estimator layout with EastCo brand tokens only.
   All classes are scoped under .prf-* / .mx-* so shared classes are untouched;
   tile status skins are two-class overrides of the existing .iv-* palette. */
.prf-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin: 0.4rem 0 0.2rem; }
.prf-hero-l { min-width: 0; }
.prf-hero-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
.prf-hero-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.prf-hero-r { text-align: right; min-width: 240px; }
.prf-hero-lbl { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.prf-hero-net { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.prf-hero-net.pos { color: var(--green-deep); }
.prf-hero-net.neg { color: var(--red); }
.prf-hero-rec { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.prf-meter-track { position: relative; height: 6px; border-radius: 4px; background: var(--line); width: 220px; margin: 0.5rem 0 0 auto; overflow: visible; }
.prf-meter-fill { height: 100%; border-radius: 4px; }
.prf-meter-fill.pos { background: var(--green); }
.prf-meter-fill.neg { background: var(--red); }
.prf-meter-tick { position: absolute; top: -2px; left: 50%; width: 1.5px; height: 10px; background: var(--muted); border-radius: 1px; }
.prf-meter-cap { font-size: 0.62rem; color: var(--faint); margin-top: 0.35rem; }

.prf-callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 0.85rem 1.05rem; margin: 1.2rem 0 1.3rem; box-shadow: var(--shadow-1); }
.prf-callout-lbl { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-deep); margin-bottom: 0.4rem; }
.prf-callout-body { font-size: 0.95rem; line-height: 1.55; color: var(--ink); }

.prf-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1.5rem; align-items: start; }
.prf-stat { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border: 1px solid var(--navy-800); border-radius: var(--radius); padding: 0.8rem 0.95rem; box-shadow: var(--shadow-2); }
.prf-stat .lbl { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255, 255, 255, 0.6); }
.prf-stat .val { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-top: 0.25rem; color: #fff; }
.prf-stat .val.fin { color: #6fdc9c; }
.prf-stat .val.live { color: #f0c674; }
.prf-stat .sub { display: block; font-size: 0.62rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); margin-top: 0.2rem; }
.prf-stat .sub.pos { color: #6fdc9c; }
.prf-stat .sub.neg { color: #f5a399; }

.prf-strip-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.prf-strip-head { display: flex; align-items: baseline; gap: 0.6rem; }
.prf-strip-head h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.prf-strip-head .hint { color: var(--faint); font-size: 0.78rem; }
.prf-legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.prf-leg-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.prf-leg-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.prf-leg-dot.iv-final { background: var(--green); }
.prf-leg-dot.iv-estimated { background: var(--gold-deep); }
.prf-leg-dot.iv-live { background: #b3541e; }
.prf-leg-dot.prf-alert { background: var(--red); }

/* Container-aware tile strip: tiles wrap to whatever column they live in
   (the rail-adjacent PRF main column is narrower than the viewport), so the
   strip can never overflow under the events rail. */
.prf-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0.4rem; }
.prf-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: 9px; padding: 0.5rem 0.55rem 0.55rem; min-height: 104px; display: flex; flex-direction: column; }
/* Expected-release caption (ask #2) — tiny quiet uppercase micro-text riding the
   top border. Ellipsis-guarded so it never wraps the tile taller. */
.prf-tile .t-rel { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.055em; color: var(--faint); line-height: 1; margin: -0.06rem 0 0.28rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prf-tile .t-rel-done { color: var(--green-deep); }
.prf-tile .t-rel-done::before { content: "\2713\00a0"; }
.prf-tile .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem; }
.prf-tile .t-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
.prf-tile .t-prot { font-size: 0.56rem; font-weight: 700; opacity: 0.55; }
.prf-tile .t-dollar { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.3rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prf-tile .t-dollar.t-nocov { font-size: 0.72rem; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.prf-tile .t-rain { font-size: 0.64rem; font-weight: 700; color: var(--ink); margin-top: 0.32rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prf-tile .t-meta { font-size: 0.58rem; font-weight: 600; color: var(--muted); margin-top: auto; padding-top: 0.3rem; }
.prf-tile.is-max { box-shadow: 0 0 0 2px rgba(29, 58, 14, 0.34); } /* var(--prf-green) ring */
.prf-tile.iv-final { border-top-color: var(--green); background: var(--green-soft); }
.prf-tile.iv-estimated { border-top-color: var(--gold); background: var(--gold-soft); }
.prf-tile.iv-live { border-top-color: #b3541e; background: #fdeede; }
.prf-tile.prf-alert { border-top-color: var(--red); background: var(--red-soft); }
/* Policy history (2026-09-29): year-end statement table + entity/county matrix on the PRF tab */
.prf-hist-total td { font-weight: 700; background: #dfe9f3; color: #073763; border-top: 2px solid #9db4ca; }
.prf-hist-sub td { font-weight: 700; background: #f7f4ec; border-top: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); }
.prf-hist-county td:first-child { padding-left: 1.6rem; color: var(--muted); }
.prf-cur-line { margin: -0.35rem 0 1rem; font-size: 0.82rem; font-style: italic; color: #7a6a55; line-height: 1.5; }
.prf-cur-line .prf-cur-tag { font-style: normal; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b3541e; margin-right: 0.5rem; }
.prf-hist-blank { color: var(--faint); }
.outlook-map.is-stale figcaption { color: #b3541e; font-style: italic; }
.prf-tile.prf-alert .t-dollar { color: var(--red); }
.prf-tile.prf-pending, .prf-tile.iv-none { border-top-color: var(--line-2); background: #f4f2ec; }
.prf-tile.prf-pending .t-dollar, .prf-tile.iv-none .t-dollar { color: var(--faint); }

/* September-bill divider (ask #3a). Baseline = wrapped/narrow mode: the Jun–Jul
   tile shows a small gold badge; the vertical rule is hidden. The wide single-row
   media query below flips these (rule shown, badge hidden). */
.prf-tile .bc-rule { display: none; }
.prf-tile .bc-badge {
  display: block; align-self: flex-start; margin-top: 0.34rem;
  font-size: 0.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--gold);
  border-radius: 4px; padding: 0.1rem 0.34rem; line-height: 1.12;
}

/* September-bill note card (ask #3b) — compact gold-left callout, smaller than
   .prf-callout, sitting under the coverage strip on the PRF tab only. */
.prf-billnote { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 0.6rem 0.85rem; margin: 0.4rem 0 0.2rem; box-shadow: var(--shadow-1); }
.prf-billnote-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold-deep); margin-bottom: 0.28rem; }
.prf-billnote-body { font-size: 0.84rem; line-height: 1.5; color: var(--ink); }

.prf-ents { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); margin-top: 0.4rem; }
.prf-er { display: grid; align-items: center; padding: 0.6rem 1rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.prf-er .num { text-align: right; font-variant-numeric: tabular-nums; }
.prf-er.head { background: var(--navy-800); color: #fff; border-top: none; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.prf-er .e-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prf-er .num.fin { color: var(--green-deep); }
.prf-er .num.live { color: var(--gold-deep); font-weight: 700; }

.prf-mx-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 1.3rem 0 0.5rem; }
.prf-mx { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; overflow-x: auto; box-shadow: var(--shadow-1); }
.prf-mx-row { display: grid; gap: 0.25rem; align-items: stretch; min-width: 660px; }
.prf-mx-row + .prf-mx-row { margin-top: 0.3rem; }
.prf-mx-head .mx-h { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); text-align: center; align-self: center; }
.prf-mx .mx-name { font-size: 0.72rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.prf-mx .mx-name.all { font-weight: 800; }
.mx-chip { border-radius: 5px; padding: 0.25rem 0.3rem; min-height: 30px; display: flex; flex-direction: column; justify-content: center; gap: 1px; overflow: hidden; border-left: 2px solid var(--line-2); background: #f4f2ec; }
.mx-chip.iv-final { background: var(--green-soft); border-left-color: var(--green); }
.mx-chip.iv-estimated { background: var(--gold-soft); border-left-color: var(--gold-deep); }
.mx-chip.iv-live { background: #fdeede; border-left-color: #b3541e; }
.mx-chip.prf-alert { background: var(--red-soft); border-left-color: var(--red); }
.mx-chip.prf-pending, .mx-chip.iv-none { background: #f4f2ec; border-left-color: var(--line-2); }
.mx-chip .mx-d { font-size: 0.66rem; font-weight: 700; line-height: 1.05; color: var(--ink); }
.mx-chip.prf-alert .mx-d { color: var(--red); }
.mx-chip .mx-i { font-size: 0.5rem; font-weight: 600; line-height: 1; color: var(--muted); }

/* "Still Live by state" sub-lines inside the dark Still Live stat card (ask #1,
   McLane 2026-07-18). Interval label + amount, then small gold-on-dark chips for
   the state split (multi-state) or one code chip (single state). */
.prf-live-det { margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 0.4rem; }
.prf-live-iv { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.prf-live-iv .li-lbl { font-size: 0.64rem; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.prf-live-iv .li-amt { font-size: 0.7rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.prf-live-chips { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.12rem; }
.prf-live-chips .li-chip { font-size: 0.58rem; font-weight: 700; color: #f0c674; background: rgba(240, 198, 116, 0.14); border: 1px solid rgba(240, 198, 116, 0.3); border-radius: 4px; padding: 0.06rem 0.34rem; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* PRF tab two-column split: main content left, a slim Big Rainfall Events rail
   right (McLane 2026-07-18 — the full-width event blocks felt "too important").
   The rail runs tall/sticky alongside the main column and drops BELOW it under
   900px. The Rain Outlook closer stays full-width beneath the split. */
.prf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.prf-main { min-width: 0; }
.prf-rail { position: sticky; top: 1rem; align-self: start; min-width: 0; }

/* Rail chrome — a compact header/notes/foot, not the loud full-width section head */
.prf-rail-head { margin-bottom: 0.65rem; }
.prf-rail-title { font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.prf-rail-sub { font-size: 0.66rem; color: var(--faint); font-weight: 600; margin-top: 0.15rem; line-height: 1.4; }
.prf-rail-note { font-size: 0.66rem; color: var(--gold-deep); font-weight: 600; margin: -0.15rem 0 0.6rem; line-height: 1.4; }
.prf-rail-foot { font-size: 0.62rem; color: var(--faint); line-height: 1.45; margin-top: 0.7rem; }

/* Big Rainfall Events — per-interval gauge-day erosion ledgers (PRF tab only).
   Compact, stacked rail cards; status-colored left edge = the coverage palette. */
.prf-ev-grid { display: flex; flex-direction: column; gap: 0.55rem; }
.prf-ev-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 8px; padding: 0.5rem 0.6rem; box-shadow: var(--shadow-1); }
.prf-ev-card.ev-final { border-left-color: var(--green); }
.prf-ev-card.ev-estimated { border-left-color: var(--gold); }
.prf-ev-card.ev-live { border-left-color: #b3541e; }
.prf-ev-card.ev-alert { border-left-color: var(--red); }
.prf-ev-card .ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; }
.prf-ev-card .ev-iv { font-size: 0.78rem; font-weight: 800; }
.prf-ev-card .ev-max { font-size: 0.6rem; color: var(--faint); font-weight: 700; white-space: nowrap; }
.prf-ev-card .ev-sub { display: block; font-size: 0.6rem; color: var(--muted); font-weight: 600; margin: 0.1rem 0 0.35rem; }
.prf-ev-card .ev-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; font-size: 0.68rem; padding: 0.16rem 0 0.08rem; }
.prf-ev-card .ev-when { color: var(--muted); white-space: nowrap; }
.prf-ev-card .ev-money { color: var(--ink); font-weight: 600; white-space: nowrap; }
.prf-ev-card .ev-cost { color: var(--red); font-weight: 800; }
/* Per-state split line for multi-state growers (ask #3) — small red state chips */
.prf-ev-card .ev-states { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.1rem 0 0.22rem; }
.prf-ev-card .ev-st { font-size: 0.57rem; font-weight: 700; color: var(--red); background: var(--red-soft); border: 1px solid #eecfc9; border-radius: 4px; padding: 0.04rem 0.3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prf-ev-card .ev-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; margin-top: 0.35rem; padding-top: 0.3rem; border-top: 1px solid var(--line); font-size: 0.64rem; color: var(--faint); font-weight: 700; }
.prf-ev-card .ev-now.fin { color: var(--green-deep); }
.prf-ev-card .ev-now.est { color: var(--gold-deep); }
.prf-ev-card .ev-now.live { color: #b3541e; }
.prf-ev-card .ev-now.alert { color: var(--red); }

/* Rail drops below the main content on narrower screens (~900px) */
@media (max-width: 900px) {
  .prf-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .prf-rail { position: static; top: auto; }
  /* Once full-width, fan the event cards back into a responsive multi-column grid */
  .prf-ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem; }
}

@media (max-width: 820px) {
  .prf-stat-row { grid-template-columns: repeat(2, 1fr); align-items: start; }
  /* .prf-strip needs no override here — auto-fit minmax adapts to any width */
  .prf-hero-r { min-width: 0; text-align: left; }
  .prf-meter-track { margin-left: 0; }
}

/* Wide monitors (ask #1, McLane reviews at ~1580px+): let the PRF two-column
   layout break out of the 1280px content column — same trick as .st5-bleed but
   capped so it can't sprawl on ultra-wide displays — and tighten the tile floor
   so all 11 coverage tiles sit in ONE row beside the (slimmed) events rail. The
   inset clears the page padding (2×1.5rem) plus a classic scrollbar so the page
   never gains a horizontal scrollbar. Chrome-only is fine per spec. */
@media (min-width: 1500px) {
  .prf-layout {
    --prf-bleed: min(calc(100vw - 4rem), 1560px);
    grid-template-columns: minmax(0, 1fr) 280px;
    width: max(100%, var(--prf-bleed));
    margin-left: min(0px, calc((100% - var(--prf-bleed)) / 2));
  }
  /* Tighter tile floor — tested to keep the "Cur x · Norm y" line on one line. */
  .prf-strip { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }

  /* Single-row mode: hide the wrapped-mode badge, show the vertical bill rule. */
  .prf-tile .bc-badge { display: none; }
  /* The rule extends UP into headroom above the tiles; labels sit horizontal
     at its top, flanking the line (McLane 2026-07-18: readable, not tiny). */
  .prf-strip:has(.prf-billcut) { margin-top: 1.6rem; }
  .prf-tile.prf-billcut { overflow: visible; }
  .prf-tile.prf-billcut .bc-rule {
    display: block; position: absolute; left: -0.22rem; top: -1.6rem; bottom: -0.08rem;
    width: 0; border-left: 1.6px dashed var(--gold-deep); pointer-events: none; z-index: 4;
  }
  .prf-tile.prf-billcut .bc-lab {
    position: absolute; top: 0.05rem; font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-deep);
    white-space: nowrap; line-height: 1;
  }
  .prf-tile.prf-billcut .bc-before { right: 0.45rem; }
  .prf-tile.prf-billcut .bc-after  { left: 0.45rem; }
}

/* Weekly LRP Summary Statement — faithful PDF reproduction, EastCo styled */
.stmt-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin: 1.6rem 0 0.9rem; padding: 0.7rem 1rem; border-radius: 8px;
  color: #fff; background: var(--navy-800);
  border-left: 6px solid var(--gold);
}
.stmt-section-head .ssh-label { letter-spacing: 0.01em; }
.stmt-section-head .ssh-meta { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.stmt-section-head .ssh-meta .pos { color: #6fdc9c; }
.stmt-section-head .ssh-meta .neg { color: #f5a399; }
/* Current = active/blue feel */
.stmt-section-head.current { background: var(--navy-800); border-left-color: var(--gold); }
/* Expired = clearly a new, settled zone: extra separation + muted slate, with
   a labeled divider line above so the switch is unmistakable */
.stmt-section-head.expired {
  background: #5a6470; border-left-color: #9aa1ad;
  margin-top: 3rem; position: relative;
}
.stmt-section-head.expired::before {
  content: "↑ current · settled ↓"; position: absolute; top: -1.7rem; left: 0; right: 0;
  text-align: center; font-family: var(--font-ui); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.stmt-section-head.expired::after {
  content: ""; position: absolute; top: -2.3rem; left: 0; right: 0; height: 1px;
  background: var(--line-2);
}
.stmt-section-head.summary { background: var(--gold-deep); border-left-color: var(--navy-800); margin-top: 2.4rem; }

/* Status band content — the navy/slate banner + commodity headers carry the
   zone identity, so the panel itself stays light (no box-in-box) */
.stmt-status-panel { padding: 0 0 0.4rem; }

/* Commodity sub-header inside a status band — Feeder (grass green) vs Fed (feedlot amber) */
.stmt-comm-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  margin: 1rem 0 0.6rem; padding: 0.4rem 0.7rem 0.4rem 0.85rem;
  background: var(--card); border-radius: 7px; border-left: 5px solid var(--muted);
  box-shadow: var(--shadow-1);
}
.stmt-comm-head:first-child { margin-top: 0.5rem; }
.stmt-comm-head .sch-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.stmt-comm-head .sch-meta { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stmt-comm-head.feeder { border-left-color: #2f855a; }
.stmt-comm-head.feeder .sch-label { color: #276749; }
.stmt-comm-head.fed { border-left-color: #b7791f; }
.stmt-comm-head.fed .sch-label { color: #975a16; }
.stmt-group { margin-bottom: 0.9rem; }
.stmt-grp-bar {
  display: flex; align-items: baseline; gap: 0.7rem; justify-content: space-between; flex-wrap: wrap;
  background: #f4f1ea; border-radius: 6px 6px 0 0;
  padding: 0.36rem 0.75rem; border-left: 4px solid var(--line-2);
}
.stmt-grp-bar.feeder { border-left-color: #2f855a; }
.stmt-grp-bar.fed { border-left-color: #b7791f; }
.stmt-grp-title { font-weight: 700; font-size: 0.84rem; color: var(--navy-800); }
.stmt-grp-meta { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stmt-grp-meta .pos { color: var(--green); }
.stmt-grp-meta .neg { color: var(--red); }
.stmt-group .table-wrap { border-radius: 0 0 6px 6px; box-shadow: var(--shadow-1); }
table.stmt-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
table.stmt-table thead th {
  background: var(--gold-soft); color: var(--gold-deep);
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
  padding: 0.42rem 0.4rem; text-align: right; white-space: nowrap; position: static;
  border-right: 1px solid #e1d9c5;
}
table.stmt-table thead th:last-child { border-right: none; }
table.stmt-table thead th:nth-child(1), table.stmt-table thead th:nth-child(4) { text-align: left; }
table.stmt-table tbody td {
  padding: 0.44rem 0.4rem; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); white-space: nowrap;
}
table.stmt-table tbody td:last-child { border-right: none; }
table.stmt-table tbody tr:hover { background: #faf8f3; }
table.stmt-table td.stmt-final { color: var(--red); font-weight: 700; }
table.stmt-table tr.stmt-sub td { font-weight: 700; background: #f2efe7; border-top: 1.5px solid var(--line-2); border-bottom: none; }

/* ===== Weekly LRP Summary Statement — v6 emailed format (.st5-*) ===== */
/* The `.st5-*` prefix is the STATEMENT NAMESPACE, kept stable since the v5 round
   so nothing half-migrates; these rules render the v6 format shipped 08/16/2026
   (reference/statement-v6-shipped/). Tokens scoped to the statement block;
   Calibri-first to match the emailed PDF. */
.st5-statement {
  --st5-navy: #073763; --st5-group: #292420; --st5-expired: #b02a1a;
  --st5-green: #0f8a3d; --st5-red: #b02a1a; --st5-legend: #6b6b6b;
  --st5-est: #e4ebf4; --st5-sub: #dce4ec; --st5-header: #b0b0b0;
  --st5-cytotal: #c7d3de; --st5-zebra: #eef2f6; --st5-line: #ccd3d8; --st5-gold: #d69600;
  --st5-raw: #333; --st5-faint: #9a9a9a;
  font-family: Calibri, "Work Sans", Arial, sans-serif; color: var(--ink);
}
.st5-statement .st5-pos { color: var(--st5-green); font-weight: 600; }
.st5-statement .st5-neg { color: var(--st5-red); }

/* Full-bleed so the wide statement escapes the 1280px column. */
.st5-bleed { width: max(100%, calc(100vw - 3.25rem)); margin-left: min(0px, calc((100% - (100vw - 3.25rem)) / 2)); }

/* Navy header band + 2px gold rule. */
.st5-band {
  background: #073763; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 16px 22px; border-bottom: 2px solid var(--st5-gold);
}
.st5-logo { height: 46px; width: auto; display: block; }
.st5-band-right { text-align: right; }
.st5-client { color: #fff; font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.st5-band-sub { color: rgba(255, 255, 255, 0.9); font-size: 13px; margin-top: 2px; }

/* Section headings (plain text) + legend line. */
.st5-sec-head { font-weight: 700; font-size: 17px; margin: 1.5rem 0 0.2rem; }
.st5-sec-head.st5-current, .st5-sec-head.st5-summary { color: var(--st5-navy); }
/* The shipped statement prints "Monthly Basis" charcoal, not navy. */
.st5-sec-head.st5-basis-head { color: #292420; }
.st5-sec-head.st5-expired { color: var(--st5-expired); }
.st5-legend { font-style: italic; color: var(--st5-legend); font-size: 10px; margin-bottom: 0.7rem; }

/* Group: bold commodity(+month) head, navy roll-up line (values bold navy). */
.st5-group { margin-bottom: 1.1rem; }
.st5-gh { color: var(--st5-group); font-weight: 700; font-size: 14px; margin-bottom: 1px; }
.st5-roll { color: var(--st5-navy); font-size: 11.5px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.st5-roll b { color: var(--st5-navy); font-weight: 700; }
.st5-dash { color: var(--st5-navy); margin: 0 0.4rem; opacity: 0.7; }

/* Detail table (18 base + optional 4 hedge cols), fixed layout. */
.st5-wrap { overflow-x: auto; border: none; border-radius: 0; box-shadow: none; background: transparent; }
table.st5-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; }
/* Hedge on = 23 columns. Sized so the whole block FITS the full-bleed width at
   1366px (no scroll at all, inside the wrap or on the page); narrower viewports
   scroll it inside .st5-wrap rather than crushing the cells. Measured: nothing
   overflows its cell at this width. */
table.st5-table--hedge { min-width: 1300px; }
.st5-statement table.st5-table thead th {
  position: static; background: var(--st5-header); color: #111; text-align: center;
  font-weight: 700; font-size: 9.5px; line-height: 1.2; letter-spacing: 0; text-transform: none;
  padding: 4px 3px; border: 1px solid #a5abb4; white-space: normal; vertical-align: middle;
}
.st5-statement table.st5-table thead th.st5-th-it { font-style: italic; }
.st5-statement table.st5-table tbody td {
  border: 1px solid var(--st5-line); padding: 3px 3px; text-align: center;
  vertical-align: top; white-space: nowrap; background: #fff;
}
.st5-statement table.st5-table tbody td.st5-type,
.st5-statement table.st5-table tbody td.st5-county { white-space: normal; }
.st5-statement table.st5-table tbody td.st5-type { color: var(--st5-navy); font-weight: 600; }
.st5-statement table.st5-table tbody td.st5-paf { color: var(--st5-navy); font-weight: 700; }
/* Alignment, as the shipped v6 PDF prints it: the identity columns (crop year →
   coverage price) stay centered, County reads LEFT, Premium (CWT) is bold, and
   every money / hedge figure is flush RIGHT so the digits stack in a column. */
.st5-statement table.st5-table tbody td.st5-county { text-align: left; padding-left: 5px; }
.st5-statement table.st5-table tbody td.st5-prem { font-weight: 700; }
.st5-statement table.st5-table tbody td.num { text-align: right; padding-right: 5px; }
.st5-statement table.st5-table tbody td.est { background: var(--st5-est); }
/* Fixed-height 3-row price cell — big numbers share a baseline across columns/rows.
   Top line: the raw 100% value over Coverage Price, near-black like the PDF —
   EXCEPT the Estimated Price basis math (.st5-math), which prints light gray.
   Bottom line: the CME contract tag (light gray) or a settlement tag. */
.st5-cell3 { display: grid; grid-template-rows: 11px 15px 11px; align-items: center; justify-items: center; }
.st5-cell3 span { line-height: 1; white-space: nowrap; overflow: hidden; max-width: 100%; }
.st5-cell3 .st5-c3t { color: var(--st5-raw); font-size: 9px; }
.st5-cell3 .st5-c3t .st5-math { color: var(--st5-faint); font-size: inherit; }
.st5-cell3 .st5-main { color: var(--st5-navy); font-weight: 700; font-size: 11.5px; }
.st5-cell3 .st5-c3b { color: var(--st5-faint); font-size: 8.5px; }
/* Settlement tag under an Actual Settlement Value: a ✓ tag reads as final
   (near-black), an assumed value stays gray so it can't be mistaken for one. */
.st5-tag--final { color: #1b1b1b; font-size: 9px; }
.st5-tag--assumed { color: var(--st5-faint); font-size: 9px; }
/* Group subtotal: solid fill + 2px gold top rule (wins over the est tint). */
.st5-statement table.st5-table tr.st5-sub td { font-weight: 700; background: var(--st5-sub); border-top: 2px solid var(--st5-gold); }
/* Visual gap before the hedge block: one borderless white spacer column, so the
   fills AND the gold subtotal rule break there exactly as the PDF prints them.
   Placed after the subtotal rule — equal specificity, source order decides. */
.st5-statement table.st5-table th.st5-hgap,
.st5-statement table.st5-table tr td.st5-hgap { background: #fff; border: 0; }

/* Summary by Month — narrower, centered, zebra rows + total rows. */
.st5-sum-title { display: flex; align-items: baseline; gap: 0.6rem; margin: 1rem 0 0.35rem; flex-wrap: wrap; }
.st5-sum-title strong { color: var(--st5-group); font-weight: 700; font-size: 14px; }
.st5-sum-sub { color: var(--st5-navy); font-size: 12px; }
/* min-width capped to the viewport so phones never get page-level sideways
   scroll — below 460px the TABLE keeps its shape and scrolls inside the wrap. */
.st5-sum-wrap { overflow-x: auto; border: none; border-radius: 0; box-shadow: none; background: transparent; width: 55%; min-width: min(460px, 100%); margin: 0 auto; }
table.st5-summary { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .st5-sum-wrap { width: 100%; } }
.st5-statement table.st5-summary thead th {
  position: static; background: var(--st5-header); color: #111; text-align: center;
  font-weight: 700; font-size: 9.5px; line-height: 1.2; letter-spacing: 0; text-transform: none;
  padding: 5px 6px; border: 1px solid #a5abb4; white-space: normal;
}
.st5-statement table.st5-summary tbody td { border: 1px solid var(--st5-line); padding: 4px 8px; text-align: center; white-space: nowrap; background: #fff; }
/* Same alignment rule as the detail tables: label columns (Month, Status, and a
   total's label) read LEFT in normal weight, figures flush RIGHT. */
.st5-statement table.st5-summary tbody td.st5-mon,
.st5-statement table.st5-summary tbody td.st5-status,
.st5-statement table.st5-summary tbody td.st5-tlabel { text-align: left; }
.st5-statement table.st5-summary tbody td.num { text-align: right; }
.st5-statement table.st5-summary tbody tr.st5-zebra td { background: var(--st5-zebra); }
/* The shipped statement draws the single gold rule only above the Crop Year
   total — Expired/Current totals get the tint + weight without the rule. */
.st5-statement table.st5-summary tbody tr.st5-stot td { font-weight: 700; background: var(--st5-sub); }
.st5-statement table.st5-summary tbody tr.st5-cytot td { border-top: 2px solid var(--st5-gold); }
.st5-statement table.st5-summary tbody tr.st5-cytot td { background: var(--st5-cytotal); }

/* Expired-section preamble: 60-day billing window, then the settlement-tag
   legend indented under it (the legend explains the ✓ tags in the table). */
.st5-bill { margin: -0.2rem 0 0.9rem; color: var(--ink); }
.st5-bill-h { font-weight: 700; font-size: 10.5px; margin-bottom: 2px; }
.st5-bill-list { margin: 0; padding-left: 1.15rem; list-style: disc; font-size: 10px; line-height: 1.5; }
.st5-bill-list li { margin: 0; }
.st5-setleg { margin: 6px 0 0 1.55rem; font-size: 10px; line-height: 1.6; }
.st5-sl { white-space: normal; }

/* Monthly Basis — the same narrow centered treatment as Summary by Month, a
   notch narrower for its four columns. */
.st5-basis-wrap { overflow-x: auto; border: none; border-radius: 0; box-shadow: none; background: transparent; width: 34%; min-width: min(400px, 100%); margin: 0 auto; }
table.st5-basis { min-width: 340px; }
@media (max-width: 700px) { .st5-basis-wrap { width: 100%; } }
.st5-basis-note { font-style: italic; color: var(--muted); font-size: 10.5px; margin: 0.6rem 0 0; line-height: 1.5; }
.st5-basis-src { font-style: italic; color: var(--faint); font-size: 10.5px; margin: 0.15rem 0 0; }

/* Disclaimer + equal-opportunity line. */
.st5-disclaimer { font-style: italic; color: var(--muted); font-size: 11px; margin-top: 1.1rem; line-height: 1.5; }
.st5-eop { text-align: center; font-style: italic; color: var(--muted); font-size: 12px; margin-top: 1rem; }

/* Overview collapsed view — no navy band; clickable roll-ups expand detail. */
.st5-overview .st5-sec-head { margin-top: 0.4rem; }
/* Blown up a notch so the roll-ups + detail read without squinting (McLane
   2026-07-18). Scoped to .st5-overview only — the emailed-format statement on
   the LRP Positions tab keeps its exact sizing. table-layout stays fixed at
   width:100%, so the wider type never pushes the page into horizontal scroll. */
.st5-overview .st5-sec-head { font-size: 18.5px; }
.st5-overview .st5-legend { font-size: 11px; }
.st5-overview .st5-ov-sub { font-size: 13px; }
.st5-overview .st5-ov-rollup { font-size: 14px; padding: 0.65rem 0.9rem; }
.st5-overview table.st5-table { font-size: 12px; }
.st5-overview table.st5-table tbody td { padding: 3px 2px; }
.st5-overview table.st5-table thead th { font-size: 10.5px; }
.st5-overview .st5-cell3 { grid-template-rows: 12px 17px 12px; }
.st5-overview .st5-cell3 .st5-c3t { font-size: 10px; }
.st5-overview .st5-cell3 .st5-c3b { font-size: 9.5px; }
.st5-overview .st5-cell3 .st5-main { font-size: 13px; }
.st5-ov-sub { color: var(--faint); font-size: 12px; margin: -0.1rem 0 0.5rem; }
.st5-ov-ctrl { display: flex; gap: 0.4rem; justify-content: flex-end; margin: 0.5rem 0 0; }
.ov-allbtn { border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--faint); font: inherit; font-size: 0.72rem; padding: 0.15rem 0.65rem; cursor: pointer; }
.ov-allbtn:hover { color: var(--blue); border-color: var(--blue); }
.st5-ov-groups { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.st5-ov-group { border: 1px solid var(--st5-line); border-radius: 8px; overflow: hidden; background: #fff; }
.st5-ov-rollup {
  display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; cursor: pointer;
  padding: 0.55rem 0.8rem; color: var(--st5-navy); font-size: 12.5px; font-variant-numeric: tabular-nums;
  background: #f5f8fc;
}
.st5-ov-rollup:hover { background: #eaf1fa; }
.st5-ov-rollup:focus-visible { outline: 2px solid var(--st5-gold); outline-offset: -2px; }
.st5-ov-rollup b { font-weight: 700; }
.st5-caret { color: var(--st5-gold); font-size: 11px; transition: transform 0.15s; display: inline-block; }
.st5-ov-rollup.open .st5-caret { transform: rotate(90deg); }
.st5-ov-label { font-weight: 700; }
.st5-ov-dash { opacity: 0.7; }
.st5-ov-stats { }
.st5-ov-detail { padding: 0.5rem 0.7rem 0.7rem; border-top: 1px solid var(--st5-line); }

/* Hedge Detail toggle in the statement section head (retained from v2). */
.st2-hedge-toggle { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; align-self: center; }
/* the shared renderer's Hedge Detail pill above Current Contracts (9/11 PM) */
.lrp-book .pt-hedge-row { display: flex; justify-content: flex-end; align-items: center; margin: 0 0 6px; }
.lrp-book .pt-hedge-row .g-hedge { margin-right: 0; }
/* the Overview's one-line pointer under the pill row (same voice as the old st5-ov-sub) */
.lrp-book .pt-book-sub { color: var(--faint); font-size: 12px; margin: -0.1rem 0 0.5rem; }
.st2-ht-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.chip-final { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #c6f6d5; border: 1px solid #9ae6b4; margin-right: 0.35rem; vertical-align: middle; }
table.prf-matrix td.iv-final { background: #c6f6d5; }
table.prf-matrix td.iv-estimated { background: #fefcbf; }

/* AF */
.gs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; }
.gs-card { border-left: 4px solid var(--gold); }
.gs-card h4 { font-family: var(--font-display); font-size: 1rem; }
.gs-card .gs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; margin-top: 0.7rem; font-size: 0.82rem; }
.map-frame {
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fbfaf6;
  padding: 1.6rem; text-align: center; color: var(--muted);
}
.hist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0.9rem; }
.hist-table th { background: var(--navy-800); font-size: 0.64rem; padding: 0.45rem 0.55rem; }
.hist-table td { padding: 0.42rem 0.55rem; font-size: 0.8rem; }

/* ===================== ANNUAL FORAGE — live redesign =====================
   Deep-green identity (--af-green family); status colors uniform with PRF.
   Fed by c.afLive (daily-NOAA snapshot). See tabs.js afLiveView().            */

/* Stat-card row — dark green cards, white values (shared by AF tab + Overview) */
.af-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 0.2rem 0 0.4rem; }
.af-stat {
  background: var(--af-green); border: 1px solid var(--af-green-border);
  border-radius: 12px; padding: 0.8rem 0.95rem; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.af-stat .k { display: block; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--af-green-label); font-weight: 700; }
.af-stat .v { display: block; font-size: 1.3rem; font-weight: 800; margin-top: 0.22rem; color: #fff; }
.af-stat .v.live { color: #e6b345; }
.af-stat .v.pos { color: #a7e08a; }
.af-stat .v.neg { color: #f0a58a; }
.af-stat .sub { display: block; font-size: 0.66rem; font-weight: 600; color: var(--af-green-sub); margin-top: 0.2rem; }

/* "Next to finalize" chip (my-spin, guarded) */
.af-nextchip {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.1rem 0 0.3rem;
  background: var(--af-green-tint); border: 1px solid #cdd8c2; border-radius: 999px;
  padding: 0.34rem 0.85rem; font-size: 0.78rem; color: #2c3b1c; font-weight: 600;
}
.af-nextchip b { color: var(--af-green); }
.af-nextchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--af-st-est); flex: none; }

/* Season map — the centerpiece */
.af-map {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem 0.8rem; margin: 0.3rem 0 0.4rem; box-shadow: var(--shadow-1);
  break-inside: avoid;
}
.af-map-title { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.85rem; }
.af-map-title span { font-weight: 500; color: var(--muted); }
.af-lane { display: grid; grid-template-columns: 128px 1fr 92px; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.af-lane-head .pl { font-size: 0.78rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.af-lane-head .sl { font-size: 0.62rem; color: var(--faint); font-weight: 600; margin-top: 1px; }
.af-track {
  position: relative; height: 52px; border-radius: 7px; background-color: #f6f4ee;
  background-image: linear-gradient(90deg, #e9e4d6 1px, transparent 1px);
  overflow: hidden;
}
.af-seg {
  position: absolute; top: 5px; bottom: 5px; border-radius: 5px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 0 6px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.af-seg .l1 { font-size: 0.72rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.af-seg .l2, .af-seg .l3 { font-size: 0.52rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.af-seg.st-final    { background: var(--af-st-final-bg); border-left: 3px solid var(--af-st-final); }
.af-seg.st-estimated{ background: var(--af-st-est-bg);   border-left: 3px solid var(--af-st-est); }
.af-seg.st-live     { background: var(--af-st-live-bg);  border-left: 3px solid var(--af-st-live); }
.af-seg.st-alert    { background: var(--af-st-alert-bg); border-left: 3px solid var(--af-st-alert); }
.af-seg.st-final .l1, .af-seg.st-estimated .l1, .af-seg.st-live .l1 { color: #1f2419; }
.af-seg.st-alert .l1 { color: #a8403a; }
.af-seg.st-final .l2, .af-seg.st-final .l3 { color: #4f6b56; }
.af-seg.st-estimated .l2, .af-seg.st-estimated .l3 { color: #8a7327; }
.af-seg.st-live .l2, .af-seg.st-live .l3 { color: #96603d; }
.af-seg.st-alert .l2, .af-seg.st-alert .l3 { color: #a8403a; }
.af-seg.st-upcoming { background: #faf8f1; border: 1.5px dashed #c9c4b6; }
.af-seg.st-upcoming .l1 { color: var(--af-st-up); font-size: 0.62rem; font-weight: 700; }
.af-seg.st-upcoming .l2, .af-seg.st-upcoming .l3 { color: #b3ae9f; }
.af-plantmark { position: absolute; top: 50%; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--af-green); box-shadow: 0 0 0 2px var(--card); z-index: 2; }
.af-todayline { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(27, 36, 52, 0.5); z-index: 3; }
.af-lane-net { text-align: right; }
.af-lane-net .nv { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.01em; }
.af-lane-net .nv.pos { color: var(--af-st-final); }
.af-lane-net .nv.neg { color: var(--af-st-alert); }
.af-lane-net .nl { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; }
.af-axis { display: grid; grid-template-columns: 128px 1fr 92px; gap: 0.75rem; margin-top: 0.2rem; }
.af-ticks { position: relative; height: 24px; }
.af-ticks .tk { position: absolute; top: 1px; transform: translateX(-50%); font-size: 0.52rem; font-weight: 700; color: var(--faint); }
.af-ticks .yr { position: absolute; top: 12px; font-size: 0.56rem; font-weight: 800; color: var(--muted); }
.af-howto { border-top: 1px solid var(--line); margin-top: 0.7rem; padding-top: 0.65rem; }
.af-howto .txt { font-size: 0.72rem; color: #4a463a; line-height: 1.55; font-weight: 500; }
.af-howto .txt b { color: var(--ink); }
.af-legend { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.68rem; color: var(--muted); font-weight: 600; margin-top: 0.55rem; }
.af-legend span { display: inline-flex; align-items: center; gap: 0.32rem; }
.af-legend .sw { width: 10px; height: 10px; border-radius: 2px; }
.af-legend .sw.final { background: var(--af-st-final); }
.af-legend .sw.est { background: var(--af-st-est); }
.af-legend .sw.live { background: var(--af-st-live); }
.af-legend .sw.alert { background: var(--af-st-alert); }
.af-legend .sw.up { border: 1.5px dashed #b3ae9f; background: #faf8f1; }
.af-legend .sw.today { width: 2px; height: 11px; border-radius: 0; background: rgba(27, 36, 52, 0.55); }

/* Per-growing-season matrix cards */
.af-gscards { display: flex; flex-direction: column; gap: 0.9rem; }
.af-gscard { border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--card); max-width: 720px; box-shadow: var(--shadow-1); break-inside: avoid; }
.af-gshead {
  display: flex; align-items: baseline; gap: 0.55rem; padding: 0.65rem 0.85rem; flex-wrap: wrap;
  background: linear-gradient(180deg, #234610, var(--af-green)); border-bottom: 1px solid var(--af-green-border);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.af-gshead .gh-plant { font-size: 0.95rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.af-gshead .gh-code { font-size: 0.66rem; font-weight: 800; color: #a9c99a; letter-spacing: 0.05em; }
.af-gshead .gh-meta { font-size: 0.72rem; color: #bcd0ac; font-weight: 600; }
.af-gshead .gh-pill { margin-left: auto; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em; padding: 0.16rem 0.55rem; border-radius: 20px; }
.af-gshead .gh-pill.st-final { background: var(--af-st-final-bg); color: var(--af-st-final); }
.af-gshead .gh-pill.st-estimated { background: var(--af-st-est-bg); color: var(--af-st-est); }
.af-gshead .gh-pill.st-upcoming { background: var(--af-st-up-bg); color: var(--af-st-up); }
.af-gsplant { padding: 0.5rem 0.85rem 0; font-size: 0.72rem; color: var(--muted); }
.af-gsplant .chip { display: inline-block; background: var(--af-green-tint); color: #2c3b1c; border-radius: 999px; padding: 0.08rem 0.5rem; font-size: 0.68rem; font-weight: 600; margin: 0.25rem 0.3rem 0 0; }
.af-tablewrap { overflow-x: auto; margin-top: 0.5rem; }
.af-gstable { border-collapse: collapse; width: 100%; min-width: 340px; font-variant-numeric: tabular-nums; }
.af-gstable th, .af-gstable td { border: 1px solid var(--line); text-align: center; padding: 0.3rem 0.5rem; }
.af-gstable .rlab { text-align: right; color: var(--muted); font-size: 0.68rem; font-weight: 600; background: #f6f3ea; width: 100px; }
.af-gstable .rlab .rsub { display: block; font-weight: 400; font-size: 0.56rem; color: var(--faint); }
.af-gstable .ivh { background: var(--af-green); color: #eef3ea; font-size: 0.72rem; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.af-gstable .ivh.rlab { background: #274c14; color: #eef3ea; }
.af-gstable td.pct { font-size: 0.74rem; font-weight: 700; color: var(--ink); }
.af-gstable td.idx { font-size: 0.72rem; color: #5c5848; }
.af-gstable td.rain { font-size: 0.68rem; color: var(--muted); }
.af-gstable td.rain.faint { color: #b3ae9f; }
.af-gstable td.box { font-size: 0.86rem; font-weight: 800; padding: 0.42rem 0.5rem; vertical-align: middle; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.af-gstable td.box.st-final { background: var(--af-st-final-bg); color: var(--af-st-final); }
.af-gstable td.box.st-estimated { background: var(--af-st-est-bg); color: var(--af-st-est); }
.af-gstable td.box.st-live { background: var(--af-st-live-bg); color: var(--af-st-live); }
.af-gstable td.box.st-alert { background: var(--af-st-alert-bg); color: var(--af-st-alert); }
.af-gstable td.box.st-upcoming { background: var(--af-st-up-bg); color: var(--af-st-up); font-size: 0.68rem; font-weight: 700; }
.af-gstable td.box .relcue { display: block; font-size: 0.56rem; font-weight: 600; color: var(--faint); font-style: italic; margin-top: 2px; }
.af-foot { display: flex; gap: 0.5rem; padding: 0.65rem 0.7rem 0.75rem; background: #faf8f1; border-top: 1px solid var(--line); }
.af-foot > div { flex: 1; border-radius: 9px; padding: 0.45rem 0.6rem; text-align: center; border: 1px solid var(--line-2); background: var(--card); }
.af-foot .k { display: block; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.af-foot .v { display: block; font-weight: 800; font-size: 0.9rem; }
.af-foot .fe { background: var(--af-st-final-bg); border-color: #bcdcc7; }
.af-foot .fe .v { color: var(--af-st-final); }
.af-foot .net.pos { border: 2px solid var(--af-st-final); background: #edf7f0; }
.af-foot .net.neg { border: 2px solid var(--af-st-alert); background: #fbeeed; }
.af-foot .net.pos .v { color: var(--af-st-final); }
.af-foot .net.neg .v { color: var(--af-st-alert); }
@media (max-width: 720px) {
  .af-statrow { grid-template-columns: 1fr 1fr; }
  .af-lane, .af-axis { grid-template-columns: 92px 1fr 68px; gap: 0.4rem; }
}

/* Billing */
.bill-month { margin-bottom: 1.1rem; }
.bill-month h4 {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.5rem;
}
.doc-row {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--line); font-size: 0.86rem;
}
.doc-row:last-child { border-bottom: none; }
.doc-ico {
  width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; color: var(--blue);
}
.doc-row .d-meta { flex: 1; min-width: 0; }
.doc-row .d-name { font-weight: 600; }
.doc-row .d-sub { font-size: 0.72rem; color: var(--faint); }
/* Settled below strike = an indemnity triggered; tint that figure green so the
   billing row tells the whole story at a glance. */
.doc-row .d-sub .bill-settle-in { color: var(--green); font-weight: 600; }
.doc-row .d-tag { font-size: 0.68rem; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.1rem 0.55rem; }
.bill-month .bill-sub { margin: -0.35rem 0 0.65rem; }
/* Bill row money side: est. bill; an indemnity credit is conditional on claim
   approval before the process date, so both outcomes show (no strike-through —
   the full premium is a live possibility until the claim closes). */
.bill-money { display: flex; flex-direction: column; align-items: flex-end; gap: 0.05rem; text-align: right; max-width: 52%; flex: none; }
.bill-money .money { font-weight: 700; }
.bill-money .bill-full { font-size: 0.72rem; color: var(--faint); }
.bill-money .bill-credit { font-size: 0.68rem; color: var(--green-deep); line-height: 1.35; }
.bill-month .bill-pol { margin-top: 0.5rem; }
/* The netted bill for the group (Doug Adams 11/9): premiums - indemnity credits = owed, per policy */
.bill-month .bill-total { margin-top: 0.55rem; font-weight: 600; color: var(--ink); }
/* Quiet per-bill-group status pulled from the AIP's own billing board — a calm
   aside next to the estimate above, never a replacement for it. */
.bill-aip {
  display: inline-block; margin: 0.35rem 0 0.7rem; padding: 0.2rem 0.65rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.bill-aip.unpaid { background: var(--gold-soft); color: var(--gold-deep); }
.bill-aip.cleared { background: var(--green-soft); color: var(--green-deep); }
/* Admin Open Claims: days-left chip goes urgent inside 10 days */
.doc-ico.oc-soon { background: #f9e3df; color: #a3312a; }
/* Admin Open Claims: per-row claim-workflow progress chips (POL / form /
   packet / loss statement). Neutral by default; "good" = that stage is done
   (POL Done, Signed, Verified), "bad" = a loss-statement issue. */
.oc-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.oc-chip {
  display: inline-block; border-radius: 999px; padding: 0.1rem 0.55rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em;
  background: #eceae3; color: var(--muted);
}
.oc-chip.good { background: var(--green-soft); color: var(--green-deep); }
.oc-chip.bad { background: var(--red-soft); color: var(--red); }

/* Help tab — product-first layout (2026-07-21). Each product renders its own
   section header (icon + accent, reusing .section-head.product-sec), a card of
   click-to-download rows, then its definitions. The Market Update library card
   carries no logo (SEC-12, 11/12: the brand stays on the Market Update tab). */
.help-doc-list { padding: 0.3rem 0.55rem; }
a.hd-link { display: flex; text-decoration: none; color: inherit; border-radius: 8px; }
a.hd-link.doc-row { padding: 0.7rem 0.55rem; }
a.hd-link:hover { background: var(--blue-soft); }
a.hd-link:hover .d-name { color: var(--blue); }
a.hd-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* Claims + Billing tab: the two-way Claims / Bills switch (9/14 PM). */
.bv-switch { display: flex; gap: 0.5rem; margin: 0.9rem 0 0.2rem; flex-wrap: wrap; }
.bv-switch button {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 0.42rem 1.1rem;
  font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.bv-switch button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.bv-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Claims tracker (2026-09-14, claims + billing plan phase 1) — one card per
   indemnity on the Billing tab: the AIP's figures, a six-step strip lit from the
   Airtable claims overlay, the "waiting on you" box, the carrier's own bill rule
   in small print. Closed claims fold to doc-rows. */
/* Existing Claims (Billing tab, assets/claims.js — 2026-09-14 phase 2): the
   claim rows are the SHARED statement table (.lrp-book); each open claim gets a
   tracker strip (.claim-strip, inside the renderer's tr.g-claim-strip cell —
   that cell's own look lives in the book's styles.css → statement.css). */
/* The strip's cell is as wide as the whole (sideways-scrolling) statement
   table; pin the content to the visible width so steps 5–6 and the match
   table's right half never sit off-screen. */
.claim-strip { position: sticky; left: 0; max-width: calc(100vw - 4rem); }
.claim-strip-h { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.7rem; font-size: 0.78rem; }
.claim-strip-sub { color: var(--faint); font-size: 0.74rem; }
/* closed rows (9/23 PM): one line — the check, how it went out, the USPS link */
.claim-paid { padding: 0.3rem 0 0.15rem; }
.claim-paid-line { margin: 0; font-size: 0.8rem; color: var(--ink); }
.claim-paid-line a { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.claim-cheat { font-size: 0.78rem; color: var(--muted); margin: -0.2rem 0 0.6rem; line-height: 1.5; }
.claim-land { font-size: 0.78rem; color: var(--muted); margin: -0.3rem 0 0.8rem; line-height: 1.5; }
.claim-land strong { font-variant-numeric: tabular-nums; }
.claim-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin: 1rem 0 0.2rem; padding: 0; }
.claim-steps .cs { position: relative; padding-top: 1.75rem; font-size: 0.74rem; line-height: 1.3; min-width: 0; }
.claim-steps .cs-dot {
  position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 700;
  background: #eceae3; color: var(--faint); border: 2px solid #eceae3; box-sizing: border-box;
}
.claim-steps .cs::after { content: ""; position: absolute; top: 10px; left: 26px; right: -0.5rem; height: 2px; background: #e6e2d8; }
.claim-steps .cs:last-child::after { display: none; }
.claim-steps .cs.done .cs-dot { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.claim-steps .cs.done::after { background: var(--green-deep); }
.claim-steps .cs.now .cs-dot { background: #fff; border-color: var(--gold); color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-soft); }
.claim-steps .cs.now .cs-l { color: var(--gold-deep); }
.claim-steps .cs.alert .cs-dot { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.claim-steps .cs.alert .cs-l { color: var(--red); }
.claim-steps .cs.todo { opacity: 0.62; }
.claim-steps .cs-l { font-weight: 600; display: block; }
.claim-steps .cs-s { color: var(--faint); font-size: 0.68rem; display: block; margin-top: 0.1rem; }
.claim-act { background: var(--gold-soft); border-radius: 8px; padding: 0.65rem 0.85rem; margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.5; }
.claim-act strong { color: var(--gold-deep); }
.claim-due { font-size: 0.82rem; font-weight: 600; margin-top: 0.6rem; color: var(--navy-800); }
.claim-due.late { color: var(--red); }
.claim-due.soon { color: var(--gold-deep); }
.claim-rule { color: var(--faint); font-size: 0.73rem; margin-top: 0.75rem; line-height: 1.45; }
.claim-contacts { font-size: 0.8rem; margin-top: 0.7rem; }
.claim-contacts a { color: var(--blue); }
/* "Match it to the loss letter" — the AIP's table column for column, their
   formatting beside ours. Collapsed by default. The portal's global thead th
   is white-on-navy + sticky, and .lrp-book's .g-tbl td centers + nowraps, so
   every cell rule here is explicit. */
.claim-closed { margin-top: 1.1rem; }
.claim-closed > summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--blue); padding: 0.2rem 0; }
.claim-closed[open] > summary { margin-bottom: 0.5rem; }
/* The claims statement block (McLane 9/14 PM): title "Open Claim$" in navy, a
   size up, and the expired-section frame green instead of red. */
.lrp-book.claims-block .g-exp-title { color: var(--navy-800); font-size: 1.15rem; letter-spacing: 0.04em; }
.lrp-book.claims-block .g-sec--exp { border-color: var(--green); }
/* 9/23: inside Open Claim$ the commodity bands wear statement.css's metallic
   navy, whose own rule sets the band name white — but the expired section's
   later "reads red" rule (#ff4d4d) was winning. Back to white on the navy band. */
.lrp-book.claims-block .g-sec--exp .g-sec-wrap .g-sec-band .sec-name { color: #fff; }
.claim-pol-link { font-size: 0.8rem; margin-top: 0.6rem; }
.claim-pol-link a { color: var(--blue); font-weight: 600; text-decoration: none; }
.claim-pol-link a:hover { text-decoration: underline; }
.claim-pol-link .muted { font-size: 0.74rem; }
.aip-notes a { color: var(--blue); }
.claim-match { margin-top: 0.7rem; }
.claim-match summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.claim-match .table-wrap { overflow-x: auto; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.claim-match table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.76rem; }
.claim-match th, .claim-match td, .g-tbl .claim-match th, .g-tbl .claim-match td { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; background: transparent; }
.claim-match thead th, .lrp-book .g-tbl .claim-match thead th { position: static; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.claim-match td.cm-l { color: var(--muted); }
.claim-match td.cm-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.claim-match td.cm-v:nth-child(2) { font-weight: 600; }
/* Phone: the four-cell match row stacks into a 2×2 grid (their label · their
   value / our label · our value) instead of clipping inside the sticky strip. */
@media (max-width: 720px) {
  .claim-strip { max-width: calc(100vw - 5.5rem); }   /* the wrap's padding + the panel gutter on a phone */
  .claim-match thead, .lrp-book .g-tbl .claim-match thead { display: none; }
  .claim-match tr, .lrp-book .g-tbl .claim-match tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
  .claim-match td, .lrp-book .g-tbl .claim-match td { display: block; border: 0; padding: 0.1rem 0.2rem; }
  .claim-match td.cm-v, .lrp-book .g-tbl .claim-match td.cm-v { white-space: normal; }
}
@media (max-width: 720px) {
  .claim-steps { grid-template-columns: repeat(2, 1fr); gap: 0.7rem 0.6rem; }
  .claim-steps .cs::after { display: none; }
}

/* Help — "Reading Your AIP Paperwork" (2026-09-14): paper-look sample replicas
   of the loss letter, claim form and billing statement with gold numbered
   callouts, per carrier (Hudson / Palomar disagree about paying while a claim
   is open), then the AIP-says / statement-says crosswalk. */
.aip-pick { display: flex; gap: 0.5rem; margin: 0.7rem 0 0.9rem; flex-wrap: wrap; }
.aip-pick button {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 0.38rem 0.95rem;
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.aip-pick button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.aip-pick button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aip-doc {
  background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 0.9rem 1rem;
  font-size: 0.78rem; line-height: 1.45; box-shadow: var(--shadow-1); color: var(--ink);
}
.aip-notes + .aip-doc { margin-top: 1.3rem; }
.aip-doc .ad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; border-bottom: 2px solid var(--navy-800); padding-bottom: 0.35rem; margin-bottom: 0.6rem; }
.aip-doc .ad-title { font-weight: 700; font-size: 0.86rem; }
.aip-doc .ad-tag { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.aip-doc p { margin: 0.35rem 0; }
.aip-doc .ad-tbl { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.7rem; }
.aip-doc .ad-tbl th, .aip-doc .ad-tbl td { border: 1px solid #cfcac0; padding: 0.25rem 0.4rem; text-align: center; white-space: nowrap; }
.aip-doc .ad-tbl th { background: #eeebe3; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 0.68rem; }
.aip-doc .table-wrap { overflow-x: auto; }
.aip-doc .ad-foot { margin-top: 0.6rem; padding-top: 0.45rem; border-top: 1px dashed #cfcac0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.aip-doc .ad-check { display: block; margin: 0.15rem 0; }
.aip-doc .ad-check::before { content: "☐ "; }
.aip-co {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 0.25rem; border-radius: 999px;
  background: var(--gold); color: var(--navy-950); font-size: 0.62rem; font-weight: 800; margin: 0 0.15rem; vertical-align: middle; line-height: 1;
}
/* Hover definition on a numbered badge (P.wireCallouts): one floating bubble
   on <body>, fixed-positioned, so scrolling table wraps can't clip it. */
.aip-co.has-tip { cursor: help; }
.tip-bubble {
  position: fixed; z-index: 400; max-width: 300px; padding: 0.5rem 0.7rem; border-radius: 8px;
  background: var(--navy-900); color: #fff; font-size: 0.76rem; font-weight: 500; line-height: 1.45;
  text-align: left; letter-spacing: 0; text-transform: none; box-shadow: 0 6px 18px rgba(4, 31, 58, 0.28); pointer-events: none;
}
.aip-notes { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.45rem; }
.aip-notes li { display: flex; gap: 0.55rem; font-size: 0.84rem; line-height: 1.45; }
.aip-notes li .aip-co { flex: none; margin-top: 0.15rem; }
.aip-rule { margin-top: 1rem; padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.84rem; line-height: 1.5; background: var(--blue-soft); color: var(--navy-900); }

/* Bills → "Your AIP's Bill, Decoded" (2026-09-14, decoder plan phase 3): the
   grower's REAL bill rebuilt in the Help sample's paper look (assets/bills.js).
   Money right-aligned, subtotal rows bold, total row heavier, Note chips. */
.bill-decode { margin-top: 0.4rem; }
.bill-decode .ad-tbl th { white-space: normal; line-height: 1.25; vertical-align: bottom; }   /* nine columns: let the labels wrap so the money fits */
.bill-decode .ad-tbl td.bd-num { text-align: right; font-variant-numeric: tabular-nums; }
.bill-decode .ad-tbl td.bd-plan { text-align: left; }
.bill-decode .ad-tbl td.bd-lbl { text-align: right; }
.bill-decode .ad-tbl td.bd-note { white-space: normal; line-height: 1.2; min-width: 6.5rem; }
.bill-decode .ad-tbl th .aip-co { margin-left: 0.3rem; }
.bill-decode .ad-tbl tr.bd-sub td { font-weight: 700; background: #f7f5ef; }
.bill-decode .ad-tbl tr.bd-tot td { font-weight: 800; background: #eeebe3; border-top: 2px solid var(--navy-800); }
.bd-chip { display: inline-block; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.bd-chip.amber { background: var(--gold-soft); color: var(--gold-deep); border: 1px solid var(--gold); }
.bd-chip.gold { background: var(--gold-soft); color: var(--gold-deep); }
.bd-chip.green { background: var(--green-soft); color: var(--green-deep); }
.bd-chip.muted { background: #f2efe7; color: var(--faint); font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; border-radius: 8px; max-width: 9rem; }
.bd-net { margin-top: 0.8rem; }
/* The AIP's REAL bill (tools/collect_bills.py, 9/23): the paper block reads from the
   grower's actual Livestock Billing Statement; under it the agent's reminder line
   (Lance's corrected amount when the print was stale), the PDF link, and the old
   rebuild folded away for comparison. */
.bill-real .ad-tag { color: var(--green-deep); }
.bd-pdf { font-size: 0.78rem; margin: 0.2rem 0 0.6rem; }
.bd-pdf a { color: var(--blue); font-weight: 600; }
.bd-agent { margin-top: 0.6rem; padding: 0.55rem 0.8rem; border-left: 3px solid var(--gold); background: var(--gold-soft); font-size: 0.8rem; line-height: 1.5; }
.bd-agent b { color: var(--gold-deep); }
.bd-agent a { color: var(--blue); }
.bd-flag { margin-top: 0.5rem; font-size: 0.74rem; color: #a3352a; }
.bd-rebuild { margin-top: 0.9rem; }
.bd-rebuild > summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.bd-rebuild[open] > summary { margin-bottom: 0.4rem; }

/* "How Your Billing Works" explainer cards */
.bill-explain .bx-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.bill-explain .product-accent { margin: 0.4rem 0 0.7rem; }
.bill-explain .bx-body { font-size: 0.9rem; line-height: 1.55; color: var(--ink); }
.bill-explain .bx-body + .bx-body { margin-top: 0.55rem; }
.bill-explain .bx-fact { color: var(--muted); }

/* Empty states & notes */
.empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fbfaf6;
  padding: 1.4rem; text-align: center; color: var(--muted); font-size: 0.88rem;
}
.note {
  font-size: 0.76rem; color: var(--muted); background: #f2efe7; border-radius: 8px;
  padding: 0.6rem 0.9rem; margin-top: 0.9rem;
}
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-ghost {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 0.45rem 0.95rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); }

footer.site {
  margin-top: 2rem; padding: 1.8rem 1.5rem 2.2rem;
  background: var(--navy-950); color: #c7d2de; font-size: 0.74rem;
  border-top: 3px solid var(--gold);
}
footer.site .foot-inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 0.9rem; }
footer.site .foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
footer.site .foot-brand { display: flex; align-items: center; gap: 0.8rem; }
footer.site .foot-logo { height: 30px; width: auto; }
footer.site .foot-tag { color: #9fb0c2; font-weight: 500; }
footer.site .foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; }
footer.site .foot-links a { color: #e7edf3; text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
footer.site .foot-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
footer.site .foot-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* SEC-9 (McLane 11/12, "make text small for that"): the email + phone read small and quiet -
   under the footer's 0.74rem, regular weight, the footer's muted #9fb0c2 (7.5:1 on navy-950).
   nowrap keeps each link whole when the row wraps on a phone. Hover still turns them gold. */
footer.site .foot-links .foot-phone { font-size: 0.7rem; font-weight: 400; color: #9fb0c2; white-space: nowrap; }
footer.site .foot-portal-note { color: #9fb0c2; margin: 0; line-height: 1.55; }
footer.site .foot-disclaimer { color: #8a9bad; margin: 0; line-height: 1.6; }
footer.site .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9fb0c2; }

/* ============================== MARKET UPDATE ==============================
   The "bonus" tab — its own after-hours trading-floor look, deliberately unlike
   the rest of the portal. A deep EastCo-navy slab floating on the paper page:
   light text, brightened gold, elevated dark stat cards, glowing red/green.
   Still EastCo (navy #073763 + gold #d69600 family), still built for older eyes
   (the small muted notes are pulled to high contrast), covered-month gold chips
   preserved. Everything is scoped to #panel-marketdesk / .desk-* so no other
   tab is touched, and a light @media print variant (bottom) keeps a printout
   off a wall of dark ink. Dark tokens live on the panel so both the id-scoped
   rules and the .desk-* rules (all descendants) resolve them. */
#panel-marketdesk {
  --dk-bg-top: #0b2139;
  --dk-card: #102a49;      /* elevated dark card */
  --dk-card-2: #0d2440;    /* board / half card */
  --dk-line: #22466c;      /* borders on dark */
  --dk-line-soft: rgba(255, 255, 255, 0.09);
  --dk-text: #eaf2fb;      /* body text */
  --dk-head: #ffffff;      /* headings + big numbers */
  --dk-muted: #aec0d5;     /* the small notes older eyes struggled with — now high-contrast */
  --dk-faint: #97aac0;     /* finest print, still legible */
  --dk-gold: #f2b12a;      /* brightened gold for dark */
  --dk-gold-deep: #ffce5a; /* gold text / chips */
  --dk-gold-soft: rgba(214, 150, 0, 0.16);
  --dk-blue: #5aa9f5;      /* the card labels — pop blue */
  --dk-blue-soft: rgba(56, 132, 222, 0.20);
  --dk-pos: #46d98a;       /* glow green */
  --dk-neg: #ff6f61;       /* glow red */
}

/* The dark slab — a floating panel, distinct from the paper tabs. */
#panel-marketdesk.active {
  color: var(--dk-text);
  background:
    radial-gradient(70% 44% at 12% -6%, rgba(214, 150, 0, 0.12), transparent 60%),
    radial-gradient(80% 55% at 102% -4%, rgba(29, 92, 150, 0.28), transparent 55%),
    linear-gradient(180deg, var(--dk-bg-top) 0%, #071a2e 55%, #05121f 100%);
  border: 1px solid #163350;
  border-radius: 18px;
  padding: 1.6rem 1.6rem 2rem;
  box-shadow: 0 14px 46px rgba(3, 12, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* Shared classes that also live on the light tabs — restyled only in here. */
#panel-marketdesk .page-title { color: var(--dk-head); }
#panel-marketdesk .page-sub { color: var(--dk-muted); }          /* contrast fix */
#panel-marketdesk .section-head h3 { color: var(--dk-head); }
#panel-marketdesk .section-head .hint { color: var(--dk-muted); } /* contrast fix */
#panel-marketdesk .card {
  background: var(--dk-card-2); border-color: var(--dk-line); color: var(--dk-text);
  box-shadow: 0 6px 18px rgba(3, 12, 24, 0.35);
}
#panel-marketdesk .empty {
  background: rgba(255, 255, 255, 0.04); border-color: var(--dk-line); color: var(--dk-muted);
}
#panel-marketdesk .legend { color: var(--dk-muted); }
#panel-marketdesk .muted { color: var(--dk-faint); }
#panel-marketdesk .pos { color: var(--dk-pos); text-shadow: 0 0 10px rgba(70, 217, 138, 0.30); }
#panel-marketdesk .neg { color: var(--dk-neg); text-shadow: 0 0 10px rgba(255, 111, 97, 0.28); }

/* Tables on the slab — dark, zebra, light hairlines, branded navy header with
   a thin gold underline. Covered-month rows keep a readable gold wash. */
#panel-marketdesk .table-wrap { background: transparent; border: none; box-shadow: none; }
#panel-marketdesk thead th {
  background: #0e2c4d; color: #dfeaf7;
  border-bottom: 2px solid rgba(242, 177, 42, 0.32);
}
#panel-marketdesk tbody td { color: var(--dk-text); border-bottom-color: var(--dk-line-soft); }
#panel-marketdesk tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.028); }
#panel-marketdesk tbody tr:hover td { background: rgba(255, 255, 255, 0.06); }
#panel-marketdesk tfoot td {
  background: rgba(255, 255, 255, 0.05); color: var(--dk-text); border-top: 2px solid var(--dk-line);
}
#panel-marketdesk tbody tr.desk-covered-row td { background: rgba(242, 177, 42, 0.13); }
#panel-marketdesk tbody tr.desk-covered-row:hover td { background: rgba(242, 177, 42, 0.20); }

/* ---- Masthead: small La Vaca logo on a light chip + the branded title ---- */
.desk-masthead { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.desk-mast-logo {
  display: inline-flex; align-items: center; background: #f6f8fb;
  border-radius: 9px; padding: 0.32rem 0.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.desk-mast-logo img { display: block; height: 30px; width: auto; }
.desk-mast-title { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem; }
.desk-mast-name { color: var(--dk-head); }
.desk-mast-by { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--dk-gold-deep); }
/* As-of line (2026-09-29): the one date a grower needs, big enough to not miss. */
.desk-asof { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; margin: 0.35rem 0 0.05rem; }
.desk-asof-label { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dk-gold-deep); }
.desk-asof-date { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--dk-head); }
.desk-asof-note { font-size: 0.86rem; color: var(--dk-muted); }

/* ---- Hero: elevated dark stat cards with bright numbers + pop-blue chips ---- */
.desk-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 0.8rem; margin-top: 1.1rem;
}
.desk-stat {
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(158deg, #143257 0%, #0d2340 100%);
  border: 1px solid var(--dk-line); border-radius: 14px; padding: 1rem 1.15rem;
  box-shadow: 0 6px 20px rgba(3, 12, 24, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.desk-stat.lead {
  border-top: 3px solid var(--dk-gold);
  background: linear-gradient(158deg, #17395f 0%, #0e2643 100%);
  box-shadow: 0 8px 26px rgba(3, 12, 24, 0.50), 0 0 0 1px rgba(242, 177, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.desk-stat .k {
  align-self: flex-start; color: var(--dk-blue); background: var(--dk-blue-soft);
  border: 1px solid rgba(90, 169, 245, 0.28); border-radius: 999px; padding: 0.2rem 0.55rem;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.desk-stat .v { color: var(--dk-head); font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; line-height: 1.05; margin-top: 0.5rem; }
.desk-stat .chg { font-size: 0.95rem; font-weight: 700; margin-top: 0.18rem; }
.desk-stat .sub { font-size: 0.72rem; color: var(--dk-muted); margin-top: 0.28rem; } /* contrast fix */

/* ---- Headlines: the day auto-written in a few lines, gold callout ---- */
.desk-headlines {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--dk-line); border-left: 3px solid var(--dk-gold);
  border-radius: 10px; padding: 0.9rem 1.15rem 0.95rem;
}
.desk-hl-list { list-style: none; display: grid; gap: 0.6rem; }
.desk-hl {
  position: relative; padding-left: 1.05rem; font-size: 0.95rem; line-height: 1.5; color: var(--dk-text);
}
.desk-hl::before {
  content: ""; position: absolute; left: 0; top: 0.58em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--dk-gold);
}
.desk-hl.lead {
  font-size: 1.05rem; font-weight: 600; color: var(--dk-head);
  padding-bottom: 0.65rem; border-bottom: 1px solid var(--dk-line);
}
.desk-hl.lead::before { background: var(--dk-gold-deep); box-shadow: 0 0 8px rgba(242, 177, 42, 0.55); }

/* ---- Board (Feeder + Live) as dark half-cards ---- */
.desk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.6rem; }
.desk-half {
  background: var(--dk-card); border: 1px solid var(--dk-line); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(3, 12, 24, 0.35); padding: 1rem 1.1rem; min-width: 0;
}
.desk-half-h { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--dk-head); }
.desk-half-sub { font-size: 0.72rem; color: var(--dk-muted); margin: 0.1rem 0 0.55rem; } /* contrast fix */
.desk-half .table-wrap { box-shadow: none; border: none; border-radius: 0; }
.desk-mo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.desk-mo-name { font-weight: 600; }
.desk-cov {
  display: inline-block; background: var(--dk-gold-soft); color: var(--dk-gold-deep);
  border: 1px solid rgba(242, 177, 42, 0.35);
  border-radius: 999px; padding: 0.06rem 0.5rem; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.desk-note-gold { font-size: 0.78rem; color: var(--dk-gold-deep); margin-top: 0.55rem; font-weight: 600; }
.desk-chart-sub { font-size: 0.82rem; color: var(--dk-muted); margin-top: 0.6rem; }

/* ---- Feeder Index chart — colors set here so print can flip them (below) ---- */
#panel-marketdesk .desk-cl-grid { stroke: rgba(255, 255, 255, 0.10); }
#panel-marketdesk .desk-cl-axis { fill: var(--dk-muted); }
#panel-marketdesk .desk-cl-idx { stroke: #57a5f0; }
#panel-marketdesk .desk-cl-idx-fill { fill: rgba(87, 165, 240, 0.14); }
#panel-marketdesk .desk-cl-fut { stroke: var(--dk-gold); }
#panel-marketdesk .desk-cl-idx-dot { fill: #57a5f0; stroke: #0d2340; }
#panel-marketdesk .desk-cl-idx-label { fill: #cfe4fb; }
.desk-cl-idx-key { background: #57a5f0; }
.desk-cl-fut-key { background: var(--dk-gold); }

/* ---- Cash Corner — the kill bars ---- */
.desk-kill { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.desk-kill-row { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 0.65rem; }
.desk-kill-label { font-size: 0.76rem; font-weight: 600; color: var(--dk-muted); }
.desk-kill-track { background: rgba(255, 255, 255, 0.09); border-radius: 999px; height: 15px; overflow: hidden; }
.desk-kill-bar { height: 100%; border-radius: 999px; background: #3f83c9; min-width: 3px; }
.desk-kill-row.lead .desk-kill-bar { background: var(--dk-gold); }
.desk-kill-val { color: var(--dk-text); font-variant-numeric: tabular-nums; font-weight: 700; min-width: 58px; text-align: right; font-size: 0.86rem; }

/* ---- Funds — Commitment of Traders ---- */
.desk-cot .desk-cot-row { padding: 0.6rem 0; border-bottom: 1px solid var(--dk-line-soft); }
.desk-cot .desk-cot-row:first-child { padding-top: 0.1rem; }
.desk-cot .desk-cot-row:last-of-type { border-bottom: none; }
.desk-cot-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.desk-cot-name { font-weight: 700; color: var(--dk-head); }
.desk-cot-net { color: var(--dk-text); font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.desk-cot-net .desk-arrow { font-size: 0.82rem; margin-left: 0.45rem; font-weight: 700; }
.desk-cot-read { font-size: 0.82rem; color: var(--dk-muted); margin-top: 0.2rem; }
.desk-cot-row.small .desk-cot-name { font-size: 0.9rem; }
.desk-cot-row.small .desk-cot-net { font-size: 0.95rem; opacity: 0.9; }
.desk-cot-sub { font-size: 0.72rem; color: var(--dk-faint); margin-top: 0.7rem; }

/* ---- Footer: friendly note + verbatim disclaimer, restyled for dark ---- */
.desk-footwrap { margin-top: 1.6rem; border-top: 1px solid var(--dk-line); padding-top: 1.2rem; }
.desk-logo {
  display: inline-block; height: 40px; width: auto; margin: 0 0 0.6rem;
  background: #f6f8fb; border-radius: 9px; padding: 0.4rem 0.55rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.desk-foot {
  font-size: 0.76rem; color: var(--dk-muted); background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--dk-gold); border-radius: 8px;
  padding: 0.7rem 1rem; line-height: 1.5;
}
/* Max's approved brokerage disclaimer — rendered verbatim; only the color moves. */
.desk-legal { font-size: 0.66rem; color: var(--dk-faint); line-height: 1.45; margin-top: 0.6rem; }

@media (max-width: 720px) {
  .desk-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #panel-marketdesk.active { padding: 1.1rem 0.95rem 1.5rem; border-radius: 14px; }
  .desk-mast-title { font-size: 1.24rem; }
  .desk-mast-by { font-size: 0.82rem; }
}

/* Light print variant — never dump a page of solid dark ink. Revert the slab
   and every .desk-* surface to the paper palette; keep meaningful fills. */
@media print {
  #panel-marketdesk.active {
    color: var(--ink); background: #fff; border: none; border-radius: 0; box-shadow: none; padding: 0;
  }
  #panel-marketdesk .page-title, #panel-marketdesk .section-head h3,
  #panel-marketdesk .desk-mast-name, #panel-marketdesk .desk-half-h,
  #panel-marketdesk .desk-cot-name, #panel-marketdesk .desk-cot-net,
  #panel-marketdesk .desk-stat .v, #panel-marketdesk .desk-kill-val,
  #panel-marketdesk .desk-hl.lead, #panel-marketdesk .desk-asof-date { color: var(--ink); }
  #panel-marketdesk .desk-asof-label { color: var(--gold-deep); }
  #panel-marketdesk .desk-half-h, #panel-marketdesk .desk-cot-name, #panel-marketdesk .desk-cot-net { color: var(--navy-800); }
  #panel-marketdesk .page-sub, #panel-marketdesk .section-head .hint,
  #panel-marketdesk .desk-half-sub, #panel-marketdesk .desk-stat .sub,
  #panel-marketdesk .desk-kill-label, #panel-marketdesk .desk-cot-read,
  #panel-marketdesk .legend, #panel-marketdesk .desk-asof-note { color: var(--muted); }
  #panel-marketdesk .muted, #panel-marketdesk .desk-cot-sub, #panel-marketdesk .desk-legal { color: var(--faint); }
  #panel-marketdesk .desk-mast-by, #panel-marketdesk .desk-note-gold { color: var(--gold-deep); }
  #panel-marketdesk .pos { color: var(--green); text-shadow: none; }
  #panel-marketdesk .neg { color: var(--red); text-shadow: none; }
  #panel-marketdesk .card { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: none; }
  #panel-marketdesk tbody td { color: var(--ink); border-bottom-color: var(--line); }
  #panel-marketdesk tbody tr:nth-child(even) td { background: #fff; }
  #panel-marketdesk tfoot td { background: #f2efe7; color: var(--ink); }
  #panel-marketdesk tbody tr.desk-covered-row td { background: #fdf5df; }
  #panel-marketdesk .desk-hl { color: var(--ink); }
  .desk-masthead .desk-mast-logo, .desk-logo { background: transparent; box-shadow: none; padding: 0; }
  .desk-headlines { background: #fff; border-color: var(--line); border-left-color: var(--gold); }
  .desk-hl::before, .desk-hl.lead::before { background: var(--gold); box-shadow: none; }
  .desk-hl.lead { border-bottom-color: var(--line); }
  .desk-stat { background: #fff; border-color: var(--line); box-shadow: none; }
  .desk-stat.lead { background: #fff; border-top-color: var(--gold); box-shadow: none; }
  .desk-stat .k { color: var(--navy-800); background: var(--blue-soft); border-color: #cfe0f2; }
  .desk-half { background: #fff; border-color: var(--line); box-shadow: none; }
  .desk-cov { background: var(--gold-soft); color: var(--gold-deep); border-color: #e6d3a0; }
  .desk-kill-track { background: #efeadf; }
  .desk-kill-bar { background: var(--navy-700); }
  .desk-kill-row.lead .desk-kill-bar { background: var(--gold); }
  .desk-cot .desk-cot-row { border-bottom-color: var(--line); }
  .desk-footwrap { border-top-color: var(--line); }
  .desk-foot { background: #f2efe7; color: var(--muted); border-left-color: var(--gold); }
  #panel-marketdesk .desk-cl-grid { stroke: #e5e0d5; }
  #panel-marketdesk .desk-cl-axis { fill: #68707f; }
  #panel-marketdesk .desk-cl-idx { stroke: #073763; }
  #panel-marketdesk .desk-cl-idx-fill { fill: rgba(7, 55, 99, 0.07); }
  #panel-marketdesk .desk-cl-fut { stroke: var(--gold); }
  #panel-marketdesk .desk-cl-idx-dot { fill: #073763; stroke: #fff; }
  #panel-marketdesk .desk-cl-idx-label { fill: #073763; }
  .desk-cl-idx-key { background: #073763; }
  .desk-cl-fut-key { background: var(--gold); }
  .desk-stat, .desk-stat.lead, .desk-stat .k, .desk-cov, .desk-kill-bar, .desk-kill-track,
  #panel-marketdesk tbody tr.desk-covered-row td {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ============================ AGENCY CONSOLE ============================ */

.agency-link { margin-top: 1rem; font-size: 0.78rem; }
.agency-link a { color: var(--faint); text-decoration: none; }
.agency-link a:hover { color: var(--gold-deep); text-decoration: underline; }
.appbar-link { color: #fff; opacity: 0.82; font-size: 0.85rem; text-decoration: none; }
.appbar-link:hover { opacity: 1; text-decoration: underline; }
.demo-chip { margin-left: 0.6rem; }
.admin-page main { max-width: 1280px; margin: 0 auto; padding: 1.4rem 1.5rem 3rem; }
#adminMain section + section { margin-top: 2.4rem; }
.admin-search {
  margin-top: 0.9rem; width: 100%; max-width: 360px; padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 0.92rem;
  background: #fff; color: var(--ink); outline: none;
}
.admin-search:focus { border-color: var(--gold); }
.scenario-banner { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0 0.9rem; }
.basis-table input.basis-input {
  width: 80px; padding: 0.32rem 0.45rem; text-align: right;
  border: 1px solid var(--line-2); border-radius: 6px; font-size: 0.85rem;
  font-variant-numeric: tabular-nums; background: #fff; color: var(--ink);
}
.basis-table input.basis-input:focus { outline: none; border-color: var(--gold); }
.basis-table input.basis-input.changed { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; }
/* Admin AIP Unpaid Bills panel: bold total line above the doc-row list */
.aip-total {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--navy-800); padding-bottom: 0.65rem; margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1140px) {
  .quotes-grid { grid-template-columns: 1fr; }   /* the 7-column sheet needs the width; the calculator stacks below */
}
@media (max-width: 900px) {
  #login { grid-template-columns: 1fr; }
  .login-brand { padding: 2.2rem 1.6rem; gap: 2rem; }
}
@media (max-width: 720px) {
  .bullet { grid-template-columns: 1fr; gap: 0.45rem; }
  .bullet .b-read { text-align: left; }
  .appbar-inner { flex-wrap: wrap; }
  table.responsive thead { display: none; }
  table.responsive tbody td {
    display: flex; justify-content: space-between; gap: 1rem; white-space: normal;
    border-bottom: none; padding: 0.28rem 0.8rem; text-align: right;
  }
  table.responsive tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); text-align: left;
  }
  table.responsive tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
  table.responsive tbody tr.group-row td { display: block; text-align: left; }
  table.responsive tbody tr.group-row td::before { content: none; }
  table.responsive tfoot td { display: block; text-align: right; }
}

/* ============================== RAIN OUTLOOK ==============================
   Weather closer at the bottom of the PRF + AF tabs (fed by
   window.PORTAL_DATA.outlook). Soft-blue segment identity — deliberately
   distinct from the product accents (PRF green / AF green / LRP brown) — the
   NOAA forecast maps, and a gold-left-border "Our read" callout that mirrors
   the .desk-read / .bill-explain house aesthetic. Self-contained: responsive
   at 375px and print-safe below. Colors from brand tokens only.               */
.outlook {
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 2px solid var(--line-2);
}
.outlook-head { display: flex; align-items: center; }
.outlook-pill {
  display: inline-block; margin: 0; background: var(--blue-soft); color: var(--blue);
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.02em; border-radius: 999px; padding: 0.32rem 0.9rem;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.outlook-sub { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }
.outlook-maps { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1rem; }
.outlook-map { margin: 0; break-inside: avoid; }
.outlook-map img {
  display: block; width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.outlook-map-sub { max-width: 460px; }
/* Two sub-maps side by side; min-width:0 lets them shrink so a phone never
   overflows, flex-wrap stacks them once they can't both fit. */
.outlook-map-row { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: flex-start; }
.outlook-map-row .outlook-map-sub { flex: 1 1 260px; min-width: 0; max-width: none; }
.outlook-map figcaption { font-size: 0.74rem; color: var(--muted); margin-top: 0.4rem; }
.outlook-read {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 0.8rem 1rem; margin-top: 1.1rem;
  font-size: 1rem; line-height: 1.55; color: var(--ink); break-inside: avoid;
}
.outlook-read strong { color: var(--gold-deep); }
.outlook-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; break-inside: avoid; }
.outlook-chip {
  display: inline-block; background: var(--blue-soft); color: #1c4a80;
  border: 1px solid #cfe0f2; border-radius: 999px; padding: 0.3rem 0.72rem;
  font-size: 0.76rem; font-weight: 600; font-variant-numeric: tabular-nums;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.outlook-foot { font-size: 0.72rem; color: var(--faint); line-height: 1.45; margin-top: 0.9rem; }
@media (max-width: 420px) {
  .outlook { margin-top: 2rem; padding-top: 1.4rem; }
  .outlook-map-sub { max-width: 100%; }
}
@media print {
  .outlook { break-inside: avoid; }
  .outlook-map img { box-shadow: none; }
}

/* ============================== PRINT ============================== */

@media print {
  .ticker, .tabbar, #logoutBtn, .scenario, .actions, .demo-chips, .entity-bar, .st2-hedge-toggle, .pt-hedge-row { display: none !important; }
  .st5-bleed { width: 100% !important; margin-left: 0 !important; }
  body { background: #fff; font-size: 12px; }
  .tab-panel { display: none !important; }
  .tab-panel.print-target { display: block !important; }
  .tab-panel.print-target tr.collapsed-row { display: table-row !important; }
  .card, .table-wrap, .kpi { box-shadow: none; }
  thead th { background: #073763 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* v6 statement keeps its own palette in print — including the white hedge
     spacer column, which has to stay white through the tinted fills. */
  .st5-band, .st5-statement td.est, .st5-statement tr.st5-sub td,
  .st5-statement tr.st5-zebra td, .st5-statement tr.st5-stot td, .st5-statement tr.st5-cytot td,
  .st5-statement th.st5-hgap, .st5-statement td.st5-hgap {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .st5-statement table.st5-table thead th,
  .st5-statement table.st5-summary thead th { background: #b0b0b0 !important; color: #111 !important; }
}

/* real document rows (step 5, 2026-09-10) */
a.doc-link { text-decoration: none; color: inherit; }
a.doc-link:hover .d-name { text-decoration: underline; color: var(--navy-800); }
.req-box { margin-top: 10px; padding: 14px 16px; }
.req-box .btn-secondary { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--navy-800); background: #fff; color: var(--navy-800); cursor: pointer; }
.req-box .btn-secondary:disabled { opacity: .55; cursor: default; }
.req-status { margin: 8px 0 0; }

/* 2026-09-18: the tape's quote-status badge turns amber when quotes fall behind during the session */
.delay-badge.behind { background: #8a5a00; color: #fff; border-color: #d69600; }

/* 2026-09-23 (WIG audit): iOS Safari zooms the page when a focused field is under
   16px. Touch devices only, so the desktop sizes above stay as designed. */
@media (pointer: coarse) {
  #nmNote, .entity-bar select, .calc select, .calc input[type="number"], .admin-search, .basis-input { font-size: 1rem; }
}

/* ======================= 2026-09-23 WIG audit: MED fixes =======================
   Appended overrides (later rules win at equal specificity) so the design above
   is untouched and the other in-progress edits to this file are not disturbed.
   Contrast figures are WCAG 2 ratios on the surfaces each colour sits on.      */

/* tokens: the two greys that failed 4.5:1 on paper and gold-soft */
:root { --faint: #606875; --gold-deep: #8a5f00; }
.kpi.hero .k-note { color: rgba(255, 255, 255, 0.62); }
.login-foot { color: rgba(255, 255, 255, 0.62); }
.prf-tile .t-prot { opacity: 1; color: var(--muted); }
.st5-cell3 .st5-c3b, .st5-cell3 .st5-c3t .st5-math, .st5-tag--assumed { color: #6b6b6b; }
.af-gshead .gh-pill.st-final, .af-gstable td.box.st-final { color: #2a6e45; }
.af-gshead .gh-pill.st-estimated, .af-gstable td.box.st-estimated { color: #7a5a10; }
.af-gstable td.box.st-live { color: #8f4a22; }
.af-gshead .gh-pill.st-upcoming, .af-gstable td.box.st-upcoming { color: #5f5c50; }
.af-gstable td.rain.faint { color: #6f6a5c; }
.ov-allbtn { color: var(--muted); min-height: 24px; }
/* small table money keeps the deep green; the hero figures keep --green */
td.pos, td .pos, .stmt-grp-meta .pos, .bill-settle-in { color: var(--green-deep); }

/* focus rings: navy on light surfaces (gold on white was 2.55:1), gold on navy */
.q2-toggle:focus-visible, .st5-ov-rollup:focus-visible, a.hd-link:focus-visible, .bv-switch button:focus-visible,
.aip-pick button:focus-visible, .toggle button:focus-visible, .scenario button:focus-visible, .ov-allbtn:focus-visible,
.btn-ghost:focus-visible, .btn-secondary:focus-visible, .chip-btn:focus-visible, svg g[tabindex]:focus-visible,
.claim-match summary:focus-visible, .claim-closed > summary:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.tab-btn:focus-visible { outline: 2px solid var(--navy-800); outline-offset: -2px; }
#accessId:focus-visible, .calc select:focus-visible, .calc input:focus-visible, .admin-search:focus-visible, .basis-input:focus-visible,
#entitySel:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 2px; }
#logoutBtn:focus-visible, .appbar-link:focus-visible, .motion-toggle:focus-visible, footer.site .foot-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.entity-bar select:focus-visible { outline-color: var(--gold); }

/* hover feedback on the button groups that had none */
.toggle button:hover:not(.active), .scenario button:hover, .bv-switch button:hover:not(.on), .aip-pick button:hover:not(.on) {
  background: rgba(7, 55, 99, 0.07); color: var(--navy-800);
}

/* hit targets: ≥24px on desktop without changing the visual size */
.q2-toggle, button.fut-toggle { padding: 0.25rem 0; margin: -0.25rem 0; }
.claim-match summary, .claim-closed > summary { padding: 0.35rem 0; }
footer.site .foot-links a { display: inline-block; padding: 0.35rem 0; }
.aip-co { position: relative; }
.aip-co::after { content: ""; position: absolute; inset: -4px; }
.lrp-book .g-jump { min-height: 24px; }
@media (pointer: coarse) {
  #logoutBtn, .btn-ghost, .toggle button, .scenario button, .bv-switch button, .aip-pick button, .chip-btn,
  .ov-allbtn, .lrp-book .g-hedge-btn, .lrp-book .g-jump, .motion-toggle { min-height: 44px; }
  footer.site .foot-links a { padding: 0.8rem 0; }   /* 11.8px text + 25.6px pad = a 44px row */
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
}

/* motion: compositor-only transitions, and one explicit pause for the loops */
.chip-btn { transition: border-color 0.15s, background-color 0.15s; }
.usage-fill { transition: none; }
.ticker-inner:focus-within .ticker-track { animation-play-state: paused; }
body.motion-paused .ticker-track, body.motion-paused .us-flag .slat, body.motion-paused .us-flag::after { animation-play-state: paused; }
.motion-toggle {
  font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer; white-space: nowrap;
}
.motion-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.ticker { position: relative; }
.ticker .motion-toggle { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); z-index: 2; }
@media (max-width: 720px) { .ticker .motion-toggle { position: static; transform: none; display: block; margin: 0.35rem auto 0.5rem; } }

/* sticky rail sits below the sticky tab bar */
.prf-rail { top: calc(56px + 1rem); }

/* table semantics: the flex layout moved off the <td> onto an inner wrapper */
tbody tr.group-row.month-row td { display: table-cell; }
tbody tr.group-row.month-row td > .group-inner { display: flex; align-items: baseline; gap: 0.55rem; }
button.group-btn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
button.group-btn:focus-visible { outline: 2px solid var(--navy-800); outline-offset: -2px; }
a.btn-ghost { text-decoration: none; display: inline-flex; align-items: center; }

/* skip link, visually-hidden text, and the programmatic focus target */
.skip {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 100; transform: translateY(-200%);
  background: var(--navy-800); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* <main tabindex="-1"> only ever receives focus from script (sign-in, skip link);
   it is never in the Tab order, so no keyboard user loses a ring here. */
main[tabindex="-1"]:focus { outline: none; }

/* ===================== EMAIL + PASSWORD SIGN-IN (2026-10-07) =====================
   Production only (assets/auth-ui.js). Phones first: 16px inputs so iOS never zooms,
   44px tap targets, one column. EastCo navy + gold, Work Sans. */
.pw-auth[hidden], .pw-form[hidden], #pwForgotFields[hidden] { display: none; }
.pw-form { display: block; margin-top: 0.6rem; }
.pw-form h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; }
.pw-lead { color: var(--muted); margin: 0.2rem 0 1.2rem; font-size: 0.92rem; line-height: 1.5; }
.pw-form label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0.9rem 0 0.4rem;
}
.pw-form input[type="email"], .pw-form input[type="password"], .pw-form input[type="text"], .pw-form select {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; font-size: 16px; font-family: var(--font-ui);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pw-form input:focus, .pw-form select:focus { border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(214, 150, 0, 0.22); }
.pw-field { position: relative; }
.pw-field input { padding-right: 4.6rem; }
.pw-show {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); min-height: 40px; min-width: 3.9rem;
  border: none; background: transparent; color: var(--navy-800); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.pw-show:hover { background: var(--gold-soft); }
.pw-submit {
  width: 100%; min-height: 48px; margin-top: 1.1rem; padding: 0.8rem 1rem; background: var(--navy-800); color: #fff;
  border: none; border-radius: var(--radius); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.pw-submit:hover { background: var(--navy-700); }
.pw-submit:active { transform: translateY(1px); }
.pw-submit:disabled { opacity: 0.6; cursor: default; }
.pw-link {
  display: inline-block; margin-top: 0.9rem; min-height: 44px; padding: 0.6rem 0; background: none; border: none;
  color: var(--navy-800); font: inherit; font-size: 0.92rem; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer;
}
.pw-link[hidden] { display: none; }
.pw-note { color: var(--faint); font-size: 0.8rem; line-height: 1.45; margin-top: 0.6rem; }
.pw-err { color: var(--red); font-size: 0.88rem; margin-top: 0.7rem; min-height: 1.2em; }
.pw-err.ok, .pw-status.ok { color: var(--green-deep); }
.pw-status { font-size: 0.9rem; margin-top: 0.9rem; line-height: 1.5; min-height: 1.2em; }
.pw-status.err { color: var(--red); }
.ts-host { margin-top: 1rem; min-height: 0; }
.ts-host:empty { margin-top: 0; }
#staffPick .pw-link { margin-left: 0; }
.appbar-btn {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px; padding: 0.45rem 0.85rem; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-left: 0.5rem;
}
.appbar-btn:hover { background: rgba(255, 255, 255, 0.2); }
.appbar-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.appbar-btn[hidden] { display: none; }
.pw-dialog {
  width: min(440px, calc(100vw - 32px)); border: none; border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow-2); color: var(--ink); background: var(--card);
}
.pw-dialog::backdrop { background: rgba(7, 55, 99, 0.45); }
.pw-dialog .pw-form { margin-top: 0; }
.pw-actions { display: flex; gap: 0.6rem; align-items: center; }
.pw-actions .pw-submit { flex: 1; }
.pw-cancel {
  margin-top: 1.1rem; min-height: 48px; padding: 0.8rem 1rem; background: #fff; color: var(--navy-800);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
}
@media (max-width: 720px) {
  #acctBtn { padding: 0.45rem 0.6rem; font-size: 0.75rem; }
}
@media print { #acctBtn, .pw-dialog { display: none !important; } }

/* Agency console: Customer Logins panel */
.logins-table td .btn-ghost { margin: 0.15rem 0.3rem 0.15rem 0; }
.logins-pw { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.04em; background: var(--gold-soft); padding: 0.35rem 0.6rem; border-radius: 6px; user-select: all; }
.logins-once { margin-top: 0.8rem; padding: 0.9rem 1rem; border: 1.5px solid var(--gold); border-radius: var(--radius); background: #fffaf0; }
.logins-once[hidden] { display: none; }
.logins-status { min-height: 1.2em; margin-top: 0.5rem; font-size: 0.88rem; }
#staffPick .staff-out { margin-left: 1.2rem; }
.logins-confirm label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0.4rem 0 0.35rem; }
.logins-confirm input { max-width: 320px; }

/* =====================================================================================
   2026-10-09 DESIGN PASS (McLane review): full-width shell, quiet crop-year summary
   strip, the LRP tab dressed as the mailed LRP Summary Statement PDF, quiet Overview
   product cards, and the ticker's Pause motion button out of the badge's way.
   Appended LAST so it overrides the earlier rules at equal specificity.
   ===================================================================================== */

/* ---- (4) Full-width shell: "almost fill the pages". Side gutters 16-40px; a cap only
   for ultra-wide monitors. Was a 1280px column everywhere. ---- */
:root { --shell-max: 2240px; --gutter: clamp(16px, 2vw, 40px); }
.appbar { padding-left: var(--gutter); padding-right: var(--gutter); }
.appbar-inner, footer.site .foot-inner { max-width: var(--shell-max); }
.entity-bar-inner, .tabbar-inner { max-width: var(--shell-max); padding-left: var(--gutter); padding-right: var(--gutter); }
main, .admin-page main { max-width: var(--shell-max); padding-left: var(--gutter); padding-right: var(--gutter); }
footer.site { padding-left: var(--gutter); padding-right: var(--gutter); }
.ticker-inner { padding-left: var(--gutter); }
/* the statement used to break out of the 1280 column; the column is the page now */
.st5-bleed { width: 100%; margin-left: 0; }
/* RN-0003: one row of tabs on a wide screen (the 1280 cap wrapped Documents + Help) */
@media (max-width: 1500px) and (min-width: 721px) {
  .tab-btn { padding-left: 0.8rem; padding-right: 0.8rem; }
  .tab-btn::after { left: 0.8rem; right: 0.8rem; }
  .tab-spacer { margin: 0 0.5rem; }
}
/* Bigger type on big screens so nobody squints: rem-based text scales ~6%. */
@media (min-width: 1680px) {
  html { font-size: 17px; }
  body { font-size: 16px; }
}
/* The statement tables (px-based, from the book) step up on wide screens too. */
@media (min-width: 1800px) {
  .lrp-book .g-tbl--live th, .lrp-book .g-tbl--live td { font-size: 12px; }
  .lrp-book .g-tbl--live .g-type { font-size: 11.5px; max-width: 120px; }
  .lrp-book .v5-top { font-size: 10.5px; }
  .lrp-book .g-tbl--live .sub-lab { font-size: 9px; }
  .lrp-book .g-sec--live .g-sec-wrap .g-sec-band .sec-name, .lrp-book .g-sec--exp .g-sec-wrap .g-sec-band .sec-name { font-size: 16px; }
  .lrp-book .g-sec--live .g-sec-wrap .g-sec-band .sec-roll, .lrp-book .g-sec--exp .g-sec-wrap .g-sec-band .sec-roll { font-size: 12.5px; }
  .lrp-book .g-sum-tbl th, .lrp-book .g-sum-tbl td, .lrp-book .g-basis-tbl th, .lrp-book .g-basis-tbl td { font-size: 12.5px; }
  .lrp-book .g-tail-basis { max-width: 460px; }
}
/* Wide two-up layouts where a single column would stretch a chart or a card */
.bk-chart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.bk-chart-grid > .card + .card { margin-top: 0; }
@media (min-width: 1500px) { .bk-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- (1) Crop-year summary strip (LRP tab + Overview): light, compact, one card per
   crop year with live endorsements. No overall net. ---- */
.cy-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 600px)); gap: 0.75rem; margin-top: 1rem; }
.cy-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 0.65rem 1rem 0.6rem; }
.cy-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.cy-tag { font-size: 0.92rem; font-weight: 700; color: var(--navy-800); }
.cy-count { font-size: 0.78rem; color: var(--muted); }
.cy-stats { display: flex; flex-wrap: wrap; gap: 0.35rem 2.2rem; margin: 0.4rem 0 0.3rem; }
.cy-stat dt { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cy-stat dd { font-size: 1.08rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cy-stat dd.pos { color: var(--green-deep); }
.cy-note { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0.3rem; }
.cy-foot { font-size: 0.74rem; color: var(--faint); }
.cy-foot.over { color: var(--red); font-weight: 600; }

/* ---- (1) Quiet Overview: the PRF / AF / leftover KPI cards go light like the strip
   (they were navy and dark-green slabs; the PRF and AF tabs keep their own look). ---- */
#panel-overview .kpi { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
#panel-overview .kpi .k-label { color: var(--muted); }
#panel-overview .kpi .k-value { color: var(--ink); font-size: 1.25rem; }
#panel-overview .kpi .k-note { color: var(--faint); }
#panel-overview .kpi .k-value.pos { color: var(--green-deep); }
#panel-overview .kpi .k-value.neg { color: var(--ink); }
#panel-overview .prf-stat, #panel-overview .af-stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-1); }
#panel-overview .prf-stat { border-left: 3px solid var(--prf-green); }
#panel-overview .af-stat { border-left: 3px solid var(--af-green); }
#panel-overview .prf-stat .lbl, #panel-overview .af-stat .k { color: var(--muted); }
#panel-overview .prf-stat .val, #panel-overview .af-stat .v { color: var(--ink); font-size: 1.12rem; font-weight: 600; }
#panel-overview .prf-stat .val.fin, #panel-overview .af-stat .v.pos { color: var(--green-deep); }
#panel-overview .prf-stat .val.live, #panel-overview .af-stat .v.live { color: #8a5f00; }
#panel-overview .af-stat .v.neg { color: var(--ink); }
#panel-overview .prf-stat .sub, #panel-overview .af-stat .sub { color: var(--faint); }
#panel-overview .prf-stat .sub.pos { color: var(--green-deep); }
#panel-overview .prf-live-det { border-top-color: var(--line); }
#panel-overview .prf-live-iv .li-lbl { color: var(--muted); }
#panel-overview .prf-live-iv .li-amt { color: var(--ink); }
#panel-overview .prf-live-chips .li-chip { color: #8a5f00; background: var(--gold-soft); border-color: #e6d3a0; }
#panel-overview .prf-stat-row, #panel-overview .af-statrow { margin-top: 1rem; }

/* ---- (2) The LRP tab in the PDF's dress (lrp-dashboard styles.css body.pp rules,
   restated for the screen; statement.css carries the book's screen rules only). ---- */
/* the book's headers are Title Case, unstuck (the portal's global thead th rule made
   them uppercase + sticky) — every shared statement table on the portal */
.lrp-book .g-tbl th { text-transform: none; position: static; }
.lrp-pdf { margin-top: 1.1rem; }
.lrp-pdf .pdf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-bottom: 0.8rem; }
.lrp-pdf .pdf-ctl-whatif { flex: 1 1 640px; min-width: 0; }
.lrp-pdf .pdf-ctl-whatif .g-whatif { margin-bottom: 0; }
.lrp-pdf .pdf-ctl-right { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-left: auto; }
.lrp-pdf .pdf-ctl-right .g-hedge { margin: 0; }
.lrp-pdf .pdf-sheet { background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: 0 2px 14px rgba(7, 55, 99, 0.08); padding: 22px 22px 26px; }
.lrp-pdf.wi-moved .pdf-sheet { box-shadow: 0 0 0 2px #edd9a8, 0 2px 14px rgba(7, 55, 99, 0.08); }
.lrp-pdf .pdf-mast { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  background: var(--navy-800); border-bottom: 4px solid var(--gold); padding: 12px 18px; margin-bottom: 12px; }
.lrp-pdf .pdf-mast-logo { display: block; height: 46px; width: auto; }
.lrp-pdf .pdf-mast-right { display: flex; align-items: center; gap: 14px; text-align: right; margin-left: auto; }
.lrp-pdf .pdf-mast-cow { display: block; height: 46px; width: auto; flex: none; }   /* the LRP cow (McLane 11/17) */
.lrp-pdf .pdf-mast-id { text-align: right; }
.lrp-pdf .pdf-mast-name { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.15; }
.lrp-pdf .pdf-mast-doc { font-size: 11.5px; font-weight: 600; color: #d9e4f1; margin-top: 2px; }
.lrp-pdf .pdf-meta { font-size: 13px; color: #6d7683; margin: 0 0 4px; }
.lrp-pdf .g-sec--live > .g-sec-h { display: none; }
.lrp-pdf .g-sec--live { margin-top: 12px; }
.lrp-pdf .g-pp-cc { display: block; margin: 2px 0 6px; }
.lrp-pdf .g-pp-cc-t { font-size: 16px; font-weight: 800; color: #1f4e79; }
.lrp-pdf .g-pp-cc-l { font-size: 10.5px; font-style: italic; color: #6b6b6b; margin-top: 2px; }
.lrp-pdf .g-sec--exp { margin-top: 22px; }
.lrp-pdf .g-sec--tail { margin-top: 26px; }
.lrp-pdf .pdf-foot { margin-top: 16px; font-size: 13px; line-height: 1.5; color: #57544a; }
.lrp-pdf .pdf-foot b { color: #3d3a33; }
@media (min-width: 1800px) {
  .lrp-pdf .pdf-mast-name { font-size: 22px; }
  .lrp-pdf .pdf-mast-doc { font-size: 12.5px; }
  .lrp-pdf .pdf-meta { font-size: 14px; }
  .lrp-pdf .g-pp-cc-t { font-size: 18px; }
  .lrp-pdf .g-pp-cc-l { font-size: 11.5px; }
}
@media (max-width: 720px) {
  .lrp-pdf .pdf-sheet { padding: 10px 10px 14px; }
  .lrp-pdf .pdf-mast { padding: 10px 12px; }
  .lrp-pdf .pdf-mast-logo { height: 36px; }
  .lrp-pdf .pdf-mast-right { text-align: left; margin-left: 0; }
  .lrp-pdf .pdf-mast-cow { height: 36px; }
  .lrp-pdf .pdf-mast-id { text-align: left; }
  .lrp-pdf .pdf-mast-name { font-size: 17px; }
  .lrp-pdf .pdf-ctl-right { margin-left: 0; }
}
@media print {
  .cy-strip, .lrp-pdf .pdf-controls, #panel-lrp .page-sub, #panel-lrp .product-accent, #panel-lrp .bk-chart-grid, #panel-lrp .section-head { display: none !important; }
  .lrp-pdf .pdf-sheet { border: 0; box-shadow: none !important; padding: 0; }
  .lrp-pdf .pdf-mast, .lrp-pdf .pdf-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lrp-pdf .g-tbl-wrap { overflow: visible; break-inside: avoid; }
  .lrp-pdf .g-sec--exp, .lrp-pdf .g-sec--tail { break-before: page; }
}

/* ---- (5) RN-0001: the ticker's Pause motion button sat ON the "Live quotes" badge.
   It is now a small round button in the bar's own flow, right of the badge, so the
   two can never overlap at any width. ---- */
.ticker { display: flex; align-items: center; }
.ticker-inner { flex: 1 1 auto; min-width: 0; padding-right: 0.6rem; }
.ticker .motion-toggle {
  position: static; transform: none; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; margin: 0 var(--gutter) 0 0; border-radius: 50%; font-size: 0.6rem; letter-spacing: 0;
}
.ticker .motion-toggle .mt-ico { line-height: 1; }
@media (max-width: 720px) { .ticker .motion-toggle { position: static; display: inline-flex; margin: 0 var(--gutter) 0 0; } }
@media (pointer: coarse) { .ticker .motion-toggle { width: 44px; height: 44px; min-height: 44px; } }

/* (4) wide screens: keep maps + long copy at a readable scale inside the full width */
@media (min-width: 1500px) {
  .outlook-maps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .outlook-maps > .outlook-map-main { margin: 0; }
  .outlook-maps > .outlook-map-row { margin: 0; }
}
#panel-help p, #panel-help li, .page-sub, p.note { max-width: 130ch; }
.ticker-inner { overflow: hidden; }   /* the pinned quotes can never run under the pause button */
@media (max-width: 1700px) and (min-width: 721px) { .lrp-pdf .pdf-sheet { padding: 14px 14px 18px; } }
#panel-overview .lrp-book .pt-hedge-row { margin-top: 0.8rem; }
/* (4b) laptop fit (P.fitBook in app.js zooms the statement block to its column):
   the basis box gets room for its own table so it never forces a zoom; print keeps
   the page's own layout, never the screen's zoom. */
.lrp-book .g-tail-basis { max-width: 400px; }
@media print { .lrp-book, .lrp-pdf .pdf-sheet { zoom: 1 !important; } }

/* ---- PRINT = the Desk's statement print (McLane 11/17: "I like the print job the desk gives
   more than the client portal gives"). body.lrp-print is set by tabs.js dressLrpPrint for the
   duration of a print of the LRP tab (Print Statement button or Ctrl+P). These are the LRP Book's
   body.pp rules (lrp-dashboard styles.css) restated for the portal's sheet: US Legal landscape,
   margin 0 (no browser URL/title header), the measured fit zoom, only the sheet on paper,
   Recently Expired and the statement tail each on a fresh page, nothing split mid-table.
   The paper size itself is an @page rule tabs.js adds for the print only (a named @page was
   ignored by Chromium's print-to-PDF), so the other tabs' prints keep the browser default. ---- */
@media print {
  /* the statement's own gray column headers, as the Desk prints them - the portal's generic
     print rule above paints every thead navy, which left these near-black on navy */
  .lrp-book .g-tbl thead th { background: #b4b9c0 !important; color: #17191d !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.lrp-print { background: #fff; }
  body.lrp-print .appbar, body.lrp-print footer.site, body.lrp-print #panel-lrp .title-row,
  body.lrp-print #panel-lrp .page-title, body.lrp-print #panel-lrp .lrp-live { display: none !important; }
  body.lrp-print #app, body.lrp-print #main, body.lrp-print #panel-lrp { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.lrp-print .lrp-pdf { margin: 0; }
  body.lrp-print .lrp-pdf .pdf-sheet { zoom: var(--pp-zoom, 1) !important; padding: 24px 22px; border: 0; border-radius: 0; box-shadow: none !important; }
  body.lrp-print .lrp-pdf .g-sec--tail { zoom: var(--pp-tail-zoom, 1); break-before: page; break-inside: avoid; margin-top: 0; }
  body.lrp-print .lrp-pdf .g-sec--exp { break-before: page; margin-top: 0; }
  body.lrp-print .lrp-pdf .pdf-mast { break-inside: avoid; }
  body.lrp-print .lrp-pdf .g-tbl-wrap, body.lrp-print .lrp-pdf .g-tot-wrap { overflow: visible; break-inside: avoid; }
  body.lrp-print .lrp-pdf .g-tbl-wrap.g-mon-wrap, body.lrp-print .lrp-pdf .g-tot-title { break-after: avoid; }
  body.lrp-print .lrp-pdf .g-sec--exp .g-sec-h, body.lrp-print .lrp-pdf .g-exp-legend { break-inside: avoid; break-after: avoid; }
  body.lrp-print .lrp-pdf .g-bill-note, body.lrp-print .lrp-pdf .g-mark-key, body.lrp-print .lrp-pdf .g-exp-close,
  body.lrp-print .lrp-pdf .g-sec--basis, body.lrp-print .lrp-pdf .g-disclaim, body.lrp-print .lrp-pdf .pdf-foot { break-inside: avoid; }
  body.lrp-print .lrp-pdf .g-sec--sum .g-sec-h, body.lrp-print .lrp-pdf .g-sum-comm, body.lrp-print .lrp-pdf .g-sum-cy { break-after: avoid; }
  body.lrp-print .lrp-pdf .g-tail-cols { flex-wrap: nowrap; }
  body.lrp-print .lrp-pdf thead { display: table-header-group; }
  body.lrp-print .lrp-pdf tr { break-inside: avoid; }
}

/* ===================== 2026-10-09 RAIN OUTLOOK MAPS (RN-0004) =====================
   A map that fails to load says so (tabs.js outlookMaps onerror) instead of leaving an
   empty white box; same footprint as a map so the row does not jump. */
.outlook-map-miss {
  display: flex; align-items: center; justify-content: center; gap: 0.3rem; flex-wrap: wrap;
  min-height: 160px; padding: 1rem; text-align: center; font-size: 0.85rem; color: var(--muted);
  background: #f7f5ef; border: 1px dashed var(--line); border-radius: var(--radius);
}
.outlook-map-miss a { color: var(--navy-800, #073763); font-weight: 600; }

/* ---- Review notes 2026-10-09 (RN-0005 / RN-0006) ---- */
.outlook-disclaim { font-size: 0.86rem; color: #3d4752; background: #f4f6f8; border-left: 3px solid #8a96a3; border-radius: 6px; padding: 0.55rem 0.8rem; margin: 0.4rem 0 0.8rem; max-width: 1100px; }
.outlook-map img.zoomable { cursor: zoom-in; }
.outlook-map img.zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.map-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 20, 34, 0.88); display: flex; flex-direction: column; }
.map-zoom-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; color: #fff; background: #073763; }
.map-zoom-cap { flex: 1 1 auto; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.map-zoom-btn { font: 600 0.9rem var(--font-ui, sans-serif); color: #073763; background: #fff; border: 0; border-radius: 6px; padding: 0.45rem 0.8rem; cursor: pointer; min-height: 40px; }
.map-zoom-stage { flex: 1 1 auto; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.map-zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; cursor: zoom-in; }
.map-zoom.is-full .map-zoom-stage { display: block; }
.map-zoom.is-full .map-zoom-stage img { max-width: none; max-height: none; width: 200%; min-width: 1400px; cursor: zoom-out; }
body.map-zoom-open { overflow: hidden; }
@media print { .map-zoom { display: none !important; } }

/* =====================================================================
   2026-10-21 ALL ENTITIES COMBINED (assets/combined.js, McLane). The first
   Viewing Entity option on a multi-entity account. These rules only style the
   per-entity breakdowns the combined view adds; every other block reuses the
   single-entity look unchanged.
   ===================================================================== */
.cmb-intro { margin: 0.25rem 0 0.9rem; color: var(--muted); font-size: 0.9rem; max-width: 130ch; }
.cmb-solo { margin: 0.45rem 0 0.9rem; color: var(--muted); font-size: 0.86rem; }
.cmb-break { margin: 0.6rem 0 1.1rem; }
.cmb-title { font-family: var(--font-display); font-size: 0.98rem; margin: 0 0 0.35rem; color: var(--ink); }
.cmb-hint { font-family: var(--font-ui); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.cmb-break tr.cmb-total td { border-top: 2px solid var(--ink); font-weight: 700; background: var(--gold-soft); }
.cmb-break td.num, .cmb-break th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lrp-book .sub-lab.g-ent-tag { text-transform: none; letter-spacing: 0; color: var(--gold-deep); font-weight: 600; font-size: 10px; white-space: normal; }
.pdf-byentity:empty { display: none; }
.pdf-byentity { margin: 14px 0 6px; }
.prf-er.prf-er-total { background: var(--gold-soft); border-top: 2px solid var(--ink); font-weight: 700; }
.cmb-bill-head { font-family: var(--font-display); font-size: 0.96rem; margin: 1.1rem 0 0.4rem; color: var(--ink); }
@media print {
  .cmb-break, .pdf-byentity { break-inside: avoid; }
  .cmb-break tr.cmb-total td { background: none !important; }
}
/* the per-entity PRF tables (prfEntitiesSection), dormant until the combined view: they scroll
   inside their own box on a phone instead of widening the page */
.prf-ents, .prf-mx { overflow-x: auto; contain: inline-size; position: relative; }   /* relative: the chips' sr-only spans are clipped too */
.prf-ents .prf-er { min-width: 560px; }

/* =====================================================================
   2026-10-21 REVIEW NOTES (RN-0010 / RN-0011 / RN-0013 / RN-0014).
   ===================================================================== */
/* RN-0010 (McLane: the sign-in "Pause motion" button is "not needed"). WCAG 2.2.2 without a
   control: the sign-in flag ripples hoist-to-fly a few times and settles flat ON ITS OWN -
   the last slat stops at 4.75 s (0.75 s delay + 4 s), the sheen makes one pass and is gone by
   3.4 s. Reduced-motion users never see it move (the no-preference gate + the global reduce
   rule at the top). The signed-in app bar's flag + ticker keep their loop and the ticker's own
   pause button (#motionToggle). The inline per-slat negative delays (index.html) are overridden
   here so every slat starts at rest and the wave travels outward from the pole. */
@media (prefers-reduced-motion: no-preference) {
  #login .us-flag .slat {
    animation: flag-settle 4s ease-in-out 1 both;
    animation-delay: calc(var(--amp, 0) * 0.15s) !important;
  }
  @keyframes flag-settle {
    0%, 100% { transform: translateY(0); }
    12% { transform: translateY(calc(var(--amp, 0) * -1px)); }
    30% { transform: translateY(calc(var(--amp, 0) * 0.8px)); }
    50% { transform: translateY(calc(var(--amp, 0) * -0.5px)); }
    70% { transform: translateY(calc(var(--amp, 0) * 0.25px)); }
    86% { transform: translateY(calc(var(--amp, 0) * -0.1px)); }
  }
  #login .us-flag::after { animation: flag-sheen-once 2.4s ease-in-out 1s 1 both; }
  @keyframes flag-sheen-once {
    from { transform: translateX(-130%); }
    to   { transform: translateX(130%); }
  }
}

/* RN-0011 (McLane: "Clean up to where you can see it better and better understand what that
   number is reflecting"): the Feeder Index card - explainer line, a big Latest / High / Low /
   Change row, the chart drawn at the card's own pixel width (extras.js deskChart), and an
   HTML readout that follows the pointer / tap / arrow keys. Dark slab colors; print flips
   them light in the @media print block below. */
.desk-fci-explain { font-size: 0.95rem; line-height: 1.5; color: var(--dk-text); margin: 0 0 0.9rem; max-width: 110ch; }
.desk-fci-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 0 0 0.9rem; }
.desk-fci-stats .dfs { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--dk-line); border-radius: 10px; padding: 0.55rem 0.8rem 0.6rem; min-width: 0; }
.desk-fci-stats .dfs.lead { border-color: rgba(87, 165, 240, 0.55); background: rgba(87, 165, 240, 0.10); }
.desk-fci-stats .dfs-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dk-blue); }
.desk-fci-stats .dfs-v { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; line-height: 1.15; color: var(--dk-head); margin-top: 0.15rem; }
.desk-fci-stats .dfs.pos .dfs-v { color: var(--dk-pos); }
.desk-fci-stats .dfs.neg .dfs-v { color: var(--dk-neg); }
.desk-fci-stats .dfs-sub { font-size: 0.8rem; color: var(--dk-muted); margin-top: 0.1rem; }
.desk-fci-plot { position: relative; }
.desk-fci-plot svg { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: crosshair; border-radius: 6px; }
.desk-fci-plot svg:focus-visible { outline: 2px solid var(--dk-gold); outline-offset: 3px; }
#panel-marketdesk .desk-cl-vgrid { stroke: rgba(255, 255, 255, 0.05); }
#panel-marketdesk .desk-cl-base { stroke: rgba(255, 255, 255, 0.28); }
#panel-marketdesk .desk-cl-unit { fill: var(--dk-gold-deep); }
#panel-marketdesk .desk-cl-hl { fill: #0d2340; stroke: #cfe4fb; stroke-width: 2; }
#panel-marketdesk .desk-cl-hl-label { fill: #cfe4fb; paint-order: stroke; stroke: #0b2139; stroke-width: 4px; stroke-linejoin: round; }
#panel-marketdesk .desk-cl-idx-label { paint-order: stroke; stroke: #0b2139; stroke-width: 5px; stroke-linejoin: round; }
#panel-marketdesk .desk-cl-crossline { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
#panel-marketdesk .desk-cl-fut-dot { fill: var(--dk-gold); stroke: #0d2340; }
.desk-fci-tip {
  position: absolute; top: 8px; transform: translateX(12px); pointer-events: none; z-index: 3;
  background: #061a30; color: var(--dk-text); border: 1px solid var(--dk-line); border-radius: 8px;
  padding: 0.45rem 0.65rem; font-size: 0.85rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); white-space: nowrap;
}
.desk-fci-tip.flip { transform: translateX(calc(-100% - 12px)); }
.desk-fci-tip[hidden] { display: none; }
.desk-fci-tip .dft-date { font-weight: 700; color: var(--dk-head); margin-bottom: 0.15rem; }
.desk-fci-tip .dft-row { display: flex; align-items: center; gap: 0.35rem; }
.desk-fci-tip .dft-row strong { margin-left: auto; padding-left: 0.8rem; color: var(--dk-head); }
.desk-fci-tip .key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.desk-fci-tip .dft-sub { color: var(--dk-muted); font-size: 0.78rem; margin-top: 0.15rem; }
#panel-marketdesk .desk-chart-card .legend { font-size: 0.85rem; }
.desk-fci-hint { margin-left: auto; font-style: italic; }
@media (max-width: 720px) {
  .desk-fci-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .desk-fci-stats .dfs-v { font-size: 1.3rem; }
  .desk-fci-hint { margin-left: 0; }
}
@media print {
  .desk-fci-explain { color: var(--ink); }
  .desk-fci-stats .dfs, .desk-fci-stats .dfs.lead { background: #fff; border-color: var(--line); }
  .desk-fci-stats .dfs-k { color: var(--navy-700); }
  .desk-fci-stats .dfs-v { color: var(--ink); }
  .desk-fci-stats .dfs-sub { color: var(--muted); }
  #panel-marketdesk .desk-cl-vgrid { stroke: #efebe2; }
  #panel-marketdesk .desk-cl-base { stroke: #b9b3a6; }
  #panel-marketdesk .desk-cl-unit { fill: #68707f; }
  #panel-marketdesk .desk-cl-hl { fill: #fff; stroke: #073763; }
  #panel-marketdesk .desk-cl-hl-label { fill: #073763; stroke: #fff; }
  #panel-marketdesk .desk-cl-idx-label { stroke: #fff; }
  .desk-fci-tip, .desk-fci-hint, .desk-cl-cross { display: none !important; }
}

/* RN-0013 (McLane: no claims and no bills -> just say so): the whole Claims + Billing page
   is this one card when nothing is open, upcoming or recent (tabs.js billingIsQuiet). */
.bill-quiet { max-width: 720px; margin: 0.6rem 0 1.4rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--gold); }
.bill-quiet .bq-head { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy-800); margin: 0; }
.bill-quiet .bq-line { font-size: 0.95rem; color: var(--muted); margin: 0.4rem 0 0; line-height: 1.5; }

/* RN-0019 (McLane 11/4, Conor Dwyer: "a total estimated indemnity box that moves as you do
   this slider"): the running total under the what-if slider (tabs.js wiTotalsMount, markup
   statement-adapter.js whatIfTotalsHtml). Calm, like the 10/9 quiet Overview: navy figures
   on white tiles, gold accent on the indemnity tile, no red. */
.lrp-book .wi-total { margin: 10px 0 2px; padding: 10px 12px; background: #fff; border: 1px solid #edd9a8;
  border-left: 4px solid var(--gold, #D69600); border-radius: 8px; }
.lrp-book .wi-tot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px; }
.lrp-book .wi-tot-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-800, #073763); }
.lrp-book .wi-tot-when { font-size: 13px; font-weight: 600; color: #6f4f00; }
.lrp-book .wi-tot-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr 1.25fr; gap: 8px; }
.lrp-book .wi-tot-tile { background: #f6f8fb; border: 1px solid #dfe5ee; border-radius: 7px; padding: 7px 10px; min-width: 0; }
.lrp-book .wi-tot-tile.is-main { background: #fdf6e6; border-color: #edd9a8; }
.lrp-book .wi-tot-lab { font-size: 11px; font-weight: 700; color: #4f5a6b; line-height: 1.25; }
.lrp-book .wi-tot-sub { font-weight: 500; white-space: nowrap; }
.lrp-book .wi-tot-val { font-size: 20px; font-weight: 800; color: var(--navy-800, #073763); line-height: 1.2; margin-top: 2px;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lrp-book .wi-tot-tile.is-main .wi-tot-val { font-size: 24px; }
.lrp-book .wi-tot-tile.is-ind .wi-tot-val { color: var(--green); }   /* RN-0022: indemnities in green */
.lrp-book .wi-tot-tile.is-pos .wi-tot-val { color: var(--green); }   /* RN-0024: a positive est. net in green */
/* RN-0025 / RN-0030 (McLane 11/9): how live the LRP numbers are - no box, just the dot
   (green pulsing = live, amber = running behind, gray = market closed), the bold
   "Last updated" lead and a smaller plain explanation. LRP Positions + Overview. */
.lrp-live { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0.5rem 0 0.2rem; line-height: 1.4;
  color: var(--ink, #1d2633); max-width: 900px; }
.lrp-live-lead { font-size: 0.9rem; font-weight: 800; margin-right: 0.3rem; }
.lrp-live-text { font-size: 0.78rem; color: var(--muted, #5b6676); }
.lrp-live-dot { flex: none; width: 9px; height: 9px; margin-top: 0.36rem; border-radius: 50%; background: var(--green); }
.lrp-live.is-live .lrp-live-dot { animation: lrpLivePulse 2s ease-in-out infinite; }
.lrp-live.is-closed .lrp-live-dot { background: #8a96a8; }
.lrp-live.is-behind .lrp-live-dot { background: #d69600; }
.lrp-live.is-behind .lrp-live-lead { color: #7a5600; }
@keyframes lrpLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .lrp-live.is-live .lrp-live-dot { animation: none; } }
@media print { .lrp-live { display: none; } }
.lrp-book .wi-tot-change { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--navy-800, #073763); }
.lrp-book .wi-tot-note { margin-top: 2px; font-size: 11px; color: #6b7280; }
@media (max-width: 720px) {
  .lrp-book .wi-tot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lrp-book .wi-tot-val { font-size: 17px; }
  .lrp-book .wi-tot-tile.is-main .wi-tot-val { font-size: 20px; }
}
@media print { .lrp-book .wi-total { display: none; } }
