/* Field work keeps the map visible; navigation and account tools live in the menu. */
.map-filter-summary{flex:0 0 auto;margin:0;padding:4px 6px 6px;color:var(--ui-muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.calculation-ready-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:8px 0;padding:8px 14px;border:1px solid currentColor;color:inherit;text-decoration:none;font-weight:600}
#map-tools-dialog #pin-filter-form label:has([hidden]),#map-tools-dialog #pin-filter-form label[hidden]{display:none}
@media(max-width:600px){#map-tools-dialog .daily-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#map-tools-dialog .daily-filters button{min-width:0;min-height:44px;white-space:normal}}
body.map-workspace #primary-nav{display:none!important}
body.map-workspace #application>header{min-height:62px;padding:7px 12px;gap:8px}
body.map-workspace .header-actions{display:flex;gap:6px;align-items:center}
body.map-workspace .header-actions>:is(button,#account-avatar){width:44px;height:44px;min-height:44px;margin:0;padding:9px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px}
body.map-workspace #account-avatar{padding:0;order:5}body.map-workspace #map-my-day{order:1}body.map-workspace #map-open-map{order:2}body.map-workspace #skill-notifications-toggle{order:3}body.map-workspace #power-saving-toggle{order:4}body.map-workspace #nav-menu{order:6;font-size:0}body.map-workspace #nav-menu::before{display:none!important}
body.map-workspace .header-actions .nav-icon{display:flex}body.map-workspace .header-actions .nav-caption{display:none}
body.map-workspace #menu-quick-tools{border-bottom:1px solid var(--ui-border);padding-bottom:12px;margin-bottom:12px}body.map-workspace #menu-quick-tools h3{font-size:13px;margin:8px 0}
body.map-workspace #menu-sync-tools button,body.map-workspace #menu-appearance #theme-toggle{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:44px;text-align:left}
body.map-workspace #menu-appearance #theme-toggle::after{content:'Färgläge';font-size:13px}body.map-workspace #menu-appearance .theme-control{width:100%;margin-bottom:8px}
body.map-workspace #menu-appearance #theme-menu{position:static;width:100%;margin-top:6px}body.map-workspace #menu-appearance #theme-menu button{width:100%;text-align:left}
body.map-workspace #connection{position:static!important;inset:auto!important;margin:7px 0 0;padding:0;background:none;color:var(--ui-muted);font-size:11px;line-height:1.5;white-space:normal;max-height:none;pointer-events:auto}
body.map-workspace #workspace-sync-banner{position:sticky;top:0;z-index:1300;display:flex;align-items:center;gap:7px;padding:7px 10px;background:#f5dfaf;color:#49320c;border-bottom:1px solid #c99743;flex:0 0 auto}
body.map-workspace #workspace-sync-banner[hidden]{display:none!important}#workspace-sync-banner>div{flex:1;min-width:0}#workspace-sync-banner strong{display:block;font-size:12px}#workspace-sync-banner span{display:block;font-size:11px;line-height:1.4}#workspace-sync-banner button{min-height:40px;padding:6px 9px;font-size:11px}#sync-banner-retry{display:flex;align-items:center;justify-content:center;width:40px;flex:0 0 40px}
body.map-workspace[data-view=map] #application{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.map-workspace[data-view=map] #application>header{flex:0 0 auto}
body.map-workspace main{padding-bottom:20px}body.map-workspace[data-view=map] main{flex:1;min-height:0;padding:0 7px calc(5px + env(safe-area-inset-bottom));margin:0;width:100%;max-width:none;overflow:hidden}
body.map-workspace[data-view=map] #map-view{display:flex;flex-direction:column;min-height:0;height:100%;gap:0}
body.map-workspace #map-view>.map-toolbar{flex:0 0 44px;display:flex;align-items:center;justify-content:flex-end;gap:7px;margin:0 0 4px;padding:0;flex-wrap:nowrap}
body.map-workspace #map-view>.map-toolbar:has(#manual[hidden]){display:none}
body.map-workspace .map-toolbar-copy{flex:1!important;flex-basis:auto!important}body.map-workspace .map-toolbar-copy h1{margin:0;font-size:18px}body.map-workspace .map-toolbar-copy p{display:none}
body.map-workspace #map-view>.map-toolbar .map-control{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:8px!important;margin:0;flex:0 0 40px;border-radius:10px}
body.map-workspace #map-view>.map-toolbar .nav-icon{display:flex}body.map-workspace .map-control svg{width:22px;height:22px}
body.map-workspace #power-saving-toggle{position:relative}body.map-workspace #power-saving-toggle[aria-pressed=true]::after{content:'';position:absolute;right:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#92edab}
body.map-workspace #pin-palette{flex:0 0 auto;min-width:0;margin:4px 0 0;padding:0}body.map-workspace #pin-palette #pin-type-options{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 5px;scroll-snap-type:x proximity;scrollbar-width:none}
body.map-workspace #pin-palette #pin-type-options::-webkit-scrollbar{display:none}body.map-workspace #pin-palette .pin-type-choice{flex:0 0 46px;width:46px;min-width:46px;height:46px;min-height:46px;display:flex;align-items:center;justify-content:center;margin:0;padding:5px;scroll-snap-align:start}
/* Empty gaps belong to the scrolling pin chooser, not the map behind it. */
body.map-workspace #pin-palette #pin-type-options{pointer-events:auto}
body.map-workspace #pin-palette .pin-type-caption{display:none}body.map-workspace #pin-palette .pin-type-symbol{width:33px;height:33px;min-height:33px}body.map-workspace #pin-palette .pin-type-symbol svg{width:23px;height:23px}
body.map-workspace #pin-palette #map-tools-toggle{position:sticky;right:0;z-index:2;margin-left:auto;background:var(--ui-raised);box-shadow:-5px 0 8px var(--ui-page)}
html[data-theme=hero] body.map-workspace #pin-palette #map-tools-toggle{background:#344a3e!important}
body.map-workspace #pin-owner-legend{display:none!important}body.map-workspace #peek-owner::before{display:none}body.map-workspace #peek-owner{font-size:11px;line-height:1.5;margin:3px 0 8px;color:var(--ui-muted)}
body.map-workspace[data-view=map] .map-frame{position:relative;flex:1;min-height:0;isolation:isolate;border-radius:12px}body.map-workspace[data-view=map] #map{position:absolute;inset:0;height:100%;min-height:0;border-radius:12px}
body.map-workspace #map-view>.hint{display:none}body.map-workspace .map-tap-hint{bottom:34px;padding:6px 10px;font-size:10px}body.map-workspace #location-status{position:absolute;left:9px;right:9px;bottom:34px;z-index:510;margin:0;padding:8px 10px;border-radius:8px;background:var(--ui-surface);color:var(--ui-text);font-size:12px;pointer-events:none}
body.map-workspace .map-frame:has(#location-status:not(:empty)) .map-tap-hint{display:none}body.map-workspace #map-drawing-actions{display:flex;flex:0 0 auto;gap:7px;margin:4px 0}body.map-workspace #map-drawing-actions[hidden]{display:none}
body.map-workspace #placement-hint{position:absolute;left:9px;right:9px;bottom:34px;z-index:520;gap:8px;margin:0;padding:7px 10px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text)}body.map-workspace #placement-hint span{min-width:0}body.map-workspace #placement-hint button{flex:0 0 auto}body.map-workspace .map-frame:has(#placement-hint:not([hidden])) :is(.map-tap-hint,#location-status){display:none}
#map-tools-dialog{padding:15px;width:min(600px,calc(100% - 20px));max-height:85dvh;overflow-y:auto}#map-tools-dialog .map-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}#map-tools-title{font-size:18px;margin:0}#map-tools-close{width:44px;height:44px;padding:0;font-size:24px}#map-tools-dialog #map-tools{display:block;border:0;padding:0;margin:6px 0;background:none}#map-tools-dialog #map-tools>summary{display:none}#map-tools-dialog .map-toolbar{flex-wrap:wrap}#map-tools-dialog .pin-meaning{display:none}
@media(max-width:700px){body.map-workspace #application>header{min-height:58px;padding:5px 8px}body.map-workspace #identity{display:none}html body.map-workspace .brand-wordmark{width:clamp(58px,calc(100vw - 285px),112px)}body.map-workspace #application>header>div:first-child{min-width:0}body.map-workspace .header-actions{gap:3px}body.map-workspace .header-actions>:is(button,#account-avatar){width:40px;height:40px;min-height:40px;flex-basis:40px;padding:8px}body.map-workspace #account-avatar{display:inline-flex!important;padding:0}body.map-workspace .map-toolbar-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body.map-workspace #map-view>.map-toolbar{justify-content:space-between;gap:6px;flex-basis:44px}body.map-workspace main{padding-bottom:20px}body.map-workspace #app-menu{height:100dvh}body.map-workspace #workspace-sync-banner{gap:5px;padding:6px 8px}}
@media(max-width:360px){html body.map-workspace .brand-wordmark{width:clamp(58px,calc(100vw - 280px),80px)}body.map-workspace .header-actions{gap:2px}body.map-workspace .header-actions>:is(button,#account-avatar){width:36px;height:40px;flex-basis:36px;padding:6px}}


html[data-theme] body.map-workspace[data-view=map] #pin-peek{z-index:1100;bottom:var(--pin-peek-clearance,calc(160px + env(safe-area-inset-bottom)));max-height:min(650px,calc(100% - var(--pin-peek-clearance,calc(160px + env(safe-area-inset-bottom))) - var(--pin-peek-top-clearance,100px)),max(96px,calc(100% - var(--pin-peek-clearance,calc(160px + env(safe-area-inset-bottom))) - var(--pin-peek-top-clearance,100px) - min(200px,30dvh))))}

/* Keep a solid header and one compact map-tool row, independent of alert height. */
html[data-theme] body.map-workspace[data-view=map] #application{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
html[data-theme] body.map-workspace[data-view=map] #application>header{position:relative!important;top:auto!important;left:auto;right:auto;flex:0 0 auto;background:#000!important;border:0!important;box-shadow:none!important;pointer-events:auto;color:#fff;--ws-logo-white:inline;--ws-logo-green:none}
html[data-theme] body.map-workspace[data-view=map] #application>header .header-actions>:is(#map-open-map,#map-my-day,#skill-notifications-toggle,#power-saving-toggle,#nav-menu){background:#171b19!important;border:1px solid #4d5951!important;color:#fff!important;box-shadow:none!important}
html[data-theme] body.map-workspace[data-view=map] #application>header .nav-icon{color:#fff!important}
html[data-theme] body.map-workspace[data-view=map] #workspace-page-title{color:#fff!important;background:none}
html[data-theme] body.map-workspace[data-view=map] main{flex:1;min-height:0;height:auto;padding:0!important;overflow:hidden}
html[data-theme] body.map-workspace[data-view=map] #map-view{position:relative;height:100%;min-height:0}
html[data-theme] body.map-workspace[data-view=map] .map-frame{position:absolute;inset:0;min-height:0;border:0;border-radius:0;background:transparent}
html[data-theme] body.map-workspace[data-view=map] #map{border-radius:0;box-shadow:none}
html[data-theme] body.map-workspace[data-view=map] #map-view>.map-toolbar{position:absolute;right:10px;top:66px;z-index:720;margin:0}
html[data-theme] body.map-workspace[data-view=map] .map-toolbar-copy{display:none}
html[data-theme] body.map-workspace[data-view=map] .map-tap-hint{display:none!important}
html[data-theme] body.map-workspace[data-view=map] #pin-palette{position:absolute;left:10px;right:10px;bottom:calc(28px + env(safe-area-inset-bottom));width:auto;z-index:700;margin:0;padding:0;border:1px solid #ffffff40!important;border-radius:7px!important;background:linear-gradient(180deg,#ffffff25,#ffffff08),#0b171073!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 1px #ffffff30,0 3px 14px #0003;pointer-events:auto}
html[data-theme] body.map-workspace[data-view=map] #pin-type-options{background:transparent!important;padding:5px;gap:7px;min-height:54px;align-items:center}
html[data-theme] body.map-workspace[data-view=map] #pin-palette .pin-type-choice{background:transparent!important;border-color:transparent!important;box-shadow:none!important;margin:0}
html[data-theme] body.map-workspace[data-view=map] #pin-palette .pin-type-choice:is(:focus-visible,.active){outline:2px solid #fff!important;outline-offset:-2px}
html[data-theme] body.map-workspace[data-view=map] #pin-subcategories{pointer-events:auto}
#map-control-dock{position:absolute;top:10px;left:10px;right:10px;z-index:710;display:flex;align-items:center;justify-content:flex-end;gap:6px;pointer-events:none}
html[data-theme] body.map-workspace #map-control-dock :is(button,.leaflet-control-layers-toggle,.leaflet-control-zoom a){box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;position:static;width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;padding:9px!important;margin:0!important;flex:0 0 44px;border:1px solid #56645b!important;border-radius:4px!important;background-color:#151e19!important;color:#fff!important;box-shadow:0 2px 7px #0003!important;pointer-events:auto}
html[data-theme] body.map-workspace #map-control-dock :is(button,a):focus-visible{outline:2px solid #f3d073;outline-offset:2px}
html[data-theme] body.map-workspace #map-control-dock .leaflet-control{float:none;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body.map-workspace #map-control-dock .leaflet-control-zoom{display:flex;gap:6px;pointer-events:none}
html[data-theme] body.map-workspace #map-control-dock .leaflet-control-layers{position:relative;width:44px;height:44px;pointer-events:auto}
html[data-theme] body.map-workspace #map-control-dock .leaflet-control-layers-toggle{background-image:none}

#map-control-dock .leaflet-control-layers-expanded .leaflet-control-layers-list{position:absolute;top:52px;right:0;min-width:200px;max-width:calc(100vw - 30px);max-height:50dvh;overflow:auto;padding:10px;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:5px;box-shadow:0 5px 18px #0004}
html[data-theme] body.map-workspace[data-view=map] :is(#location-status,#placement-hint){bottom:calc(96px + env(safe-area-inset-bottom))}
html[data-theme] body.map-workspace[data-view=map] #map-drawing-actions{position:absolute;top:66px;left:10px;right:10px;z-index:750;background:var(--ui-surface);padding:7px}
html[data-theme] body.local-test-environment.map-workspace[data-view=map]{padding-top:var(--test-banner-height)}
html[data-theme] body.local-test-environment.map-workspace[data-view=map] #application{height:calc(100dvh - var(--test-banner-height,0px));min-height:0}
body.map-workspace[data-view=map] :is(.live-chat-toggle,.live-chat-panel){display:none!important}
.live-chat-toggle[hidden]{display:none!important}
#presentation-pin-context{padding:16px;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:5px;background:var(--ui-surface);margin:0 0 18px;overflow-wrap:anywhere}
#presentation-pin-context[hidden]{display:none}
#presentation-pin-context h2{margin:0 0 6px;font-size:20px}
#presentation-pin-context p{margin:6px 0}
@media(max-width:360px){#map-control-dock{gap:5px}html[data-theme] body.map-workspace #map-control-dock .leaflet-control-zoom{gap:5px}}
