:root { color-scheme: light; --ink:#1e2933; --muted:#526472; --bg:#f6f8f9; --surface:#fff; --line:#cbd5db; --accent:#135c56; --accent-strong:#104b45; --focus:#0b3d3a; --focus-inverse:#ffbf47; --error:#8a1c1c; --soft:#e4f3ee; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.55; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); }
.container { width:min(1100px,calc(100% - 2rem)); margin-inline:auto; }
a { color:#075c6d; text-underline-offset:.18em; }
a:hover { text-decoration-thickness:.16em; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.site-header :focus-visible,.site-footer :focus-visible { outline-color:var(--focus-inverse); }
.file-button:focus-within { outline:3px solid var(--focus); outline-offset:3px; }
.skip-link { position:absolute; left:1rem; top:-4rem; z-index:4; padding:.5rem 1rem; background:#fff; }
.skip-link:focus { top:1rem; }
.site-header { background:#103c3e; color:#fff; }
.masthead { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; padding:1.2rem 0; }
.eyebrow { font-size:.76rem; font-weight:750; letter-spacing:.13em; margin:0 0 .4rem; text-transform:uppercase; }
.brand { font-size:1.2rem; font-weight:750; margin:0; }
.site-header nav { display:flex; gap:1rem; flex-wrap:wrap; }
.site-header a { color:#fff; }
.hero { padding:3.3rem 0 2rem; max-width:900px; }
h1 { font-size:clamp(2.1rem,5vw,3.4rem); line-height:1.1; letter-spacing:-.025em; margin:.4rem 0 1rem; max-width:820px; }
.lede { font-size:1.25rem; color:#344b56; }
p { max-width:80ch; }
section { scroll-margin-top:2rem; }
main > section:not(.hero) { margin-block:2.6rem; }
.section-title { display:flex; align-items:flex-start; gap:1rem; margin-bottom:.85rem; }
.section-title h2 { font-size:1.65rem; line-height:1.25; margin:0; }
.section-title p { margin:.3rem 0; color:var(--muted); }
.step { display:grid; place-items:center; width:3.1rem; height:3.1rem; border-radius:50%; background:var(--soft); font-weight:800; color:var(--accent-strong); flex-shrink:0; }
.panel { border:1px solid var(--line); background:var(--surface); padding:1.35rem; border-radius:.6rem; margin-top:1rem; box-shadow:0 1px 3px rgb(0 0 0 / .04); }
.panel h3 { margin-top:0; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1.1rem; }
.field { display:flex; flex-direction:column; gap:.3rem; }
.field.span-2 { grid-column:1/-1; }
label { font-weight:700; }
input,textarea,select,button { font:inherit; }
input:not([type=file]),textarea,select { width:100%; padding:.65rem .7rem; border:1px solid #6d7b85; border-radius:.25rem; background:#fff; color:var(--ink); }
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"] { border:2px solid var(--error); }
.field-error { margin:.1rem 0 0; color:var(--error); font-weight:700; }
.field-error::before { content:"Error: "; }
textarea { resize:vertical; }
button,.file-button { border:1px solid #3e6d68; display:inline-flex; justify-content:center; align-items:center; padding:.7rem .9rem; border-radius:.35rem; font-weight:750; cursor:pointer; text-decoration:none; }
button.primary { color:#fff; background:var(--accent); }
button.primary:hover { background:var(--accent-strong); }
button.secondary,.file-button { background:#fff; color:var(--accent-strong); }
button.secondary:hover,.file-button:hover { background:var(--soft); }
.actions { display:flex; gap:.65rem; flex-wrap:wrap; align-items:center; margin:1rem 0; }
.status { font-weight:650; border-left:4px solid var(--accent); padding:.4rem .75rem; background:var(--soft); }
.small { color:var(--muted); font-size:.93rem; }
.source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.source-card { border:1px solid var(--line); padding:.9rem; border-radius:.35rem; }
.source-card h3 { margin:0 0 .35rem; font-size:1.03rem; }
.source-card p { margin:.2rem 0 .55rem; }
.source-card .category { text-transform:capitalize; font-size:.78rem; color:var(--muted); font-weight:700; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; text-align:left; }
caption { text-align:left; color:var(--muted); padding:0 0 .8rem; }
th,td { padding:.75rem .6rem; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#eaf1f2; }
tr:last-child td { border-bottom:none; }
code { background:#e8edf0; padding:.1em .2em; }
.checklist ul { padding-left:1.3rem; }
.checklist li { margin:.75rem 0; }
.report-preview { white-space:pre-wrap; word-break:break-word; max-height:30rem; overflow:auto; font-size:.88rem; padding:1rem; background:#f1f5f6; border:1px solid var(--line); border-radius:.4rem; }
.end-note { max-width:900px; border-top:2px solid var(--line); padding-top:1rem; }
.site-footer { background:#143d3f; color:#fff; padding:1rem 0; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:760px) { .masthead { align-items:flex-start; flex-direction:column; } .field-grid,.source-grid { grid-template-columns:1fr; } .field.span-2 { grid-column:auto; } .panel { padding:1rem; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media (prefers-contrast:more) { :root { --line:#36474e; --muted:#30434b; --accent:#063d39; --focus:#000; } .panel,.source-card { border-width:2px; } }
@media (forced-colors:active) { :focus-visible,.file-button:focus-within { outline-color:Highlight; } input[aria-invalid="true"] { border-color:Mark; } }
@media print { .site-header, .actions, .file-button, button, .site-footer { display:none!important; } body { background:#fff; } .panel { box-shadow:none; } }

/* Phase 2 guided research interface */
.guidance { margin:1rem 0 0; padding:.9rem 1rem; border:1px solid var(--line); border-radius:.5rem; background:var(--surface); }
.guidance summary { cursor:pointer; font-weight:750; color:var(--accent-strong); }
.guidance p,.guidance dd { max-width:80ch; }
.guidance dl { margin:.7rem 0 0; }
.guidance dt { font-weight:750; margin-top:.6rem; }
.guidance dd { margin:.15rem 0 0 0; color:var(--muted); }
.next-action { border-left:4px solid var(--accent); background:var(--soft); padding:.55rem .75rem; max-width:80ch; }
.next-action a { font-weight:750; }
.panel-inset { border:1px solid var(--line); border-radius:.45rem; padding:1rem; margin:0 0 1rem; background:#fbfcfc; }
.panel-inset legend { font-weight:750; padding:0 .35rem; }
.record-form { border-left:4px solid var(--line); }
fieldset { border:1px solid var(--line); border-radius:.35rem; padding:.75rem; margin:0; min-width:0; }
fieldset legend { font-weight:750; padding:0 .3rem; }
.checkbox-field { flex-direction:row; align-items:flex-start; gap:.55rem; }
.checkbox-field input { margin-top:.3rem; }
.checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem .9rem; }
.checkbox-grid label { display:flex; gap:.45rem; align-items:flex-start; font-weight:400; }
.checkbox-grid input { margin-top:.35rem; flex-shrink:0; }
input[type=checkbox],input[type=radio] { width:auto; min-width:1.1rem; min-height:1.1rem; }
button.secondary[hidden],[hidden] { display:none!important; }
@media (max-width:760px) { .checkbox-grid { grid-template-columns:1fr; } }

/* Zero-install landing and save/resume affordances */
.landing .lede { max-width: 62ch; }
.file-panel { margin-top: 1.25rem; }
.file-panel h2 { margin-top: 0; font-size: 1.1rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .15rem 0 .45rem; max-width: 62ch; }
.source-card button { margin-top: .25rem; }

.source-details { margin: .4rem 0 .7rem; }
.source-details summary { color: var(--accent-strong); font-weight: 700; }
.source-details dl { margin: .45rem 0 0; }
.source-details dt { font-weight: 750; margin-top: .4rem; }
.source-details dd { margin: .1rem 0 0; }
