/* Diamond CLS application stylesheet (design system "Clarity", chosen 2026-10-01).
   The one stylesheet for the servicer, lender and borrower portals. Reference: docs/design-reference.md.
   Rules: every value comes from a token on :root; no Bootstrap/Tailwind/UI kit; fonts and icons are
   self-hosted under /assets; status is never color alone (icon + text, tone third); focus is always
   visible; controls are at least 44px (32px "sm" only in dense toolbars and pagers).
   Contrast (WCAG 2.1, measured 2026-10-01): ink #071B3D on surface 16.25:1 · text-2 #64748B on surface
   4.54:1 (body size only, never on tints) · blue #145CFF on white 5.24:1 · white on blue 5.24:1 ·
   cyan #00C8FF on white 1.96:1 = decoration only · status text on its tint >= 5.75:1 ·
   control borders #7D8BA1 on white 3.4:1 (WCAG 1.4.11). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  /* brand */
  --navy: #071B3D;  --blue: #145CFF;  --cyan: #00C8FF;  --surface: #F7FAFC;  --text-2: #64748B;
  --green: #0B6B53; --mint: #20E0A0;
  /* roles */
  --bg: var(--surface); --panel: #FFFFFF; --ink: var(--navy); --muted: var(--text-2);
  --line: #E3E9F1; --line-strong: #7D8BA1;
  --hover: #EEF3FB; --selected: #E6EEFF; --zebra: #FBFCFE;
  --accent: var(--blue); --accent-ink: #FFFFFF; --accent-hover: #0F4AD6;
  --focus: var(--blue);
  /* status tones: text / tint */
  --pos: #0B6B53;  --pos-bg: #E7F7F1;
  --cau: #8A4B00;  --cau-bg: #FFF4DB;
  --neg: #B42318;  --neg-bg: #FDECEA;
  --inf: #1047C8;  --inf-bg: #EAF1FF;
  --neu: #475569;  --neu-bg: #EEF2F6;
  /* bar fills (non-text, >= 3:1 against white) */
  --pos-fill: #12936F; --cau-fill: #C27A00; --neg-fill: #C8321F;
  /* type */
  --font: "Inter", system-ui, sans-serif;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-md: .875rem; --fs-lg: 1rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem;
  --lh: 1.45;
  /* space, radius, size */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px;
  --control: 44px; --control-sm: 32px; --row: 40px; --row-compact: 30px; --sidebar: 232px; --topbar: 56px;
  /* a .form-row's label line and its gap: what a button beside labelled fields drops by to sit level with the boxes */
  --label-offset: calc(var(--fs-sm) * var(--lh) + 4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-md)/var(--lh) var(--font); font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-lg); font-weight: 600; }
.num { font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }

/* focus: always visible, never removed */
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--panel); padding: var(--s2) var(--s3); border: 2px solid var(--focus); }
.skip:focus { top: var(--s2); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--panel) calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px) var(--sidebar), transparent var(--sidebar)); }
.topbar { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5) var(--s4); }
.brand { display: inline-flex; align-items: center; padding: var(--s1); }
.brand img { display: block; height: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: var(--s3); min-height: var(--control); padding: 0 var(--s3); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a .ico { width: 20px; height: 20px; color: var(--muted); }
.nav a:hover { background: var(--hover); }
.nav a[aria-current="page"] { background: var(--selected); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nav a[aria-current="page"] .ico { color: var(--accent); }
.who { margin-top: auto; display: grid; padding: var(--s3); border-top: 1px solid var(--line); }
.who-name { font-weight: 600; } .who-role { color: var(--muted); font-size: var(--fs-sm); }
.main { padding: var(--s5) var(--s6) var(--s7); min-width: 0; outline: none; }

/* ---------------------------------------------------------------- page head */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.sub { margin: var(--s1) 0 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.eyebrow { margin: 0 0 var(--s1); color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.h1-sub { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 500; color: var(--muted); }
.h2-sub { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-left: var(--s2); }
.sep { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.crumbs ol { list-style: none; display: flex; gap: var(--s2); margin: 0 0 var(--s2); padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-strong); }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--control); min-width: var(--control); padding: 0 var(--s4); border-radius: var(--r-md); border: 1px solid transparent; font: 600 var(--fs-md)/1 var(--font); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--hover); }
.btn-sm { min-height: var(--control-sm); min-width: var(--control-sm); padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-pressed="true"] { background: var(--selected); border-color: var(--accent); color: var(--accent); }
input[type="search"], select { min-height: var(--control-sm); border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--panel); }
select { padding: 0 28px 0 var(--s2); max-width: 15rem; }
.search { position: relative; display: inline-flex; align-items: center; }
.search .ico { position: absolute; left: var(--s3); color: var(--muted); }
.search input { width: 260px; padding: 0 var(--s3) 0 34px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* ---------------------------------------------------------------- saved views: worklists with counts */
.views ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--s4); padding: 0; border-bottom: 1px solid var(--line); }
.views a { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s4); color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.view-count { min-width: 26px; padding: 0 7px; border-radius: 999px; background: var(--neu-bg); color: var(--neu); font-size: var(--fs-xs); text-align: center; }
[aria-current="page"] > .view-count, [aria-selected="true"] > .view-count { background: var(--selected); color: var(--accent); }

