:root{color-scheme:light;--paper:#f8f9f5;--white:#fff;--ink:#1c2d24;--secondary:#5b695f;--muted:#738174;--line:#dce2d8;--pine:#234e3d;--sage:#e4ecdf;font-family:'DM Sans','Inter','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',system-ui,sans-serif;font-size:16px;color:var(--ink)}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--paper);-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #c87c30;outline-offset:2px}button{border:0;background:none}button i,i svg{width:18px;height:18px;display:inline-flex;flex-shrink:0}i{font-style:normal;line-height:1}#symbols{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:66px;padding:0 24px;display:flex;gap:20px;align-items:center;background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:3}.brand{display:flex;gap:11px;margin:0;white-space:nowrap;align-items:center;font-size:23px;letter-spacing:-.9px;font-weight:680}.brand img{display:block;flex:none}.brand b{font-size:18px;font-weight:650;letter-spacing:.02em;margin-left:3px}.top-divider{height:18px;width:1px;background:#cfd8cd}.header-sub{font-size:14px;color:var(--secondary);letter-spacing:.035em}.header-actions{margin-left:auto}.text-btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;font-size:14px;font-weight:530;min-height:38px}.text-btn{border:1px solid #d5ddd1;background:#fff;padding:0 13px}.text-btn:hover,.icon-btn:hover,.map-tools button:hover{background:#e8efe4}.workspace{display:flex;height:calc(100dvh - 66px);min-height:0}.sidebar{width:270px;flex-shrink:0;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;position:relative;z-index:3}.side-scroll{overflow-y:auto;padding:24px 18px 16px;scrollbar-width:thin;scrollbar-color:#c6d0c4 transparent}.sidebar h2{font-size:14px;letter-spacing:.045em;margin:0 0 11px 4px;font-weight:650;color:#526253}.presets{display:flex;flex-direction:column;gap:5px}.preset{width:100%;text-align:left;display:flex;align-items:center;gap:11px;padding:7px 8px;border:1px solid transparent;border-radius:9px;transition:background .14s}.preset.selected{background:#e6ede2;border-color:#cbdac5}.preset:hover{background:#edf1e9}.preset img{width:52px;height:41px;object-fit:cover;border-radius:5px;background:#d2dccd;box-shadow:inset 0 0 0 1px #0001}.preset span{display:flex;flex-direction:column;gap:4px;min-width:0}.preset strong{font-size:14px;font-weight:640;line-height:1.25}.preset small{font-size:12px;color:#657364;line-height:1.25}.view-ind{margin-left:auto;color:var(--pine);opacity:0}.view-ind svg,.view-ind{width:14px;height:14px}.selected .view-ind{opacity:1}.layer-section,.basemaps{margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.layer-list{display:flex;flex-direction:column;gap:2px}.layer{display:flex;align-items:center;gap:11px;width:100%;text-align:left;font-size:14px;font-weight:520;padding:7px 5px;border-radius:5px;min-height:36px}.layer:hover{background:#edf1e9}.layer .key{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:#4e6756}.layer .key svg{width:17px;height:17px}.layer .switch{width:29px;height:17px;background:#c6cfc4;border-radius:20px;margin-left:auto;position:relative;transition:background .18s}.layer .switch:after{content:'';position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:white;transition:transform .18s}.layer[aria-checked=true] .switch{background:#396a51}.layer[aria-checked=true] .switch:after{transform:translateX(12px)}.switcher{display:inline-flex;align-items:stretch;padding:3px;border:1px solid #cbd5c7;border-radius:8px;gap:2px;background:#ecf0e8}.switcher button{font-size:14px;padding:7px 13px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:5px;color:#566354;font-weight:540;line-height:1.25}.switcher i,.switcher i svg{width:16px;height:16px}.switcher button.active{background:#fff;color:var(--pine);box-shadow:0 1px 4px #314a361c}.styles{width:100%}.styles button{flex:1}.viewport{position:relative;flex:1;min-width:0;overflow:hidden;background:#e9ede4;isolation:isolate}.viewport canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;outline:none}.viewport canvas:focus-visible{outline:2px solid #61795d;outline-offset:-2px}#map-surface,#labels{position:absolute;inset:0}.map-top{position:absolute;top:19px;left:20px}.mode{background:#f8faf5e8;box-shadow:0 2px 8px #283e2810;border-color:#cbd6c5}.mode button{padding:8px 13px}.mode button.active{background:var(--pine);color:#fff;box-shadow:none}.compass{position:absolute;right:21px;top:17px;width:47px;height:58px;border:1px solid #ccd5c7;border-radius:24px;background:#fafbf6eb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;box-shadow:0 1px 5px #263b2910}.compass b{font-size:11px;line-height:13px;font-weight:700}.compass svg{width:27px;height:34px}.map-tools{position:absolute;right:21px;bottom:65px;display:flex;flex-direction:column;background:#fafbf7f5;border:1px solid #c8d2c4;border-radius:9px;overflow:hidden;box-shadow:0 2px 7px #35473513}.map-tools button{width:38px;height:38px;display:grid;place-items:center}.map-tools button+button{border-top:1px solid #dae1d6}.hud-bottom{position:absolute;bottom:52px;left:21px;right:78px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;pointer-events:none}.scale{display:flex;align-items:flex-start;flex-direction:column;color:#283d2d;font-family:'DM Sans',sans-serif;font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;text-shadow:0 1px #f5f8ec,1px 0 #f5f8ec}.scale b{height:5px;border:solid #3d523f;border-width:0 1.5px 1.5px;display:inline-block}.hint{font-size:12px;color:#4e604f;background:#f7f9f0df;border:1px solid #cbd4c5;border-radius:22px;padding:6px 11px;display:flex;align-items:center;gap:6px}.hint i,.hint svg{width:14px;height:14px}.map-footer{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f6f8f1ed;border-top:1px solid #cfd8c9;color:#5b695b;padding:6px 15px;font:11.5px/1.25 'DM Sans','PingFang SC',system-ui,sans-serif;letter-spacing:.012em;min-height:29px}.position{font-variant-numeric:tabular-nums;white-space:nowrap}.overlay-key{position:absolute;top:72px;left:20px;background:#fbfcf7f5;border:1px solid #cbd5c6;padding:10px 13px;border-radius:7px;max-width:230px;font-size:12px;line-height:1.6;color:#435343;box-shadow:0 2px 8px #2e462510}.overlay-key strong{display:block;font-weight:650;color:#85491e}.overlay-key .mini{display:inline-block;width:16px;vertical-align:middle;margin:-2px 5px 0 0;border-top:3px solid #c87832}.overlay-key .mini.reserve{border-top:2px dashed #a34d76}#labels{pointer-events:none;overflow:hidden}.map-label{position:absolute;left:0;top:0;transform:translate(-50%,-100%);font-size:12px;line-height:1.4;letter-spacing:.03em;color:#233f30;white-space:nowrap;box-shadow:0 2px 6px #17352526;background:#fcfdf4ee;border:1px solid #8fa389;border-radius:4px;padding:2px 7px;font-weight:580}.map-label:after{content:'';position:absolute;left:50%;top:100%;width:1px;height:7px;background:#668262}.map-label.road{font:italic 11px 'DM Sans',sans-serif;color:#344939;background:#f6f8e7cf;box-shadow:none;border-color:transparent;letter-spacing:.01em}.map-label.road:after{display:none}.inspect{position:absolute;pointer-events:none;max-width:260px;background:#203d32f2;color:white;padding:8px 10px;border-radius:5px;font-size:12px;line-height:1.5}.inspect small{color:#d3e0cf;font-size:11px;display:block}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;background:#e9ede4;color:var(--pine);font-size:14px;z-index:5}.spin{width:17px;height:17px;border-radius:50%;border:2px solid #bccabb;border-top-color:var(--pine);animation:turn .8s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}[hidden]{display:none!important}dialog{width:min(650px,calc(100vw - 32px));max-height:min(83dvh,820px);padding:0;color:var(--ink);border:1px solid #c9d3c5;border-radius:15px;background:var(--paper);box-shadow:0 20px 90px #10291c44}dialog::backdrop{background:rgba(22,40,29,.35);backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 22px 13px;border-bottom:1px solid var(--line);background:var(--paper)}.dialog-head h2{margin:0;font-size:20px;font-weight:650}.icon-btn{width:35px}.source-copy{padding:4px 22px 20px;font-size:14px;line-height:1.7}.source-copy h3{font-size:15px;margin:16px 0 4px;font-weight:650}.source-copy p{margin:4px 0;color:#506052}.source-copy a{color:#28523e;text-underline-offset:3px}.source-copy .ref-links{display:flex;gap:7px 14px;flex-wrap:wrap;font-size:13px}.mobile-toggle,.mobile-sheet-bar{display:none}.sheet-backdrop{display:none}
@media(min-height:880px){.side-scroll{padding-top:32px}.presets{gap:8px}.preset img{height:47px;width:58px}.layer-section,.basemaps{margin-top:27px;padding-top:22px}.layer{min-height:39px}}
@media(max-height:740px) and (min-width:701px){.topbar{height:55px}.workspace{height:calc(100dvh - 55px)}.side-scroll{padding-top:16px}.layer-section,.basemaps{margin-top:13px;padding-top:12px}.preset{padding:5px 7px}.preset img{height:36px}.layer{min-height:30px;padding-block:4px}}
@media(max-width:920px){.sidebar{width:236px}.side-scroll{padding-left:13px;padding-right:13px}.hint{display:none}.preset img{width:45px}.desktop-only{display:none}}
@media(max-width:700px){.topbar{padding:0 13px;height:55px;gap:12px}.brand img{width:31px;height:31px}.brand{font-size:20px;gap:7px}.brand b{font-size:16px}.header-sub,.top-divider{display:none}.text-btn{padding:0 9px;min-height:34px;font-size:13px}.workspace{height:calc(100dvh - 55px)}.sidebar{position:fixed;left:0;right:0;bottom:0;width:auto;height:auto;max-height:78dvh;transform:translateY(110%);border-radius:17px 17px 0 0;z-index:9;transition:transform .2s;box-shadow:0 -3px 25px #1e362822;border:none}.sidebar.open{transform:translateY(0)}.mobile-sheet-bar{display:block;width:38px;height:4px;min-height:4px;border-radius:5px;background:#becabc;margin:9px auto 0}.side-scroll{overflow:auto;padding:14px 18px max(16px,env(safe-area-inset-bottom))}.presets{flex-direction:row;gap:5px}.preset{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:6px}.preset img{height:40px;width:100%}.preset small,.view-ind{display:none}.layer-section,.basemaps{margin-top:10px;padding-top:10px}.layer-list{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.sidebar h2{margin-bottom:7px}.sheet-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#142b1c38;z-index:8}.mobile-toggle{position:absolute;display:inline-flex;align-items:center;gap:7px;bottom:68px;left:12px;border-radius:8px;background:#fcfdf6ed;border:1px solid #c5d0be;padding:9px 11px;font-size:13px}.map-top{left:12px;top:12px}.mode button{font-size:13px;padding:6px 10px}.compass{right:13px;top:12px;width:41px;height:49px}.compass svg{width:22px;height:27px}.map-tools{right:13px;bottom:48px}.map-tools button{width:34px;height:34px}.hud-bottom{bottom:36px;left:13px}.map-footer{font-size:10px;padding:5px 9px;min-height:24px}.position{font-size:9.5px}.overlay-key{top:58px;left:12px;font-size:11px;max-width:196px}.map-label{font-size:10px;padding:1px 4px}.map-label.road{font-size:9px}.dialog-head{padding:12px 15px}.source-copy{padding:4px 15px 15px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.spin{animation:none}}

.styles button{padding:7px 5px;white-space:nowrap}.styles i,.styles i svg{width:14px;height:14px}

.overlay-key .port-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#873d20;vertical-align:middle;margin:0 9px 0 3px}
.reserve-option{display:flex;align-items:center;gap:5px;margin-top:5px;border-top:1px solid #d9e1d5;padding:5px 0 1px;cursor:pointer}
.reserve-option input{margin:0;accent-color:#814062}
.overlay-key .reserve-option .mini{margin:0;width:13px}
.map-top{display:flex;align-items:center;gap:8px}
#aerial-options{background:#f8faf6ed}
#aerial-options button.active{background:#dce8db}
@media(max-width:700px){
  .map-top{gap:5px}
  #aerial-options button{font-size:13px;padding:6px 8px}
}
@media(max-width:360px){
  .map-top .mode i{display:none}
  #aerial-options button{padding-inline:6px}
}


#shed-dimensions { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#shed-dimensions line { stroke:#aa4923; stroke-width:2; stroke-dasharray:7 3; }
#shed-dimensions circle { fill:#ad4c25; stroke:#fffcf0; stroke-width:1.5; }
#shed-dimensions text { fill:#813816; stroke:#fff9ec; stroke-width:4; stroke-linejoin:round; paint-order:stroke; font:650 14px 'DM Sans',system-ui,sans-serif; text-anchor:middle; }
#shed-evidence { background:#f8faf6ed; color:var(--pine); padding:7px 12px; border:1px solid var(--line); border-radius:8px; font-size:14px; text-underline-offset:3px; }
@media(max-width:700px){.presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.preset img{height:40px}#shed-evidence{font-size:13px;padding:6px 8px}}

@media (max-width: 440px) {
  .topbar { gap: 8px; }
  .brand { font-size: clamp(16px, 5vw, 20px); letter-spacing: -.6px; }
  .brand b { font-size: 14px; margin-left: 1px; }
  #source-open { width: 36px; min-height: 36px; padding: 0; }
  #source-open span { display: none; }
}
