/* Shared measured plane, editable derived values and quiet blue auto state. */
.location-geometry-editor{min-width:0;margin:16px 0;container-type:inline-size}
.location-geometry-controls{min-width:0}
.location-geometry-controls>h4,.location-geometry-controls>.ri-location-facts-heading{margin:0 0 14px}
.location-geometry-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-bottom:16px}
.location-geometry-toolbar>label{display:grid;gap:6px;font-size:12px;font-weight:400;min-width:0;max-width:100%;margin:0}
.location-geometry-toolbar>:only-child{grid-column:1/-1}
.location-geometry-toolbar select{height:42px;min-height:42px;width:100%;font-size:13px;padding:8px 34px 8px 12px}
.location-geometry-mode{min-width:0}
#report-intake .location-geometry-mode .ri-location-measure-choice{display:grid;gap:8px;margin:0}
#report-intake .location-geometry-mode .ri-location-measure-choice>.ri-field{width:auto;min-width:0}
#report-intake .location-geometry-mode .ri-location-measure-choice select{height:42px;min-height:42px;font-size:13px}
#report-intake .location-geometry-mode .ri-location-no-measures{min-height:18px;gap:6px;font-size:11px;line-height:18px}
#report-intake .location-geometry-mode .ri-location-measure-requirement{margin:6px 0 0}
#report-intake .location-geometry-controls .ri-location-facts-heading h4{font-size:13px;font-weight:500}
#report-intake .location-geometry-controls .ri-location-facts-heading p{font-size:12px}
#report-intake .location-geometry-controls>.ri-location-comparison-note{margin:12px 0 0;font-size:11px;line-height:1.7;color:var(--text-muted)}
#report-intake .location-geometry-controls>.ri-location-measure-status{margin:6px 0 0;font-size:11px;color:var(--text-muted)}
.location-geometry-layout{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,1.2fr);gap:18px;align-items:start}
.location-geometry-diagram{margin:0;background:#f7f9fc;border:1px solid #e1e7f0;border-radius:10px;padding:14px 16px 12px;min-width:0}
.location-geometry-diagram-heading{display:grid;gap:0;align-content:start;min-height:36px;line-height:18px;font-size:12px;color:var(--brand)}
.location-geometry-key{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#59708f;white-space:nowrap}
.location-geometry-key i{width:9px;height:9px;display:inline-block;background:#dceaff;border:1px solid #7199d6;border-radius:2px}
.location-geometry-diagram svg{display:block;width:100%;height:auto;aspect-ratio:410/314;max-width:350px;margin:8px auto 0;overflow:visible;stroke-linecap:round;stroke-linejoin:round}
.location-geometry-building,.location-geometry-gable{fill:#fff;stroke:#b2bfd1;stroke-width:1.3}
.location-geometry-side{fill:#e8edf4;stroke:#b2bfd1;stroke-width:1.3}
.location-geometry-roof{fill:#d5dfed;stroke:#a0b0c6;stroke-width:1.3}
.location-geometry-roof-edge{fill:none;stroke:#7c8da7;stroke-width:2}
.location-geometry-face{fill:#dceaff;stroke:#5d8dcf;stroke-width:1.7}
.location-geometry-window{fill:#fff;fill-opacity:.8;stroke:#92a9c6;stroke-width:1.2}
.location-geometry-window path{fill:none;stroke:#b6c7dc;stroke-width:1}
.location-geometry-door{fill:#eef3fa;stroke:#92a9c6;stroke-width:1.2}
.location-geometry-handle{fill:#788fab}
.location-geometry-side-window{fill:#f8fafd;stroke:#a8b8cd;stroke-width:1.2}
.location-geometry-ground{fill:none;stroke:#dbe3ee;stroke-width:1.5}
.location-geometry-floor-edge{fill:none;stroke:#5d8dcf;stroke-width:2}
.location-geometry-stairs{fill:none;stroke:#5d8dcf;stroke-width:3}
.location-geometry-diagram [data-geometry-axis]{stroke:#9cabc0;stroke-width:1.3;fill:none}
.location-geometry-diagram text{stroke:none;fill:#65758d;font-family:inherit;font-size:16px;text-anchor:middle}
.location-geometry-diagram .location-geometry-value{font-size:17px;fill:var(--brand);font-variant-numeric:tabular-nums}
.location-geometry-diagram figcaption{color:var(--text-muted);font-size:11px;line-height:1.6;min-height:3.2em;text-align:center;max-width:350px;margin:4px auto 0}
.location-geometry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;min-width:0}
.location-geometry-fields>:is(label,div){min-width:0}
.location-geometry-fields>:only-child{grid-column:1/-1}
.location-geometry-fields label{display:grid;gap:6px;font-size:12px;font-weight:400;margin:0;min-width:0}
.location-geometry-fields input{width:100%;min-width:0;height:42px;min-height:42px;font-size:13px;font-variant-numeric:tabular-nums}
.location-geometry-derived{min-width:0;display:flex;flex-wrap:wrap;align-items:end;gap:6px}
.location-geometry-derived>label{flex:1;min-width:90px}
.location-geometry-derived>button{height:42px;width:32px;min-height:42px;flex:0 0 32px;padding:6px;border:1px solid var(--border,#d5ddeb);border-radius:6px;background:white;color:#52627b;font-size:17px;cursor:pointer}
.location-geometry-derived>small{flex-basis:100%;font-size:10px;color:var(--text-muted);line-height:1.5}
.location-geometry-derived>small:empty{display:none}
.location-geometry-editor [hidden]{display:none!important}
.location-geometry-toolbar select.is-missing{background:#fff4ce;border-color:#e5b659}
.location-geometry-editor .is-automatic input,.location-geometry-editor input.is-automatic{background:#edf3ff;border-color:#a7c3ff;color:#245f9e}
.location-geometry-editor .ri-field-missing input,.location-geometry-editor .ri-field input[aria-invalid=true],.location-geometry-editor .ba-field input[aria-invalid=true],.location-geometry-editor input[data-location-geometry-missing=true]{background:#fff4ce;border-color:#e5b659;color:var(--brand)}
#report-intake .location-geometry-editor .ri-field>input[aria-invalid=true]{background:#fff4ce;border-color:#e5b659;color:var(--brand)}
.location-geometry-reference{margin-top:16px;font-size:12px}
.location-geometry-reference>summary{cursor:pointer;color:var(--text-muted);font-weight:400}
.location-geometry-reference table{margin-top:12px}
.location-geometry-editor[data-geometry-focus=length_m] [data-geometry-axis=length_m],.location-geometry-editor[data-geometry-focus=height_m] [data-geometry-axis=height_m],.location-geometry-editor[data-geometry-focus=width_m] [data-geometry-axis=width_m]{stroke:#2464b4;stroke-width:2.4}
.location-geometry-editor:is([data-geometry-focus=area_m2],[data-geometry-focus=perimeter_m]) .location-geometry-face{stroke:#2464b4;stroke-width:3}
@container(max-width:520px){.location-geometry-layout{grid-template-columns:1fr}}
@media(max-width:450px){.location-geometry-fields{gap:12px 10px}.location-geometry-derived>label{min-width:70px}.location-geometry-toolbar>label{width:100%}.location-geometry-diagram{padding:8px}}