/* ---------------------------------------------------------------- action strip: today's to-dos over the whole book.
   Each card is a button that opens its worklist; portfolio totals live in the one-line summary
   above the table instead. Fixed height so loading cannot shift the layout. */
.actions-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.act { display: grid; align-content: start; gap: 2px; height: 96px; padding: var(--s3) var(--s4); text-align: left; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: var(--r-lg); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.act:hover { background: var(--hover); }
.act[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.act-top { display: flex; align-items: center; gap: var(--s2); }
.act-top .ico { width: 20px; height: 20px; }
.act-v { text-align: left; font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.act-k { font-weight: 600; font-size: var(--fs-sm); }
.act-note { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-primary { background: var(--navy); border-color: var(--navy); border-top-color: var(--cyan); color: #fff; }
.act-primary:hover { background: #0D2752; }
.act-primary .act-note { color: #A9B8CF; } .act-primary .ico { color: var(--cyan); }
.act-primary[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cyan); }
.act-negative { border-top-color: var(--neg-fill); } .act-negative .act-v { color: var(--neg); }
.act-caution { border-top-color: var(--cau-fill); } .act-caution .act-v { color: var(--cau); }
.act-info { border-top-color: var(--blue); } .act-info .act-v { color: var(--inf); }
.summary { margin: 0; padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.summary:empty { display: none; }

/* ---------------------------------------------------------------- aging bar: count, share and amount in text; color is the third cue */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.panel > h2 { margin-bottom: var(--s3); }
.aging { padding: var(--s4) var(--s5); }
.aging h2 { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.aging-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--line); }
.seg { flex: 1 1 0; min-width: 3px; }
.seg-positive { background: var(--pos-fill); } .seg-caution { background: var(--cau-fill); } .seg-negative { background: var(--neg-fill); }
.seg.is-on { outline: 2px solid var(--ink); outline-offset: -2px; }
.aging-legend { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin: var(--s3) 0 0; padding: 0; }
.aging-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s2); text-align: left; min-height: var(--control); padding: var(--s1) var(--s3); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-md); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.aging-btn:hover { background: var(--hover); }
.aging-btn[aria-pressed="true"] { background: var(--selected); border-color: var(--accent); }
.tone-positive { border-left-color: var(--pos-fill); } .tone-caution { border-left-color: var(--cau-fill); } .tone-negative { border-left-color: var(--neg-fill); }
.aging-name { font-weight: 600; } .aging-n { color: var(--muted); font-size: var(--fs-sm); } .aging-amt { grid-column: 1 / -1; text-align: left; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- toolbar, chips, bulk bar */
.table-panel { padding: 0; overflow: hidden; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 2px; }
.field-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.toolbar-end { margin-left: auto; display: flex; align-items: flex-end; gap: var(--s2); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 var(--s2) 0 var(--s3); border: 1px solid var(--accent); border-radius: 999px; background: var(--selected); color: var(--accent); font: 600 var(--fs-sm) var(--font); cursor: pointer; }
.chip .ico { width: 14px; height: 14px; }
.chip-clear { border: 0; background: none; color: var(--accent); font: 600 var(--fs-sm) var(--font); text-decoration: underline; cursor: pointer; min-height: 30px; }
.bulkbar { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); background: var(--navy); color: #fff; }
.bulkbar .chip-clear { color: var(--cyan); }

/* ---------------------------------------------------------------- tables: dense, tabular, sticky header and key column */
.table-scroll { position: relative; max-height: calc(100vh - 140px); overflow: auto; }  /* relative: a visually hidden label (absolute) in a cell is clipped here, not left to widen the page */
.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-md); }
.data th, .data td { height: var(--row); padding: 0 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; background: var(--panel); }
.data th:first-child, .data td:first-child { padding-left: var(--s4); }
.data thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line-strong); }
.data .num { text-align: right; }
.data tbody tr:nth-child(even) > * { background: var(--zebra); }
.data tbody tr:hover > * { background: var(--hover); }
.data tbody tr.is-selected > * { background: var(--selected); }
.data tbody th { font-weight: 600; }
.data a { text-decoration: none; font-weight: 600; } .data a:hover { text-decoration: underline; }
.data tfoot th, .data tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--panel); font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.col-check { width: 44px; padding-right: 0 !important; }
.data .col-key { position: sticky; left: 0; z-index: 2; }
.data thead .col-key { z-index: 4; }
.data .col-check + .col-key { left: 44px; }
.sort { display: inline-flex; align-items: center; gap: 4px; min-height: var(--control-sm); padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th.num .sort { flex-direction: row-reverse; }
.sort-ico { width: 12px; height: 12px; opacity: .45; }
[aria-sort] .sort { color: var(--ink); } [aria-sort] .sort-ico { opacity: 1; color: var(--accent); }
.col-two .cell-main, .col-two .cell-sub, .data tfoot .cell-main, .data tfoot .cell-sub { display: block; }
.cell-sub { color: var(--muted); font-size: var(--fs-xs); line-height: 1.2; }
.data td.num .cell-sub { display: block; }  /* a count's line under it, such as the Loans page's "1 missing" */
.data td.col-two { padding-top: 4px; padding-bottom: 4px; }
.is-reversal > * { background: var(--neg-bg) !important; }
.is-reversal td:nth-child(3) { color: var(--neg); font-weight: 600; }
.is-reversal .ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
/* compact density: rows only; controls inside keep a 24px minimum (WCAG 2.5.8) */
.density-compact .data tbody th, .density-compact .data tbody td { height: var(--row-compact); }
.density-compact .data td.col-two .cell-main { display: inline; }
.density-compact .data td.col-two .cell-sub { display: inline; margin-left: var(--s2); }
.density-compact .badge { padding-top: 0; padding-bottom: 0; }
.cards { display: none; }
/* a detail table (the schedule's): its cells wrap, and it scrolls inside its own box on a narrow screen, never hidden */
.detail-table .data th, .detail-table .data td { white-space: normal; }
.detail-table > .table-scroll { overflow-x: auto; }
@media (max-width: 720px) { .detail-table .data { min-width: 36rem; } }
/* expandable sponsor rows */
.col-expand { width: 40px; padding: 0 !important; text-align: center; }
.expander { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--ink); cursor: pointer; }
.expander .ico { width: 14px; height: 14px; transition: transform .15s ease; }
.expander[aria-expanded="true"] .ico { transform: rotate(90deg); }
.expander:hover { background: var(--hover); }
.data tbody tr.expand-row > td { background: var(--surface) !important; padding: var(--s3) var(--s4) var(--s4) 88px; white-space: normal; height: auto; }
.expand-body p { margin: var(--s2) 0 0; }
.data.nested { width: auto; min-width: 70%; border: 1px solid var(--line); border-radius: var(--r-md); }
.data.nested th, .data.nested td { height: 34px; background: var(--panel); }
.data.nested thead th { position: static; }
.data tbody tr.is-current > * { background: var(--selected) !important; font-weight: 600; }
.empty { padding: var(--s6) var(--s5); text-align: center; color: var(--muted); display: grid; justify-items: center; gap: var(--s3); }
.empty p { margin: 0; }

