.region-dialog { width:min(900px,calc(100% - 26px));padding:clamp(15px,2.6vw,28px); }
.region-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #cfdbdf;padding-bottom:12px; }
.region-heading p,.region-heading h2 { margin:0; }
.region-heading p { font-size:.88rem; }
.region-tools,.region-xy form,.region-fields,.region-points,.region-dialog footer { display:flex;align-items:end;gap:8px 13px;flex-wrap:wrap; }
.region-dialog .region-tools .field,.region-dialog .region-xy .field { margin:0; }
.region-tools { margin:14px 0; }
.region-dialog .region-step { font-size:.96rem;color:#1a4657;padding:8px 12px;border-left:3px solid #277c8b;background:#eff7f7; }
.region-scroll { max-height:46vh;overflow:auto;border:1px solid #bfd0d5;border-radius:6px;background:#ecf1f2; }
.region-scroll svg { display:block;max-width:none;height:auto;background:white; }
.region-scroll .picking { cursor:crosshair; }
.region-boundary,.region-dimension,.takeoff-region rect { vector-effect:non-scaling-stroke; stroke-width:2px; }
.region-boundary { fill:#257f8a;fill-opacity:.06;stroke:#52818b;stroke-dasharray:5 3; }
.region-boundary.focused { fill-opacity:.12;stroke:#026477;stroke-dasharray:none; }
.region-dimension { stroke:#c85428;stroke-width:3px; }
.region-point circle { fill:#163d4a;stroke:white;stroke-width:2px;vector-effect:non-scaling-stroke; }
.region-point text { fill:white;font-weight:700; }
.takeoff-region rect { fill:none;stroke:#16828c;stroke-dasharray:6 4; }
.takeoff-region text { fill:#145964;stroke:white;stroke-width:2px;vector-effect:non-scaling-stroke;paint-order:stroke fill;font-weight:650; }
.region-points { margin:8px 0; }
.region-points .plain { font-size:.84rem;min-height:32px; }
.region-points [aria-pressed=true] { background:#174756;color:white; }
.region-xy summary { cursor:pointer;color:#235764;font-size:.88rem; }
.region-xy form { margin-top:8px; }
.region-xy .field { max-width:9rem; }
.region-fields .field { flex:1 1 200px; }
.region-dialog .region-base { font-variant-numeric:tabular-nums;margin:6px 0;font-size:.9rem; }
.region-dialog .region-hint { margin:6px 0 14px; }
.region-dialog .region-feedback { color:#1b4e5e;margin-bottom:0; }
.region-feedback:empty { display:none; }
