.map-theme-toggle{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:50%;color:inherit}
.map-theme-toggle:hover{background:var(--theme-fill,#f0f0f3)}
:root[data-theme=dark] .building-age-range-fields label{color:var(--muted)}
/* Explicit light wins over the operating system's dark preference as well. */
:root[data-theme=light]{color-scheme:light;color:#1d1d1f;background:#f5f5f7;--blue:#0071e3;--muted:#6e6e73;--line:#e8e8ed;--shadow:0 4px 20px #0000000a;--ui-text:#1d1d1f;--ink:#1d1d1f;--text:#1d1d1f;--surface:#fff;--control-surface:#f1f4f7;--ui-surface:#fff;--ui-field:#f5f5f7;--ui-hover:#f0f0f3;--ui-selected:#eaf3ff;--ui-selected-text:#005bb5;--ui-focus:#0071e3;--theme-surface:#fff;--theme-fill:#f0f0f3;--theme-text:#1d1d1f}
:root[data-theme=dark]{color-scheme:dark;color:#f5f5f7;background:#161617;--blue:#4da3ff;--muted:#aeaeb5;--line:#3a3a3c;--shadow:0 8px 36px #0004;--ui-text:#f5f5f7;--ink:#f5f5f7;--text:#f5f5f7;--surface:#1c1c1e;--control-surface:#2c2c2e;--ui-surface:#1c1c1e;--ui-field:#2c2c2e;--ui-hover:#38383a;--ui-selected:#173a60;--ui-selected-text:#87bfff;--ui-focus:#64adff;--theme-surface:#1c1c1e;--theme-fill:#2c2c2e;--theme-text:#f5f5f7}
:root[data-theme=dark] body{color:var(--theme-text);background:#161617}
:root[data-theme=dark] :is(.topbar,.app-menu-panel,.surface,.search-options,.detail-panel,.place-flow,.account-panel,.personal-panel,.access-panel,.feedback-panel,.map-layers-toggle,.layers-panel,.layers-dialog,.house-layer-panel,.house-layers-panel,.house-layer-readout,.house-layers-readout,.building-age-panel,.building-contours-panel,.environment-points-panel,.environment-point-detail,.environment-air-panel,.environment-roads-panel,.public-project-panel,.public-project-readout,.developer-directory,.house-set-flow,.object-share-dialog,dialog){background:var(--theme-surface);color:var(--theme-text);border-color:var(--line)}
:root[data-theme=dark] :is(.search,.segmented,.room-control select,.list-toggle,.map-controls button,.place-selection,.place-mode-switch,.place-circle-controls,.place-results,.ws-progress,.collection-map-strip,.panel-sorting,.building-age-range-fields input,.building-age-range-fields button,.public-project-marker,.house-project-marker,.house-marker,.building-contour-marker,.building-contours-detail,.building-contours-summary){background:var(--theme-surface);color:var(--theme-text);border-color:var(--line)}
:root[data-theme=dark] :is(input,select,textarea){color:var(--theme-text);border-color:var(--line)}
:root[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:var(--theme-fill)}
:root[data-theme=dark] :is(.quiet,.text-button){color:var(--blue)}
:root[data-theme=dark] :is(.quiet,.icon-button,.menu-toggle,.map-theme-toggle):hover{background:var(--theme-fill);color:var(--theme-text)}
:root[data-theme=dark] :is(.primary,.place-show,.layers-apply){background:#0a84ff;color:#fff}
:root[data-theme=dark] :is(.segmented button,.place-mode-switch button,.room-control select){color:var(--muted)}
:root[data-theme=dark] :is(.segmented button[aria-pressed=true],.place-mode-switch button[aria-pressed=true]){background:#48484a;color:#fff}
:root[data-theme=dark] :is(.place-hero,.place-hero-content,.place-body,.place-footer,.place-heading){background:transparent;color:inherit}
:root[data-theme=dark] :is(.place-lead,.place-body .note,.building-age-range-note,.building-age-range-status,.secondary){color:var(--muted)}
:root[data-theme=dark] .area-caption{text-shadow:0 1px 8px #000,0 1px 8px #000}
:root[data-theme=dark] :is(.search,.search-options,.detail-panel,.place-flow,.app-menu-panel,.ws-progress) :is(h1,h2,h3,strong){color:inherit}
:root[data-theme=dark] :is(.house-marker,.public-project-marker,.house-project-marker){box-shadow:0 2px 10px #0005}
:root[data-theme=dark] .house-marker span{color:var(--muted)}
@media(prefers-reduced-motion:no-preference){.map-theme-toggle{transition:background .15s ease}}

:root[data-theme=dark] :is(.environment-layer-readout,.environment-air-readout,.environment-roads-readout,.building-contours-readout,.map-layers-panel,.map-layers-help){background:var(--ui-surface);color:var(--ui-text);border-color:var(--line)}
:root[data-theme=dark] :is(.environment-layer-note,.environment-air-note,.environment-roads-note,.environment-layer-scroll dt,.environment-layer-license){color:var(--muted)}
:root[data-theme=dark] :is(.environment-layer-heading,.environment-air-heading,.environment-roads-heading)>button{background:var(--control-surface);color:var(--ui-text)}
:root[data-theme=dark] .environment-layer-heading .environment-layer-back{background:transparent;color:var(--blue)}
:root[data-theme=dark] :is(.environment-layer-scroll,.environment-air-scroll,.environment-roads-scroll) a{color:var(--blue)}
