:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --white: #fffdf8;
  --ink: #172238;
  --muted: #647083;
  --line: #c9c5bc;
  --blue: #2456e8;
  --yellow: #f6dd3b;
  --red: #c9253e;
  --orange: #c75b19;
  --green: #16705d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background-image: linear-gradient(rgba(23,34,56,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,34,56,.035) 1px, transparent 1px); background-size: 32px 32px; }
button, input, select, textarea { font: inherit; }button, select, label[for] { cursor: pointer; }a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 30; background: var(--yellow); padding: .8rem 1rem; font-weight: 800; }.skip-link:focus { top: 1rem; }
.topbar { min-height: 76px; padding: .9rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: rgba(244,240,232,.92); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }.brand > span:last-child { display: grid; }.brand small { color: var(--muted); margin-top: .1rem; }.brand-symbol { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue); color: white; border-radius: 50%; font: 850 .76rem ui-monospace, monospace; }
.top-actions { display: flex; align-items: center; gap: .65rem; }.local-note { color: var(--muted); font-size: .78rem; margin-right: .3rem; }.button { border: 1px solid var(--ink); border-radius: 4px; padding: .7rem .9rem; font-weight: 800; background: transparent; color: var(--ink); }.button:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px,-2px); }.button.ink { background: var(--ink); color: white; }.button.full { width: 100%; }
main { width: min(1420px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0; }.hero { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(2rem, 6vw, 7rem); margin-bottom: 2rem; }.kicker, .field-label { color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }.hero h1 { font-size: clamp(2.8rem, 6.5vw, 6.6rem); line-height: .9; letter-spacing: -.06em; max-width: 12ch; margin: .7rem 0 1.4rem; }.hero-copy > p:last-child { font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 62ch; color: #475367; }
.review-card { background: var(--yellow); border: 1px solid var(--ink); padding: 1.4rem; box-shadow: 8px 8px 0 var(--ink); }.review-card > div:first-child, .progress-label { display: flex; justify-content: space-between; gap: 1rem; }.review-card span, .review-card p { font-size: .78rem; }.review-card p { margin: .8rem 0 0; }.progress-label { margin-top: 2rem; }.progress-track { height: 10px; background: rgba(23,34,56,.2); margin: .55rem 0 1.1rem; overflow: hidden; }.progress-track span { display: block; height: 100%; background: var(--blue); }.data-actions { display: flex; gap: 1rem; flex-wrap: wrap; }.text-button { background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: .12rem 0; color: var(--ink); font-weight: 800; font-size: .78rem; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); background: var(--white); }.summary-grid article { min-height: 130px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; }.summary-grid article + article { border-left: 1px solid var(--ink); }.summary-grid span,.summary-grid small { color: var(--muted); }.summary-grid strong { font-size: 2.2rem; letter-spacing: -.04em; }.summary-grid .risk-metric { background: var(--ink); color: white; }.summary-grid .risk-metric span,.summary-grid .risk-metric small { color: #c7d0df; }.summary-grid .risk-metric strong { color: var(--yellow); }
.review-workspace { margin-top: 1.5rem; border: 1px solid var(--ink); background: var(--white); }.workspace-header { padding: 1.3rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: 1px solid var(--ink); }.workspace-header h2 { margin: .3rem 0 0; }.tabs { display: flex; }.tabs button { min-width: 90px; background: transparent; border: 1px solid var(--ink); padding: .62rem .85rem; font-weight: 800; margin-left: -1px; }.tabs button[aria-selected="true"] { background: var(--blue); color: white; }
.filters { display: grid; grid-template-columns: 1fr 230px 180px; gap: .8rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }.filters label,.note-field,.grant-form label { display: grid; gap: .35rem; }.filters label > span,.note-field > span,.grant-form label > span { color: var(--muted); font-size: .72rem; font-weight: 750; }.filters input,.filters select,.grant-form input,.grant-form select,textarea { min-width: 0; border: 1px solid var(--ink); border-radius: 0; background: white; color: var(--ink); padding: .67rem .72rem; }
.finding-table-wrap,.matrix-wrap,.grant-table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { text-align: left; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }thead th { padding: .8rem 1rem; border-bottom: 1px solid var(--ink); }td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }.finding-table th:first-child { width: 52%; }.finding-title { display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; }.finding-title strong { align-self: center; }.finding-title p { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.45; font-size: .84rem; }.severity { align-self: start; padding: .2rem .38rem; color: white; font: 800 .58rem ui-monospace, monospace; text-transform: uppercase; }.severity.critical { background: var(--red); }.severity.high { background: var(--orange); }.severity.medium { background: #8a6c00; }.finding-table code { font-size: .7rem; color: var(--blue); text-transform: uppercase; }.grant-total { color: var(--muted); font-size: .82rem; }.review-button { width: 100%; min-width: 118px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ink); background: transparent; padding: .58rem .65rem; font-weight: 800; text-transform: capitalize; }.review-button:hover { background: var(--yellow); }.review-button[data-decision="revoke"] { background: #ffe1e5; }.review-button[data-decision="retain"] { background: #d8f1e9; }.review-button[data-decision="exception"] { background: #fff2bf; }.empty-state { text-align: center; padding: 2rem; color: var(--muted); }
.panel-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }.panel-intro h3 { margin: 0 0 .3rem; }.panel-intro p { margin: 0; color: var(--muted); }.matrix-legend { font-size: .76rem; color: var(--muted); }.matrix-legend i { display: inline-block; width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--ink); }.matrix-table th,.matrix-table td { min-width: 140px; border-right: 1px solid var(--line); }.matrix-table tbody th { padding: .8rem 1rem; color: var(--ink); text-transform: none; font-size: .82rem; letter-spacing: 0; }.matrix-table td { color: #9a9a98; }.matrix-table td span { display: block; width: fit-content; color: var(--ink); background: #e7edf9; padding: .3rem .4rem; margin: .18rem 0; font-size: .72rem; }.matrix-table td.privileged-cell { background: #fff7bd; }.matrix-table td.privileged-cell span { background: var(--yellow); }.grant-table strong,.grant-table small { display: block; }.grant-table small { color: var(--muted); margin-top: .25rem; }.role-pill { background: #e7edf9; color: var(--blue); padding: .28rem .44rem; font-size: .76rem; font-weight: 750; }
dialog { width: min(680px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; color: var(--ink); border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--ink); }dialog::backdrop { background: rgba(23,34,56,.72); }.dialog-content { padding: 1.5rem; }.dialog-header { display: flex; justify-content: space-between; gap: 1rem; }.dialog-header h2 { margin: .3rem 0 0; }.close-button { width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; font-size: 1.5rem; }.finding-summary { line-height: 1.6; }.guidance { margin: 1.2rem 0; padding: 1rem; background: var(--yellow); border: 1px solid var(--ink); }.guidance span { text-transform: uppercase; font-weight: 850; font-size: .66rem; letter-spacing: .1em; }.guidance p { margin: .35rem 0 0; }.affected-grants { display: grid; gap: .5rem; margin-top: .5rem; }.affected-grants > div { border: 1px solid var(--line); padding: .7rem; }.affected-grants p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }fieldset { border: 1px solid var(--ink); margin: 1.2rem 0; padding: 1rem; }legend { padding: 0 .4rem; font-weight: 800; }.decision-options { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-bottom: 1rem; }.decision-options label { border: 1px solid var(--line); padding: .55rem; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.2rem 0; }.form-grid .wide { grid-column: 1 / -1; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1rem,4vw,4rem); border-top: 1px solid var(--ink); color: var(--muted); font-size: .8rem; }footer p { margin: 0; max-width: 90ch; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-grid article:nth-child(3) { border-left: 0; }.summary-grid article:nth-child(n+3) { border-top: 1px solid var(--ink); }.filters { grid-template-columns: 1fr 1fr; }.filters .search { grid-column: 1 / -1; }.local-note { display: none; } }
@media (max-width: 650px) { .topbar { align-items: flex-start; }.brand small,.top-actions .outline { display: none; }.hero h1 { font-size: clamp(3rem,15vw,5rem); }.workspace-header { align-items: stretch; flex-direction: column; }.tabs { width: 100%; }.tabs button { flex: 1; min-width: 0; }.filters { grid-template-columns: 1fr; }.filters .search { grid-column: auto; }.summary-grid article { min-height: 110px; padding: 1rem; }.decision-options,.form-grid { grid-template-columns: 1fr 1fr; }.finding-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; }.finding-table,.finding-table tbody,.finding-table tr,.finding-table td { display: block; }.finding-table tr { border-bottom: 1px solid var(--ink); padding: .8rem; }.finding-table td { border: 0; padding: .4rem; }.finding-table td:nth-child(2),.finding-table td:nth-child(3) { display: inline-block; }.panel-intro,footer { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
.source-link { font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; text-underline-offset: .25rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.project-meta li { border: 1px solid #aeb4c4; border-radius: 999px; background: rgba(255,255,255,.55); padding: .38rem .62rem; color: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .035em; }
.demo-cue { display: block; width: fit-content; margin: .85rem 0 0; border: 0; background: none; padding: 0; color: var(--ink); font-size: .72rem; font-weight: 850; letter-spacing: .025em; text-decoration: underline; text-underline-offset: .22rem; }.demo-cue span { color: var(--blue); }
@media (max-width: 780px) { .source-link { display: none; } }
