:root{color-scheme:light;--ink:#08344d;--muted:#546b75;--green:#08344d;--teal:#329ea3;--teal-text:#247a80;--line:#d6dfdd;--paper:#f7f5ec;--soft:#edf4f1;--surface:#fffefa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}header,main{max-width:1320px;margin:auto}header{padding:26px 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:10px;font-size:28px;font-weight:750;letter-spacing:-1.2px}.brand-mark{display:block;width:36px;height:44px;flex:none}.local{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.local span{width:7px;height:7px;background:var(--teal);border-radius:50%}main{padding:0 36px}.intro{display:flex;gap:50px;justify-content:space-between;align-items:center;padding:60px 0 40px}.eyebrow{color:var(--teal-text);text-transform:uppercase;font-weight:650;font-size:11px;letter-spacing:2px;margin:0 0 18px}h1{font:750 clamp(32px,3.8vw,50px)/1.08 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-1.9px;margin:0}h1 span{color:var(--ink)}.lead{color:var(--muted);max-width:565px;font-size:16px;margin:22px 0 0}.intro-note{border-left:2px solid var(--teal);padding:12px 0 12px 28px;min-width:250px}.intro-note>span{font-size:10px;letter-spacing:1.7px;color:var(--muted)}.intro-note p{font-size:22px;font-weight:650;line-height:1.35;letter-spacing:-.6px}.intro-note small{font-size:11px;color:var(--muted)}.workbench{display:grid;grid-template-columns:365px 1fr;gap:22px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:26px;box-shadow:0 6px 24px #08344d04}.section-top{display:flex;gap:12px;align-items:center;justify-content:space-between}h2{font-size:18px;letter-spacing:-.4px;margin:0}h3{font-size:16px;margin:23px 0 10px}.pill{font-size:10px;letter-spacing:1px;padding:3px 8px;border:1px solid var(--line);border-radius:5px}.muted,.help,.optional,small{color:var(--muted)}.muted{font-size:13px;margin:12px 0 25px}.help{font-size:12px;margin:8px 0 19px}.optional,.required{float:right;font-size:11px;font-weight:400;color:var(--muted)}label{display:block;font-size:13px;font-weight:600;margin:20px 0 8px}input{width:100%;padding:11px;border:1px solid #b9c9cb;border-radius:7px;font:13px system-ui;background:white;color:var(--ink)}input[type=file]{padding:13px 10px;background:#fbfaf5}input::file-selector-button{padding:6px 9px;border:0;background:#e5eeeb;color:var(--ink);border-radius:5px;font-weight:600;cursor:pointer;margin-right:10px}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer;font-size:13px;font-weight:600}button{font:600 13px system-ui;cursor:pointer;border:0;border-radius:24px;padding:14px 18px;background:var(--green);color:white;min-height:44px}button:disabled{cursor:wait;opacity:.6}button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #247a80;outline-offset:3px}#review-button{width:100%;display:flex;justify-content:space-between}.sample{margin-top:25px;border-top:1px solid var(--line);padding-top:10px}.sample p{font-size:13px;font-weight:600}.secondary{background:var(--soft);color:var(--green);width:100%}.sample small{display:block;font-size:11px;line-height:1.55;margin:12px 0}.sample a{font-size:12px;color:var(--green)}.text-button{background:none;color:var(--green);padding:5px}.results{min-height:610px}#status{font-size:12px;color:var(--muted)}#empty{text-align:center;max-width:420px;margin:65px auto}.drawing-icon{color:var(--teal-text);width:106px;height:106px;margin:auto}.drawing-icon svg{display:block;width:100%;height:100%}#empty h3{font-size:25px;font-weight:650;letter-spacing:-.7px;line-height:1.25;margin:25px 0 12px}#empty p{font-size:14px;color:var(--muted)}.scope{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:25px}.scope span{font-size:10px;background:#edf4f1;padding:5px 8px;border-radius:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.stat{background:#edf4f1;border-radius:8px;padding:13px}.stat strong{display:block;font-size:30px;font-weight:700;line-height:1.25;letter-spacing:-1px}.stat span{color:var(--muted);font-size:11px}.file-info{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.finding{border:1px solid var(--line);border-left:3px solid #b79849;border-radius:7px;margin:10px 0;padding:14px}.finding.review{border-left-color:#329ea3}.finding strong{font-size:11px;text-transform:uppercase;letter-spacing:.7px}.finding p{font-size:13px;margin:6px 0}.finding small{font-size:11px;overflow-wrap:anywhere}.error{background:#fff0ed;color:#8d3529;padding:12px;border-radius:7px;font-size:13px}.change-group{border:1px solid var(--line);border-radius:7px;padding:14px;margin:10px 0}.change-group h4{margin:0 0 8px;text-transform:capitalize}.change-group p,.change-group li{font-size:12px;overflow-wrap:anywhere}.change-group ul{padding-left:18px}.limits{margin-top:23px}.limits li{font-size:12px;color:var(--muted);margin:7px 0}footer{display:flex;justify-content:space-between;gap:50px;padding:30px 0 45px;color:var(--muted);font-size:11px}footer strong{white-space:nowrap}footer p{margin:0;max-width:670px}[hidden]{display:none!important}@media(max-width:850px){.workbench{grid-template-columns:1fr}.intro-note{display:none}header,main{padding-left:20px;padding-right:20px}.intro{padding:36px 0 28px}.results{min-height:430px}#empty{margin:35px auto}footer{display:block}footer p{margin-top:10px}.panel{padding:22px}}@media(prefers-reduced-motion:no-preference){button{transition:filter .15s}}
select, textarea { width: 100%; padding: 10px; border: 1px solid #9aaeb3; border-radius: 6px; background: white; color: #08344d; font: inherit; box-sizing: border-box; }
.finding label { display: block; margin-top: 12px; }
.finding small { overflow-wrap: anywhere; }
.reviewer-workflow { margin: 24px 0; }
@media print {
  header, .intro, .setup, #download, #print-report, #empty { display: none !important; }
  .workbench, .results { display: block; width: 100%; border: 0; box-shadow: none; }
  .finding { break-inside: avoid; }
  #comparison-section, footer { break-before: auto; }
  details.limits > ul { display: block !important; }
  textarea { height: auto; min-height: 100px; }
}
.print-note { display: none; white-space: pre-wrap; overflow-wrap: anywhere; }
@media print { .finding textarea { display: none; } .print-note { display: block; } }
.drawing-preview { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 20px; }
.preview-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.preview-controls > div { flex: 1 1 150px; min-width: 0; }
.preview-controls button { flex: 0 1 140px; }
.preview-controls label { margin-top: 8px; }
.preview-stage { height: 350px; overflow: auto; border: 1px solid var(--line); background: #f7f5ec; border-radius: 6px; }
.preview-stage img { display: block; max-width: none; height: auto; }
#preview-message, #filter-count { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.finding-filters { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
select:focus-visible, textarea:focus-visible, .preview-stage:focus-visible { outline: 3px solid #247a80; outline-offset: 3px; }
@media print { .finding-filters, .preview-controls, #import-worksheet, #worksheet-message { display: none; } .finding[hidden] { display: block !important; } .preview-stage { height: auto; overflow: visible; } .preview-stage img { width: 100%; } }
.checkbox-label { display: flex; align-items: center; gap: 8px; } .checkbox-label input { width: auto; }
.panel { min-width: 0; }
.revision-view { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 6px; }
.revision-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.revision-panes section { min-width: 0; }
.revision-panes h4 { margin: 12px 0 6px; font-size: 13px; }
.revision-panes .help { min-height: 42px; overflow-wrap: anywhere; }
#comparison-message { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media(max-width:600px) { .revision-panes { grid-template-columns: minmax(0, 1fr); } .revision-panes .preview-stage { height: 240px; } }
.preview-stage { width: 100%; max-width: 100%; min-width: 0; }
@media print { .checkbox-label { display: none; } }
.preview-stage img { margin-left: auto; margin-right: auto; }
#standard-message { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
input[readonly] { background: #edf4f1; }
#export-standard { margin-top: 12px; }
#save-status, #draft-message { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
#handoff-message { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media print { #export-handoff, #handoff-message { display: none; } }
#decision-history li { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.local-draft { margin-top: 20px; border-top: 1px solid var(--line); }
.intake-step { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-top: 25px; }
.intake-step > span { flex: 0 0 25px; height: 25px; border-radius: 50%; background: var(--soft); color: var(--green); text-align: center; line-height: 25px; font-size: 12px; }
.intake-guide ol { padding-left: 18px; font-size: 12px; color: var(--muted); }
.intake-guide li { margin: 8px 0; }
.file-readiness { overflow-wrap: anywhere; }
.file-readiness[data-state="blocked"] { color: #8d3529; font-weight: 600; }
.review-coverage { border: 1px solid #c0d7d6; border-radius: 10px; padding: 18px; margin: 20px 0; background: #fbfaf5; }
.review-coverage h3 { margin: 0; }
.review-coverage .section-top { flex-wrap: wrap; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.coverage-grid dt { font-size: 12px; font-weight: 700; }
.coverage-grid dd { font-size: 12px; color: var(--muted); margin: 5px 0 0; overflow-wrap: anywhere; }
.coverage-boundary, .coverage-warning, #review-next-step { font-size: 12px; }
.coverage-boundary { color: var(--muted); }
.coverage-warning { background: #fff3dd; color: #6e4811; padding: 10px; border-radius: 6px; }
.next-action { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; }
.next-action h4 { font-size: 13px; margin: 0; }
.next-action .secondary { width: auto; margin-right: 14px; }
.worksheet-link { display: inline-block; color: var(--green); font-size: 12px; padding: 10px 0; }
@media(max-width:600px) { .coverage-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media print { #review-next-finding, .worksheet-link { display: none; } .review-coverage { break-inside: avoid; } }
@media print { #save-draft, #save-status { display: none; } #history-section > ol, #history-section > p { display: block !important; } }
.correction-panel { margin: 18px 0; padding: 20px; background: #edf5f2; border: 1px solid #bcd7d5; border-radius: 12px; overflow-wrap: anywhere; }
.correction-panel h3 { margin: 4px 0 12px; }
.correction-panel p, .correction-panel li { font-size: 13px; }
.correction-panel .eyebrow { font-size: 10px; margin: 0; }
.correction-panel input { min-width: 0; }
.correction-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.correction-actions button, .corrected-output button { width: auto; max-width: 100%; margin: 0; white-space: normal; }
.correction-panel ul { padding-left: 20px; }
.correction-action { margin: 12px 0; }
@media(max-width:600px) { .correction-panel { padding: 15px; } .correction-actions button { width: 100%; } }
@media print { #correction-editor, #download-corrected, #corrected-download-status, .correction-action { display: none; } .corrected-output { break-inside: avoid; } }

/* Reference-inspired brand: warm paper, navy type and drafting teal. */
header{gap:20px}.brand:hover{color:var(--ink)}.intro-note{position:relative}.intro-note::after{content:"";position:absolute;right:6px;top:-28px;width:32px;height:32px;border:1px solid var(--teal);border-radius:50%;opacity:.55;background:linear-gradient(var(--teal),var(--teal)) center/1px 100% no-repeat,linear-gradient(var(--teal),var(--teal)) center/100% 1px no-repeat}.pill{color:var(--teal-text);background:var(--soft);border-color:#c0d7d6}.secondary{border:1px solid #c8dcda}.text-button{border-radius:5px}.drawing-preview h3{margin-top:0}input[type=range],input[type=checkbox]{accent-color:var(--teal-text)}.stat{border-top:2px solid var(--teal)}footer{border-top:1px solid var(--line);margin-top:28px}.local{white-space:nowrap}@media(max-width:390px){header{gap:12px;flex-wrap:wrap}.brand{font-size:26px}}

.browser-notice{border:1px solid #a4c9c9;border-radius:12px;padding:18px 22px;margin-bottom:24px;background:#fffefa}.browser-notice p{margin:0 0 8px}.browser-notice p:last-child{margin-bottom:0}#engine-status{font-weight:600;color:#08344d}
