@font-face{font-family:Open Sans;src:url(assets/open-sans-latin-wght-normal.woff2) format('woff2');font-weight:300 800;font-display:swap}
@font-face{font-family:Open Sans;src:url(assets/open-sans-latin-ext-wght-normal.woff2) format('woff2');font-weight:300 800;font-display:swap;unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:Oswald;src:url(assets/oswald-latin-wght-normal.woff2) format('woff2');font-weight:200 700;font-display:swap}
:root{color-scheme:light;--bg:#edf3f8;--surface:#fff;--surface-soft:#f1f5f9;--text:#12253c;--muted:#526c87;--line:#dde6ef;--accent:#ffc600;--shadow:0 10px 35px #133b5b14;--map-bg:#dce9ed;--live:#15703c;--live-bg:#e5f6eb;--radius:13px;font:14px/1.45 'Open Sans',Arial,sans-serif}
:root[data-theme=green]{--bg:#e9eddf;--surface:#f7f8f2;--surface-soft:#e9eddf;--text:#283522;--muted:#536448;--line:#d6ddca;--map-bg:#d5dac5;--live:#316039;--live-bg:#e3eddb;color-scheme:light}
:root[data-theme=dark]{--bg:#0a111c;--surface:#142030;--surface-soft:#1e2d40;--text:#f2f6fc;--muted:#adc0d4;--line:#2b3c50;--map-bg:#182430;--live:#a1f2bd;--live-bg:#1b4236;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0}a{color:inherit}button:disabled{opacity:.45;cursor:wait}button,input,select,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #3c92eb;outline-offset:3px}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}svg{display:block;width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}i[data-icon]{display:inline-flex}
.radar-app{height:100dvh;height:100vh;display:flex;flex-direction:column;max-width:1920px;margin:auto;background:var(--surface);isolation:isolate}@supports(height:100dvh){.radar-app{height:100dvh}}
.app-header{height:72px;min-height:72px;display:flex;align-items:center;gap:24px;padding:0 28px;border-bottom:1px solid var(--line);position:relative;z-index:1001;background:var(--surface)}.brand{text-decoration:none;font-family:Oswald,Arial,sans-serif;font-size:28px;font-weight:700;letter-spacing:-1.25px;line-height:1}.brand span{font-weight:500}.heading{display:flex;align-items:center;gap:14px;border-left:1px solid var(--line);padding-left:24px}h1{font-size:17px;letter-spacing:-.5px;margin:0;font-weight:750}.test-label{font-size:9px;letter-spacing:1.4px;font-weight:700;color:var(--muted);background:var(--surface-soft);border:1px solid var(--line);padding:5px 7px;border-radius:5px}.header-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.icon-button{width:42px;height:42px;display:inline-flex;justify-content:center;align-items:center;border-radius:10px}.header-actions .icon-button:hover{background:var(--surface-soft)}#themeButton{background:var(--surface-soft);border:1px solid var(--line)}#themeButton svg{color:var(--text)}.header-actions .fullscreen-button{border-left:1px solid var(--line);margin-left:5px;border-radius:0}
.layer-bar{display:flex;align-items:center;justify-content:space-between;height:55px;min-height:55px;padding:0 28px;border-bottom:1px solid var(--line);z-index:1000;background:var(--surface)}.layer-buttons{display:flex;gap:24px;height:100%}.layer-button{position:relative;display:flex;align-items:center;gap:9px;padding:0 5px;color:var(--muted);font-weight:650}.layer-button.active{color:var(--text)}.layer-button.active:after{content:'';position:absolute;height:4px;background:var(--accent);bottom:-1px;left:0;right:0;border-radius:4px 4px 0 0}.layer-button svg{width:23px;height:23px}.search{position:relative;display:flex;align-items:center;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px;height:37px;width:256px;padding:0 11px;gap:8px}.search svg{width:18px;height:18px;color:var(--muted)}.search input{border:0;outline:none;background:none;min-width:0;width:100%;font-size:12px;color:var(--text);height:100%}.search input::placeholder{color:var(--muted)}.search-results{top:44px;right:0;min-width:280px;padding:6px}.search-results button{display:block;text-align:left;width:100%;padding:11px;border-radius:6px;font-size:13px}.search-results button:hover{background:var(--surface-soft)}.search-results p{padding:8px;margin:0;font-size:12px;color:var(--muted)}
.map-shell{position:relative;flex:1;min-height:180px;overflow:hidden;background:var(--map-bg)}#map{position:absolute;inset:0;background:var(--map-bg);font-family:inherit;touch-action:none}.map-topline{position:absolute;top:17px;left:24px;right:78px;z-index:500;display:flex;justify-content:space-between;align-items:center;pointer-events:none;gap:10px}.observation-chip,.map-button{display:flex;align-items:center;gap:8px;border-radius:8px;background:var(--surface);box-shadow:0 2px 12px #12253c16;border:1px solid var(--line);min-height:36px;padding:7px 12px;font-size:11px;font-weight:650;pointer-events:auto}.status-dot{height:7px;width:7px;background:#1fb563;border-radius:50%;flex-shrink:0}.observation-chip.stale .status-dot{background:#df9700}.map-button{font-size:11px;gap:7px}.map-button svg{width:16px;height:16px}.leaflet-control-zoom{border:1px solid var(--line)!important;box-shadow:0 2px 12px #12253c18!important;border-radius:10px!important;overflow:hidden}.leaflet-right .leaflet-control{margin-right:24px}.leaflet-top .leaflet-control{margin-top:17px}.leaflet-control-zoom a{height:37px!important;width:37px!important;line-height:37px!important;background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;font-size:22px!important}.leaflet-container .leaflet-control-attribution{background:var(--surface);color:var(--muted);font-size:9px;padding:2px 7px;margin:0}.leaflet-control-attribution a{color:var(--muted)}.leaflet-control-scale{margin-bottom:25px!important;margin-left:24px!important}.leaflet-control-scale-line{border-color:#536c80;color:#324f65;background:#ffffffa8;font-size:9px;line-height:1.2}.radar-canvas{position:absolute;pointer-events:none;image-rendering:auto}.legend{position:absolute;bottom:30px;right:24px;z-index:500;background:var(--surface);padding:10px 12px 7px;border:1px solid var(--line);border-radius:10px;width:185px;box-shadow:0 3px 15px #12253c12;pointer-events:none}.legend-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-bottom:7px;color:var(--muted)}.legend-heading strong{font-size:11px;color:var(--text)}.legend-bar{height:10px;border-radius:3px;background:linear-gradient(90deg,#2369ff 0%,#00aaff 13%,#00d7dc 25%,#00cd50 39%,#91e12d 53%,#f5eb23 65%,#ffaa14 76%,#ff550f 82%,#dc0000 89%,#cd00cd 100%)}.legend-ticks{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:4px}
.player{background:var(--surface);position:relative;z-index:600;flex-shrink:0;border-top:1px solid var(--line);padding:16px 28px 10px;box-shadow:0 -6px 30px #203f5b09}.player-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px;min-height:27px}.time-heading{display:flex;align-items:center;gap:11px}#frameClock{font-size:22px;font-weight:780;letter-spacing:-.7px;line-height:1;font-variant-numeric:tabular-nums}#frameDate{font-size:11px;color:var(--muted);white-space:nowrap}.live-badge{border-radius:20px;padding:4px 8px;background:var(--live-bg);color:var(--live);font-size:9px;line-height:1.3;font-weight:750;letter-spacing:.3px}.live-badge:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}.live-badge.history{background:var(--surface-soft);color:var(--muted)}.buffer-status{font-size:10px;color:var(--muted);text-align:right}.timeline-wrap{position:relative;padding-top:2px;margin:0 0 14px}#timeline{appearance:none;-webkit-appearance:none;width:100%;margin:0;display:block;height:30px;background:transparent;position:relative;z-index:2;cursor:pointer;touch-action:pan-y}#timeline::-webkit-slider-runnable-track{height:5px;background:linear-gradient(90deg,var(--accent) 0%,var(--accent) var(--progress,100%),transparent var(--progress,100%));border-radius:5px}#timeline::-moz-range-track{height:5px;background:transparent;border-radius:5px}#timeline::-moz-range-progress{height:5px;background:var(--accent);border-radius:5px}#timeline::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-6.5px;width:18px;height:18px;border:3px solid var(--accent);background:var(--surface);border-radius:50%;box-shadow:0 1px 5px #182f4626}#timeline::-moz-range-thumb{width:13px;height:13px;border:3px solid var(--accent);background:var(--surface);border-radius:50%}.timeline-cache{position:absolute;left:1px;right:1px;top:14.5px;height:5px;border-radius:5px;overflow:hidden;background:var(--line);display:flex}.timeline-cache span{flex:1;height:100%}.timeline-cache span.ready{background:#b1c9dd}:root[data-theme=dark] .timeline-cache span.ready{background:#647f98}.timeline-ticks{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.timeline-ticks span{position:relative}.timeline-ticks span:before{content:'';height:4px;position:absolute;top:-7px;left:50%;width:1px;background:var(--muted);opacity:.4}.player-controls{display:flex;align-items:center;gap:24px}.transport{display:flex;align-items:center;gap:12px}.transport .icon-button{width:35px;height:38px}.transport .icon-button svg{width:20px;height:20px}.play-button{width:50px;height:50px;border-radius:50%;background:var(--accent);color:#12253c;display:flex;justify-content:center;align-items:center;box-shadow:0 0 0 6px #ffc60018;flex-shrink:0}.play-button svg{height:23px;width:23px;fill:currentColor;stroke-width:1}.play-button.buffering{box-shadow:0 0 0 6px #ffc60035}.speed-select{position:relative;margin-left:11px;display:flex;align-items:center}.speed-select select{appearance:none;-webkit-appearance:none;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px;height:38px;width:71px;padding:0 30px 0 14px;font-weight:700;font-size:13px}.speed-select svg{pointer-events:none;position:absolute;right:10px;width:13px;height:13px}.period-controls{display:flex;align-items:center;gap:17px}.periods{display:flex;gap:4px;background:var(--surface-soft);padding:3px;border-radius:9px}.periods button{height:33px;min-width:55px;border-radius:6px;font-size:12px;font-weight:650;color:var(--muted)}.periods button.active{background:var(--accent);color:#132b43}.archive-button{display:flex;align-items:center;gap:8px;height:38px;font-size:12px;font-weight:650;color:var(--muted);padding:0 5px}.archive-button svg{width:18px;height:18px}.archive-button.active{color:var(--text)}.latest-button{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;color:var(--muted);margin-left:auto;padding:10px 0 10px 18px;border-left:1px solid var(--line)}.latest-button svg{width:18px;height:18px}.player-footer{display:flex;justify-content:space-between;gap:8px;margin-top:14px;color:var(--muted);font-size:9px;opacity:.9}.archive-panel{display:flex;align-items:center;gap:12px;position:absolute;bottom:93px;right:27px;z-index:900;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;padding:15px;background:var(--surface)}.archive-panel label{font-size:12px;font-weight:700}.archive-panel small{display:block;font-weight:400;font-size:10px;color:var(--muted)}.archive-panel input{color:var(--text);background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;padding:8px;min-width:0}.text-button{background:var(--accent);color:#12253c;border-radius:7px;padding:9px 13px;font-size:12px;font-weight:700}
.popover{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);position:absolute;z-index:1002}.theme-panel{top:62px;right:110px;padding:13px;min-width:180px}.theme-panel strong{font-size:11px;display:block;margin:0 4px 8px;color:var(--muted)}.theme-panel button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 7px;border-radius:6px;text-align:left;font-size:12px}.theme-panel button:hover{background:var(--surface-soft)}.theme-panel svg{width:16px;height:16px;margin-left:auto;visibility:hidden}.theme-panel button[aria-pressed=true] svg{visibility:visible}.theme-dot{width:17px;height:17px;border-radius:50%;border:1px solid #9aa8b9}.theme-dot.light{background:#eef4f8}.theme-dot.green{background:#747e45}.theme-dot.dark{background:#162334}.station-panel{left:24px;top:64px;z-index:520;padding:12px;width:218px}.station-panel label{font-size:11px;font-weight:700;display:block;margin-bottom:7px}.station-panel select{width:100%;font-size:12px;color:var(--text);background:var(--surface-soft);padding:8px;border:1px solid var(--line);border-radius:6px}.station-panel p{font-size:10px;line-height:1.5;color:var(--muted);margin:8px 0 0}.station-value{background:transparent;border:0}.station-value span{display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:16px;padding:2px 7px;box-shadow:0 2px 5px #0b233a35;font-weight:750;font-size:11px;white-space:nowrap;min-width:38px;height:25px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--surface);color:var(--text)}.leaflet-popup-content{font-family:'Open Sans',Arial,sans-serif;font-size:12px;line-height:1.5;min-width:185px}.station-popup h2{font-size:15px;margin:0 0 3px}.station-popup time{font-size:10px;color:var(--muted)}.station-popup dl{display:grid;grid-template-columns:1fr auto;gap:7px 16px;margin:12px 0 0}.station-popup dt{color:var(--muted)}.station-popup dd{margin:0;font-weight:700}.station-popup small{font-size:9px;color:var(--muted)}
.initial-loading{position:absolute;z-index:510;left:50%;top:50%;transform:translate(-50%,-50%);width:220px;padding:24px;display:flex;align-items:center;gap:9px;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);font-size:12px}.initial-loading>span:last-of-type{font-size:10px;color:var(--muted)}.spinner{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:3px}.notice{position:absolute;z-index:1000;bottom:27px;left:50%;transform:translateX(-50%);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:12px 13px;font-size:12px;max-width:min(500px,calc(100% - 24px));display:flex;gap:12px;align-items:center;width:max-content}.notice button{font-size:21px;color:var(--muted);padding:0 3px}.notice span{line-height:1.5}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1100px){.radar-app{padding-top:env(safe-area-inset-top)}.player{padding-bottom:max(10px,env(safe-area-inset-bottom))}.map-shell{min-height:220px}}
@media(max-width:1050px){.player-controls{gap:15px}.transport{gap:7px}.periods button{min-width:45px}.period-controls{gap:10px}.latest-button span{display:none}.latest-button{padding-left:14px}.heading{gap:10px}.test-label{font-size:8px;letter-spacing:1px}.app-header{padding:0 20px}.layer-bar{padding:0 20px}.player{padding-left:20px;padding-right:20px}}
@media(max-width:680px){
  .app-header{height:60px;min-height:60px;padding:0 14px;gap:13px;padding-top:env(safe-area-inset-top);height:calc(60px + env(safe-area-inset-top));min-height:calc(60px + env(safe-area-inset-top))}.brand{font-size:25px;letter-spacing:-1px}.brand span{font-size:20px}.heading{padding-left:13px;gap:0}h1{font-size:14px;letter-spacing:-.3px}h1>span{display:none}.test-label{display:none}.header-actions{gap:2px}.icon-button{height:36px;width:36px}.header-actions .fullscreen-button{display:none}.header-actions svg{width:20px;height:20px}.theme-panel{top:54px;right:47px}.layer-bar{height:49px;min-height:49px;padding:0 13px;gap:13px}.layer-buttons{gap:19px}.layer-button{font-size:11px;gap:6px;padding:0 2px}.layer-button svg{width:20px;height:20px}.search{width:140px;height:33px;padding:0 8px;gap:5px}.search input{font-size:11px}.search svg{height:15px;width:15px}.search-results{min-width:250px;max-width:calc(100vw - 26px);top:40px}.map-topline{left:13px;top:13px;right:62px}.observation-chip{font-size:9px;padding:7px 9px;min-height:31px;gap:6px}.map-button{padding:7px;min-height:31px}.map-button span{display:none}.map-button svg{height:15px;width:15px}.leaflet-right .leaflet-control{margin-right:13px}.leaflet-top .leaflet-control{margin-top:13px}.leaflet-control-zoom a{width:34px!important;height:34px!important;line-height:34px!important;font-size:20px!important}.leaflet-control-scale{margin-left:13px!important;margin-bottom:23px!important}.leaflet-container .leaflet-control-attribution{font-size:8px}.legend{right:13px;bottom:25px;width:139px;padding:7px 9px 5px;border-radius:9px}.legend-heading{font-size:8px;margin-bottom:5px}.legend-heading strong{font-size:9px}.legend-bar{height:7px}.legend-ticks{font-size:8px;margin-top:3px}.station-panel{left:13px;top:53px;width:195px;padding:10px}.station-panel p{font-size:9px}.station-panel select{font-size:11px}.player{padding:15px 16px max(9px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;margin-top:-13px;box-shadow:0 -5px 20px #203f5b16;border-bottom:0}.player:before{content:'';position:absolute;top:6px;left:calc(50% - 17px);width:34px;height:3px;border-radius:3px;background:var(--line)}.player-heading{margin:3px 0 1px}.time-heading{gap:8px}#frameClock{font-size:22px}#frameDate{font-size:10px}.live-badge{font-size:8px;padding:4px 6px}.buffer-status{font-size:9px;max-width:102px}.timeline-wrap{margin-bottom:8px;padding-top:0}.timeline-cache{top:12.5px}#timeline{height:30px}#timeline::-webkit-slider-thumb{width:19px;height:19px;margin-top:-7px}.timeline-ticks{font-size:9px}.player-controls{display:grid;grid-template-columns:1fr auto;gap:9px 0}.transport{grid-column:1;justify-content:flex-start;gap:10px}.transport .icon-button{width:33px;height:38px}.play-button{width:43px;height:43px;box-shadow:0 0 0 4px #ffc60018}.play-button svg{height:20px;width:20px}.speed-select{margin-left:9px}.speed-select select{height:33px;width:65px;font-size:12px;padding-left:12px}.period-controls{grid-row:2;grid-column:1/-1;justify-content:space-between;gap:10px}.periods{flex:1;gap:3px;padding:2px;border-radius:7px}.periods button{flex:1;min-width:0;height:29px;font-size:11px;border-radius:5px}.archive-button{height:33px;font-size:11px;gap:6px;padding-right:2px}.archive-button svg{height:16px;width:16px}.latest-button{grid-column:2;grid-row:1;justify-self:end;border:1px solid var(--line);border-radius:8px;padding:8px;width:35px;height:33px;justify-content:center}.player-footer{font-size:8px;margin-top:9px}.player-footer #dataNote{display:none}.archive-panel{left:9px;right:9px;bottom:86px;flex-wrap:wrap;padding:12px;gap:8px}.archive-panel label{flex-basis:100%;display:flex;gap:9px;align-items:center;font-size:11px}.archive-panel input{flex:1;max-width:calc(100% - 116px);font-size:12px}.archive-panel .icon-button{width:29px}.notice{font-size:11px;bottom:100px}.initial-loading{width:200px;padding:20px}.map-shell{min-height:145px}
}
@media(max-width:360px){.app-header{gap:9px}.heading{padding-left:9px}.brand{font-size:23px}.brand span{font-size:18px}.layer-buttons{gap:12px}.search{width:122px}.layer-bar{gap:8px}.time-heading{gap:6px}#frameDate{display:none}.player{padding-left:13px;padding-right:13px}.transport{gap:8px}.buffer-status{max-width:89px}}
@media(max-height:550px) and (min-width:681px){.app-header{height:49px;min-height:49px}.layer-bar{height:42px;min-height:42px}.player{padding-top:8px;padding-bottom:5px}.player-footer{margin-top:6px}.player-heading{min-height:21px}#frameClock{font-size:18px}.timeline-wrap{margin-bottom:5px}.play-button{width:37px;height:37px}.map-shell{min-height:90px}.legend{width:150px;bottom:25px;padding:6px 9px}.theme-panel{top:44px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}*{scroll-behavior:auto!important}}
.initial-loading{z-index:1001}
.appearance-panel{width:304px;padding:16px;max-height:calc(100dvh - 85px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 14px 45px #071c3430;right:110px}
.appearance-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;font-size:15px}
.appearance-panel .appearance-heading button{width:30px;height:30px;padding:6px;margin:-5px -5px -5px 0}
.appearance-panel .appearance-heading svg{visibility:visible;width:18px;height:18px}
.appearance-panel fieldset{margin:0 0 16px;border:0;padding:0;min-width:0}
.appearance-panel legend,.opacity-label{font-size:11px;font-weight:700;margin-bottom:8px;color:var(--muted)}
.base-choices,.palette-choices,.smoothing-choices{display:flex;gap:7px}
.appearance-panel fieldset button{border:1px solid var(--line);background:var(--surface-soft);border-radius:9px;min-height:40px;text-align:center;justify-content:center;font-size:11px;gap:6px;padding:9px 5px;flex:1}
.appearance-panel fieldset button[aria-pressed=true]{border-color:#1689ca;box-shadow:inset 0 0 0 1px #1689ca;background:var(--surface);font-weight:750}
.appearance-panel .palette-choices button{flex-direction:column;gap:8px;padding:10px}
.palette-choices span{display:block;width:100%;height:8px;border-radius:3px}
.opacity-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:1px}.opacity-label output{color:var(--text);font-variant-numeric:tabular-nums}
#opacityInput{width:100%;height:27px;margin:0 0 9px;accent-color:#1689ca;cursor:pointer;touch-action:pan-y}
.appearance-note{font-size:10px;color:var(--muted);margin:12px 0 0}
.legend-details{font-size:10px;border-top:1px solid var(--line);padding-top:10px;color:var(--muted)}.legend-details summary{cursor:pointer;padding:4px 0}.legend-details small{font-size:9px;display:block;margin-top:10px;line-height:1.5}
#legendClasses{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding-top:12px}#legendClasses>div{display:flex;gap:6px;align-items:center;font-variant-numeric:tabular-nums}#legendClasses i{height:8px;width:18px;border-radius:2px;flex-shrink:0}
#legendTicks{position:relative;display:block;height:12px}#legendTicks span{position:absolute;transform:translateX(-50%)}#legendTicks span:first-child{transform:none}#legendTicks span:last-child{transform:translateX(-100%)}
@media(max-width:680px){.appearance-panel{right:12px;top:54px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 76px);padding:14px}}
@media(max-height:500px){.appearance-panel{top:40px;max-height:calc(100dvh - 50px)}}
@media(max-height:500px) and (max-width:680px){.app-header{height:43px;min-height:43px;padding-top:0}.layer-bar{height:38px;min-height:38px}.map-shell{min-height:80px}.player{padding-top:10px;padding-bottom:5px}.player-heading{min-height:20px;margin-top:0}#frameClock{font-size:18px}.player-controls{display:flex;gap:12px;justify-content:space-between}.transport{gap:3px}.play-button{width:33px;height:33px}.transport .icon-button{width:26px;height:31px}.speed-select{margin-left:3px}.speed-select select{width:56px;height:29px;font-size:11px;padding-left:8px}.period-controls{flex:1;gap:8px}.periods button{min-width:25px;height:27px;font-size:10px}.archive-button span{display:none}.archive-button{padding:0}.latest-button{display:none}.player-footer{margin-top:6px}.timeline-wrap{margin-bottom:4px}.legend{width:112px;bottom:22px}.legend-heading strong{font-size:8px}.map-topline{top:8px}.leaflet-top .leaflet-control{margin-top:8px}.theme-panel{top:40px}.archive-panel{bottom:55px}.station-panel{top:45px}.notice{bottom:40px}}

/* Settings stay recognizable across all map themes and on phones. */
.header-actions .settings-button{width:auto;flex-shrink:0;gap:8px;padding:0 13px;font-size:12px;font-weight:700;white-space:nowrap}
#themeButton[aria-expanded=true]{border-color:#1689ca;box-shadow:inset 0 0 0 1px #1689ca}
@media(max-width:680px){.header-actions .settings-button{gap:6px;padding:0 10px;font-size:11px}.settings-button svg{width:18px;height:18px}}
@media(max-width:420px){.app-header .heading{display:none}}


/* v1.0.3 – One slim toolbar: remove brand/header and place search; gain map height. */
.layer-bar{position:relative;z-index:1001;flex-shrink:0;gap:14px}
.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;flex-shrink:0}
.toolbar-actions .icon-button:hover{background:var(--surface-soft)}
.toolbar-actions .settings-button{display:inline-flex;width:auto;height:40px;gap:8px;padding:0 12px;font-size:12px;font-weight:700;white-space:nowrap;flex-shrink:0}
.toolbar-actions .settings-button svg{width:20px;height:20px}
.toolbar-actions .fullscreen-button{display:inline-flex;border-left:1px solid var(--line);margin-left:5px;border-radius:0}
/* The settings panel now belongs to the toolbar, not the former header. */
.layer-bar .appearance-panel{top:calc(100% + 8px);right:22px;max-height:min(540px,calc(100dvh - 90px));z-index:1100}
@media(max-width:680px){
  .layer-bar{height:calc(50px + env(safe-area-inset-top));min-height:calc(50px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;gap:6px}
  .layer-buttons{gap:14px}
  .layer-button{white-space:nowrap}
  .toolbar-actions{gap:3px}
  .toolbar-actions .icon-button{width:35px;height:35px;min-width:35px}
  .toolbar-actions .settings-button{width:35px;height:35px;padding:0;justify-content:center}
  .toolbar-actions .settings-button span{display:none}
  .toolbar-actions .fullscreen-button{display:inline-flex;margin-left:1px;border-left:0;border-radius:10px}
  .layer-bar .appearance-panel{top:calc(100% + 6px);right:9px;width:min(304px,calc(100vw - 18px));min-width:0;max-height:calc(100dvh - 73px)}
}
@media(max-width:360px){
  .layer-bar{padding-left:9px;padding-right:9px;gap:3px}
  .layer-buttons{gap:7px}
  .layer-button{gap:4px;font-size:10px}
  .layer-button svg{width:17px;height:17px}
  .toolbar-actions{gap:1px}
  .toolbar-actions .icon-button,.toolbar-actions .settings-button{width:32px;height:33px;min-width:32px}
}
@media(max-height:550px) and (min-width:681px){
  .toolbar-actions .icon-button,.toolbar-actions .settings-button{height:36px}
}
@media(max-height:500px) and (max-width:680px){
  .layer-bar{height:38px;min-height:38px;padding-top:0}
  .layer-bar .appearance-panel{top:calc(100% + 3px);max-height:calc(100dvh - 46px)}
}
