.studio-map{box-sizing:border-box;width:min(1120px,97vw);max-width:97vw;max-height:96dvh;padding:0;color:#1c3630;background:#fafbf7;border:1px solid #718777;border-radius:14px;box-shadow:0 25px 80px #122c3140;font:14px/1.45 "DM Sans",Arial,sans-serif;overflow:auto}
.studio-map::backdrop{background:#0a211dc4}
.studio-map *{box-sizing:border-box}
.studio-map [hidden]{display:none!important}
.studio-map-head{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cdd6cb;background:#fff}
.studio-map h2,.studio-map h3,.studio-map p{margin:0}
.studio-map-head h2{font-size:23px;line-height:1.23;letter-spacing:-.04em}
.studio-map-head p{color:#52685e;font-size:13px}
.studio-map button,.studio-map select,.studio-map input{font:inherit}
.studio-map button,.studio-map-file span{display:inline-block;border:1px solid #b5c5b7;background:#fff;color:#234b3e;border-radius:5px;padding:5px 10px;cursor:pointer;font-weight:600;min-height:32px}
.studio-map button:hover,.studio-map-file:hover span{background:#edf3e9;border-color:#748e7b}
.studio-map button:disabled{opacity:.55;cursor:default}
.studio-map :focus-visible{outline:3px solid #286d57;outline-offset:2px}
.studio-map-main{display:grid;grid-template-columns:minmax(0,1fr) 255px}
.studio-map-controls{border-left:1px solid #ced8d1;padding:6px 17px 16px;max-height:78dvh;overflow:auto;order:2}
.studio-map-controls section{padding:14px 0;border-bottom:1px solid #dce3da}
.studio-map-controls section:last-child{border:0}
.studio-map-controls h3{font-size:14px;margin-bottom:8px}
.studio-map-controls label{display:block;font-size:12px;color:#486051;font-weight:600;margin-bottom:7px}
.studio-map select,.studio-map input[type=number]{width:100%;min-height:33px;padding:4px 6px;border:1px solid #abbcaf;border-radius:4px;background:#fff;color:#1f362c}
.studio-map .studio-map-note{color:#475e50;font-size:12px;line-height:1.5;margin:7px 0}
.studio-map button.studio-map-link{background:none;border:0;padding:1px 0;min-height:22px;text-align:left;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.studio-map details{margin-top:8px}
.studio-map details summary{color:#315d49;font-size:12px;cursor:pointer}
.studio-map details button{margin:4px 4px 0 0;font-size:12px}
.studio-map .studio-map-file{position:relative;width:max-content;margin-top:9px;margin-bottom:0;cursor:pointer}
.studio-map-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-map-file:focus-within{outline:3px solid #286d57;outline-offset:1px}
.studio-map-canvas{min-width:0;display:flex;flex-direction:column}
.studio-map-art{position:relative;flex:1;isolation:isolate;overflow:hidden;min-height:345px;height:clamp(370px,61dvh,650px);cursor:grab;touch-action:none;background-color:#e8eee7;background-image:linear-gradient(to right,#66866c33 1px,transparent 1px),linear-gradient(to bottom,#66866c33 1px,transparent 1px);background-size:var(--map-grid,40px) var(--map-grid,40px);background-position:var(--map-x,0px) var(--map-y,0px)}
.studio-map-art:active{cursor:grabbing}
.studio-map-art[data-placing=true]{cursor:crosshair}
.studio-map-shapes{position:absolute;inset:0;width:100%;height:100%}
.studio-map-shapes path:not([data-cable-stroke]){stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}
.studio-map-shapes [data-kind=line]{fill:none}
.studio-map-shapes [data-layer=boundary]{stroke:#466c4f;fill:#8ba77334}
.studio-map-shapes [data-route-kind=fence]{stroke:#546f5e}
.studio-map-shapes [data-route-kind=duct]{stroke:#4379a0;stroke-dasharray:6 3}
.studio-map-shapes [data-layer=equipment]{stroke:#184f43;fill:#4c8370be}
.studio-map-shapes [data-layer=file]{stroke:#43429d;fill:#7870c74f}
.studio-map-shapes circle{fill:#5550ac;stroke:#fff;stroke-width:1.5px}
.studio-map-north,.studio-map-scale,.studio-map-credit,.studio-map-fits,.studio-map-zoom{position:absolute;z-index:2}
.studio-map-north,.studio-map-scale,.studio-map-credit{color:#254038;background:#ffffffed;padding:2px 6px;border-radius:3px;font-size:11px;pointer-events:none}
.studio-map-north{right:10px;top:11px;font-weight:700;font-size:13px}
.studio-map-scale{left:10px;bottom:10px;text-align:center}
.studio-map-scale i{display:block;height:5px;border:1px solid #294c3b;border-top:0}
.studio-map-credit{right:0;bottom:0;pointer-events:auto}
.studio-map-zoom{left:10px;top:10px;display:flex;box-shadow:0 2px 5px #1d3b2e26}
.studio-map-zoom button{border-radius:0;min-width:36px;min-height:34px;background:#fff}
.studio-map-zoom button+button{border-left:0}
.studio-map-zoom button:first-child{border-radius:4px 0 0 4px}
.studio-map-zoom button:last-child{border-radius:0 4px 4px 0}
.studio-map-fits{right:8px;bottom:19px;display:flex;gap:4px}
.studio-map-fits button{font-size:11px;min-height:26px;background:#fffc}
.studio-map-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid #b9c8bc;padding:9px 12px;color:#536558;font-size:11px}
.studio-map-legend{display:flex;flex-wrap:wrap;gap:10px}
.studio-map-legend span:before{content:"";display:inline-block;width:8px;height:8px;background:#47745e;border-radius:2px;margin-right:4px}
.studio-map-legend [data-layer=cable]:before{width:14px;height:7px;vertical-align:middle;background:var(--map-cable,#b35c2c);border-block:2px solid #ffffff80;background-clip:padding-box;outline:1px solid var(--map-cable,#b35c2c)}
.studio-map-legend [data-layer=fence]:before{background:#546f5e;height:2px;vertical-align:middle}
.studio-map-legend [data-layer=duct]:before{background:transparent;height:0;width:12px;border-top:2px dashed #4379a0;vertical-align:middle}
.studio-map-legend [data-layer=file]:before{background:#756abd}
.studio-map-legend [data-layer=boundary]:before{background:#9fb797}
.studio-map-position{font-variant-numeric:tabular-nums}
.studio-map .studio-map-status{color:#315648;font-size:12px;padding:0 12px 8px;min-height:23px}
@media(max-width:680px){.studio-map{width:98vw;max-width:98vw}.studio-map-head{padding:10px 14px}.studio-map-main{grid-template-columns:minmax(0,1fr)}.studio-map-art{height:43dvh;min-height:235px}.studio-map-controls{max-height:none;border-left:0;border-top:1px solid #ced8d1;overflow:visible}.studio-map-foot{padding:6px 8px}.studio-map-controls section{padding:10px 0}.studio-map-north{right:5px;top:5px}}
.studio-map-shapes [data-layer=eave]{stroke:#bc3563;pointer-events:none}
.studio-map-shapes [data-layer=eave] path{stroke-width:4px}
.studio-map .studio-map-remember{display:flex;align-items:flex-start;gap:6px;margin:9px 0}.studio-map-remember input{margin:2px 0 0;accent-color:#36684f}
.studio-map-search{display:flex;gap:5px}.studio-map-search input{min-width:0;width:100%;padding:4px 6px;border:1px solid #abbcaf;border-radius:4px;background:#fff;color:#1f362c}.studio-map-postcode{position:absolute;transform:translate(-50%,-50%);width:21px;height:21px;display:grid;place-content:center;border:2px solid #35576d;border-radius:50%;background:#fffffff0;color:#244b65;font-weight:700;line-height:1;pointer-events:none}
.studio-map-tools{padding:10px 13px 8px;display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;border-bottom:1px solid #c8d4ca;background:#f7faf6}
.studio-map-tools strong{font-size:14px}
.studio-map-tool-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.studio-map-tools .studio-map-note{flex-basis:100%;margin:0}
.studio-map-tools label{display:flex;align-items:center;gap:6px;font-size:12px}
.studio-map-tools input[type=number]{width:80px}
.studio-map-tools .studio-map-primary{background:#18563f;color:#fff}
.studio-map-art[data-tracing=true]{cursor:crosshair}
.studio-map-shapes .studio-map-draft .draft-boundary,.studio-map-shapes .studio-map-draft .draft-fence{stroke:#127451;stroke-width:3;stroke-linejoin:round}
.studio-map-draft .draft-boundary{fill:#28975e29}
.studio-map-draft .draft-fence{fill:none;stroke-dasharray:6 3}
.studio-map-shapes .studio-map-draft circle{fill:#fff;stroke:#155c42;stroke-width:2;cursor:move}
.studio-map-crosshair{position:absolute;left:50%;top:50%;width:12px;height:12px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 0 1px #fff)}
.studio-map-crosshair::before,.studio-map-crosshair::after{content:"";position:absolute;background:#354c45;box-shadow:0 0 0 1px #ffffffa0}
.studio-map-crosshair::before{width:12px;height:1px;top:6px}.studio-map-crosshair::after{width:1px;height:12px;left:6px}
.studio-map-basemap{position:absolute;inset:0;width:100%;height:100%;background:#bfdae2;pointer-events:none;overflow:hidden}
.studio-map-basemap text{text-anchor:middle;dominant-baseline:central;fill:#38483d;stroke:#fffefa;stroke-width:3px;stroke-linejoin:round;paint-order:stroke;font:600 12px/1 "DM Sans",sans-serif}
.studio-map-basemap text.street-name{font-size:10px;font-weight:400;stroke-width:2px}
.studio-map-locator{display:grid;grid-template-columns:minmax(160px,1fr) minmax(166px,.85fr);gap:12px;padding:10px 13px;border-bottom:1px solid #c8d4ca}
.studio-map-locator section{min-width:0}
.studio-map-locator h3{font-size:13px;margin-bottom:4px}
.studio-map-locator form{max-width:310px}
.studio-map-locator p.studio-map-note{font-size:11px;line-height:1.3;margin:4px 0 0}
.studio-map-tile-state{display:inline-block;margin:3px 0 0 6px;color:#425d4d;font-size:11px}
.studio-map-origin{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:7px 13px;background:#f2f6ef;border-bottom:1px solid #d1dccf}
.studio-map-origin h3{font-size:13px}.studio-map-origin p.studio-map-note{flex:1 1 150px;font-size:11px;line-height:1.3;margin:0}
.studio-map-credit a{color:inherit}.studio-map-credit{line-height:1.25;font-size:10px}
@media(max-width:480px){.studio-map-locator{grid-template-columns:minmax(146px,1.12fr) minmax(110px,.88fr);gap:8px;padding:8px}.studio-map-locator .studio-map-note{max-width:34ch}.studio-map-origin{padding:5px 8px}.studio-map-origin h3{display:none}.studio-map-credit{max-width:72%;text-align:right}.studio-map-legend{gap:4px 8px}.studio-map-fits{bottom:26px}}
.studio-map button.studio-map-street-prompt{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:2;background:#fffef7;box-shadow:0 1px 4px #24413326;font-size:12px}