/* ---------------------------------------------------------------- pager */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.pager:empty { display: none; }
.pager-info { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-btns { display: flex; align-items: center; gap: var(--s2); }
.pager-page { padding: 0 var(--s2); font-variant-numeric: tabular-nums; }
.pager-opts { display: flex; align-items: center; gap: var(--s2); }
.data td.col-wrap { white-space: normal; min-width: 11rem; }
/* A page's machine summary (docs/page-summaries.md): plain sentence, its label muted, never styled as a fact. */
.machine-summary { margin: var(--s1) 0 0; max-width: 28rem; }
.data .col-two { white-space: normal; max-width: 17rem; }
.data .col-two.col-nowrap { white-space: nowrap; max-width: none; }

/* ---------------------------------------------------------------- badges: icon + text; tone is the third cue */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-positive { color: var(--pos); background: var(--pos-bg); }
.badge-caution  { color: var(--cau); background: var(--cau-bg); }
.badge-negative { color: var(--neg); background: var(--neg-bg); }
.badge-info     { color: var(--inf); background: var(--inf-bg); }
.badge-neutral  { color: var(--neu); background: var(--neu-bg); }

/* ---------------------------------------------------------------- alerts */
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); margin-bottom: var(--s4); border: 1px solid; }
.alert-ico { width: 20px; height: 20px; margin-top: 1px; }
.alert-negative { background: var(--neg-bg); border-color: var(--neg); } .alert-negative .alert-ico { color: var(--neg); }
.alert-caution { background: var(--cau-bg); border-color: var(--cau); } .alert-caution .alert-ico { color: var(--cau); }

