:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#152e28;background:#f4f5ef;--green:#185342;--muted:#627269;--line:#d9dfd5;--paper:#fff}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,.btn,select,input{font:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--green);border:1px solid var(--line);border-radius:8px;background:white;padding:10px 14px;text-decoration:none;font-size:14px;font-weight:600}button:hover,.btn:hover{background:#edf2e9}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #c1762b;outline-offset:2px}.wrap{width:min(1376px,94%);margin:auto}header{background:#fff;border-bottom:1px solid var(--line)}.bar,.brand,.intro,.overall,.cardhead,.mapfoot,.dialogtop,.dialogfoot,footer,#actions{display:flex;align-items:center}.bar{height:68px;gap:16px}.brand{gap:10px;font-size:20px;font-weight:720;letter-spacing:-.7px}.divider{height:23px;border-left:1px solid var(--line)}.unit,small{font-size:11px;font-weight:700;letter-spacing:1.4px}.unit{color:var(--muted)}#status{margin-left:auto;font-size:13px;color:var(--muted)}#status:before{content:'';display:inline-block;width:8px;height:8px;background:#55966a;border-radius:50%;margin-right:7px}#status.bad:before{background:#b45130}.intro{justify-content:space-between;gap:15px;margin:36px 0 24px}h1,h2,p{margin:0}h1{font-size:clamp(34px,4vw,54px);letter-spacing:-2.4px;font-weight:640}.intro p{color:var(--muted);font-size:14px;margin-top:6px}.intro p span{margin:0 5px}.overall{background:#e7eddf;border:1px solid #d5dfcb;border-radius:10px;padding:14px 20px;gap:18px;font-size:14px;margin-bottom:20px}.overall b{font-variant-numeric:tabular-nums}progress{appearance:none;height:6px;flex:1;border:0;border-radius:10px;background:#cbd6c3;color:var(--green)}progress::-webkit-progress-bar{background:#cbd6c3;border-radius:10px}progress::-webkit-progress-value{background:var(--green);border-radius:10px}progress::-moz-progress-bar{background:var(--green)}
.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);align-items:start;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.cardhead,.mapfoot,footer,.dialogtop,.dialogfoot{justify-content:space-between;gap:12px}.cardhead{padding:19px 22px;border-bottom:1px solid var(--line)}small{display:block;color:var(--muted);font-size:10px}.cardhead h2{margin-top:4px}h2{font-size:23px;letter-spacing:-.8px}.count{font-size:13px;background:#edf2e8;border-radius:20px;padding:5px 10px}.drawing{min-width:0}#mapbox{height:clamp(380px,54vh,650px);overflow:auto;background-color:#fafbf6;background-image:radial-gradient(#cbd3c5 .85px,transparent .85px);background-size:14px 14px}#map{display:block;width:100%;height:100%;user-select:none;-webkit-touch-callout:none}.roomhit,.segment,.marker{cursor:pointer}.roomhit:hover rect{fill:#aac887;fill-opacity:.24}.pill{fill:#fff;stroke:#c4cdbc;stroke-width:1}.roomname{font-family:inherit;font-weight:650;fill:#203d32}.mapfoot,#actions{padding:12px 18px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}.zoom{display:flex;gap:4px}.zoom button{width:36px;height:36px;padding:0;font-size:19px}#actions{gap:8px}.row{display:flex;text-align:left;justify-content:space-between;width:100%;align-items:center;gap:10px;border:0;border-bottom:1px solid #e9ede5;border-radius:0;padding:15px 20px;color:#203a30;font-weight:570}.row:last-child{border-bottom:0}.row .meta{display:block;font-size:12px;color:var(--muted);margin-top:3px;font-weight:400}.row .right{font-size:13px;color:var(--muted);white-space:nowrap}.row.active{background:#eaf0df}.row.done .right{color:var(--green)}.group{background:#f6f8f2;font-size:12px;font-weight:650;padding:10px 20px;color:var(--muted)}.addrow{margin:12px 20px}.empty{padding:15px 20px;font-size:13px;color:var(--muted)}footer{padding:18px 2px 25px;color:var(--muted);font-size:12px}footer a{color:inherit}
dialog{width:min(440px,94vw);max-height:90dvh;border:1px solid var(--line);border-radius:16px;color:#20382d;padding:22px;box-shadow:0 15px 70px #142d2733}dialog::backdrop{background:#162b2359}dialog h2{margin:8px 0 20px}.dialogtop button{border:0;padding:4px 10px;font-size:22px}.dialogfoot{margin-top:16px}.primary{background:var(--green);border-color:var(--green);color:white;margin-left:auto}.primary:hover{background:#103d30}label{display:block;font-size:13px;font-weight:600;margin:12px 0 4px}input,select{width:100%;padding:10px;border-radius:6px;border:1px solid #b5c3b1;background:#fff;color:#152e28}input[type=checkbox]{width:auto}.part{border-bottom:1px solid var(--line);padding:6px 0 12px}.partgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:6px}.part button{font-size:12px;padding:4px 8px;margin-top:8px}#error{font-size:14px;color:#963c24;margin-top:10px}#remove{color:#904530}
@media(max-width:760px){.wrap{width:94%}.bar{height:55px;gap:9px}.brand{font-size:17px}.intro{margin:22px 0 16px;align-items:flex-start;flex-wrap:wrap}.intro .btn{font-size:12px;padding:8px 10px}.layout{grid-template-columns:1fr;gap:12px}#mapbox{height:clamp(290px,43vh,450px)}.overall{padding:12px;gap:10px;margin-bottom:12px;font-size:12px}.cardhead{padding:12px 16px}.cardhead h2{font-size:20px}.unit{font-size:10px}#status{font-size:11px}.row{min-height:48px}.mapfoot{padding:8px 12px}.zoom button{width:40px;height:40px}}
.dialogfoot{flex-wrap:wrap;gap:6px}.dialogfoot #save{margin-left:auto}.dialogfoot .primary{margin-left:0}.dialogfoot:has(#next[hidden]) #save{background:var(--green);color:white}
#mapbox{overflow:hidden}
#map{touch-action:none;cursor:grab}
#map.picking-measure,#map.picking-measure *{cursor:crosshair}
#map.dragging,#map.dragging *{cursor:grabbing}
.measure-field{position:relative;display:flex;align-items:center}
.measure-field input{padding-right:46px;min-height:44px}
.clear-value{position:absolute;right:1px;top:1px;bottom:1px;width:42px;padding:0;border:0;background:transparent;font-size:22px}
.check-label{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.check-label input[type=checkbox]{width:28px;height:28px;margin:0;accent-color:var(--green);cursor:pointer}
#hover-segment{display:none;stroke:#ad481d;stroke-width:5px;stroke-linecap:round}
.row.segment-hover{background:#fff0de;box-shadow:inset 4px 0 #ad481d;color:#723314}
.checklist-entry{position:relative;display:flex;align-items:stretch;border-bottom:1px solid #e9ede5}
.checklist-entry .row{flex:1;min-width:0;padding-left:8px}
.drag-handle{align-self:stretch;min-width:40px;padding:0;border:0;border-radius:0;color:var(--muted);font-size:22px;cursor:grab;touch-action:none;user-select:none}
.moving .drag-handle{cursor:grabbing}
.checklist-entry.moving{opacity:.55}
.checklist-entry.drop-before::before,.checklist-entry.drop-after::after{content:"";position:absolute;left:0;right:0;height:3px;background:var(--green);pointer-events:none}
.drop-before::before{top:0}.drop-after::after{bottom:0}
