/* ------------------------------------------------------------------ tokens
   Brand color and type come from /brand/theme.css. Everything else is here, so a broker's rebrand never touches layout.
   The look follows the Stratum portals' design system (UI modernization round 3, 2026-10-25): a cool canvas, white
   hairline surfaces with no shadow, the primary action in the brand color, a teal accent for links, focus and progress,
   figures in Inter with tabular digits, sentence-case labels, quiet status badges with a dot, and no decorative motion. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --line-strong: #d1d5db;
  --green: #15803d; --green-bg: #f0fdf4; --amber: #b45309; --amber-bg: #fffbeb; --red: #b91c1c; --red-bg: #fef2f2;
  
  --radius: 12px; --radius-sm: 8px;
  --shadow: none; --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --space: 8px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121722; --surface-2: #171d29; --ink: #e5e7eb; --ink-2: #cbd2dc; --muted: #9ca3af; --line: #262d3a; --line-strong: #374151;
  --green: #5fd08a; --green-bg: #11301e; --amber: #f2c46a; --amber-bg: #342a0e; --red: #ff8f85; --red-bg: #3b1814;
  --brand: var(--brand-dark, #5eead4); --brand-ink: var(--brand-ink-dark, #0a1e33); --brand-soft: var(--brand-soft-dark, #13263a);
  --accent: var(--accent-dark, var(--brand-dark, #5eead4));
  --shadow: none; --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17; --surface: #121722; --surface-2: #171d29; --ink: #e5e7eb; --ink-2: #cbd2dc; --muted: #9ca3af; --line: #262d3a; --line-strong: #374151;
    --green: #5fd08a; --green-bg: #11301e; --amber: #f2c46a; --amber-bg: #342a0e; --red: #ff8f85; --red-bg: #3b1814;
    --brand: var(--brand-dark, #5eead4); --brand-ink: var(--brand-ink-dark, #0a1e33); --brand-soft: var(--brand-soft-dark, #13263a);
    --accent: var(--accent-dark, var(--brand-dark, #5eead4));
    --shadow: none; --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font, system-ui, sans-serif); font-feature-settings: 'cv11' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent, var(--brand)); text-underline-offset: 2px; }
[hidden] { display: none !important; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.015em; font-weight: 600; }
h2 { font-size: 15px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -.005em; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.center { justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Figures: Inter with lining, fixed-width digits, as the portals' .num */
.num, .stat b, .tile b, .ring-num b, .fact-value, .opt-value, .aud-count, td { font-variant-numeric: tabular-nums lining-nums; }
main { max-width: 1200px; margin: 0 auto; padding: 28px 32px 72px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }
:focus-visible { outline: 2px solid var(--accent, var(--brand)); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ header */
.ribbon { background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 16px; text-align: center; font-size: 12px; }
header.bar { display: flex; align-items: center; gap: 12px; padding: 0 32px; min-height: 56px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.brand-mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand-logo { max-height: 28px; }
.logo-slot { border: 1px dashed var(--line-strong); color: var(--muted); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 500; }
.spacer { flex: 1; }
.navlink { font-weight: 500; font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.navlink:hover { color: var(--ink); background: var(--surface-2); }
.navlink[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card > h2:first-child { margin-bottom: 12px; }
/* The page header (the portals' PageHeader): a title and its actions over a hairline. */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 0; font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.fixcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: var(--surface); }
.fixcard .err, .err { color: var(--red); font-size: 13px; margin-top: 4px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; } .help:empty { display: none; }

/* ------------------------------------------------------------------ forms and buttons */
label { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
input, select, textarea { width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; transition: border-color .15s, box-shadow .15s; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 22%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; margin-right: 8px; accent-color: var(--brand); }
.checkrow { display: flex; align-items: center; font-weight: 500; font-size: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-xs); transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #fff); }
.btn-lg { height: 40px; padding: 0 20px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
summary { cursor: pointer; font-weight: 500; }

/* ------------------------------------------------------------------ chips, badges, pills: a small-cornered tint with a status dot */
.badge, .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 18px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge-green, .chip-green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.badge-amber, .chip-amber { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.badge-red, .chip-red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.chip-blue { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
:root[data-theme="dark"] .chip-blue { color: var(--ink); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip svg { width: 12px; height: 12px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); }
.pill-off { background: var(--red-bg); color: var(--red); border-color: transparent; }
.who { font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.src { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Notes and alerts (the portals' Callout): a white note on a hairline; warning, error and success carry a colored rule on the left. */
.notice { border: 1px solid var(--line); border-left: 2px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; background: var(--surface); color: var(--ink-2); font-size: 13px; }
.notice-warn { border-left-color: var(--amber); } .notice-error { border-left-color: var(--red); color: var(--red); } .notice-ok { border-left-color: var(--green); }

/* ------------------------------------------------------------------ tables (documents, rows) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; transition: background .12s; } tr.click:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { padding: 14px 18px; border-left: 1px solid var(--line); margin-left: -1px; color: var(--muted); font-size: 13px; }
.tile b { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
.tiles-doc .tile b { font-size: 17px; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 4px 0 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.gap-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.copybox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); margin-top: 8px; }
.copybox-text { white-space: pre-wrap; word-break: normal; font-family: inherit; }
.login { padding: 28px; box-shadow: var(--shadow-lg); margin: 0; }
.login h1 { margin-bottom: 6px; }
.login-wrap { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1240px; margin: 36px auto; }
.login-wrap:not(:has(.demo-card)) { grid-template-columns: minmax(300px, 400px); justify-content: center; }
.demo-card { margin: 0; padding: 20px; }
.demo-card h2 { font-size: 17px; letter-spacing: -.01em; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: #000; border: 1px solid var(--line); margin-top: 6px; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; margin: 20px auto; } .login-wrap:not(:has(.demo-card)) { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ home: the metric strip and customer cards */
/* One segmented strip (the portals' StatGroup): sentence-case label with a small gray glyph, then the figure. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-left: 1px solid var(--line); margin-left: -1px; }
.stat-icon { display: inline-grid; color: var(--muted); margin-right: 6px; vertical-align: -2px; }
.stat > span { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; }
.stat b { display: block; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.stat.red b { color: var(--red); } .stat.amber b { color: var(--amber); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ccard { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .15s; }
.ccard:hover { border-color: var(--line-strong); }
.ccard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }  /* a long name and the status chip share the row; the chip drops below rather than spilling out */
.ccard h3 { margin: 0; font-size: 14px; } .ccard .who-line { color: var(--muted); font-size: 13px; }
.ccard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ccard-meta strong { color: var(--ink); font-weight: 600; }

/* progress bar */
.bar-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent, var(--brand)); transition: width .6s var(--ease); }
.bar-fill.green { background: var(--green); }
.bar-fill.amber { background: var(--amber); } .bar-fill.red { background: var(--red); }

/* ------------------------------------------------------------------ file page: header, meter, snapshot */
.filehead { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.filehead-body h1 { margin-bottom: 4px; }
.filehead .row { margin-top: 10px; }
.ring { position: relative; flex: none; }
.ring-svg { display: block; }
.ring-track { stroke: var(--line); }
.ring-arc { stroke: var(--accent, var(--brand)); transition: stroke-dashoffset .8s var(--ease); }
.ring.green .ring-arc { stroke: var(--green); } .ring.amber .ring-arc { stroke: var(--amber); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-num b { font-size: 24px; letter-spacing: -.02em; font-weight: 600; } .ring-num span { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.snap { margin-bottom: 20px; }
.snap-head { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; }
.snap-head h2 { margin: 0; } .snap-icon { color: var(--muted); display: grid; place-items: center; }
.snap-icon svg { width: 16px; height: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact.wide { grid-column: 1 / -1; }
.fact-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fact-label .need { color: var(--accent, var(--brand)); }
.fact-value { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fact-value.empty-val { color: var(--muted); font-weight: 400; font-size: 14px; }
.fact-note { font-size: 12.5px; color: var(--muted); }
.fact-src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.fact.is-conflict { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); } .fact.is-missing { border-style: dashed; background: transparent; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.status-dot.amber { background: var(--amber); } .status-dot.red { background: var(--red); } .status-dot.gray { background: var(--line-strong); }
/* disagreements shown side by side */
.compare-card { border: 1px solid var(--line); border-left: 2px solid var(--red); background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.compare-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.compare-head h3 { margin: 0; font-size: 14px; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; position: relative; }
.opt { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.opt-value { font-size: 20px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.opt .btn { margin-top: auto; }
.settled { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ drop zone, results, recognition */
.dropzone { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 28px 18px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone .dz-icon { color: var(--muted); display: grid; place-items: center; margin-bottom: 4px; }
.dropzone .dz-icon svg { width: 20px; height: 20px; }
.dropzone.over, .dropzone:hover, #drop-files:focus-visible + .dropzone { border-color: var(--accent, var(--brand)); background: var(--surface); }
.dropzone strong { font-size: 14px; font-weight: 600; }
.drop-results:empty { display: none; }
.drop-row { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.recognized { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin-top: 10px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 2px solid var(--green); }
.recognized .tick { width: 20px; height: 20px; border-radius: 50%; color: var(--green); display: grid; place-items: center; flex: none; }
.recognized .r-title { font-weight: 600; } .recognized .r-sub { color: var(--muted); font-size: 13px; }
.recognized.warn { border-left-color: var(--amber); } .recognized.warn .tick { color: var(--amber); }
.reading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent, var(--brand)); animation: spin .8s linear infinite; }
.choice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.choice legend { font-weight: 600; padding: 0 6px; }
.radio { display: flex; align-items: center; font-weight: 400; font-size: 14px; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.radio:hover { border-color: var(--line-strong); } .radio:has(input:checked) { border-color: var(--brand); background: var(--surface-2); }

/* ------------------------------------------------------------------ customer page */
.cust { max-width: 760px; }
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.hero h1 { font-size: 22px; } .hero p { margin-bottom: 16px; }
.hero-progress { display: flex; align-items: center; gap: 14px; }
.hero-progress .bar-track { flex: 1; } .hero-progress strong { white-space: nowrap; font-size: 13px; font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.step .mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.step .mark svg { width: 14px; height: 14px; }
.step.got .mark { background: var(--green); border-color: var(--green); color: #fff; }
.step .step-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.step.optional .mark { border-style: dashed; }
.allset { text-align: center; padding: 40px 22px; }
.allset .big-tick { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.allset h1 { font-size: 22px; }

/* ------------------------------------------------------------------ loading and empty states */
.skel-block { display: grid; gap: 12px; padding: 4px 0; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel.w30 { width: 30%; } .skel.w70 { width: 70%; }
.skel-card { height: 110px; border-radius: var(--radius); }
/* EmptyState: a small gray glyph and one line, no medallion. */
.empty { text-align: center; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty-icon { color: var(--muted); display: grid; place-items: center; margin-bottom: 4px; }
.empty-icon svg { width: 20px; height: 20px; }
.empty h3 { margin: 0; font-size: 14px; font-weight: 500; } .empty p { max-width: 420px; margin: 0 0 6px; font-size: 13px; }

/* ------------------------------------------------------------------ motion: color transitions and loading indicators only */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ small screens */
@media (max-width: 640px) {
  main { padding: 18px 16px 56px; } .card { padding: 16px; } h1 { font-size: 20px; } .hero { padding: 18px; } .hero h1 { font-size: 20px; }
  /* 16px: iOS Safari zooms the page on focus into any input smaller than that. */
  input, select, textarea { font-size: 16px; }
  .filehead { grid-template-columns: 1fr; justify-items: start; } .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 12px 14px; border-top: 1px solid var(--line); margin-top: -1px; }
  .stat b { font-size: 22px; } .ccards { grid-template-columns: 1fr; }
  .btn { width: 100%; height: 40px; } .row > .btn { flex: 1 1 auto; } .compare { grid-template-columns: 1fr; } .dropzone { padding: 22px 14px; }
  header.bar { padding: 8px 16px; } .icon-btn { width: 40px; height: 40px; }
  header.bar .btn { width: auto; } header.bar #who { order: 10; flex-basis: 100%; font-size: 12px; } .step { padding: 12px; gap: 10px; }
  .icon-btn.btn { width: 40px; }
}
.need { color: var(--accent, var(--brand)); font-weight: 600; }

.demo-card .row { margin-top: 12px; }
.export-row { margin-top: 12px; }
.export-row .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.guide { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface-2); }
.guide summary { color: var(--accent, var(--brand)); }
.guide table { margin-top: 10px; } .guide td, .guide th { padding: 8px 8px; }
.guide ul { margin: 12px 0; padding-left: 18px; } .guide .row { margin-top: 8px; }

/* ---- "What we know": each section a clear block with a heading, a one-line summary and a status */
.snap-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
.snap-summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 400; }
.snap-summary::-webkit-details-marker { display: none; }
.snap-block[open] > .snap-summary { border-bottom: 1px solid var(--line); }
.snap-icon.big svg { width: 18px; height: 18px; }
.snap-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.snap-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.snap-line { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snap-chev { color: var(--muted); display: grid; place-items: center; transition: transform .15s; }
.snap-block[open] .snap-chev { transform: rotate(45deg); }
.snap-block > .facts { padding: 18px; }
.snap-block .fact { background: var(--surface-2); }
.snap-block .fact.is-missing { background: transparent; }
@media (max-width: 640px) { .snap-summary { flex-wrap: wrap; } .snap-line { white-space: normal; } }

/* ---- who the file is ready for */
.aud { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); overflow: hidden; }
.aud-summary { list-style: none; display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 1fr) minmax(150px, auto); gap: 16px; align-items: center; padding: 12px 16px; cursor: pointer; font-weight: 400; }
.aud-summary::-webkit-details-marker { display: none; }
.aud[open] > .aud-summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.aud-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aud-count { text-align: right; font-size: 13px; }
.aud .table-wrap { padding: 4px 16px 12px; background: var(--surface); }
.aud td, .aud th { padding: 9px 8px; }
@media (max-width: 760px) { .aud-summary { grid-template-columns: 1fr; gap: 8px; } .aud-count { text-align: left; } }

/* ---- traffic lights: flat status dots and a quiet three-lamp housing */
.lamp { display: inline-block; border-radius: 50%; flex: none; vertical-align: middle; background: var(--line-strong); }
.lamp.green { background: #16a34a; } .lamp.amber { background: #d97706; }
.lamp.red { background: #dc2626; } .lamp.gray { background: var(--line-strong); }
.badge .lamp { margin-right: 2px; }
.stoplight { display: flex; flex-direction: column; gap: 6px; padding: 7px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); width: 36px; flex: none; }
.sl-lamp { width: 22px; height: 22px; border-radius: 50%; margin: 0 auto; background: var(--line); transition: background .2s; }
.sl-lamp.red.lit { background: #dc2626; } .sl-lamp.amber.lit { background: #d97706; } .sl-lamp.green.lit { background: #16a34a; }
.light-panel { display: flex; align-items: center; gap: 14px; }
.light-word { font-size: 12px; font-weight: 600; }
.light-word.red { color: var(--red); } .light-word.amber { color: var(--amber); } .light-word.green { color: var(--green); }
.light-why { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 520px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; margin: 4px 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-light { display: flex; align-items: center; gap: 14px; }
.hero-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.step .mark .lamp { width: 20px; height: 20px; }
.step.light-red { border-left: 2px solid var(--red); } .step.light-amber { border-left: 2px solid var(--amber); }
.step-note { font-size: 13px; margin-top: 4px; font-weight: 500; } .step-note.red { color: var(--red); } .step-note.amber { color: var(--amber); } .step-note.green { color: var(--green); } .step-note.gray { color: var(--muted); }
.dot-light { margin-left: 6px; }
@media (max-width: 640px) { .hero-top { flex-direction: column-reverse; align-items: flex-start; } .stoplight { flex-direction: row; width: auto; padding: 6px 8px; } }
.snap-body { padding: 18px; } .filehead { grid-template-columns: auto 1fr; } .filehead-body .light-panel { margin: 12px 0 4px; }
.step.light-gray { opacity: .9; }
.step.light-red .mark { border-color: var(--red); } .step.light-amber .mark { background: #d97706; border-color: #d97706; color: #fff; }
.hero-top > div:first-child { flex: 1; min-width: 0; } .hero-light { flex: none; } .hero-light > div:not(.stoplight) { max-width: 210px; min-width: 150px; }
.filehead { grid-template-columns: auto 1fr auto; } .light-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 640px) { .filehead { grid-template-columns: 1fr; } .light-col { flex-direction: row; } }
.suta-table td, .suta-table th { padding: 8px 6px; vertical-align: top; } .suta-table select, .suta-table input { min-width: 120px; }
.snap-body h3 { margin-top: 0; }

/* check a table rebuilt from a PDF or a picture */
.tedit-table { min-width: 860px; font-size: 13px; }
.tedit-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 8px 6px; white-space: normal; vertical-align: bottom; }
.tedit-table td { padding: 4px 4px; vertical-align: top; }
.tedit-table td input { padding: 4px 8px; min-height: 30px; font-size: 13px; min-width: 70px; }
.tedit-table .tnum { color: var(--muted); text-align: right; padding-right: 8px; }
.tedit-table .tcheck { white-space: nowrap; }
.tedit-table td:nth-child(2) input { min-width: 170px; }
.tedit-table td:nth-child(n+3) input { min-width: 95px; }
.tedit-table .row-note td { padding: 0 6px 8px; }
.tedit-table .row-problem { background: var(--amber-bg); }
.tedit-table .row-gone input { text-decoration: line-through; opacity: .55; }
.tedit-table .cell-bad { border-color: var(--red); }
.btn-small { height: 32px; padding: 0 12px; font-size: 13px; }

/* dependents at the enrollment level */
.dep-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dep-row.row-gone strong { text-decoration: line-through; opacity: .55; }
.dep-row input { max-width: 170px; padding: 4px 8px; min-height: 30px; }
.dep-form { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; }

/* kept documents: benefits documents and rate notices */
.kept-slot { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; }
.kept-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kept-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kept-file { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.kept-slot > label.btn { justify-self: start; }

/* two-step sign-in */
.btn-link { border-color: transparent; background: none; box-shadow: none; padding-left: 6px; padding-right: 6px; color: var(--accent, var(--brand)); }
.btn-link:hover { background: none; text-decoration: underline; }
.mfa-steps { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; }
.mfa-steps code, .recovery-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.mfa-qr { display: block; margin: 0 auto 14px; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; }
.recovery-codes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.recovery-codes code { white-space: nowrap; font-size: 13px; }
.recovery-codes li { padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); text-align: center; }
.ssa-code { margin: 0 0 12px; max-width: 320px; }
.recovery-inline h2 { margin-top: 0; }
