/* Original supplied logo, framed in SVG; theme treatment is non-destructive CSS. */
.brand-wordmark{display:block;width:166px;height:66px;object-fit:contain;mix-blend-mode:multiply}.brand{gap:0;flex-shrink:0}
[data-theme=dark] .brand-wordmark{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
@media(max-width:1100px){.brand-wordmark{width:136px;height:57px}}
@media(max-width:700px){
 :root{--mobile-tools-height:48px;--mobile-map-top:var(--header)}
 .brand-wordmark{width:112px;height:44px;max-width:100%}.brand{height:40px;max-width:calc(100vw - 192px)}
 .rail{position:fixed;top:var(--header);left:0;right:0;width:100%;height:48px;max-height:48px;flex-direction:row;align-items:center;gap:4px;padding:5px 10px;border-radius:0;border-left:0;border-right:0;box-shadow:0 3px 10px #0001;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;box-sizing:border-box;z-index:1100}
 .rail>button,.rail>div,.rail>.coffee-link{flex:0 0 auto}.rail button,.rail .coffee-link{width:34px;height:34px}.rail>div{margin:0!important;display:flex}.rail #btn-risk-report{margin:0}.rail::-webkit-scrollbar{display:none}
 #map,.panel-hidden #map{top:var(--mobile-map-top);height:calc(100dvh - var(--mobile-map-top) - var(--footer) - var(--mobile-legend-height,0px))}
 #sidebar,.floating-widget,.panel-hidden .floating-widget{top:calc(var(--mobile-map-top) + var(--mobile-tools-height) + 8px);left:10px;right:10px;width:auto;max-width:none;max-height:calc(100dvh - var(--mobile-map-top) - var(--footer) - var(--mobile-legend-height,0px) - var(--mobile-tools-height) - 22px)}
 #meteo-panel{left:10px}.ol-popup{max-width:calc(100vw - 24px)}
 #imgw-loading{left:12px;right:12px;top:calc(var(--mobile-map-top) + var(--mobile-tools-height) + 10px)}
}
@media(max-width:360px){.brand-wordmark{width:96px;height:42px}.rail{top:var(--header)}}
/* Start is a navigation landmark, not an active tool. */
.rail #home-tool-btn{color:#935710;background:#fff4d4;border:1px solid #edcf84;box-shadow:none}
.rail #home-tool-btn:hover{background:#ffe8a6;color:#70400b}
[data-theme=dark] .rail #home-tool-btn{color:#ffd17a;background:#3c3222;border-color:#816135}
[data-theme=dark] .rail #home-tool-btn:hover{background:#504029}
/* Measurement controls: compact rows and a conventional hierarchy. */
#meteo-panel{border-radius:12px;box-shadow:0 5px 18px #0002;padding:14px}
.meteo-heading{top:-14px}.meteo-heading h2{font-size:17px}.meteo-tag{display:block;font-size:11px;font-weight:400;color:#767676;margin-top:3px}
.meteo-quick{display:flex;gap:0;margin:6px 0 14px;border:1px solid #d6d6cf;border-radius:6px;overflow:hidden}
.meteo-quick button{flex:1;min-height:42px;background:#f6f6f3;color:#38403e;border:0;border-right:1px solid #d6d6cf;font:inherit;font-size:12px;font-weight:500;padding:6px}
.meteo-quick button:last-child{border-right:0}.meteo-quick button[aria-pressed=true]{background:#fff0c2;color:#74430a;box-shadow:inset 0 -3px #c88517}
#meteo-panel summary{padding:10px 0;font-size:13px;font-weight:600;cursor:pointer}
#meteo-panel :is(select,input[type=search]){border-radius:6px}.meteo-source-options{border-top:1px solid #deded6;border-bottom:1px solid #deded6}
.meteo-sources{display:block;margin:0 0 8px}.meteo-source-row{padding:8px 0;border-radius:0;background:transparent;border-bottom:1px solid #eeeeea}.meteo-source-row:last-child{border-bottom:0}
.meteo-source-row small{margin-top:3px}.meteo-settings{margin-bottom:8px}#meteo-scale{border-radius:6px;border-color:#deded6;padding:8px;gap:6px}
#meteo-list button{border-radius:4px;border-bottom:1px solid #e0e0d8;background:transparent;padding:10px 6px;min-height:42px}.meteo-actions button{background:#efbe43;color:#372a11;border-radius:6px;box-shadow:none}
[data-theme=dark] #meteo-panel .meteo-source-row{background:transparent;border-color:var(--line)}
[data-theme=dark] .meteo-quick{border-color:var(--line)}[data-theme=dark] .meteo-quick button{background:#29313d;color:var(--ink);border-color:var(--line)}[data-theme=dark] .meteo-quick button[aria-pressed=true]{background:#433720;color:#ffdc91}
[data-theme=dark] #meteo-panel :is(summary,label,.meteo-heading h2){color:var(--ink)}[data-theme=dark] #meteo-panel :is(.meteo-tag,.meteo-source-row small){color:#b7bfcb}
[data-theme=dark] #meteo-panel :is(.meteo-source-options,.meteo-source-row,#meteo-scale,#meteo-list button){border-color:var(--line)}
@media(max-width:700px){#meteo-panel{border-radius:12px;max-height:48dvh}.meteo-heading{top:-14px}.meteo-source-row label{font-size:13px}.meteo-source-row small{margin-left:24px}}
#role-preview-banner[hidden]{display:none!important}#role-preview-banner{position:fixed;z-index:1150;top:calc(var(--header) + 10px);left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);display:flex;gap:12px;align-items:center;background:#fff5d7;color:#67451a;border:1px solid #dfc68c;border-radius:8px;padding:7px 10px;box-shadow:0 2px 8px #0002;font-size:12px}#role-preview-banner button{min-height:34px;padding:6px 9px;font-size:12px;white-space:nowrap}
.profile-saved-places{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0}.profile-saved-places label{grid-column:1/-1}.profile-saved-places select{min-width:0;width:100%}.location-alert-group{border-top:1px solid var(--line);padding:10px 0}.location-alert-group h3{margin:4px 0}.location-alert-group section{padding-left:10px;border-left:3px solid #e4aa35;margin:10px 0}
[data-theme=dark] #role-preview-banner{background:#423821;color:#ffe2a0;border-color:#806940}
@media(max-width:700px){#role-preview-banner{top:calc(var(--mobile-map-top) + var(--mobile-tools-height) + 8px);width:max-content;max-width:calc(100vw - 20px);gap:8px;font-size:11px}.profile-saved-places{grid-template-columns:1fr}.profile-saved-places button{min-height:40px}}
/* Floating mobile tool island; map and panels keep a reserved area below it. */
@media(max-width:700px){
 :root{--mobile-tools-height:68px}
 .rail{top:calc(var(--header) + 10px);left:10px;right:10px;width:calc(100% - 20px);height:48px;max-height:48px;border:1px solid var(--line);border-radius:16px;padding:6px 9px;box-shadow:0 4px 14px #202a321c}
 .topbar .register-osp{width:48px;min-width:48px;height:40px;min-height:40px;padding:4px;box-sizing:border-box;border:1px solid #df961f;background:linear-gradient(125deg,#ffe077,#ffb530);color:#77450a;border-radius:11px;box-shadow:0 2px 7px #af751326}
 .register-osp-symbol{width:31px;height:29px}.register-osp .icon{width:29px;height:29px}.register-osp-plus{right:-3px;top:-4px;width:14px;height:14px;background:#89500a;border-color:#ffe5a4;color:#fff}
 .brand{max-width:calc(100vw - 205px)}
 [data-theme=dark] .topbar .register-osp{background:linear-gradient(125deg,#ffda65,#ffad24);border-color:#f7c255;color:#372711}
 [data-theme=dark] .register-osp-symbol{color:#372711}
}
[data-theme=dark] .rail #coffee-support-link{color:#ffe3a0;background:#5d431d;border:1px solid #b98c40;box-shadow:inset 0 0 0 1px #ffdf8920}
[data-theme=dark] .rail #coffee-support-link:hover{background:#765221;color:#fff1c9}
#mobile-tool-hint[hidden]{display:none!important}#mobile-tool-hint{position:fixed;z-index:5000;max-width:calc(100vw - 24px);background:#26313a;color:#fff;padding:9px 12px;border-radius:9px;box-shadow:0 3px 12px #0003;font-size:12px;line-height:1.4;pointer-events:none;box-sizing:border-box}
[data-theme=dark] #mobile-tool-hint{background:#ffe0a1;color:#2d261b}
@media(max-width:700px){.rail button,.rail a,.topbar .header-icon,.topbar .register-osp{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}}
#meteo-map-legend[hidden]{display:none!important}#meteo-map-legend{position:fixed;left:88px;bottom:auto;top:calc(var(--header) + 86px);z-index:1050;width:min(320px,calc(100vw - 24px));box-sizing:border-box;background:var(--surface,#fff);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 16px #0002;padding:8px 10px}
.meteo-map-legend-heading{display:flex;align-items:center;gap:8px}.meteo-map-legend-heading>button:first-child{flex:1;min-width:0;min-height:34px;padding:3px 0;border:0;background:transparent;color:inherit;font:600 12px 'Segoe UI',sans-serif;text-align:left;cursor:pointer}.meteo-map-legend-heading .icon-button{flex-shrink:0}
#meteo-map-legend #meteo-scale{display:none;margin:5px 0 0;border:0;padding:5px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}#meteo-map-legend.legend-expanded #meteo-scale{display:grid}#meteo-map-legend #meteo-scale p{display:none}#meteo-map-legend #meteo-scale span{font-size:12px;gap:7px;line-height:1.3}#meteo-map-legend #meteo-scale i{width:15px;height:15px;flex-shrink:0;border-radius:4px}
[data-theme=dark] #meteo-map-legend{background:#202730;color:#edf0f4;border-color:#46505d}[data-theme=dark] .meteo-map-legend-heading .icon-button{background:#29313d;color:#edf0f4}
/* Gentle attention cues without changing button dimensions or map geometry. */
#btn-report-event:not(.report-active){animation:report-attention 2.6s ease-in-out infinite}.register-osp{animation:osp-attention 3s ease-in-out .35s infinite}

@keyframes report-attention{0%,40%,100%{transform:scale(1);filter:brightness(1);box-shadow:0 2px 8px #d38a192f}12%{transform:scale(1.045);filter:brightness(1.13);box-shadow:0 0 0 6px #efb43270,0 4px 18px #d18b2345}22%{transform:scale(1);filter:brightness(1)}29%{transform:scale(1.025);filter:brightness(1.07);box-shadow:0 0 0 9px #efb43200}}
@keyframes osp-attention{0%,45%,100%{transform:scale(1);box-shadow:0 0 0 0 #e8a82400}15%{transform:scale(1.07);box-shadow:0 0 0 5px #efb43280;filter:brightness(1.15)}30%{transform:scale(1.025);box-shadow:0 0 0 10px #efb43200;filter:brightness(1)}}
#personal-alert-map[hidden],#personal-map-body[hidden],#meteo-param[hidden]{display:none!important}
#personal-alert-map{position:fixed;right:16px;top:calc(var(--header) + 14px);width:min(340px,calc(100vw - 32px));z-index:1180;background:var(--surface,#fff);color:var(--ink);border:1px solid #e7bc67;border-radius:12px;box-shadow:0 4px 16px #0002;box-sizing:border-box}
.personal-map-heading{display:flex;align-items:center;gap:6px;padding:7px 9px}.personal-map-heading>button:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:var(--ink);text-align:left;min-height:32px;font:inherit;font-size:12px;cursor:pointer}.personal-map-heading>button:first-child>span{display:grid;place-items:center;background:#ffc34d;color:#493109;border-radius:50%;width:23px;height:23px;font-weight:800;flex-shrink:0}.personal-map-heading .icon-button{width:30px;height:30px;flex-shrink:0}
#personal-alert-map:not(.expanded) .personal-map-heading>.icon-button{display:none}#personal-map-body{padding:0 12px 12px;overflow:auto;max-height:calc(100dvh - var(--header) - var(--footer) - 115px);font-size:13px;line-height:1.5}#personal-map-body h3{font-size:15px}#personal-map-body h4{font-size:13px;margin:6px 0}#personal-map-body p{margin:5px 0;white-space:pre-line}#personal-map-body .btn{font-size:12px;min-height:36px;width:100%}
.personal-map-open #warning-legend{display:none!important}.measurements-open #personal-alert-map{display:none!important}
@media(min-width:701px){.has-personal-map-alerts:not(.personal-map-open):not(.measurements-open) #warning-legend{top:var(--warning-stack-top,calc(var(--header) + 14px))}}
#meteo-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:3px 0 9px}#meteo-category-tabs button,#meteo-param-buttons button{font:inherit;cursor:pointer;min-width:0;border:1px solid var(--line);color:var(--ink);background:var(--surface,#fff);border-radius:7px;min-height:38px;padding:7px 6px;font-size:11px}
#meteo-category-tabs button[aria-pressed=true]{background:#fff0c2;color:#74430a;border-color:#dfaf48;font-weight:600}#meteo-active-param{font-weight:600;font-size:12px!important}#meteo-param-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}#meteo-param-buttons button{display:flex;align-items:center;gap:5px;min-height:36px}#meteo-param-buttons button[aria-pressed=true]{background:#fff6dc;border-color:#d69b2b;color:#734705}#meteo-param-buttons svg{width:18px;height:18px;flex-shrink:0}#meteo-param-buttons small{width:100%;font-size:10px;color:var(--muted);line-height:1.4}
#meteo-panel .meteo-actions{display:flex;flex-wrap:wrap}#meteo-panel .meteo-actions button{flex:1;font-size:12px}#meteo-list .meteo-station-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;border:1px solid var(--line);border-radius:7px;padding:9px;background:var(--surface,#fff);color:var(--ink)}.meteo-station-row strong{font-size:12px;overflow-wrap:anywhere}.meteo-station-row b{font-size:13px;color:#a4680e}.meteo-station-row small{grid-column:1/-1;font-size:10px;color:var(--muted)}
.meteo-station-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.meteo-value-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.meteo-value-card{display:grid;grid-template-columns:24px minmax(0,1fr);align-content:start;gap:4px 5px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);min-width:0}.meteo-value-icon{grid-row:1/3;color:#b7791a}.meteo-value-icon svg{width:23px;height:23px}.meteo-value-label{font-size:10px;line-height:1.4;overflow-wrap:anywhere}.meteo-value-card strong{font-size:19px;font-weight:650;line-height:1.25}.meteo-value-card small{grid-column:1/-1;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.meteo-value-old{border-style:dashed}.meteo-value-old small{color:#98743e}#meteo-selected{scroll-margin-top:66px}
[data-theme=dark] #meteo-category-tabs button[aria-pressed=true],[data-theme=dark] #meteo-param-buttons button[aria-pressed=true]{background:#48391f;color:#ffdf94;border-color:#8d6c32}[data-theme=dark] .meteo-station-row b,[data-theme=dark] .meteo-value-icon{color:#ffcf70}[data-theme=dark] .meteo-value-old small{color:#d5b579}[data-theme=dark] #personal-alert-map{border-color:#92702d}
@media(max-width:700px){#personal-alert-map{left:10px;right:10px;width:auto;top:calc(var(--header) + var(--mobile-tools-height) + 10px)}#personal-map-body{max-height:calc(100dvh - var(--header) - var(--footer) - var(--mobile-tools-height) - 85px)}#meteo-panel:not(.meteo-collapsed){max-height:min(62dvh,calc(100dvh - var(--header) - var(--footer) - var(--mobile-tools-height) - var(--mobile-legend-height,0px) - 25px));left:10px;right:10px;width:auto}#meteo-category-tabs button{min-height:40px}#meteo-param-buttons button{min-height:40px}#meteo-panel .meteo-sources{display:block}#meteo-panel .meteo-heading{padding:9px 0}#meteo-panel .meteo-heading h2{font-size:16px}.meteo-value-card strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){#btn-report-event:not(.report-active),.register-osp{animation:none}}
@media(max-width:700px){body:not(.panel-hidden) #personal-alert-map{display:none}}

/* Separate full-width alerts bar above the warning scale on phones. */
.personal-map-scale{display:none}
@media(max-width:700px){
 #personal-alert-map{display:block;top:auto;bottom:calc(var(--footer) + var(--mobile-legend-height,0px) + 8px);left:10px;right:10px;width:auto}
 #personal-alert-map.expanded{bottom:calc(var(--footer) + 8px);max-height:min(44dvh,calc(100dvh - var(--header) - var(--mobile-tools-height) - var(--footer) - 24px))}
 #personal-map-body{max-height:min(32dvh,calc(100dvh - var(--header) - var(--mobile-tools-height) - var(--footer) - 86px));overscroll-behavior:contain}
 #warning-sheet-toggle{width:100%}
 .personal-map-scale{display:block;flex-shrink:0;min-height:34px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);color:var(--ink);font-size:11px}
 #map .ol-rotate{top:calc(var(--mobile-tools-height) + 14px);right:12px;z-index:1090;background:var(--surface,#fff);padding:3px;border:1px solid var(--line);border-radius:11px;box-shadow:0 3px 12px #0002}
 #map .ol-rotate button{width:40px;height:40px;margin:0;border-radius:8px;background:var(--surface,#fff);color:#a56b20;font-size:23px;touch-action:manipulation}
 [data-theme=dark] #map .ol-rotate button{color:#ffcf70}
}
/* Context filters belong to their layer, not to the map toolbar. */
.layers-section>.layer-archive{margin:0 0 10px 45px!important}
.layer-archive-trigger{display:inline-flex;align-items:center;gap:6px;min-height:34px;border:1px solid var(--line);border-radius:7px;padding:5px 9px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.layer-archive-trigger svg{width:16px;height:16px}.layer-archive-trigger[data-active=true]{border-color:#c89635;color:#986116;background:#e8b6471c}
.layer-archive-menu[hidden]{display:none!important}.layer-archive-menu{margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--ink)}
.layer-archive-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.layer-archive-heading h4{font-size:13px;margin:0}.layer-archive-heading .icon-button{width:28px;height:28px}
.archive-note{font-size:11px;line-height:1.5;color:var(--muted)}.archive-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.archive-dates label,.archive-kind-label{display:block;font-size:12px}
.layer-archive-menu :is(input[type=date],select){width:100%;min-width:0;box-sizing:border-box;min-height:38px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:12px;margin:4px 0}
.archive-quick,.archive-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.archive-quick button,.archive-actions button{flex:1;min-height:36px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:11px;padding:5px;cursor:pointer}.archive-actions .archive-apply{background:#f8c95b;color:#382b13;border-color:#dfb450}.archive-result-count{font-size:11px;color:var(--muted)}.archive-results{display:grid;gap:5px;max-height:190px;overflow:auto;overscroll-behavior:contain}.archive-result{display:grid;gap:3px;text-align:left;background:var(--surface,#fff);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:8px;cursor:pointer}.archive-result strong{font-size:12px}.archive-result small{font-size:11px;color:var(--muted)}

.archive-warnings-mode #warning-legend{display:none!important}

/* Mobile X dismisses the full alerts bar; the header bell restores it. */
@media(max-width:700px){#personal-alert-map:not(.expanded) .personal-map-heading>#personal-map-close{display:grid;min-width:36px;min-height:36px}}
/* Archive filters float over the map, outside the layer sidebar. */
.layer-archive-menu{position:fixed;z-index:1220;left:88px;top:calc(var(--header) + 14px);width:min(380px,calc(100vw - 110px));box-sizing:border-box;max-height:calc(100dvh - var(--header) - var(--footer) - 30px);overflow:auto;overscroll-behavior:contain;margin:0;padding:15px;border-radius:13px;box-shadow:0 7px 28px #0003}
.layer-archive-heading{position:sticky;top:-15px;background:var(--surface,#fff);padding:4px 0 9px;z-index:1}.layer-archive-heading h4{font-size:16px}.layer-archive-heading .icon-button{min-width:36px;min-height:36px}.layer-archive-menu :is(input[type=date],select){min-height:42px;font-size:14px}.layer-archive-menu .archive-results{max-height:230px}.layer-archive-menu .archive-actions button{min-height:40px}.layer-archive-menu:focus{outline:none}.layer-archive-menu:focus-visible{outline:2px solid #dca43c;outline-offset:2px}
@media(max-width:700px){.layer-archive-menu{left:10px;right:10px;top:calc(var(--header) + var(--mobile-tools-height) + 8px);width:auto;max-height:calc(100dvh - var(--header) - var(--mobile-tools-height) - var(--footer) - 24px);padding:12px}.layer-archive-heading{top:-12px}.layer-archive-menu .archive-results{max-height:180px}}

/* Project support stays near the start of the toolbar in both themes. */
.rail #coffee-support-link{background:linear-gradient(145deg,#ffe17c,#f4ad32);color:#61400d;border:1px solid #d79926;box-shadow:0 2px 6px #9d6d222b,inset 0 1px 0 #fff7;box-sizing:border-box}
.rail #coffee-support-link:hover,.rail #coffee-support-link:focus-visible{background:linear-gradient(145deg,#ffeb9f,#ffc259);color:#4b3108;outline:2px solid #bd8526;outline-offset:2px}
[data-theme=dark] .rail #coffee-support-link{background:linear-gradient(145deg,#f7d26c,#e5a32e);color:#35250e;border-color:#ffe294;box-shadow:0 0 0 2px #f2c05222}
@media(max-width:700px){.rail #coffee-support-link{width:40px;height:34px}}
.basemap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-thumbnail.topo{background:repeating-linear-gradient(145deg,#d3dfc5 0 9px,#a4b79a 10px,#e8e2cf 11px 22px,#c2c9af 23px)}
#cartography-controls{border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:12px;color:var(--ink)}#cartography-controls .cartography-heading{font-weight:600;margin:0 0 7px}#cartography-controls>label{display:flex;align-items:center;gap:8px;min-height:36px;margin:0}#cartography-controls input{width:17px;height:17px;accent-color:#ce8e1f}#cartography-controls .cartography-help,#cartography-note{font-size:11px;line-height:1.5;color:var(--muted);margin:6px 0}#cartography-controls a{color:inherit;text-decoration:underline}
.profile-unit-picker{position:relative}.profile-unit-search-row{display:flex;gap:6px;align-items:center}.profile-unit-search-row input{flex:1;min-width:0;margin:0!important}.profile-unit-search-row .icon-button{flex-shrink:0;min-width:38px;min-height:40px}#profile-unit-results[hidden]{display:none!important}#profile-unit-results{margin-top:5px;max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink)}#profile-unit-results button{display:grid;gap:3px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:var(--surface,#fff);color:var(--ink);text-align:left;min-height:46px;cursor:pointer}#profile-unit-results button:last-child{border-bottom:0}#profile-unit-results button:hover,#profile-unit-results button.active{background:#e8b64725}#profile-unit-results strong{font-size:13px}#profile-unit-results small,#profile-unit-hint{font-size:12px;color:var(--muted);line-height:1.5}#profile-unit-hint{margin:6px 0 10px}
.layers-section>.layer-with-archive{margin:0!important;padding:10px 0;font-size:14px;line-height:1.4;color:var(--ink)}
.layer-main-label{display:flex;align-items:center;gap:11px;flex:1;min-width:0;cursor:pointer}.layer-main-label .layer-label{min-width:0}
.layer-with-archive .layer-archive-trigger{width:34px;min-width:34px;height:38px;min-height:38px;justify-content:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--muted)}
.layer-with-archive .layer-archive-trigger svg{width:21px;height:21px}.layer-with-archive .layer-archive-trigger:hover,.layer-with-archive .layer-archive-trigger[aria-expanded=true],.layer-with-archive .layer-archive-trigger[data-active=true]{background:var(--pink);color:var(--red)}
.layer-with-archive>.toggle{cursor:pointer}.layer-with-archive .layer-archive-trigger:focus-visible{outline:2px solid var(--red);outline-offset:1px}
#profile-dialog{width:min(940px,calc(100vw - 28px))}.profile-sections{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:18px;margin:18px 0}
.profile-section{min-width:0;border:1px solid var(--line);border-radius:15px;padding:17px;background:var(--surface,#fff)}.profile-section h3{font-size:17px;margin:0 0 15px;color:var(--ink)}
.profile-section>label{display:block;margin:13px 0 6px}.profile-section input:not([type=checkbox]),.profile-section select{box-sizing:border-box;width:100%;min-width:0;background:var(--surface,#fff);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:11px}
.profile-unit-summary{padding:13px;background:var(--pink);border-radius:10px;margin:12px 0}.profile-unit-summary p,.profile-section>p{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0}
#profile-place-cards{display:grid;gap:7px;margin-bottom:10px}#profile-place-cards>p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.profile-place-card{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;padding:11px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--surface,#fff);cursor:pointer}.profile-place-card[aria-pressed=true]{border-color:var(--red);background:var(--pink)}.profile-place-card small{color:var(--muted);font-size:11px}
.profile-place-quick{display:flex;gap:8px;margin:10px 0}.profile-place-quick .btn{min-height:37px;padding:8px}.profile-section .profile-saved-places{display:block;margin:10px 0}.profile-section .profile-saved-places>button{width:100%}
.profile-sections:has(.profile-assignment[hidden]){grid-template-columns:1fr}
@media(max-width:700px){.layer-main-label{gap:9px}.layer-with-archive .layer-archive-trigger{height:42px;min-height:42px}.profile-sections{grid-template-columns:1fr;gap:12px}.profile-section{padding:13px}.profile-assignment{order:2}#profile-dialog{padding:14px}.profile-section .profile-location-actions{flex-wrap:wrap}}
#profile-dialog [hidden]{display:none!important}
.archive-back{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}.archive-back svg{width:19px;height:19px}.archive-back:hover{background:var(--pink);color:var(--red)}.layer-archive-heading h4{min-width:0;flex:1}.layer-archive-heading .archive-close{flex-shrink:0}#profile-unit-show{margin:8px 0}
.layer-with-archive .layer-aggregation-trigger[hidden]{display:none!important}
.layer-with-archive .layer-aggregation-trigger[aria-pressed=false] svg{opacity:.6}
