.sam-summary{display:flex;gap:12px;align-items:center;padding:13px 28px;border-bottom:1px solid var(--line);border-left:4px solid var(--sam-color,var(--line));background:var(--surface);flex:none;min-width:0}.sam-summary-copy{flex:1;min-width:0}.sam-summary strong{font-size:13px;display:block}.sam-summary small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.sam-summary[data-state=error]{border-left-color:#d7982e}.sam-summary select{max-width:220px;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--surface);color:var(--text);font-size:11px;min-width:0}.sam-summary .icon-button{flex:none;width:34px;height:34px}.sam-summary .icon-button svg{width:18px;height:18px}.sam-legend{position:absolute;left:24px;bottom:49px;z-index:505;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);max-width:calc(100% - 48px);font-size:11px}.sam-legend summary{cursor:pointer;display:flex;gap:12px;align-items:center;padding:10px 12px;list-style:none;font-weight:650}.sam-legend summary::-webkit-details-marker{display:none}.sam-colors{display:flex;gap:4px}.sam-legend i{font-style:normal;background:var(--sam-color);color:#111827;font-weight:800;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:23px}.sam-legend>div{padding:0 12px 7px}.sam-legend p{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:11px}.sam-mode:not(.sam-radar-on) .player,.sam-mode:not(.sam-radar-on) #radarLegend,.sam-mode:not(.sam-radar-on) .observation-chip,.sam-mode:not(.sam-radar-on) #loadingPanel{display:none!important}.sam-mode .map-topline{justify-content:flex-end}.sam-mode.sam-radar-on .map-topline{justify-content:space-between}.sam-mode.sam-radar-on .sam-legend{bottom:105px}.sam-mode-note{font-size:10px;color:var(--muted);margin:0 0 10px;line-height:1.4}.sam-label-wrap{border:0;background:transparent;pointer-events:none}.sam-label{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;text-shadow:0 1px 4px #123a58cc;filter:drop-shadow(0 1px 1px #123a5866)}.sam-label b{font:700 38px/1.1 'Open Sans',sans-serif}.sam-label span{display:flex;gap:5px;justify-content:center;min-height:20px}.sam-label svg{height:18px;width:18px;stroke-width:2.3}.sam-popup{border-top:4px solid var(--sam-color);padding-top:9px}.sam-popup-level{font-size:10px;color:var(--muted);font-weight:750}.sam-popup h2{font-size:17px;line-height:1.3;margin:7px 0 10px}.sam-description{white-space:pre-line}.sam-hazards{display:flex;gap:5px;flex-wrap:wrap}.sam-hazards span{background:var(--surface-soft);border:1px solid var(--line);padding:4px 7px;border-radius:5px;font-size:10px}.sam-validity{font-size:11px;color:var(--muted);line-height:1.7}.sam-mode .leaflet-popup-content{max-height:50vh;overflow-y:auto;margin:15px 20px}.sam-mode #radarToggle:not(.active){color:var(--muted)}
@media(max-width:680px){.sam-summary{padding:10px 12px;gap:7px;flex-wrap:wrap}.sam-summary strong{font-size:12px}.sam-summary small{font-size:9px}.sam-summary-copy{flex-basis:calc(100% - 41px)}.sam-summary select:not([hidden]){order:3;flex:1;max-width:100%;margin-top:3px}.sam-summary .icon-button{margin-left:auto}.sam-legend{left:12px;bottom:46px;max-width:calc(100% - 24px)}.sam-legend summary{padding:8px 10px;font-size:10px;gap:9px}.sam-legend i{min-width:19px;height:20px}.sam-mode.sam-radar-on .sam-legend{bottom:94px}.sam-mode-note{font-size:9px;margin-bottom:7px}.sam-mode .layer-buttons{gap:12px}.sam-mode .layer-button{font-size:11px}.sam-label b{font-size:32px}.sam-label svg{width:16px;height:16px}}
@media(max-height:550px){.sam-summary{padding-top:7px;padding-bottom:7px}.sam-summary small{margin-top:2px}.sam-legend{bottom:43px}.sam-mode.sam-radar-on .sam-legend{bottom:85px}.sam-mode-note{display:none}}

.sam-mode #loadingPanel{left:auto;right:24px;top:auto;bottom:34px;transform:none;width:225px;padding:12px;gap:6px;font-size:11px}.sam-mode #loadingPanel>span:last-of-type{display:none}.sam-mode #loadingPanel .spinner{width:18px;height:18px;margin:0}.sam-mode #loadingPanel button{padding:7px 10px;font-size:10px}@media(max-width:680px){.sam-mode #loadingPanel{right:12px;bottom:30px;width:180px}}

/* The controls add document/iframe height; they never take height from the map. */
html.sam-flow{height:100%;overflow-x:hidden!important;overflow-y:scroll!important}
html.sam-flow.sam-autoheight{overflow-y:hidden!important}
.sam-flow body{height:auto!important;min-height:100%;overflow:visible!important}
.sam-flow #radarApp{height:auto!important;min-height:0;overflow:visible}
.sam-flow .map-shell{flex:0 0 var(--sam-map-height);height:var(--sam-map-height);min-height:var(--sam-map-height)}
.sam-flow .player{margin-top:0;border-radius:0}
.sam-flow .sam-summary{padding-top:13px;padding-bottom:13px}
.sam-flow .sam-summary small{margin-top:4px}
.sam-flow .sam-mode-note{display:block}
.sam-flow .layer-bar{height:55px;min-height:55px}
@media(max-width:680px){.sam-flow .sam-summary{padding-top:10px;padding-bottom:10px}.sam-flow .layer-bar{height:calc(50px + env(safe-area-inset-top));min-height:calc(50px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}}
.sam-flow #radarApp:fullscreen{height:100%!important;overflow-x:hidden;overflow-y:auto}