/* ---------------------------------------------------------------- loan page */
.worknav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.worknav:empty { display: none; }
.worknav-back { font-weight: 600; text-decoration: none; margin-right: auto; }
.worknav-pos { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: var(--s2); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s4); min-height: 72px; display: grid; align-content: center; min-width: 0; }
.kpi-k { color: var(--muted); font-size: var(--fs-sm); }
.kpi-v { text-align: left; font-size: var(--fs-xl); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.kpi-alert { border-color: var(--neg); box-shadow: inset 3px 0 0 var(--neg); } .kpi-alert .kpi-v { color: var(--neg); }
.footnote { color: var(--muted); font-size: var(--fs-xs); margin: var(--s2) 0 var(--s4); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s4); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 600 var(--fs-md) var(--font); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabpanel { outline: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.grid-2 > .panel { margin: 0; }
/* Screen 31: an old and a new value side by side (the hand correction's second person). */
.big-val { font-size: var(--fs-xl); font-weight: 700; margin: var(--s2) 0; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; } .facts dd.num { text-align: left; }
.facts.compact dd.num { text-align: right; }
.facts.compact > div { grid-template-columns: 1fr auto; }
.facts .total { font-weight: 700; border-top: 2px solid var(--ink); }

/* payoff job concept: blue mark while running, cross-fades to green when done */
.job-demo { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: var(--s6); align-items: center; }
.job { display: grid; justify-items: center; gap: var(--s3); padding: var(--s5); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.job-marks { position: relative; width: 64px; height: 64px; }
.job-marks img { position: absolute; inset: 0; }
.m-blue, .job-running { animation: blueOut 4s ease-in-out infinite; }
.m-green, .job-done { animation: greenIn 4s ease-in-out infinite; }
.job-text { position: relative; height: 3em; width: 100%; text-align: center; font-weight: 600; }
.job-text span { position: absolute; inset: 0; }
.job-done { color: var(--pos); }
.job-bar { width: 100%; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.job-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; animation: bar 4s ease-in-out infinite; }
@keyframes blueOut { 0%, 55% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes greenIn { 0%, 55% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes bar { 0% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .m-blue, .m-green, .job-running, .job-done, .job-bar span { animation: none; opacity: 1; }
  .job-marks { width: 140px; } .m-green { left: 76px; } .job-text { height: auto; } .job-text span { position: static; display: block; }
}

/* ---------------------------------------------------------------- lender and sponsor pages: contacts (communications module slot) */
.contacts { margin: var(--s4) 0; }
.contacts > h2 { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s3); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s3) var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-who, .contact-how { display: grid; min-width: 0; } .contact-how { grid-column: 1; }
.contact-how span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .contact-how .num { text-align: left; }
.contact-act { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: var(--s2); justify-content: center; }
.contact-act .ico { width: 16px; height: 16px; }
.small { font-size: var(--fs-xs); }
.empty-ico { width: 28px; height: 28px; color: var(--line-strong); }

/* ---------------------------------------------------------------- modal dialog */
.modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); color: var(--ink); background: var(--panel); box-shadow: 0 24px 48px rgb(7 27 61 / .28); }
.modal::backdrop { background: rgb(7 27 61 / .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: var(--fs-lg); }
.modal-x { display: inline-grid; place-items: center; width: var(--control); height: var(--control); margin: calc(-1 * var(--s2)) calc(-1 * var(--s3)) calc(-1 * var(--s2)) 0; border: 0; background: none; color: var(--muted); border-radius: var(--r-md); cursor: pointer; }
.modal-x:hover { background: var(--hover); color: var(--ink); }
.modal-body { padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s2); padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.call-steps { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.call-steps li { counter-increment: s; padding: 2px var(--s3); border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); color: var(--muted); }
.call-steps li::before { content: counter(s) ". "; font-weight: 600; }
.note-box { margin: 0; padding: var(--s3); background: var(--inf-bg); color: var(--inf); border-radius: var(--r-md); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- forms */
.form-row { display: grid; gap: 4px; }
.form-row label { font-weight: 600; font-size: var(--fs-sm); }
.form-row select, .form-row input[type="text"], .form-row input[type="email"], .form-row input[type="date"], .form-row textarea { width: 100%; max-width: none; min-height: var(--control); padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--panel); }
.form-row textarea { resize: vertical; min-height: 96px; }
.help { margin: 0; color: var(--muted); font-size: var(--fs-xs); text-align: left; }
.field-error { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; color: var(--neg); font-size: var(--fs-sm); font-weight: 600; }
.field-error .ico { width: 16px; height: 16px; margin-top: 2px; }
[aria-invalid="true"] { border-color: var(--neg) !important; box-shadow: 0 0 0 1px var(--neg); }
.stack { display: grid; gap: var(--s3); width: 100%; }
/* Rows line up by their boxes whatever text sits under one (a help line under the EIN box used to lift it, when
   rows aligned by their bottoms): rows align to the top, and a button or checkbox beside labelled rows drops by
   one label line. A form of buttons alone (no labelled row) takes no offset. */
.form-inline { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-start; }
.form-inline:has(> .form-row) > .btn, .form-inline:has(> .form-row) > .check { margin-top: var(--label-offset); }
.form-inline:has(> .form-row) > .btn-sm { margin-top: calc(var(--label-offset) + (var(--control) - var(--control-sm)) / 2); }
.form-inline:has(> .form-row) > .check { min-height: var(--control); }
.form-inline .form-row input[type="text"], .form-inline .form-row input[type="email"] { width: auto; min-width: 12rem; }
.check { display: inline-flex; gap: var(--s2); align-items: center; font-size: var(--fs-sm); }

.page-text { white-space: pre-wrap; word-break: break-word; max-height: 70vh; overflow: auto; margin: 0; padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); }
.form-row input[type="file"] { font: inherit; }

/* ---------------------------------------------------------------- two-step verification */
.steps { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--s3); }
.qr { display: block; margin-top: var(--s2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); word-break: break-all; }
.codes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); width: 100%; }
.codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-lg); letter-spacing: .04em; }

