*{box-sizing:border-box}body{margin:0;color:#20333c;background:#f3f6f5;font:14px "Segoe UI",Arial,sans-serif}header{height:76px;background:#fff;border-bottom:1px solid #dce4e2;display:flex;align-items:center;gap:12px;padding:0 24px}.brand{display:flex;gap:12px;align-items:center;margin-right:auto;font-size:20px;font-weight:700}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:4px;color:#6e827e}.brandmark{background:#ea0d8c;color:white;border-radius:10px;font-size:27px;padding:8px 15px}.local{color:#397564;font-size:12px;margin-right:15px}button,.upload{border:1px solid #cfdbd6;background:white;border-radius:7px;padding:10px 12px;font:600 12px "Segoe UI",sans-serif;color:#29463f;cursor:pointer}button:hover,.upload:hover{background:#fff1f8}button:disabled{opacity:.5;cursor:wait}.primary{background:#ea0d8c;color:white;border-color:#ea0d8c}.primary:hover{background:#bd076e}.active{background:#fce0f0;border-color:#ea0d8c}.wide{width:100%;margin-bottom:9px}main{display:grid;grid-template-columns:250px minmax(460px,1fr) 280px;min-height:calc(100vh - 76px)}aside{background:#fff;padding:24px 19px}.setup{border-right:1px solid #dce4e2}.inspector{border-left:1px solid #dce4e2}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#638276;font-weight:800;margin-bottom:14px}label{display:block;font-size:11px;font-weight:600;margin-bottom:13px;color:#52665f}input:not([type=checkbox]):not([type=file]):not([type=range]),select{width:100%;border:1px solid #d6dfdb;border-radius:6px;padding:9px;margin-top:6px;background:#fff;font:13px "Segoe UI";color:#243c33}.pair{display:flex;gap:9px;align-items:center}.pair>*{min-width:0;flex:1}.capacity{border-radius:8px;background:#fff0f8;padding:13px;margin:4px 0 28px}.capacity span{display:block;font-size:11px;color:#647c6d}.capacity strong{display:block;font-size:25px;margin-top:5px}.upload{display:block;text-align:center;margin-top:9px}.upload input{width:100%;font-size:10px;margin-top:8px}.hint{font-size:11px;line-height:1.6;color:#6b7b77;margin:8px 0 16px}.workspace{padding:25px 24px;min-width:0}.workspaceTop,.measureHeader{display:flex;justify-content:space-between;align-items:center;gap:8px}.workspaceTop .eyebrow{margin-bottom:7px}h1{font-size:26px;letter-spacing:-.8px;margin:0 0 24px}h2{font-size:17px;margin:0 0 16px}.legend{font-size:10px;white-space:nowrap}.legend span{margin-left:8px}.red{color:#d94d56}.blue{color:#4e96d0}.teal{color:#009980}.toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:12px;background:#fff;border:1px solid #dbe3df;border-radius:10px 10px 0 0}.toolbar button{padding:8px;font-size:10px}.toolbar label{display:flex;align-items:center;gap:5px;margin:0 0 0 auto}.toolbar input{width:70px}#mapViewport{overflow:auto;height:410px;background:#fff;border:1px solid #dbe3df;border-top:0}#mapWrap{min-width:100%;height:100%;display:flex;align-items:center}#map{width:100%;min-height:300px;max-height:none;user-select:none;touch-action:none}svg text{font-family:"Segoe UI",sans-serif;fill:#778a82;font-size:15px}.selectionbar{padding:11px;background:#fff1f8;display:flex;align-items:center;gap:10px;font-size:11px}.selectionbar button{font-size:10px;padding:6px}.check{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5}.selectionbar .check{margin:0 0 0 auto}input[type=checkbox]{accent-color:#ea0d8c}.measureHeader{margin-top:28px}.measureHeader>div{margin-right:auto}.measureHeader .eyebrow{margin-bottom:6px}.measureHeader h2{margin-bottom:0}.photoArea{background:#fff;border:1px solid #dce4e2;border-radius:8px;overflow:auto;max-height:440px}#photo{width:100%;min-height:160px;touch-action:none;user-select:none}#ocrStatus{font-size:11px;margin:10px;color:#557565}#candidates{display:flex;flex-wrap:wrap;gap:6px}.candidate{font-size:11px}.stats{display:flex;justify-content:space-between;border-top:1px solid #e0e7e3;padding-top:14px;margin:18px 0}.stats strong{font-size:21px;display:block}.stats span{font-size:10px;color:#738277}.supply{padding:10px;border:1px solid #dce5df;border-left:4px solid var(--color);border-radius:5px;margin-bottom:8px;font-size:11px}.supply b{display:flex;justify-content:space-between}.bar{height:4px;background:#e9eeeb;margin-top:9px}.bar i{height:4px;display:block;background:var(--color);max-width:100%}.over{background:#fff0ee;border-color:#da7668;color:#a02c23}hr{border:0;border-top:1px solid #e1e8e3;margin:22px 0}.mapHint{margin-bottom:0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#861454;color:white;border-radius:8px;padding:13px 20px;box-shadow:0 4px 25px #0002;max-width:80vw;display:none;z-index:10}.exit{cursor:pointer}.exit text{font-size:11px;fill:#173e34;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px}.exit circle{vector-effect:non-scaling-stroke}.marquee{fill:#ea0d8c22;stroke:#ea0d8c;stroke-width:2;pointer-events:none}.groupShape{pointer-events:none;fill-opacity:.035;stroke-dasharray:6 4;stroke-width:1.5;vector-effect:non-scaling-stroke}.dimBadge{fill:#007e68!important}@media(max-width:1100px){main{grid-template-columns:220px minmax(400px,1fr)}.inspector{grid-column:1/-1;display:block}.workspace{padding:20px 14px}.local{display:none}}@media(max-width:700px){main{display:block}header{padding:10px;gap:5px;flex-wrap:wrap;height:auto}.brand{font-size:16px}.brand small{display:none}.setup{border-bottom:1px solid #ddd}.workspaceTop{display:block}.workspace{padding:14px}.selectionbar{flex-wrap:wrap}}

.measuredGroups{margin-top:24px}.groupsHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.groupsHeader h2{margin:0}.groupsHeader span{font-size:11px;color:#647a70}.groupsTableWrap{overflow:auto;border:1px solid #dce5df;border-radius:8px;background:white;max-height:420px}.groupsTable{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;min-width:660px}.groupsTable th{position:sticky;top:0;background:#fff1f8;text-align:left;font-size:10px;letter-spacing:.4px;color:#526b60;white-space:nowrap;padding:10px 9px;z-index:1;border-bottom:1px solid #dce5df}.groupsTable td{padding:5px 9px;border-bottom:1px solid #e8edea;vertical-align:middle}.groupsTable tr:last-child td{border-bottom:0}.groupsTable tbody tr:hover{background:#fff7fb}.groupsTable tr.selected{background:#fce7f3}.groupsTable tr.selected td:first-child{box-shadow:inset 3px 0 #ea0d8c}#groups input:not([type=checkbox]){margin:0;padding:6px 7px;font-size:12px;min-height:30px}#groups input[data-field=label]{min-width:90px}#groups input[data-field=amps]{width:74px;font-variant-numeric:tabular-nums}.groupsTable .exitList{min-width:85px;max-width:220px;font-size:11px;color:#65796f;overflow-wrap:anywhere}.verifiedCell{text-align:center}.verifiedCell input{width:16px;height:16px;cursor:pointer}.supplyTag{white-space:nowrap;font-size:11px;font-weight:600;color:var(--color)}.supplyTag:before{content:"";display:inline-block;background:var(--color);width:6px;height:6px;border-radius:50%;margin-right:5px}.dimmingTag{font-size:10px;font-weight:700;color:#ea0d8c;background:#fce7f3;border-radius:4px;padding:3px 5px}.groupActions{white-space:nowrap}.groupActions button{font-size:10px;padding:5px 7px}.groupActions button+button{margin-left:4px;color:#7e5951}.emptyGroups{padding:16px;margin:0}

header #exportMode{width:auto;max-width:190px;margin:0;font-size:12px;padding:9px}

.supplyColor{display:flex;align-items:center;justify-content:space-between;margin:8px 0 0}#supplies input[type=color]{width:44px;height:28px;padding:2px;margin:0;cursor:pointer}

.supplyOverview{margin-top:20px;padding:16px;background:#fff;border:1px solid #dce5df;border-radius:8px}.supplyOverview h2{margin:0}.supplyOverview .stats{justify-content:flex-start;gap:32px;border:0;padding:0;margin:12px 0}.supplyOverview #supplies{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.supplyOverview .supply{margin:0;min-width:0}

.historyControls{display:flex;gap:6px;flex-shrink:0}.historyControls button{white-space:nowrap}.historyControls button:disabled{cursor:default}header{height:auto;min-height:76px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}header>button{white-space:nowrap}@media(max-width:1400px){header .local{display:none}}

.selectionMeasurement{margin-top:12px;padding:14px 16px;border:1px solid #dce5df;border-radius:8px;background:#fff}.selectionMeasurement.hasSelection{border-color:#ea0d8c;background:#fff4fa}.measurementTitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.measurementTitle h2{margin:0;font-size:16px}.measurementTitle span{font-size:12px;font-weight:700;color:#ea0d8c;overflow-wrap:anywhere}.measurementFields{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,180px);gap:14px}.measurementFields label{margin-bottom:10px}.measurementSave{display:flex;justify-content:flex-end;align-items:center;gap:12px}.selectionMeasurement .hint{margin:8px 0}.selectionMeasurement [hidden]{display:none}@media(max-width:700px){.measurementTitle,.measurementSave{align-items:flex-start;flex-direction:column}.measurementFields{grid-template-columns:1fr}}

.workAreaControls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.workAreaControls label{flex:1;min-width:130px;margin:0}.workAreaControls button{margin-bottom:1px}.workAreaControls [hidden]{display:none}.workAreaShape{fill:#ea0d8c11;stroke:#ea0d8c;stroke-width:2;stroke-dasharray:9 5;pointer-events:none}.workAreaLabel{fill:#ea0d8c;font-size:16px;font-weight:700;paint-order:stroke;stroke:white;stroke-width:3px;pointer-events:none}

.readingEditor{margin-top:12px;padding:14px 16px;background:#fff;border:1px solid #cbded4;border-radius:8px}.readingEditorTitle{display:flex;align-items:center;justify-content:space-between;gap:10px}.readingEditorTitle h2{margin:0;font-size:16px}.readingEditorTitle button{padding:6px 8px;font-size:11px}.readingEditorBody{display:flex;align-items:center;gap:18px;flex-wrap:wrap}#readingPreview{width:220px;height:110px;background:#f4f7f5;border:1px solid #d6e1da;border-radius:6px}#readingPreview[hidden]{display:none}#readingReviewForm{display:flex;align-items:flex-end;gap:10px;flex:1}#readingReviewForm label{margin:0;flex:1;min-width:110px}#readingReviewForm button{white-space:nowrap}.readingEditor .hint{margin:8px 0}#photo{cursor:crosshair}

.photoReadingMark{cursor:pointer;pointer-events:auto}.photoReadingMark:hover rect,.photoReadingMark:focus rect{fill:#ea0d8c24;stroke-width:3}.photoReadingMark rect{fill:#ea0d8c0c;stroke:#ea0d8c;stroke-width:2;stroke-dasharray:8 4;vector-effect:non-scaling-stroke}.photoReadingMark text{font-size:22px;font-weight:700;fill:#ea0d8c;paint-order:stroke;stroke:white;stroke-width:4px;stroke-linejoin:round}.readingTarget{font-size:13px;font-weight:700;color:#ea0d8c}

#photo .marquee{pointer-events:none}

.powerConnection{fill:none;stroke-width:1.5;stroke-dasharray:7 5;vector-effect:non-scaling-stroke;pointer-events:none}.powerLabel{font-size:20px;font-weight:700;fill:#162b35;paint-order:stroke;stroke:white;stroke-width:4px;pointer-events:none}.powerSubLabel{font-size:13px;fill:#162b35;paint-order:stroke;stroke:white;stroke-width:3px;pointer-events:none}

header .footerChoice{display:flex;align-items:center;gap:7px;margin:0;white-space:nowrap}header #footerBrand{width:105px;margin:0;font-size:12px;padding:9px}

.measureHeader{flex-wrap:wrap}.autoAssignOption{margin:12px 0 6px}.autoReadingBadge{display:block;font-size:10px;color:#8c5b00;white-space:nowrap;margin-top:4px}.groupsTable tr:has(.autoReadingBadge){background:#fff8e7}.autoReadingMark rect{stroke:#ad7600;fill:#f3b41b18}.autoReadingMark text{fill:#8c5b00}.photoMatchOverlay{pointer-events:none}.photoMatchOverlay line{stroke:#ae7900;stroke-width:1.5;stroke-dasharray:6 5;vector-effect:non-scaling-stroke;opacity:.7}.photoMatchOverlay circle{fill:white;stroke:#ea0d8c;stroke-width:1.4;vector-effect:non-scaling-stroke}.photoMatchOverlay text{fill:#ea0d8c;font-weight:700;paint-order:stroke;stroke:white;stroke-width:3}

/* Both viewers keep image coordinates stable while their scrollable surface zooms. */
#mapWrap{min-width:0;min-height:100%;height:auto;align-items:center}
#map,#photo{display:block;width:100%;height:auto;max-height:none;flex-shrink:0}
#photoWrap{width:100%;min-height:100%}
#photoViewport{height:440px;max-height:440px;border-radius:0 0 8px 8px;overscroll-behavior:contain;touch-action:none}
#mapViewport{overscroll-behavior:contain;touch-action:none}
.toolbar output{min-width:40px;font-variant-numeric:tabular-nums}
.toolbar .active{cursor:pointer}
.handReady,.handReady *{cursor:grab!important}
.handDragging,.handDragging *,.movingExit,.movingExit *{cursor:grabbing!important}
.exit circle{cursor:move}
.photoToolbar{margin-top:12px}

.brandmark{display:block;width:48px;height:48px;object-fit:contain;padding:0;background:transparent;border-radius:0;flex-shrink:0}

/* Reading colors describe connection state, independently of the brand and circuit colors. */
.readingLegend{font-size:11px;display:flex;gap:18px;flex-wrap:wrap}.unlinkedKey{color:#c62828}.linkedKey{color:#176856}
.photoReadingMark text,.photoMatchOverlay text{font-weight:400;stroke-width:2px}
.photoReadingMark.unconnectedReading rect{stroke:#c62828;fill:#c628280c}.photoReadingMark.unconnectedReading text{fill:#c62828}
.photoReadingMark.connectedReading rect{stroke:#176856;fill:#1768560c}.photoReadingMark.connectedReading text,.photoMatchOverlay text{fill:#176856}
.photoReadingMark:hover rect,.photoReadingMark:focus rect{fill:#ea0d8c18}
.photoMatchOverlay circle{stroke:#176856}.readingTarget{color:#176856}
.exit.selectedExit .exitMarker{stroke:#ea0d8c;stroke-width:3;filter:drop-shadow(0 0 3px #ea0d8c99)}
.exit .exitIssueHalo{fill:none;stroke:#bc310d;stroke-width:2;stroke-dasharray:3 3;pointer-events:none}
.exit .exitIssueBadge{fill:#bc310d;font-size:14px;stroke:white;stroke-width:3;pointer-events:none}
.issuePanel{background:#fff6ee;border:1px solid #dba98b;border-radius:8px;margin:12px 0;padding:12px;color:#75330e;font-size:12px}.issuePanel[hidden]{display:none}.issuePanel p{font-size:11px;line-height:1.5;margin:6px 0}.issuePanel ul{padding-left:18px;max-height:190px;overflow:auto;margin:8px 0 0}.issuePanel li{margin:6px 0;line-height:1.6}.issuePanel button{font-size:10px;padding:4px 7px;margin-left:6px}.issuePanel .exitIssueLink{border:0;text-decoration:underline;background:transparent;padding:2px;color:#75330e}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ea0d8c;outline-offset:2px}

.primary{color:#29111f}.primary:hover{color:#fff}.local{color:#9e155f}.eyebrow{color:#9e155f}

.primary{font-weight:700;font-synthesis:weight}
.setup>.eyebrow{font-size:11px;font-weight:800}
.setRenameControls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:10px}.setRenameControls[hidden]{display:none}.setRenameControls label{flex:1;min-width:180px;margin:0}.setRenameControls button{white-space:nowrap}
#reserveDialog{max-width:min(520px,90vw);border:1px solid #e5b7cf;border-radius:12px;padding:24px;color:#20333c;box-shadow:0 12px 60px #0003}#reserveDialog::backdrop{background:#23151c77}#reserveDialog p{line-height:1.6}#reserveWarningList{font:13px "Segoe UI",sans-serif;white-space:pre-wrap;background:#fff4e8;padding:12px;border-radius:6px;max-height:230px;overflow:auto}.dialogActions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}

#removeSetDialog,#exportSetsDialog{max-width:min(560px,90vw);border:1px solid #e5b7cf;border-radius:12px;padding:24px;color:#20333c;box-shadow:0 12px 60px #0003}#removeSetDialog::backdrop,#exportSetsDialog::backdrop{background:#23151c77}#removeSetDialog p,#exportSetsDialog p{line-height:1.6}#exportSetChoices{max-height:300px;overflow:auto;border-block:1px solid #eadfe5;margin-top:14px;padding:14px 4px}#exportSetChoices label{font-size:13px;padding:8px;margin:0;align-items:flex-start}#exportSetChoices input{flex-shrink:0}.exportSetActions{display:flex;gap:8px;align-items:center}.exportSetActions span{margin-left:auto;font-size:12px;color:#687870}#removeSet{color:#a22a37;border-color:#e4bcc2}

.inspector .issuePanel{margin:0 0 24px;padding:12px;font-size:11px;overflow-wrap:anywhere}.inspector .issuePanel>strong{display:block;line-height:1.5}.inspector .issuePanel ul{max-height:340px;padding-left:15px}.inspector .issuePanel li{margin:10px 0}.inspector .issuePanel button{margin-top:4px}
#exportIssuesDialog{width:680px;max-width:90vw;max-height:85vh;box-sizing:border-box;overflow:auto;border:1px solid #e5b7cf;border-radius:12px;padding:24px;color:#20333c;box-shadow:0 12px 60px #0003}#exportIssuesDialog::backdrop{background:#23151c77}#exportIssuesDialog p{line-height:1.6;font-size:13px}#exportIssuesSummary{font-weight:700;color:#9e3b17}#exportIssuesList{list-style:none;padding:0;max-height:48vh;overflow:auto;border-block:1px solid #e9dde3}#exportIssuesList li{padding:12px 4px;border-bottom:1px solid #eee4e9}#exportIssuesList li:last-child{border:0}#exportIssuesList strong,#exportIssuesList span{display:block;overflow-wrap:anywhere}#exportIssuesList strong{color:#9e155f;font-size:12px;margin-bottom:4px}#exportIssuesList span{font-size:13px;line-height:1.5}#exportIssuesList button{margin:8px 6px 0 0;padding:6px 9px;font-size:11px}#exportIssuesList .exportExitLink{color:#9e155f;text-decoration:underline;border:0;background:transparent}

.appVersion{position:fixed;right:12px;bottom:8px;z-index:30;display:flex;gap:14px;align-items:center;padding:5px 10px;background:#fff;border:1px solid #ddd;border-radius:6px;color:#53616a;font-size:11px;box-shadow:0 1px 5px #0001}.appVersion a{color:#9b075c}.appVersion span{font-weight:700}body{padding-bottom:32px}@media print{.appVersion{display:none}}
.outlineToolbar,.outlineToolbar>div{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.outlineToolbar>[hidden]{display:none}.outlineToolbar button{font-size:11px}.outlineHit{fill:none;stroke:transparent;stroke-width:10;pointer-events:stroke;cursor:pointer;vector-effect:non-scaling-stroke}.outlineHit:hover,.selectedOutlineEdge{stroke:#ea0d8c88;stroke-width:5}.hiddenOutlineEdge{stroke:transparent;stroke-width:10}.hiddenOutlineGuide{fill:none;stroke:#7776;stroke-width:1;stroke-dasharray:2 4;pointer-events:none;vector-effect:non-scaling-stroke}.outlinePoint{fill:white;stroke:#ea0d8c;stroke-width:1.5;cursor:move;vector-effect:non-scaling-stroke}
.quickEntryPanel{margin:12px 0;padding:12px;border:1px solid #e5b7cf;border-radius:8px;background:#fff}.quickEntryPanel fieldset{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:0;padding:0;margin:8px 0}.quickEntryPanel fieldset>label{margin:0;flex:1;min-width:150px}.quickEntryPanel fieldset>.check{display:flex}.quickEntryPanel #quickEntryCustomLabel{flex-basis:100%}.quickEntryPanel [hidden]{display:none!important}.quickEntryActions{display:flex;gap:8px;flex-wrap:wrap}.quickEntryActions button{font-size:12px}#quickEntryProgress{font-weight:700;color:#9e155f;font-size:13px;margin:10px 0}#quickEntryPreview{overflow-wrap:anywhere}#quickEntryToggle[aria-expanded="true"]{border-color:#ea0d8c;color:#9e155f;background:#fff4fa}
