:root {
  --ink:#252524; --muted:#6f6c67; --canvas:#f7f6f4; --surface:#fff; --soft:#f1f0ed;
  --line:#e4e2de; --blue:#267fda; --blue-soft:#e8f2fb; --green:#3f9668; --green-soft:#e8f3ed;
  --orange:#c77633; --orange-soft:#f9ecdf; --red:#d9584e; --red-soft:#fbe9e7;
  --shadow:0 1px 2px rgba(27,27,25,.04),0 8px 24px rgba(27,27,25,.04); --radius:12px;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
button,a{font:inherit}button{color:inherit}.skip-link{position:absolute;left:16px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px}.skip-link:focus{top:12px}
.app-shell{min-height:100vh}.topbar{height:68px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:760;letter-spacing:-.02em;font-size:18px}.brand-mark{width:32px;height:32px;color:var(--blue);display:grid;place-items:center}.brand-mark svg{width:100%;height:100%}
.topnav{display:flex;height:100%;align-items:center;gap:28px;margin-left:48px}.topnav a{height:100%;display:flex;align-items:center;color:var(--muted);text-decoration:none;font-size:14px;font-weight:600;position:relative}.topnav a:hover,.topnav a:focus-visible{color:var(--ink)}.topnav a.active{color:var(--ink)}.topnav a.active:after{content:"";position:absolute;height:2px;background:var(--blue);left:0;right:0;bottom:-1px}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.demo-badge{font-size:13px;font-weight:650;color:#7b542f;background:var(--orange-soft);border:1px solid #ecd3bc;padding:6px 10px;border-radius:999px;display:flex;align-items:center;gap:7px}.dot{width:7px;height:7px;border-radius:50%;background:var(--orange)}.avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--soft);font-size:13px;font-weight:750;cursor:pointer}
.demo-disclosure{padding:9px 32px;background:#fff9ef;border-bottom:1px solid #eedfc9;color:#76532f;font-size:13px;text-align:center}.demo-disclosure strong{color:#5f3f20}
main{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:36px 0 72px}.case-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:650}.eyebrow span+span:before{content:"·";margin-right:10px;color:#aaa6a0}.eyebrow .severity{color:#9e372f;background:var(--red-soft);padding:4px 8px;border-radius:6px}.eyebrow .severity:before{display:none}.case-header h1{font-size:34px;line-height:1.15;letter-spacing:-.04em;margin:10px 0 6px}.case-header p{margin:0;color:var(--muted);font-size:15px}.header-actions{display:flex;gap:10px;flex-shrink:0}.button{min-height:44px;padding:0 17px;border-radius:9px;border:1px solid transparent;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:transform .15s,background .15s,border-color .15s}.button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.button:hover:not(:disabled){transform:translateY(-1px)}.button:focus-visible,.avatar:focus-visible,.text-button:focus-visible{outline:3px solid rgba(38,127,218,.28);outline-offset:2px}.button.primary{background:var(--blue);color:#fff}.button.primary:hover:not(:disabled){background:#176fbf}.button.secondary{background:var(--surface);border-color:var(--line)}.button.secondary:hover{border-color:#c9c6c1;background:#fafafa}.button:disabled{opacity:.5;cursor:not-allowed}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;min-height:98px}.metric-card.risk{border-left:3px solid var(--red)}.metric-card.attention{border-left:3px solid var(--orange)}.metric-label{display:block;color:var(--muted);font-size:13px;font-weight:620;margin-bottom:9px}.metric-card div{display:flex;align-items:baseline;gap:8px}.metric-card strong{font-size:27px;line-height:1;letter-spacing:-.03em}.metric-card div span{color:var(--muted);font-size:13px}
.process-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.process-card{padding:22px 24px;margin-bottom:16px}.process-heading,.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.section-kicker{text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-size:11px;font-weight:800}.process-heading h2,.panel-heading h2{margin:4px 0 0;font-size:18px;letter-spacing:-.025em;line-height:1.25}.process-status{display:flex;align-items:center;gap:10px}.process-status>span:last-child{display:flex;flex-direction:column}.process-status strong{font-size:13px}.process-status small{color:var(--muted);font-size:12px}.status-check{width:30px;height:30px;display:grid;place-items:center;color:var(--green);background:var(--green-soft);border-radius:50%;font-weight:800}.stepper{list-style:none;padding:0;margin:22px 0 0;display:grid;grid-template-columns:repeat(5,1fr);gap:0}.stepper li{position:relative;display:flex;align-items:center;gap:10px;min-width:0}.stepper li:after{content:"";position:absolute;height:1px;background:var(--line);left:36px;right:10px;top:15px;z-index:0}.stepper li:last-child:after{display:none}.stepper li>span{position:relative;z-index:1;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;font-size:12px;font-weight:750;color:var(--muted);flex-shrink:0}.stepper li div{display:flex;flex-direction:column;min-width:0}.stepper strong{font-size:13px}.stepper small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stepper li.complete>span{background:var(--green);border-color:var(--green);color:#fff}.stepper li.complete:after{background:#b9d7c6}.stepper li.current>span{background:var(--orange-soft);border:2px solid var(--orange);color:#8b4c1d}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.85fr);gap:16px;align-items:start}.panel{padding:22px 24px}.panel-heading{margin-bottom:18px}.panel-heading.compact{align-items:center}.legend{display:flex;gap:12px;color:var(--muted);font-size:11px;margin-top:6px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:50%;display:block}.legend .red{background:var(--red)}.legend .orange{background:var(--orange)}.legend .green{background:var(--green)}.count-badge{background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:4px 9px;color:var(--muted);font-size:12px;font-weight:650}
.agency-list{display:flex;flex-direction:column;gap:10px}.agency-card{border:1px solid var(--line);border-radius:10px;padding:16px;transition:border-color .16s,background .16s}.agency-card[data-state="affected"]{border-left:3px solid var(--red)}.agency-card[data-state="review"]{border-left:3px solid var(--orange);background:#fffcf8}.agency-card[data-state="clear"]{border-left:3px solid var(--green)}.agency-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.agency-name{display:flex;align-items:center;gap:10px}.agency-name h3{font-size:15px;margin:0 0 2px}.agency-name p{font-size:12px;color:var(--muted);margin:0}.status-pill{border-radius:999px;font-size:11px;font-weight:750;padding:4px 8px;text-transform:capitalize;white-space:nowrap}.status-pill.affected{color:#9c3831;background:var(--red-soft)}.status-pill.review{color:#8b4c1d;background:var(--orange-soft)}.status-pill.clear{color:#266b49;background:var(--green-soft)}.match-details{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:14px}.match-chip{background:var(--soft);border-radius:7px;padding:8px 10px;display:flex;flex-direction:column;min-width:0}.match-chip small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:750}.match-chip strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.match-chip.matched{background:var(--green-soft)}.match-chip.missing{background:var(--orange-soft)}.agency-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}.source-link{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:700;padding:8px 0;cursor:pointer}.review-actions{display:flex;gap:8px}.mini-button{min-height:36px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 11px;font-size:12px;font-weight:700;cursor:pointer}.mini-button.approve{border-color:#d8bd9f;background:var(--orange-soft);color:#74451e}.mini-button:hover{filter:brightness(.98)}
.evidence-list{display:flex;flex-direction:column}.evidence-item{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:start;padding:13px 0;border-top:1px solid var(--line)}.evidence-item:first-child{border-top:0;padding-top:0}.file-icon{width:34px;height:38px;border-radius:7px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:800}.evidence-item h3{font-size:13px;margin:1px 0 2px;overflow-wrap:anywhere}.evidence-item p{font-size:11px;color:var(--muted);margin:0}.confidence{font-variant-numeric:tabular-nums;font-size:12px;font-weight:750;color:var(--muted)}.confidence.low{color:var(--orange)}.confidence-note{margin-top:12px;padding:13px;border-radius:9px;background:var(--blue-soft);display:flex;gap:10px}.confidence-note svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:var(--blue);stroke-width:1.8}.confidence-note p{font-size:11px;color:#40566a;margin:0}.confidence-note strong{color:#2b4256}.highlight{animation:highlight 1.4s ease}@keyframes highlight{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px rgba(38,127,218,.25)}}
.audit-panel{margin-top:16px}.text-button{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:720;padding:10px;cursor:pointer}.timeline{list-style:none;margin:0;padding:0}.timeline li{display:grid;grid-template-columns:32px 1fr auto;gap:12px;align-items:start;padding:13px 0;border-top:1px solid var(--line)}.timeline li:first-child{border-top:0}.timeline-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.timeline-icon.blue{background:var(--blue-soft);color:var(--blue)}.timeline-icon.orange{background:var(--orange-soft);color:var(--orange)}.timeline strong{font-size:13px}.timeline p{font-size:12px;color:var(--muted);margin:2px 0 0}.timeline time{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;margin-top:3px}.toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:#fff;padding:12px 16px;border-radius:9px;box-shadow:0 10px 30px rgba(0,0,0,.18);font-size:13px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}
@media (max-width:900px){.topbar{padding:0 20px}.topnav{display:none}.demo-disclosure{padding:9px 20px}.case-header{align-items:flex-start;flex-direction:column}.header-actions{width:100%}.header-actions .button{flex:1}.metrics{grid-template-columns:1fr 1fr}.workspace-grid{grid-template-columns:1fr}.evidence-panel{order:-1}.stepper{grid-template-columns:1fr 1fr 1fr;gap:14px}.stepper li:after{display:none}}
@media (max-width:560px){main{width:min(100% - 32px,1180px);padding-top:24px}.topbar{height:60px;padding:0 16px}.brand{font-size:16px}.brand-mark{width:29px;height:29px}.demo-badge{font-size:0;padding:8px}.demo-badge .dot{width:8px;height:8px}.avatar{width:36px;height:36px}.demo-disclosure{text-align:left;padding:9px 16px;font-size:12px}.case-header h1{font-size:28px}.eyebrow{flex-wrap:wrap}.header-actions{flex-direction:column}.metrics{grid-template-columns:1fr}.metric-card{min-height:auto}.process-card,.panel{padding:18px}.process-heading{flex-direction:column}.process-status{align-self:flex-start}.stepper{grid-template-columns:1fr 1fr}.stepper small{white-space:normal}.panel-heading{flex-direction:column}.legend{flex-wrap:wrap}.agency-top{gap:8px}.match-details{grid-template-columns:1fr}.agency-actions{align-items:flex-start;flex-direction:column}.review-actions{width:100%}.mini-button{flex:1}.timeline li{grid-template-columns:28px 1fr}.timeline time{grid-column:2}.toast{left:16px;right:16px;bottom:16px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Live-case workflow refinements */
[hidden]{display:none!important}
.demo-badge.live{color:#246747;background:var(--green-soft);border-color:#cce4d6}.demo-badge.live .dot{background:var(--green)}
.demo-disclosure.live{background:#edf7f1;border-color:#d3e8dc;color:#315f47}.demo-disclosure.live strong{color:#234b37}
.eyebrow .severity.unclassified{color:#865024;background:var(--orange-soft)}
.header-actions{flex-wrap:wrap;justify-content:flex-end}
.button:focus-visible,.mini-button:focus-visible,.source-link:focus-visible,.result-select:focus-visible,.dialog-close:focus-visible{outline:3px solid rgba(38,127,218,.28);outline-offset:2px}
.empty-workspace{border:1px dashed #c9c6c1;border-radius:10px;background:var(--soft);padding:24px;text-align:center}.empty-workspace strong{font-size:14px}.empty-workspace p{font-size:12px;color:var(--muted);margin:5px 0 0}
.source-link,.mini-button,.text-button{min-height:44px}