/* ---------------------------------------------------------------- narrower desktops */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar-end { margin-left: 0; }
}
@media (max-width: 1100px) {
  .aging-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2, .job-demo { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- phone: drawer nav, records become cards */
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: var(--topbar); padding: 0 var(--s3); background: var(--panel); border-bottom: 1px solid var(--line); }
  .topbar .brand img { width: 128px; }
  .drawer summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 600; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer[open] nav { position: absolute; left: 0; right: 0; top: var(--topbar); background: var(--panel); border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3) var(--s3); }
  .main { padding: var(--s4) var(--s3) var(--s6); }
  h1 { font-size: var(--fs-xl); }
  /* auto basis: buttons keep their words and wrap to a new row, instead of shrinking until labels overlap (seven in
     the servicer menu since Borrowers joined it) */
  .actions { width: 100%; } .actions .btn { flex: 1 1 auto; }
  .kpis-fixed .kpi-wide { grid-column: 1 / -1; }
  .views ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .views a { white-space: nowrap; padding: 0 var(--s3); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .act { height: 88px; padding: var(--s2) var(--s3); } .act-primary { grid-column: 1 / -1; }
  .kpi-v { font-size: var(--fs-lg); }
  .aging-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar .search { grid-column: 1 / -1; } .search input { width: 100%; }
  .field select { width: 100%; max-width: none; }
  .toolbar-end { grid-column: 1 / -1; }
  .table-panel:not(.detail-table) > .table-scroll { display: none; }
  .tabpanel .table-scroll { max-height: 70vh; }
  .cards { display: grid; list-style: none; margin: 0; padding: 0; }
  .card-row { display: grid; gap: 2px; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
  .card-row:first-child { border-top: 0; }
  .cr-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); font-weight: 700; }
  .cr-main { font-weight: 600; } .cr-meta { color: var(--muted); font-size: var(--fs-sm); }
  .cr-figs { display: flex; justify-content: space-between; } .cr-k { color: var(--muted); font-size: var(--fs-xs); }
  .facts > div { grid-template-columns: 1fr; gap: 0; } .facts.compact > div { grid-template-columns: 1fr auto; }
  .tabs { overflow-x: auto; }
  .pager { justify-content: center; } .pager-info { width: 100%; text-align: center; }
  .pager-btns .btn { min-height: var(--control); }
}

