:root{color-scheme:light;--ink:#19382d;--muted:#4f685d;--rule:#cedbd2;--primary:#245c43;--paper:#fffefa}
*{box-sizing:border-box}
body{margin:0;background:#f4f6f0;color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;overflow-wrap:anywhere}
main{max-width:820px;padding:0 24px 72px;margin:auto}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;border-bottom:1px solid var(--rule);margin-bottom:30px}
a{color:var(--primary);text-underline-offset:.18em}
.top a{text-decoration:none;font-size:.9rem}.top a:first-child{font-weight:750;letter-spacing:.04em}
h1{font-size:clamp(1.65rem,4vw,2.4rem);line-height:1.25;letter-spacing:-.025em}h1,h2,h3,p{margin:0 0 .65em}h2,legend{font-size:1.27rem;line-height:1.4;font-weight:730}
h3{font-size:1.08rem}.intro,.help,.meta{color:var(--muted)}.help,.meta{font-size:.89rem}.intro{max-width:43em}
.panel,.paper{background:var(--paper);border:1px solid var(--rule);border-radius:16px;padding:22px;margin:20px 0;min-width:0}
fieldset.panel{padding-top:10px}legend{padding:0 .35em}
label{display:block;margin:10px 0;color:var(--ink);font-size:.95rem;font-weight:560}
input:not([type=checkbox]),textarea,select{display:block;width:100%;margin-top:.25em;border:1px solid #9eb3a5;background:white;color:var(--ink);border-radius:7px;padding:9px 10px;font:inherit;min-height:42px}
textarea{min-height:70px;resize:vertical}.check{display:flex;gap:9px;align-items:baseline}.check input{flex:none;accent-color:var(--primary)}
:focus-visible{outline:3px solid #29795e;outline-offset:3px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
button,.primary,.alt{display:inline-block;text-decoration:none;cursor:pointer;font-family:inherit;font-size:.95rem;font-weight:620;color:var(--primary);background:#eaf1e9;border:1px solid var(--rule);border-radius:8px;padding:9px 14px;line-height:1.45}
.primary,button[type=submit]{background:var(--primary);border-color:var(--primary);color:white}
button:disabled{opacity:.6;cursor:wait}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}
[hidden]{display:none!important}.notice{background:#f7f0de;color:#75502c;border-left:3px solid #b88649;padding:10px 14px;font-size:.95rem}
.zone{border-top:1px solid var(--rule);padding-top:15px;margin-top:16px}.zone summary,details>summary{cursor:pointer;font-weight:650;padding:5px 0}.zone summary span{font-size:.85rem;color:var(--muted);font-weight:500;margin-left:8px}
.thumbs{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.thumb{width:124px;margin:0}.thumb img{display:block;width:124px;height:90px;object-fit:cover;border-radius:8px}.thumb button{padding:3px 9px;font-size:.82rem}.thumb figcaption{font-size:.72rem}.bad,.danger{color:#963e26}.drop{font-weight:650}
.paper .title{margin-top:0}.paper .heading{padding-top:20px;margin-top:24px;border-top:1px solid var(--rule)}.paper .finding{margin-top:20px;color:#245c43}.paper .body{white-space:pre-wrap;margin-bottom:5px}.paper .meta:last-child{margin-top:24px}.paper .evidence-photo{margin:8px 0 14px;max-width:640px}.paper .evidence-photo img{display:block;width:100%;max-height:360px;object-fit:contain;object-position:left center;background:#eef1eb;border-radius:8px}.paper .evidence-photo figcaption{font-size:.82rem;color:var(--muted);margin-top:4px}
@media(max-width:560px){main{padding:0 13px 40px}.panel,.paper{padding:15px}.actions>*{text-align:center}.pair{gap:8px}.top{margin-bottom:22px}}

/* The intake workspace shares base controls and colours with the report. */
.capture-page {
  --ink:#173b35;
  --primary:#176452;
  --muted:#60766c;
  --rule:#d7e1d7;
  --paper:#fffef9;
  background:#f2f5ee;
  font-family:"Instrument Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
.capture-page .workspace {max-width:1180px;padding:0 36px 56px}
.capture-page .top {margin:0;padding:18px 0;min-height:64px}
.capture-page .top .brand {font-size:1.15rem;line-height:1.3;letter-spacing:.04em;display:flex;align-items:center;gap:12px}
.brand span {font-size:.82rem;font-weight:550;letter-spacing:.04em;border-left:1px solid #9aafa1;padding-left:12px;color:var(--muted)}
.capture-steps {display:flex;align-items:center;gap:12px;padding:19px 0 5px;color:#788a7f;font-size:.82rem}
.capture-steps a {color:inherit;text-decoration:none}
.capture-steps span {color:var(--primary);font-weight:700}
.intro-block {padding:24px 0 18px}
.capture-eyebrow {margin:0 0 6px;color:#cf6a4a;font-size:.82rem;font-weight:700}
.intro-block h1 {font-size:2.3rem;letter-spacing:0;font-weight:760;margin-bottom:8px}
.intro-block .intro {font-size:1rem;margin:0;max-width:48em}
.capture-grid {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(285px,.8fr);gap:34px;align-items:start}
.capture-page .panel {margin:0 0 20px;padding:22px 24px;border-radius:8px;box-shadow:0 2px 3px #20372a06}
.capture-page .section-head {display:flex;gap:12px;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.section-head h2 {margin:0}
.capture-page h2 {font-size:1.3rem;letter-spacing:-.025em}
.capture-page h3 {font-size:.94rem}
.capture-page label {margin:12px 0 4px;font-family:inherit}
.capture-page select,.capture-page input:not([type=checkbox]),.capture-page textarea {border-color:#a5b8aa;border-radius:9px;background:#fff;min-height:44px;font-size:1rem}
.capture-page textarea {min-height:68px}
.capture-page select:disabled,.capture-page input:disabled {background:#f3f4ed}
.capture-page .notice {border-radius:8px}
.capture-page button,.capture-page .primary,.capture-page .alt {min-height:44px;align-content:center}
.capture-page .primary:hover,.capture-page button.primary:hover {background:#114e3e}
.capture-page button:disabled,.capture-page label:has(input:disabled) {opacity:.6;cursor:not-allowed}
.capture-page .text-button {min-height:34px;color:var(--primary);text-decoration:underline;background:transparent;border:0;padding:3px 0;font-weight:580}
.capture-page .zone {margin:15px 0 0;padding:0;border:0}
.capture-page .zone + .zone {border-top:1px solid var(--rule);padding-top:18px;margin-top:20px}
.capture-page .zone.has-request {border-left:3px solid #d56a49;padding-left:12px}
.zone-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.zone-name {font-size:1.03rem;font-weight:730;color:var(--ink)}
.zone-count {color:#7a8c81;font-size:.78rem;white-space:nowrap}
.zone-count.is-ready {color:var(--primary);font-weight:700}
.shot-guide {padding:12px 14px;background:#f1f5ed;border:1px solid #dce6db;border-radius:6px;margin-bottom:11px}
.shot-guide p {margin:0;font-size:.98rem}
.shot-guide p + p {margin-top:6px;font-size:.88rem;color:#476555}
.file-actions {display:flex;flex-wrap:wrap;gap:9px}
.capture-page .file-action {margin:0;position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex:1;cursor:pointer;border-radius:6px;border:1px solid #a5b8aa;font-weight:650;font-size:.92rem;background:var(--paper);color:var(--ink)}
.capture-page .file-action:first-child {background:var(--primary);border-color:var(--primary);color:#fff}
.file-action:focus-within {outline:3px solid #29795e;outline-offset:2px}
.capture-page .file-action input[type=file] {position:absolute;inset:0;opacity:0;height:100%;width:100%;padding:0;margin:0;cursor:pointer}
.zone details {border-top:1px solid var(--rule);margin-top:14px;padding-top:8px}
.zone details summary {font-size:.92rem;color:var(--primary);min-height:40px}
.zone-followups {margin:12px 0;padding:10px 14px;background:#f8eedc;border-radius:8px;list-style-position:inside}
.zone-message {color:var(--muted);font-size:.9rem;margin:8px 0 0}
.zone-message:empty,#message:empty {display:none}
.capture-page .camera-note {margin:15px 0 0;font-size:.84rem}
.capture-reference {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(180px,.8fr);align-items:center;gap:15px;margin:17px 0 0;padding-top:15px;border-top:1px solid var(--rule)}
.capture-reference img {display:block;width:100%;height:auto;max-height:155px;object-fit:cover}
.capture-reference figcaption {display:grid;gap:4px;color:var(--muted);font-size:.78rem;line-height:1.5}
.capture-reference strong {color:var(--ink);font-size:.83rem}
#photoIndex {margin-top:16px;padding-top:12px;border-top:1px solid var(--rule)}
#photoIndex h3 {margin:0 0 4px}
#photoChips {display:flex;gap:6px;flex-wrap:wrap}
#photoChips button {min-height:36px;font-size:.86rem;padding:4px 9px}
.capture-page .thumbs {margin:8px 0;gap:8px}
.thumb {overflow-wrap:anywhere}
.capture-page .thumb button {min-height:32px}
.capture-page .check {font-size:.9rem;align-items:start;margin:14px 0}
.capture-page .check input {width:18px;height:18px;margin:3px 0 0}
.capture-page .submit-wide {display:block;width:100%;border-radius:9px;font-size:1rem}
.capture-page .draft {font-size:.77rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:10px}
.draft .text-button {font-size:.8rem}
#message {margin:8px 0}
.request-list {padding-left:1.3em}
.request-list li {margin:.45em 0}
.task-panel {max-width:900px;margin:24px auto;padding:25px 28px;background:#fffef9;border:1px solid #d7e1d7;border-radius:10px;box-shadow:0 3px 14px #20372a08}
.task-panel>.capture-eyebrow {margin-bottom:5px}
.task-panel>h2 {margin-bottom:17px;font-size:1.42rem}
.analysis-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.analysis-steps li {display:flex;align-items:center;gap:11px;min-width:0;min-height:78px;padding:12px;border:1px solid #dce6dc;border-radius:7px;background:#f7f9f5;color:#64766b}
.analysis-steps li>span:last-child {display:grid;gap:3px;min-width:0}
.analysis-steps strong {color:#42594e;font-size:.9rem;line-height:1.35}
.analysis-steps small {color:#708177;font-size:.76rem;line-height:1.4}
.step-indicator {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #cbd8ce;border-radius:50%;background:#fff;color:#697b70;font-size:.84rem;font-weight:700}
.analysis-steps li[data-state="complete"] {border-color:#c9ddd0;background:#eff6ef}
.analysis-steps li[data-state="complete"] .step-indicator {border-color:#176452;background:#176452;color:#fff}
.analysis-steps li[data-state="active"] {border-color:#dca07f;background:#fff6ef}
.analysis-steps li[data-state="active"] .step-indicator {border-color:#cf744e;background:#cf744e;color:#fff}
.analysis-steps li[data-state="active"] strong {color:#874b35}
.analysis-steps li[data-state="error"] {border-color:#d99b88;background:#fff4ef}
.analysis-steps li[data-state="error"] .step-indicator {border-color:#ae543d;background:#ae543d;color:#fff}
.progress-copy {margin:17px 0 5px;color:#314f42;font-weight:610}
.elapsed-copy {margin:6px 0;color:#718278;font-size:.84rem}
.task-panel .request-list {margin:12px 0;padding:10px 14px;border-left:3px solid #d56a49;border-radius:0 6px 6px 0;background:#fbf1e5}
.task-panel .actions {margin:16px 0 0}
.task-panel .actions .primary {background:#176452;color:#fff}
.task-panel .actions .alt {background:#edf3eb}
.sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
  .capture-page .workspace {padding:0 18px 40px}
  .capture-grid {grid-template-columns:1fr;gap:0}
  .intro-block {padding:24px 0 16px}
  .intro-block .intro {font-size:.95rem}
  .intro-block h1 {font-size:1.9rem}
  .capture-page .panel {padding:18px}
  .capture-page .top {padding:12px 0;min-height:55px}
  .capture-reference {grid-template-columns:1fr;gap:8px}
  .capture-reference img {max-height:none}
  .task-panel {margin:18px 0;padding:18px}
  .analysis-steps {grid-template-columns:1fr;gap:7px}
  .analysis-steps li {min-height:64px}
}
