html[data-page="utility"]:has(.map-workspace) .site-main { width: min(100% - 48px, 1480px); }
.map-intro { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:34px 0 30px; }
.map-eyebrow { font-size:11px; letter-spacing:.19em; font-weight:700; color:var(--theme-text-muted); margin:0 0 12px; }
.map-intro h1 { font-size:clamp(28px,3.6vw,48px); line-height:1.25; letter-spacing:-.045em; margin:0 0 16px; }
.map-deck { margin:0; color:var(--theme-text-muted); font-size:14px; }
.map-about-link { flex-shrink:0; font-size:13px; margin-bottom:3px; }
.map-workspace { display:grid; grid-template-columns:310px minmax(0,1fr); border:1px solid var(--theme-border); border-radius:12px; overflow:hidden; background:var(--theme-surface); box-shadow:0 16px 50px #00000006; }
.map-sidebar { padding:26px 24px; }
.map-section-title { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11px; letter-spacing:.08em; font-weight:700; color:var(--theme-text-muted); margin:24px 0 14px; }
.map-section-title:first-child { margin-top:0; }
.map-badge { padding:3px 7px; background:color-mix(in srgb,var(--theme-accent) 9%,transparent); color:var(--theme-accent); border-radius:4px; font-size:10px; }
.map-workspace label,.map-route label { display:block; font-size:12px; font-weight:600; margin:11px 0 6px; }
.map-workspace label span { font-size:10px; font-weight:400; color:var(--theme-text-muted); }
.map-workspace input:not([type="range"]),.map-workspace select,.map-route textarea { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--theme-border); border-radius:5px; background:var(--theme-surface-raised); color:var(--theme-text); font:inherit; font-size:13px; padding:10px; }
.map-input-action { display:flex; gap:6px; }
.map-workspace button,.map-route button { font:inherit; font-size:12px; cursor:pointer; border:1px solid var(--theme-border); border-radius:5px; background:var(--theme-surface); color:var(--theme-text); padding:9px 12px; }
.map-input-action button { flex-shrink:0; padding-inline:10px; }
.map-workspace button:disabled { cursor:not-allowed; opacity:.55; }
.map-workspace .map-primary,.map-route .map-primary { display:inline-block; background:var(--theme-accent); color:var(--theme-surface); border:1px solid transparent; padding:11px 16px; text-decoration:none; border-radius:5px; font-weight:650; text-align:center; }
.map-workspace #calculate { width:100%; margin-top:10px; }
.map-workspace [hidden] { display:none !important; }
.map-workspace #cancel-calculation { width:100%; margin-top:8px; }
.map-workspace label.map-check { display:flex; align-items:center; gap:8px; font-weight:400; }
.map-workspace .map-check input[type="checkbox"] { width:16px; height:16px; padding:0; flex-shrink:0; accent-color:var(--theme-accent); }
.map-road-shield { background:transparent; border:0; pointer-events:none; }
.map-road-shield svg { display:block; filter:drop-shadow(0 1px 2px #0004); }
#result-warnings { border-left:2px solid var(--theme-accent-secondary); padding-left:10px; margin-top:16px; }
#result-warnings summary { cursor:pointer; color:var(--theme-link); }
.map-small { font-size:11px; color:var(--theme-text-muted); line-height:1.8; margin:9px 0; }
.map-hour-input { display:flex; align-items:center; gap:14px; }
.map-hour-input input { min-width:0; width:100%; accent-color:var(--theme-accent); }
.map-hour-input output { flex-shrink:0; font-size:18px; font-variant-numeric:tabular-nums; font-weight:700; }
.map-workspace .map-demo-button { width:100%; text-align:left; margin-top:7px; border:0; background:color-mix(in srgb,var(--theme-accent) 7%,transparent); color:var(--theme-accent); }
.map-demo-button span { float:right; }
.map-workspace .map-text-button { border:0; padding:0; font-size:10px; color:var(--theme-link); }
.map-legend { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.map-legend .map-small { grid-column:1/-1; }
.map-workspace .map-layer-toggle { display:flex; align-items:center; gap:7px; text-align:left; padding:7px 8px; }
.map-layer-toggle[aria-pressed="false"] { opacity:.4; }
.map-layer-toggle i { display:block; width:9px; height:9px; background:var(--layer-color); border-radius:2px; }
.map-export { display:flex; gap:8px; margin-top:18px; }
.map-export button { flex:1; font-size:10px; padding-inline:4px; }
.map-origin-readout { margin-bottom:0; font-size:10px; font-variant-numeric:tabular-nums; }
.map-stage { position:relative; min-width:0; min-height:650px; background:#e4e9df; }
#atlas { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
#atlas .leaflet-tile { border-radius:0; max-width:none; }
.map-stage-heading { position:absolute; z-index:400; left:22px; top:20px; display:flex; align-items:center; gap:8px; padding:8px 13px; border:1px solid #ffffff80; background:#fffffff0; border-radius:5px; font-size:12px; color:#243d38; box-shadow:0 2px 10px #0000000a; pointer-events:none; }
.map-live-dot { width:7px; height:7px; background:#246b60; border-radius:50%; }
.map-map-message { position:absolute; z-index:400; top:44%; left:50%; transform:translate(-50%,-50%); padding:18px 24px; width:max-content; max-width:85%; background:#ffffffed; color:#23473d; border:1px solid #cbd7cd; border-radius:6px; font-size:15px; text-align:center; box-shadow:0 6px 30px #23473d0c; pointer-events:none; }
.map-map-message small { display:block; margin-top:5px; font-size:11px; color:#68756f; }
.map-data-credit { position:absolute; z-index:400; bottom:28px; left:18px; right:18px; width:fit-content; max-width:calc(100% - 36px); background:#ffffffed; color:#435c50; border-radius:4px; font-size:10px; padding:5px 9px; pointer-events:none; }
.map-origin-icon { width:17px; height:17px; box-sizing:border-box; background:#246b60; border:3px solid white; border-radius:50%; box-shadow:0 0 0 5px #246b6026,0 2px 10px #0003; }
#atlas .amap-logo img { max-width:none; border-radius:0; }
#atlas .amap-copyright { font-size:10px; }
#atlas.map-capturing .amap-toolbar,#atlas.map-capturing .amap-scale { visibility:hidden; }
.map-stage .map-data-credit { bottom:52px; }
.map-route { display:grid; grid-template-columns:1fr 1fr; gap:60px; padding:48px 0; border-bottom:1px solid var(--theme-border); }
.map-route h2,.map-method h2 { font-size:clamp(20px,2.2vw,27px); line-height:1.4; margin:0 0 15px; letter-spacing:-.025em; }
.map-route p,.map-method-grid p { font-size:13px; line-height:1.95; color:var(--theme-text-muted); }
.map-route .map-small { font-size:11px; }
.map-route textarea { resize:vertical; min-height:100px; line-height:1.8; }
.map-route label.map-consent { display:flex; align-items:start; gap:7px; font-size:11px; font-weight:400; color:var(--theme-text-muted); }
.map-consent input { accent-color:var(--theme-accent); margin-top:4px; }
.map-route-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
#route-links { margin-top:18px; }
#route-links>a,#route-links>button { display:block; margin-bottom:10px; font-size:12px; }
.map-route [hidden] { display:none !important; }
#route-links ol { font-size:12px; line-height:2; padding-left:20px; }
.map-method { padding:36px 0; }
.map-method-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:35px; margin:24px 0; }
.map-method-grid h3 { margin:0 0 10px; font-size:14px; }
.map-method-grid p { margin:0; }
@media(max-width:1000px) { .map-workspace { grid-template-columns:285px minmax(0,1fr); } .map-route { gap:32px; } }
@media(max-width:720px) {
  html[data-page="utility"]:has(.map-workspace) .site-main { width:calc(100% - 28px); }
  .map-intro { display:block; padding-top:24px; } .map-about-link { display:inline-block; margin-top:15px; }
  .map-workspace { display:flex; flex-direction:column; } .map-stage { order:-1; min-height:400px; height:55svh; max-height:550px; }
  .map-sidebar { padding:23px; } .map-legend { grid-template-columns:repeat(4,1fr); }
  .map-workspace .map-layer-toggle { font-size:11px; padding:8px 4px; }
  .map-route { display:block; padding:32px 0; } .map-route form { margin-top:22px; }
  .map-method-grid { grid-template-columns:1fr; gap:24px; } .map-data-credit { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { #atlas * { scroll-behavior:auto; } }