/* ---------------------------------------------------------------- additions for the full component set */
.btn-danger { background: var(--neg); color: #fff; }
.btn-danger:hover { background: #8F1C13; }
.alert-info { background: var(--inf-bg); border-color: var(--inf); } .alert-info .alert-ico { color: var(--inf); }
.alert-positive { background: var(--pos-bg); border-color: var(--pos); } .alert-positive .alert-ico { color: var(--pos); }
.empty h3 { margin: 0; color: var(--ink); font-size: var(--fs-lg); }
.modal-static { position: static; display: block; margin: 0; box-shadow: 0 8px 24px rgb(7 27 61 / .16); }
.sg-h { margin: var(--s6) 0 var(--s3); }
/* sign-in and simple message pages */
.signin { min-height: 100vh; display: grid; place-items: center; padding: var(--s4); }
.signin-card { width: min(440px, 100%); display: grid; gap: var(--s4); justify-items: start; }
.signin-card img { height: auto; }

/* ---------------------------------------------------------------- document area, slice 1: the one-tap upload */
.taps { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; border: 0; }
.taps legend, .personal-fields legend { margin-bottom: var(--s2); font-weight: 600; }
.taps .help { flex-basis: 100%; }
.tap { display: grid; gap: 2px; min-width: 9rem; max-width: 22rem; padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); cursor: pointer; }
.tap:has(input:checked) { border-color: var(--accent); background: var(--selected); }
.tap:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tap input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tap-name { font-weight: 600; }
.tap-help { color: var(--muted); font-size: var(--fs-xs); }
.tap-off { cursor: not-allowed; opacity: .6; }
.personal-fields { margin: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 0; }
.page-image { display: block; width: 100%; max-width: 820px; height: auto; border: 1px solid var(--line); margin-bottom: var(--s3); }
ul.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s4); margin: 0 0 var(--s3); }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; }
/* Screen 14, the outline: depth in the tree as indentation (docs/document-area/ 1.2). */
.outline-tree th.lvl-2 { padding-left: var(--s5); }
.outline-tree th.lvl-3 { padding-left: var(--s6); }
.outline-tree th.lvl-4 { padding-left: var(--s7); }

