.map-site{--inner-bg:#f5f4ee;--inner-text:#283d38;--inner-muted:#718078;--inner-accent:#315d50;--inner-paper-solid:#faf9f4;--inner-line:#d5dcd4;--inner-shadow:#0002}
.map-header .brand{padding:0}.map-header nav a{display:inline-block;white-space:nowrap}.map-header nav a[aria-current=page]{background:#315d50;color:#fff}.map-header .map-home{margin-left:8px}.map-site .site-footer{display:block}
.detail-workspace{display:grid;grid-template-columns:230px minmax(0,1fr) 268px;min-height:450px;height:calc(100dvh - 72px)}
.model-views,.detail-views{display:flex;flex-direction:column;gap:8px;margin:18px 0}.model-views button,.detail-views button{text-align:left}.model-views button[aria-pressed=true],.detail-views button[aria-pressed=true],.tools button[aria-pressed=true]{background:#315d50;color:#fff}
.detail-options{gap:8px}.detail-options .muted{margin-top:24px}.detail-options input{accent-color:#315d50}#map-layers{display:grid;gap:18px;font-size:14px;margin:12px 0}.terrain-legend{display:grid;gap:8px;font-size:12px;color:#718078}.terrain-legend i{width:100%;height:7px;border-radius:3px;background:linear-gradient(90deg,#82aa76,#b5ad79,#aca087,#85847e,#f1f1e7)}#city-areas{display:grid;gap:10px;margin:16px 0;font-size:14px}#city-area{width:100%;font:inherit;padding:8px;border:1px solid #d5dcd4;border-radius:6px;color:inherit;background:#fffdf8}
.detail-map{display:flex;flex-direction:column;min-width:0;min-height:0}.detail-stage{position:relative;flex:1;overflow:hidden;min-height:0;background:#bed7df}.detail-stage #viewport,.detail-stage #labels{position:absolute;inset:0}.detail-stage #viewport canvas{display:block;width:100%;height:100%;touch-action:none}.detail-stage #viewport[data-drag-mode=pan] canvas{cursor:move}.detail-stage #viewport[data-drag-mode=rotate] canvas{cursor:grab}.detail-stage #viewport[data-drag-mode=rotate] canvas:active{cursor:grabbing}.detail-stage #labels{pointer-events:none;overflow:hidden}.detail-stage .map-label{transform:translate(-50%,-100%);white-space:nowrap;height:auto;padding:2px 4px;pointer-events:none}.detail-stage .district-label{background:#f6f5efc9;color:#654c38;font-weight:600;border-radius:3px}.tools{position:absolute;right:16px;bottom:16px;display:flex;gap:6px;flex-wrap:wrap}.tools button{font-size:14px}.tools button:disabled{cursor:wait;opacity:.6}.detail-stage #status{position:absolute;left:20px;top:15px;margin:0;max-width:80%;background:#faf9f4e6;border-radius:5px;padding:8px;font-size:14px}.detail-stage #status:empty{display:none}.detail-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;font-size:12px;color:#688176}.detail-footer .mobile-hint{display:none}.detail-description #description{white-space:pre-line;font-size:15px;line-height:2}
:root[data-theme=night] .map-site{color-scheme:dark;background:#10231b;color:#e5ece4;--inner-bg:#10231b;--inner-text:#e5ece4;--inner-muted:#b2c0b6;--inner-accent:#afd49f;--inner-paper-solid:#152a22;--inner-line:#395044}
:root[data-theme=night] .map-site :is(.map-header,.directory,.inspector,.map-top,.detail-footer,.map-shell>footer){background:#152a22;color:#e5ece4;border-color:#395044}
:root[data-theme=night] .map-site :is(button,input,select){background:#20382c;color:#e5ece4;border-color:#395044}
:root[data-theme=night] .map-site :is(.panel-heading p,.group-title,.child-heading,.place-list small,.search-label,.eyebrow,.muted,.layers p,.map-caption){color:#b2c0b6}
:root[data-theme=night] .map-site .view-switch{background:#10231b;border-color:#395044}
:root[data-theme=night] .map-site .place-list button.is-selected{background:#315d50}
:root[data-theme=night] .map-site .map-label{background:transparent;color:#294d44}
:root[data-theme=night] .map-site .map-label.offset-label,:root[data-theme=night] .map-site .map-label.is-selected{background:#f9f7eddb;color:#965b27}
:root[data-theme=night] .detail-site .map-label{color:#ecf5ed;text-shadow:0 0 3px #081712}
:root[data-theme=night] .detail-site .district-label{background:#112820dc;color:#e3cfaf}
:root[data-theme=night] .detail-site #status{background:#152a22e6;color:#e5ece4}
@media(min-width:1600px){.detail-workspace{grid-template-columns:250px minmax(0,1fr) 300px}}
@media(max-width:1100px){.map-header{gap:10px;padding:0 15px}.map-header nav{gap:4px}.map-header .map-home{margin-left:0}.detail-workspace{grid-template-columns:200px minmax(0,1fr)}.detail-description{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid #d5dcd4}.detail-workspace{height:auto;min-height:calc(100dvh - 72px)}.detail-map{min-height:calc(100dvh - 72px)}}
@media(max-width:760px){.map-header:not(.atlas-header){height:112px;flex-wrap:wrap;align-content:center;row-gap:9px}.map-header:not(.atlas-header) .brand{flex:1}.map-header:not(.atlas-header) nav{width:100%;justify-content:center}.detail-workspace{display:flex;flex-direction:column;height:auto}.detail-options,.detail-description{position:static;width:100%;box-shadow:none;border-right:0}.detail-options{padding:16px}.model-views,.detail-views{flex-direction:row;flex-wrap:wrap;margin:8px 0}.detail-options .muted{margin:8px 0}.detail-map{min-height:65dvh;height:65dvh;flex:none}.detail-footer #mouse-hint{display:none}.detail-footer .mobile-hint{display:inline}.tools{right:10px;bottom:10px}.tools button{padding:8px 10px;font-size:13px}.detail-description{padding:20px}}

:root:not([data-theme=night]) .map-site:has(#stage){--inner-bg:#f5f8f4;--inner-paper-solid:#fafcf9}
.map-site .atlas-header{padding-right:96px}.map-site .atlas-header .map-home{margin-left:0}
body.map-site.atlas-site .site-theme-switch{top:9px;right:14px;bottom:auto;padding:2px;gap:2px;border-radius:7px;box-shadow:none}body.map-site.atlas-site .site-theme-switch button{width:28px;height:28px}body.map-site.atlas-site .site-theme-switch svg{width:17px;height:17px}
@media(max-width:760px){.map-site .atlas-header{padding:0 10px;gap:0 10px}.map-site .atlas-header .view-switch{margin-right:72px}body.map-site.atlas-site .site-theme-switch{top:5px;right:10px}}
