*{box-sizing:border-box}body{margin:0;background:#f3f5f4;color:#172f32;font:16px/1.5 system-ui,sans-serif}.wrap{max-width:1500px;margin:auto;padding:0 4vw}header{background:#133c3c;color:#fff}.bar,.intro,.intake,.panelhead,.actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.bar{height:65px}.brand{font-size:21px;letter-spacing:-.04em}.logo{display:inline-block;background:#d6ea89;color:#204138;border-radius:7px;padding:0 8px;margin-right:7px}.intro{margin:38px 0 26px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.15em;color:#457367;margin:0}h1{font:500 clamp(38px,5vw,60px)/1.1 Georgia,serif;margin:8px 0}p{margin:6px 0;color:#476165}.intake,.panel,#history{border:1px solid #ccd6d3;border-radius:14px;background:white}.intake,#history{padding:20px 24px}.intake p,.panelhead span,.empty p{font-size:14px}button,select,input{font:inherit}button,select{cursor:pointer;border:1px solid #abbdb7;border-radius:7px;background:white;color:#153e37;padding:9px 14px}button:disabled,select:disabled{opacity:.55;cursor:default}#upload,#approve{background:#19594c;color:white;border-color:#19594c;font-weight:650}.ghost span{background:#e1e9df;padding:1px 7px;border-radius:4px}.workspace{display:grid;grid-template-columns:1fr 1.13fr;gap:18px;margin:16px 0 40px}.panel{min-width:0;overflow:hidden;align-self:start}.panelhead{border-bottom:1px solid #dce3df;padding:15px 20px}h2,h3{margin:0;font-size:18px}h3{font-size:16px}#paper{background:#e6eae7;max-height:85vh;min-height:420px;overflow:auto;padding:18px}#paper canvas,#paper img{display:block;width:100%;height:auto;margin-bottom:14px;box-shadow:0 2px 6px #14282022}.empty{text-align:center;padding:85px 20px}.symbol{font:48px Georgia;color:#74948a}.tag{background:#e9eee8;color:#3d554d;padding:3px 9px;border-radius:15px}.tag.warn{background:#fff1d2;color:#704907}.tag.ok{background:#d8efdc;color:#1e5935}#editor{padding:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:grid;gap:4px;font-size:14px;font-weight:600}input{border:1px solid #b7c7c1;padding:7px;border-radius:5px;width:100%;min-width:0;background:white;color:inherit}fieldset{border:0;margin:0;padding:0}legend{font-weight:700;margin:17px 0 8px}.item{display:grid;grid-template-columns:2fr .65fr 1fr 1fr auto;gap:5px;margin-bottom:8px}.item button{align-self:end;padding:8px}.checks{background:#f3f6f1;border-radius:8px;padding:12px;margin:15px 0}.checks p{color:#364c44;font-size:14px}.checks ul{margin:5px 0;padding-left:22px}.checks li{margin:5px 0}.confirm{display:flex;align-items:flex-start;margin:12px 0}.confirm input{width:auto;margin-top:4px}details{margin-top:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}#message:empty{display:none}#message{margin:10px 0}.bar>span{color:#d4e3da;font-size:14px}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #347ac2}#history{margin:14px 0}#records article{padding:10px 0;border-top:1px solid #ddd}@media(max-width:850px){.workspace{grid-template-columns:1fr}.intake,.intro{align-items:flex-start;flex-wrap:wrap}#paper{max-height:55vh;min-height:210px}.empty{padding:45px 12px}}@media(max-width:480px){.actions{flex-wrap:wrap}.item{grid-template-columns:1fr 1fr}.item label:first-child{grid-column:span 2}.panelhead{padding:12px}.item{border-bottom:1px solid #ddd;padding-bottom:10px}}

#paper{padding:clamp(8px,1.2vw,18px);background:#e3e9e6;scrollbar-gutter:stable}
#paper canvas{margin:0 auto 14px;max-width:760px;box-shadow:0 1px 3px #223a312c,0 6px 16px #223a3112}
#paper canvas:last-child{margin-bottom:0}
#sourceSize{font-size:14px;padding:5px 9px}
#paper.enlarged canvas{width:max(100%,740px);max-width:none}
.source-tools{display:flex;align-items:center;gap:10px}

[hidden]{display:none!important}.tabs{display:flex;gap:24px;border-bottom:1px solid #cedbd5;background:#fff;overflow-x:auto}.tabs a{white-space:nowrap;padding:14px 0;text-decoration:none;color:#3f5a51;font-weight:600}.tabs a[aria-current]{border-bottom:3px solid #236858;color:#143d32}.card,.metric{background:#fff;border:1px solid #ccd6d3;border-radius:14px;padding:22px}.metrics,.overview{display:grid;gap:16px}.metrics{grid-template-columns:repeat(3,1fr)}.metric strong{display:block;font:48px Georgia;color:#214f42}.metric:first-child{background:#173f37;color:#fff}.metric:first-child strong{color:#dbeaac}.overview{grid-template-columns:.9fr 1.25fr;margin:16px 0}.card h2{margin-bottom:14px}.primary{background:#19594c;color:white;padding:10px 17px;border-radius:7px;text-decoration:none}.barrow{margin:14px 0}.barrow meter{width:100%;height:16px;accent-color:#54927e}.entry{padding:13px 0;border-top:1px solid #dae3dd;display:flex;justify-content:space-between;align-items:center;gap:12px}a{color:#175a49}.drop{padding:48px 12px;text-align:center;background:#e7f1e9;border:2px dashed #96b3a4;border-radius:16px;margin-bottom:16px}.drop.over{background:#d1e5c7}.drop button{margin-top:16px}.docIcon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#d5e5ad;color:#244b37;font-size:28px;margin-bottom:12px}.filters{display:flex;gap:10px;margin-bottom:14px}.filters input{max-width:420px}.tablewrap{overflow:auto}table{border-collapse:collapse;min-width:650px;width:100%;text-align:left}td,th{padding:12px 9px;border-bottom:1px solid #dce5df}th{font-size:14px;color:#4c645a;background:#f3f6f2}.event{border-left:3px solid #a4c6ae;margin:0 0 0 8px;padding:8px 18px 18px}.event small{color:#52685b;display:block}.event a{margin-left:10px}#paper object,#paper img{width:100%;min-height:360px}#paper object{height:65vh}.savebar{display:flex;gap:10px;flex-wrap:wrap}#message:not(:empty){padding:10px 15px;background:#e4eddd;border-radius:8px}
@media(max-width:650px){.tabs{gap:16px}.metrics{gap:6px}.metric{padding:12px}.metric strong{font-size:36px}.overview{grid-template-columns:1fr}.filters{flex-wrap:wrap}}
#uploadPage .intake{margin-bottom:16px}
.comparison table{min-width:0;table-layout:fixed;width:100%;font-size:14px}.comparison td{overflow-wrap:anywhere}.checks button{margin:6px 6px 6px 0}