/* The borrower page (docs/document-area/ 17): small forms side by side in a table cell. */
.inline-form { display: inline-block; margin: 0 0.25rem 0.25rem 0; }

/* Provenance labels of a boarding field (docs/document-area/ 3.7, 6.6; slice 3) */
.field-label { display: inline-block; margin-left: var(--s1); padding: 0 var(--s2); border-radius: 999px; font-size: var(--fs-xs); line-height: 1.5; white-space: nowrap; }
.field-typed { background: var(--cau-bg); color: var(--cau); }
.field-default { background: var(--neu-bg); color: var(--neu); }
.field-lifted { background: var(--inf-bg); color: var(--inf); }
.field-confirmed { background: var(--pos-bg); color: var(--pos); }
.field-who { font-weight: 400; }
input[readonly] { background: var(--neu-bg); }

/* Screen 3, the source view: crops above, the page with its highlight beside or below (7.8) */
.crops { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.crop { max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.crop-missing { color: var(--cau); }
.page-with-highlight { position: relative; display: inline-block; max-width: 100%; }
.page-with-highlight .page-image { display: block; max-width: 100%; }
.page-with-highlight .highlight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-with-highlight .highlight rect { fill: rgba(255, 214, 0, .35); stroke: var(--cau-fill); stroke-width: .002; }

/* The review screens (slice 3): tabs, steps, the clean list */
.tabs ul { list-style: none; display: flex; gap: var(--s4); margin: 0 0 var(--s4); padding: 0; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-block; padding: var(--s2) 0; }
.tabs a[aria-current="page"] { font-weight: 600; border-bottom: 2px solid var(--accent); }
.steps li, .clean-list li { margin-bottom: var(--s2); }
.clean-list { list-style: none; padding: 0; }

/* The servicer home (owner 2026-10-08): portfolio totals and the work waiting on a person. Fixed heights so the
   figures never shift the page (rule 4); status is an icon and a word, tone third (rule 1). */
.kpis-fixed { margin-bottom: var(--s5); }
.kpis-fixed .kpi { height: 92px; min-height: 0; align-content: start; gap: 2px; }
.kpis-fixed .kpi-k, .kpi-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-note { color: var(--muted); font-size: var(--fs-xs); }
.work-h { margin-bottom: var(--s3); }
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); }
.work-tile { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 2px; height: 188px; padding: var(--s3) var(--s4);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; }
a.work-tile:hover { background: var(--hover); }
.work-tile.is-waiting { border-top-color: var(--cau-fill); }
/* the label and the note take two lines at most, so the tile keeps its height */
.work-k, .work-note { align-self: start; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.work-k { font-weight: 600; font-size: var(--fs-sm); }
.work-v { text-align: left; font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.work-status .badge .ico { width: 14px; height: 14px; }
.work-note { color: var(--muted); font-size: var(--fs-xs); }
.work-go { align-self: end; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-go.muted { color: var(--muted); font-weight: 400; }
a.work-tile:hover .work-go { text-decoration: underline; }

/* The Preview menu and the Roadmap (owner 2026-10-09): admins only; a <details> dropdown, no script. */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: "\25BE"; margin-left: var(--s1); }
.nav-menu > ul { position: absolute; right: 0; z-index: 20; min-width: 15rem; max-width: calc(100vw - 2 * var(--s3)); margin: var(--s1) 0 0; padding: var(--s2) 0; list-style: none;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 6px 18px rgba(7, 27, 61, .12); }
.nav-menu ul ul { margin: 0; padding: 0; list-style: none; }
.nav-menu a, .nav-menu-signout { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); width: 100%; padding: var(--s2) var(--s3); color: var(--ink); text-decoration: none; font: inherit; font-size: var(--fs-sm); text-align: left; background: none; border: 0; cursor: pointer; }
.nav-menu a:hover, .nav-menu-signout:hover { background: var(--hover); }
.nav-menu a[aria-current="page"] { font-weight: 600; }
.nav-menu form { margin: 0; }
.nav-menu .nav-menu-group { margin-top: var(--s1); border-top: 1px solid var(--line); padding-top: var(--s1); }
.nav-menu-label { display: block; padding: var(--s1) var(--s3); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.roadmap-key { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0 0 var(--s3); padding: 0; }
.roadmap-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.roadmap-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.roadmap-items .badge { min-width: 8.5rem; justify-content: center; }
.roadmap-sub { flex-basis: 100%; padding-left: calc(8.5rem + var(--s2)); color: var(--muted); font-size: var(--fs-xs); }
.roadmap-n { color: var(--muted); font-weight: 500; margin-right: var(--s2); }
@media (max-width: 720px) {
  .nav-menu { flex: 1 1 auto; } .nav-menu > summary { width: 100%; max-width: none; }
  /* The open menu hangs from the whole nav, not its button, so it never runs off a phone's right edge. */
  nav.actions { position: relative; } .nav-menu { position: static; }
  .nav-menu > ul { left: 0; right: 0; min-width: 0; max-width: none; }
  .roadmap-sub { padding-left: 0; }
}

/* Slice 3a phase 1: screen 28 "From the documents" and the loan file checklist (docs/document-area/ 19.11; the approved
   mockup public/design-preview/boarding-read/). Lists are cards at every width, so nothing is hidden on a phone. */
.br-lead { margin: 0 0 var(--s4); }
.br-field { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.br-field:first-of-type { border-top: 0; }
.br-fname { font-weight: 600; color: var(--muted); }
.br-fbody { min-width: 0; display: grid; gap: var(--s2); }
.br-current { overflow-wrap: anywhere; }
.br-none { margin: 0; color: var(--muted); font-style: italic; }
.br-cands, .br-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.br-cand, .br-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); background: var(--panel); display: grid;
  grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0; overflow-wrap: anywhere; }
.br-cand-top, .br-row-top { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; }
.br-cand .badge, .br-row .badge { white-space: normal; }
.br-dim { opacity: .7; }
.br-val { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.br-src { margin: 0; }
.br-snip { margin: 0; padding: var(--s2) var(--s3); background: var(--surface); border-left: 3px solid var(--line-strong);
  font-family: "Courier New", Courier, monospace; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.br-snip mark { background: var(--inf-bg); color: inherit; outline: 1px solid var(--blue); border-radius: 2px; }
.br-alert { margin: var(--s3) 0; }
.br-docs li { overflow-wrap: anywhere; }
.br-step { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); display: grid; gap: var(--s2); min-width: 0; }
.taps .alert { flex-basis: 100%; }
@media (max-width: 720px) {
  .br-field { grid-template-columns: 1fr; gap: var(--s1); }
  .br-cand .actions .btn, .br-row .actions .btn, .br-cand .inline-form, .br-row .inline-form { flex: 1 1 auto; }
  .br-cand .inline-form .btn, .br-row .inline-form .btn { width: 100%; }
}

/* ---------------------------------------------------------------- documents that disagree, side by side (demo screens) */
.side-by-side { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.side-by-side > li { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); }
.side-by-side p { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.side-value { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.stated-line { display: block; margin-top: var(--s1); }
.ts-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.ts-row { border-top: 1px solid var(--line); padding-top: var(--s4); }
.ts-row:first-child { border-top: 0; padding-top: 0; }
.ts-row h3, .ts-why { margin: 0 0 var(--s2); }
.settle-form { margin-top: var(--s3); }
.settle-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.settle-form legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s1); width: 100%; }
.data td.wrap { white-space: normal; min-width: 16rem; overflow-wrap: anywhere; }
/* A table whose rows become stacked blocks on a phone, so nothing is cut off or scrolls sideways (Exceptions). */
@media (max-width: 720px) {
  .data.stack-phone thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data.stack-phone, .data.stack-phone tbody, .data.stack-phone tr, .data.stack-phone th, .data.stack-phone td { display: block; }
  .data.stack-phone tr { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
  .data.stack-phone th, .data.stack-phone td { height: auto; min-width: 0; padding: var(--s1) var(--s4); white-space: normal; border-bottom: 0; }
}
