:root{--bg:#0b1220;--panel:#111827;--panel-border:#1f2937;--text:#e5e7eb;--muted:#9ca3af;--accent:#38bdf8;--good:#34d399;--warn:#fbbf24}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,Noto Sans Thai,Sarabun,sans-serif}a{color:var(--accent)}.app-shell{height:100vh;min-height:100dvh}.app-shell,.header{display:flex;flex-direction:column}.header{gap:8px;padding:8px 12px;background:linear-gradient(180deg,#0f172a,#0b1220);border-bottom:1px solid var(--panel-border);flex-shrink:0;z-index:2}.header h1{margin:0;font-size:1rem;font-weight:650;letter-spacing:.01em}.map-wrap{position:relative;flex:1 1;min-height:0;--scrub-lift:86px}.map-root,.map-root-wrap{position:absolute;inset:0;width:100%;height:100%}.map-root{background:#222327}.radar-site-marker{padding:0;border:0;background:transparent;cursor:pointer;line-height:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}.radar-site-marker,.radar-site-marker svg{display:block;width:28px;height:28px}.radar-site-marker:focus-visible{outline:2px solid #fbbf24;outline-offset:2px;border-radius:50%}.radar-site-popup .maplibregl-popup-content{padding:6px 10px;font-weight:650}.maplibregl-ctrl-group.products-toggle-ctrl[data-open=true]{box-shadow:0 0 0 2px rgb(0 150 255/.9)}.maplibregl-ctrl-group button.products-toggle{display:grid;place-items:center;padding:0;color:#1f2937}.products-toggle svg{width:18px;height:18px;display:block}.products-panel{position:absolute;z-index:3;top:48px;right:52px;width:min(340px,calc(100% - 64px));max-height:calc(100% - 48px - var(--scrub-lift) - 12px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 10px 6px;background:rgba(15,23,42,.94);border:1px solid var(--panel-border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--text);pointer-events:auto}.products-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.products-head h2{margin:0;font-size:.78rem;font-weight:650}.products-close{width:28px;height:28px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:1.15rem;line-height:1;cursor:pointer}.products-close:hover{color:var(--text);background:rgba(255,255,255,.06)}.product-list{list-style:none;margin:0;padding:0}.product-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:4px 0;border-top:1px solid rgba(148,163,184,.16);font-size:.72rem}.product-row.is-feed{padding-left:10px}.product-name,.product-state{font-weight:650}.product-state{margin-left:auto;font-size:.62rem;letter-spacing:.02em;text-transform:lowercase}.product-state.state-on{color:var(--accent)}.product-state.state-off{color:var(--muted)}.product-state.state-left{color:var(--warn)}.product-detail{flex-basis:100%;color:var(--muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.3}.map-notice{flex-shrink:0;margin:0;padding:5px 12px max(5px,env(safe-area-inset-bottom,0px));background:#0f172a;color:#cbd5e1;font-size:.68rem;line-height:1.35;text-align:center;border-top:1px solid var(--panel-border);z-index:6}.map-notice a{color:var(--accent)}.ecmwf-face{flex-shrink:0;margin:0;padding:4px 10px 5px;background:#0f172a;color:#cbd5e1;font-size:.62rem;line-height:1.35;text-align:center;border-bottom:1px solid var(--panel-border)}.ecmwf-face a{color:var(--accent)}.map-operator{margin:8px 0 0}.layer-gap-notice{background:rgba(15,23,42,.85);color:#e2e8f0;border-radius:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.error-banner,.layer-gap-notice{position:absolute;top:52px;left:50%;transform:translateX(-50%);z-index:3;padding:6px 12px;font-size:.75rem;max-width:min(90vw,520px)}.error-banner{background:rgba(127,29,29,.9);color:#fecaca;border:1px solid #991b1b;border-radius:8px}.maplibregl-popup-content{background:#111827!important;color:var(--text)!important;border-radius:8px!important;padding:10px 12px!important;box-shadow:0 8px 24px rgba(0,0,0,.45)!important;font-size:.8rem}.maplibregl-popup-close-button{color:var(--muted)!important;font-size:16px!important}.maplibregl-ctrl-attrib{background:rgba(15,23,42,.75)!important;color:var(--muted)!important}.maplibregl-ctrl-attrib a{color:var(--accent)!important}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){width:24px;height:24px;min-height:24px;margin:0 8px 8px 0!important;background:transparent!important}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show{max-width:min(360px,calc(100vw - 16px));max-height:min(56vh,420px);margin:0 8px 8px 0!important;padding:8px 28px!important;background:rgba(15,23,42,.94)!important;color:#e5e7eb!important;border-radius:12px;font-size:.72rem;line-height:1.4;white-space:normal}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block;white-space:normal}.map-root-wrap .map-info p{margin:0 0 .45em}.map-root-wrap .map-credits-body{margin:.35em 0 0}.map-root-wrap .map-disclaimer{margin:8px 0 0}.map-root-wrap .maplibregl-ctrl-attrib-button{width:24px!important;height:24px!important;left:0!important;right:auto!important;top:0!important}.map-root-wrap .credits-close{display:none}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact-show .credits-close{display:grid;place-items:center;position:absolute;top:4px;right:4px;z-index:1;width:22px;height:22px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:#e5e7eb;font-size:16px;line-height:1;cursor:pointer}.map-root-wrap .maplibregl-ctrl-bottom-left,.map-root-wrap .maplibregl-ctrl-bottom-right{bottom:var(--scrub-lift)!important}@media (max-width:720px){.header{padding:6px 10px}.header h1{font-size:.92rem}.products-panel{top:46px;left:58px;right:48px;width:auto;max-height:calc(100% - 46px - var(--scrub-lift) - 8px);padding:6px 8px 4px}.product-row{padding:3px 0;font-size:.68rem}}.layers-control{position:absolute;z-index:4;top:10px;left:10px;align-items:flex-start;pointer-events:auto}.layers-control,.layers-stack{display:flex;flex-direction:column;gap:8px}.layers-button{width:29px;height:29px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:4px;background:#fff;color:#1f2937;cursor:pointer;box-shadow:0 0 0 2px rgba(0,0,0,.1)}.layers-button svg{width:18px;height:18px;display:block}.layers-button[aria-expanded=true],.layers-button[aria-pressed=true]{box-shadow:0 0 0 2px rgb(0 150 255/.9)}.layers-button[aria-pressed=true]{background:#0f172a;color:#f8fafc}.layers-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.layers-panel{width:min(292px,calc(100vw - 20px));max-height:min(640px,calc(100dvh - 120px));overflow:auto;padding:8px;background:rgba(15,23,42,.94);border:1px solid var(--panel-border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.layer-toggles,.layers-panel{display:flex;flex-direction:column;align-items:stretch;gap:8px}.layer-toggles{pointer-events:auto}.layer-group{display:flex;flex-direction:column;align-items:stretch;gap:4px}.layer-group-title{margin:0;padding:2px 2px 0;color:var(--muted);font-size:.68rem}.layer-toggle{display:inline-flex;gap:5px;padding:5px 10px;background:rgba(15,23,42,.92);border:1px solid var(--panel-border);border-radius:8px;font-size:.72rem;color:var(--muted);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.layer-toggle.on{color:var(--text);border-color:#334155}.layer-toggle span{min-width:0;line-height:1.25}.layer-toggle.on span{color:var(--accent);font-weight:650}.layer-toggle input{margin:0;accent-color:var(--accent);width:14px;height:14px;cursor:pointer}@media (max-width:720px){.layers-control{top:10px;left:10px}.layers-panel{width:min(292px,calc(100vw - 20px));max-height:calc(100dvh - 320px)}.layers-button,.map-root-wrap .maplibregl-ctrl-group button{width:44px;height:44px}.layer-toggle{min-height:44px;padding:10px 12px;font-size:.95rem}.layer-toggle input{width:22px;height:22px}}.bma-mode-toggle{display:inline-flex;align-self:flex-start;gap:0;pointer-events:auto;background:rgba(15,23,42,.92);border:1px solid var(--panel-border);border-radius:999px;overflow:hidden}.bma-mode-btn{margin:0;padding:5px 10px;border:none;background:transparent;color:var(--muted);font-size:.72rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.bma-mode-btn+.bma-mode-btn{border-left:1px solid var(--panel-border)}.bma-mode-btn.on{color:var(--accent);font-weight:650;background:rgba(56,189,248,.12)}@media (max-width:720px){.bma-mode-toggle{display:flex;width:100%}.bma-mode-btn{flex:1 1;min-height:44px;padding:12px 10px;font-size:.875rem;touch-action:manipulation}}.layer-fade{display:flex;align-items:center;gap:8px;margin:-2px 2px 2px;color:var(--muted);font-size:.68rem}.layer-fade input[type=range]{flex:1 1;min-width:0;height:28px;margin:0;accent-color:var(--accent)}@media (max-width:720px){.layer-fade input[type=range]{height:40px}}.history-scrubber{position:absolute;left:12px;right:12px;bottom:10px;z-index:4;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;grid-column-gap:6px;column-gap:6px;padding:7px 8px 8px;background:rgba(32,36,42,.86);border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 28px rgba(0,0,0,.42);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);max-width:min(720px,calc(100vw - 24px));margin:0 auto;color:#f4f7fb}.scrub-now,.scrub-play{width:44px;height:44px;display:grid;place-items:center;padding:0;border:none;border-radius:12px;background:transparent;color:#f8fafc;cursor:pointer}.scrub-now:hover,.scrub-play:hover{background:rgba(255,255,255,.08)}.scrub-now:disabled,.scrub-play:disabled{opacity:.35;cursor:not-allowed}.scrub-now.at-live,.scrub-play[aria-pressed=true]{color:#7ec8ff}.scrub-icon{width:22px;height:22px;display:block}.scrub-track{min-width:0;display:flex;flex-direction:column;gap:1px}.scrub-caption{min-height:1.15em;text-align:center;font-size:.95rem;font-weight:650;letter-spacing:.01em;line-height:1.15;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:#f8fafc;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scrub-caption.is-live:after{content:"live";font-size:.62rem;font-weight:700;letter-spacing:.08em;color:#7ec8ff;vertical-align:2px}.scrub-track{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scrub-rail,.scrub-track{touch-action:none;cursor:-webkit-grab;cursor:grab}.scrub-rail{position:relative;height:32px;overflow:hidden}.scrub-rail.is-dragging,.scrub-track:active{cursor:-webkit-grabbing;cursor:grabbing}.scrub-rail:focus{outline:none}.scrub-rail:focus-visible{outline:2px solid rgba(126,200,255,.85);outline-offset:2px}.scrub-strip{position:absolute;top:0;bottom:0;left:0}.scrub-strip.is-settled{transition:transform .18s linear}.scrub-strip.is-dragging{transition:none}.scrub-tick{position:absolute;top:50%;width:1.5px;height:10px;border-radius:1px;background:rgba(255,255,255,.72);transform:translate(-50%,-50%);pointer-events:none}.scrub-tick.is-now{width:2px}.scrub-tick.is-clock{width:1.5px;background:rgba(255,255,255,.45)}.scrub-tick.is-forecast{height:14px;background:rgba(255,186,92,.95)}.scrub-needle{position:absolute;left:50%;top:3px;bottom:3px;width:2px;margin-left:-1px;border-radius:1px;background:#3b97ff;box-shadow:0 0 8px rgba(59,151,255,.75);z-index:2;pointer-events:none}@media (prefers-reduced-motion:reduce){.scrub-strip.is-settled{transition:none}}@media (max-width:720px){.app-shell,body,html{overflow:hidden}.app-shell{height:100svh;height:100dvh;min-height:0;max-height:100dvh}.map-wrap{--scrub-lift:calc(80px + max(0px, env(safe-area-inset-bottom, 0px) - 8px))}.edge-south{left:auto;right:8px;transform:none;bottom:calc(var(--scrub-lift) + 52px);max-width:54vw}.map-root-wrap .maplibregl-ctrl-bottom-right{left:auto!important;width:auto!important;max-width:min(360px,calc(100% - 16px))}.history-scrubber{position:absolute;z-index:6;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom,0px));padding:4px 4px 6px;border-radius:16px;max-width:none;margin:0}.scrub-caption{font-size:.88rem}.scrub-now,.scrub-play{width:44px;height:44px}}.bma-station-panel{position:absolute;z-index:5;right:8px;bottom:var(--scrub-lift);width:min(420px,calc(100vw - 16px));max-height:min(300px,46vh);overflow:auto;pointer-events:auto;background:rgba(15,23,42,.94);border:1px solid var(--panel-border);border-radius:12px;padding:8px 10px;box-shadow:0 10px 28px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.bma-station-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.bma-station-title{min-width:0;display:flex;flex-direction:column;gap:1px}.water-status{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-weight:650}.water-status i{width:8px;height:8px;border-radius:99px;display:inline-block}.water-levels{display:grid;grid-template-columns:1fr 1fr;grid-gap:2px 10px;gap:2px 10px;margin-top:6px;font-size:.72rem;color:var(--muted)}.water-levels b{color:var(--text);font-weight:650}.water-hover,.water-hover .maplibregl-popup-content,.water-hover .maplibregl-popup-tip{pointer-events:none}.water-hover .maplibregl-popup-content{padding:6px 8px!important;font-size:.72rem;line-height:1.35}.water-hover-card strong{display:block;font-size:.75rem}.bma-station-title strong{font-size:.82rem;line-height:1.25;color:var(--text)}.bma-station-code{font-size:.66rem;color:var(--muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.bma-station-close{flex-shrink:0;width:32px;height:32px;margin:-4px -4px 0 0;border:none;border-radius:8px;background:transparent;color:var(--muted);font-size:1.25rem;line-height:1;cursor:pointer}.bma-station-close:hover{color:var(--text);background:rgba(148,163,184,.12)}.bma-station-empty,.bma-station-note,.bma-station-now{margin:4px 0 0;font-size:.66rem;line-height:1.35;color:var(--muted)}.bma-station-now b{color:var(--text);font-weight:650}.bma-station-time{color:var(--muted)}.bma-chart-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;font-size:.66rem;color:var(--text)}.bma-chart-legend span{display:inline-flex;align-items:center;gap:5px}.bma-legend-bar,.bma-legend-line{display:inline-block;width:14px;height:8px;border-radius:2px}.bma-legend-bar{background:#38bdf8}.bma-legend-line{height:0;border-top:2px solid #fbbf24;border-radius:0;position:relative}.bma-legend-rule{display:inline-block;width:14px;height:0;border-top:2px solid #38bdf8}.bma-legend-rule.river{border-top-color:#c4b5fd}.bma-legend-rule.warn{border-top-style:dashed;border-top-color:#f4b05b}.bma-legend-rule.crit{border-top-style:dashed;border-top-color:#e85965}.bma-legend-rule.flood{border-top-style:dashed;border-top-color:#f472b6}.bma-legend-rule.air{border-top-color:#7dd3fc}.bma-station-chart{display:block;width:100%;height:148px;margin-top:2px}.bma-axis{fill:var(--muted);font-size:9px;font-family:ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif}.lang-switch{position:absolute;z-index:8;top:10px;left:47px;display:flex;height:29px;background:#fff;border-radius:4px;box-shadow:0 0 0 2px rgba(0,0,0,.1);overflow:hidden;pointer-events:auto}.lang-switch button{margin:0;color:#1f2937;font:700 12px/29px ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;padding:0 8px;min-width:32px;cursor:pointer}.lang-switch button+button{border-left:1px solid #ddd}.lang-switch button[aria-pressed=true]{background:#0f172a;color:#f8fafc}.lang-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;position:relative;z-index:1}.disclaimer-dialog{width:min(420px,calc(100vw - 32px));max-height:min(80vh,520px);overflow:auto;margin:auto;padding:16px 16px 14px;border:1px solid var(--panel-border);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 16px 40px rgba(0,0,0,.45)}.disclaimer-dialog::-webkit-backdrop{background:rgba(2,6,23,.72)}.disclaimer-dialog::backdrop{background:rgba(2,6,23,.72)}.disclaimer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.disclaimer-dialog h2{margin:0;font-size:1rem;font-weight:650}.disclaimer-dialog p{margin:0 0 14px;font-size:.92rem;line-height:1.45}.disclaimer-dialog .lang-switch{position:static;flex-shrink:0}.disclaimer-ok{display:block;margin-left:auto;border:0;border-radius:8px;background:var(--accent);color:#0b1220;font:700 .85rem/1 ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;padding:8px 16px;cursor:pointer}.disclaimer-ok:focus-visible{outline:2px solid #fff;outline-offset:2px}.place-search{position:absolute;z-index:5;top:10px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:min(260px,calc(100vw - 108px));display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;pointer-events:auto;font-size:.78rem}.place-search[data-open=true]{width:min(260px,calc(100vw - 108px))}.place-search-toggle{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:4px;background:#fff;color:#1f2937;cursor:pointer;box-shadow:0 0 0 2px rgba(0,0,0,.1)}.place-search-toggle svg{width:16px;height:16px;display:block}.place-search-toggle[aria-expanded=true]{box-shadow:0 0 0 2px rgb(0 150 255/.9)}.place-search-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.place-search-bar{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:2px;background:rgba(15,23,42,.92);border:1px solid var(--panel-border);border-radius:999px;box-shadow:0 4px 16px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:2px 4px 2px 12px}.place-search-input{flex:1 1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;padding:6px 0;outline:none}.place-search-input::placeholder{color:var(--muted)}.place-search-clear{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:1.05rem;line-height:1;padding:4px 8px;border-radius:999px}.place-search-clear:hover{color:var(--text)}.place-search-list{position:absolute;top:calc(100% + 4px);left:0;right:0;margin:0;padding:4px;list-style:none;background:rgba(15,23,42,.96);border:1px solid var(--panel-border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.45);max-height:min(280px,46vh);overflow:auto}.place-search-option{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);font:inherit;padding:6px 8px;border-radius:8px;cursor:pointer}.place-search-option:hover,.place-search-option[aria-selected=true]{background:rgba(56,189,248,.14)}.place-search-name{display:block;font-weight:650}.place-search-sub{display:block;color:var(--muted);font-size:.68rem;margin-top:1px}.place-search-note,.place-search-status{padding:6px 8px;color:var(--muted);font-size:.66rem}.place-pin{width:0;height:0;overflow:visible}.place-pin-dot{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;background:#38bdf8;border:2px solid #f8fafc;box-shadow:0 1px 4px rgba(0,0,0,.55)}.place-pin-label{position:absolute;left:12px;top:-12px;max-width:200px;padding:2px 7px;border-radius:6px;background:rgba(15,23,42,.94);color:#f8fafc;font:650 12px/1.3 ui-sans-serif,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 8px rgba(0,0,0,.45)}@media (max-width:900px){.place-search,.place-search[data-open=true]{max-width:min(240px,calc(100vw - 108px))}.place-search[data-open=true]{width:min(240px,calc(100vw - 108px))}}@media (max-width:720px){.place-search{top:10px}.place-search,.place-search[data-open=true]{max-width:min(220px,calc(100vw - 180px))}.place-search[data-open=true]{left:124px;right:auto;transform:none;width:min(260px,calc(100vw - 124px - 48px));max-width:none}.place-search-input{padding:4px 0;font-size:.72rem}.bma-station-chart .bma-rule-side{display:none}.bma-station-panel{left:8px;right:8px;width:auto;bottom:var(--scrub-lift);max-height:min(300px,46vh)}.bma-station-title strong{font-size:.76rem}}.air-station-panel{max-height:min(560px,70vh)}@media (max-width:720px){.air-station-panel{max-height:min(68vh,520px)}.air-station-chart{height:132px}}.air-aqi-row{display:flex;align-items:center;gap:10px;margin-top:6px}.air-aqi-badge{flex:0 0 auto;min-width:46px;height:46px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem;font-weight:750;line-height:1}.air-aqi-row b{display:block;font-size:.82rem;line-height:1.25}.air-aqi-row div{font-size:.75rem;color:var(--muted)}.air-pollutants{display:flex;flex-wrap:wrap;gap:4px 10px;margin:6px 0 0;padding:0;list-style:none;font-size:.72rem;color:var(--muted)}.air-pollutants b{color:var(--text);font-weight:650}.air-chart-label,.air-credit,.air-informational,.air-time{margin:4px 0 0;font-size:.68rem;color:var(--muted)}.air-credit{margin-top:6px}.water-station-panel{max-height:min(520px,68vh)}@media (max-width:720px){.water-station-panel{max-height:min(460px,64vh)}}@media (display-mode:standalone){.app-shell{padding-top:env(safe-area-inset-top,0)}}@media (display-mode:standalone) and (min-width:721px){.history-scrubber{bottom:max(10px,env(safe-area-inset-bottom,0px))}}.forecast-toggle{height:44px;min-width:44px;padding:0 14px;border:0;border-radius:4px;background:var(--panel);color:var(--text);font:600 15px/44px ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;box-shadow:0 0 0 2px rgba(0,0,0,.28);cursor:pointer}.forecast-toggle-map{position:absolute;z-index:8;top:48px;left:48px}@media (max-width:720px){.place-search-toggle{width:44px;height:44px;flex-basis:44px}.lang-switch{left:62px;height:44px}.lang-switch button{min-width:44px;height:44px;padding:0 10px;font-size:14px;line-height:44px}.forecast-toggle-map{top:62px;left:62px}}.forecast-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.forecast-edge{position:absolute;z-index:4;top:0;right:0;bottom:var(--scrub-lift);width:28px;touch-action:none}.forecast-page{position:absolute;z-index:7;inset:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);color:var(--text);touch-action:pan-y}.app-shell[data-shell-view=forecast] .history-scrubber,.app-shell[data-shell-view=forecast] .maplibregl-ctrl-bottom-left,.app-shell[data-shell-view=forecast] .maplibregl-ctrl-bottom-right{visibility:hidden}.forecast-sheet{flex:1 1 auto;min-height:0;overflow:auto;width:min(720px,100%);margin:0 auto;padding:8px 16px 28px}.forecast-ecmwf-footer{flex:0 0 auto;margin:0;padding:6px 16px max(8px,env(safe-area-inset-bottom,0px));border-top:1px solid rgba(148,163,184,.18);background:var(--bg);color:var(--muted);font-size:.62rem;line-height:1.35;text-align:center}.forecast-ecmwf-footer a{color:var(--accent)}.forecast-toolbar{position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;align-items:center;min-height:52px;margin:-8px -16px 12px;padding:8px 16px 8px 128px;background:var(--bg)}@media (max-width:720px){.forecast-toolbar{padding-left:168px}}.forecast-head h1{margin:0;font-size:1.55rem;font-weight:650}.forecast-caption,.forecast-credit,.forecast-model,.forecast-run{margin:4px 0 0;color:var(--muted);font-size:.78rem;line-height:1.45}.forecast-stale{margin:6px 0 0;color:var(--warn);font-size:.85rem}.forecast-chips{display:flex;gap:8px;overflow-x:auto;margin:14px 0;padding-bottom:2px}.forecast-back,.forecast-chips button,.forecast-day,.forecast-step,.forecast-tabs button{min-height:44px;min-width:44px}.forecast-back,.forecast-chips button,.forecast-day,.forecast-tabs button{border:1px solid var(--panel-border);background:var(--panel);color:var(--text);font:600 14px/1.2 ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;cursor:pointer}.forecast-chips button{flex:0 0 auto;padding:0 14px;border-radius:8px}.forecast-chips button[aria-pressed=true],.forecast-day[aria-pressed=true],.forecast-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.forecast-step{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 12px;border-radius:8px;background:var(--panel);color:var(--text);font-size:.85rem}.forecast-block{margin:18px 0}.forecast-block h2{margin:0 0 8px;font-size:1rem;font-weight:650}.forecast-now-temp{margin:0;font-size:3rem;font-weight:650;line-height:1}.forecast-now-temp span{font-size:1.4rem}.forecast-now-sub{margin:8px 0 0;font-size:1.35rem;font-weight:650;line-height:1}.forecast-now-sub span{font-size:.9rem}.forecast-now-list{margin:8px 0 0;padding:0;list-style:none;color:var(--text);font-size:.95rem;line-height:1.55}.forecast-days{display:flex;flex-direction:column;gap:6px}.forecast-day{grid-template-columns:4.6rem minmax(0,1fr);grid-gap:2px 8px;gap:2px 8px;padding:8px 10px;border-radius:8px}.forecast-day-label{grid-row:1/span 2;align-self:center}.forecast-day-main,.forecast-day-side{min-width:0}.forecast-day small,.forecast-day-side{color:var(--muted);font-size:.75rem;font-weight:500}.forecast-day small{display:inline-block;margin-left:6px}.forecast-tabs{gap:6px;overflow-x:auto}.forecast-tabs button{flex:0 0 auto;padding:0 12px;border-radius:8px}.forecast-chart{display:block;width:100%;height:168px;margin-top:8px}.forecast-line{fill:none;stroke:var(--accent);stroke-width:2}.forecast-axis{fill:var(--muted);font-size:10px;font-family:ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif}.forecast-credit{margin-top:22px;font-size:.68rem}.forecast-status{margin:18px 0}.forecast-back{margin-top:8px;padding:0 16px;border-radius:8px}:root{--accent:#2f7cf6;--glass:rgba(28,34,48,0.86);--glass-solid:rgba(22,27,38,0.94);--ink:#e8ecf2;--muted-2:#9aa4b2;--live:#e5484d}.map-wrap{--scrub-lift:128px}.map-topbar{position:absolute;z-index:9;top:max(12px,env(safe-area-inset-top,0px));left:12px;right:12px;display:flex;align-items:center;gap:8px;pointer-events:none;color:#fff}.map-topbar>*{pointer-events:auto}.brand-lockup{display:flex;align-items:center;gap:8px;flex:none}.brand-lockup img{width:44px;height:44px;border-radius:50%;display:block;box-shadow:0 0 0 1.5px rgba(255,255,255,.18),0 2px 10px rgba(0,0,0,.45)}.brand-name{display:none;font-weight:650;font-size:18px;letter-spacing:.01em;text-shadow:0 1px 2px #000}.nav-center{flex:1 1;display:flex;justify-content:center;min-width:0}.nav-pill{display:flex;height:44px;padding:3px;gap:2px;border-radius:22px;background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 4px 18px rgba(0,0,0,.35)}.nav-seg{display:flex;align-items:center;gap:6px;height:38px;min-width:44px;padding:0 12px;border:0;border-radius:19px;background:transparent;color:#aab3c0;font:600 15px/1 ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;cursor:pointer}.nav-seg svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.nav-seg[aria-pressed=true]{background:#2f7cf6;color:#fff}.chip-next:focus-visible,.lang-switch button:focus-visible,.layers-button:focus-visible,.nav-seg:focus-visible{outline:2px solid #fff;outline-offset:2px}.lang-switch{position:static;z-index:9;height:44px;padding:3px;border-radius:22px;background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 4px 18px rgba(0,0,0,.35)}.lang-switch button{width:44px;min-width:44px;height:38px;padding:0;border:0;border-radius:19px;background:transparent;color:#9aa4b2;font:600 14px/38px ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif}.lang-switch button+button{border-left:0}.lang-switch button[aria-pressed=true]{background:rgba(255,255,255,.14);color:#fff}.forecast-unofficial button,.map-notice-link{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;-webkit-text-decoration-color:rgba(255,255,255,.5);text-decoration-color:rgba(255,255,255,.5);text-underline-offset:2px;cursor:pointer;pointer-events:auto;min-height:44px}.map-root-wrap .maplibregl-ctrl-top-right{top:auto;bottom:calc(150px + 44px + 12px);right:14px;display:flex;flex-direction:column;align-items:center;gap:12px;z-index:5}.map-root-wrap .maplibregl-ctrl-top-right .maplibregl-ctrl{margin:0;float:none}.map-root-wrap .maplibregl-ctrl-top-right .maplibregl-ctrl-group{display:flex;flex-direction:column;gap:12px;background:transparent;border:0;box-shadow:none}.map-root-wrap .maplibregl-ctrl-top-right button{width:44px;height:44px;border:0;border-radius:50%;background-color:var(--glass);color:#dfe6f0;box-shadow:0 4px 18px rgba(0,0,0,.35)}.products-toggle-ctrl{display:none}.layers-control{position:static;top:auto;left:auto;pointer-events:none}.layers-stack{position:absolute;z-index:6;left:14px;right:auto;bottom:150px;pointer-events:auto;align-items:center}.layers-button{width:56px;height:56px;border-radius:50%;background:#2f7cf6;color:#fff;box-shadow:0 4px 14px rgba(47,124,246,.5)}.layers-button svg{width:24px;height:24px}.layers-button[aria-expanded=true]{box-shadow:0 0 0 2px #fff,0 4px 14px rgba(47,124,246,.5)}.layers-panel{position:absolute;z-index:7;left:78px;top:auto;bottom:calc(var(--scrub-lift) + 4px);width:min(320px,calc(100vw - 148px));max-height:calc(100% - var(--scrub-lift) - 80px);padding:8px 0 10px;border:0;border-radius:16px;background:var(--glass-solid);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 8px 28px rgba(0,0,0,.45);pointer-events:auto}.layers-head{display:flex;align-items:center;justify-content:space-between;padding:4px 12px 0 16px}.layers-head h2{margin:0;font-size:18px;font-weight:650}.layers-close{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#dfe6f0;font-size:22px;cursor:pointer}.layers-rule{margin:0 16px 8px;color:#8b95a5;font-size:12px;line-height:1.35}.layer-group-title{padding:8px 16px 2px;letter-spacing:.09em;text-transform:uppercase;font-size:12px;font-weight:650}.layer-toggle{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:0 14px 0 16px;border:0;border-radius:0;background:transparent;color:#9aa4b2;font-size:16px}.layer-toggle.on{color:#fff;border-color:transparent}.layer-toggle input{position:absolute;width:1px;height:1px;opacity:0}.layer-copy{min-width:0;display:flex;flex-direction:column;line-height:1.15}.layer-copy small{color:#7f8a9b;font-size:11px;font-weight:650}.layer-ui{margin-left:auto;width:38px;height:22px;border-radius:11px;background:#3a4252;position:relative;flex:none}.layer-ui:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#8b95a5}.layer-toggle.on .layer-ui{background:#2f7cf6}.layer-toggle.on .layer-ui:after{left:19px;background:#fff}.layer-toggle[data-kind=radio] .layer-ui{width:20px;height:20px;border-radius:50%;border:2px solid #5b6576;background:transparent}.layer-toggle[data-kind=radio] .layer-ui:after{display:none}.layer-toggle.on[data-kind=radio] .layer-ui{border:6px solid #2f7cf6;background:#fff}.layer-toggle:has(input:focus-visible){outline:2px solid #2f7cf6;outline-offset:-2px}.layer-block{display:flex;flex-direction:column;align-items:stretch}.layers-panel .bma-mode-toggle{display:flex;align-self:stretch;width:auto;gap:2px;margin:0 10px 6px;padding:2px;border:0;border-radius:12px;background:rgba(255,255,255,.08)}.layers-panel .bma-mode-btn{flex:1 1;min-width:0;min-height:44px;margin:0;padding:0 2px;border:0;border-radius:10px;background:transparent;color:#c5ceda;font:650 13px/1.1 ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;cursor:pointer}.layers-panel .bma-mode-btn+.bma-mode-btn{border-left:0}.layers-panel .bma-mode-btn.on{background:#2f7cf6;color:#fff;font-weight:700}.layers-panel .bma-mode-btn:focus-visible{outline:2px solid #fff;outline-offset:-2px}.layer-map{flex:none}.layer-map .layer-toggle{width:100%;font:inherit;font-size:16px;text-align:left;cursor:pointer}.layer-map .layer-toggle:focus-visible{outline:2px solid #2f7cf6;outline-offset:-2px}.layer-opacity>.layer-ico,.layer-toggle>.layer-ico{display:grid;place-items:center;width:20px;height:20px;min-width:20px;flex:none;color:inherit}.layer-ico svg{width:20px;height:20px}.layer-opacity{display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-column-gap:10px;column-gap:10px;align-items:center;margin:2px 0 0;padding:0 14px 4px 16px;color:#e8ecf2;font-size:16px;cursor:pointer}.layer-opacity>.layer-ico{grid-column:1;grid-row:1}.layer-opacity-name,.layer-opacity-pct{display:flex;align-items:center;min-height:44px}.layer-opacity-name{grid-column:2;grid-row:1}.layer-opacity-pct{grid-column:3;grid-row:1}.layer-opacity-name{line-height:1.2}.layer-opacity-pct{color:#2f7cf6;font-weight:650;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.layer-opacity input[type=range]{--fade-track:linear-gradient(90deg,#2f7cf6 var(--fade-pct,80%),#3a4252 var(--fade-pct,80%));grid-column:1/-1;grid-row:2;width:100%;height:44px;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer;touch-action:manipulation}.layer-opacity input[type=range]:focus{outline:none}.layer-opacity:has(input:focus-visible){outline:2px solid #2f7cf6;outline-offset:-2px}.layer-opacity input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:var(--fade-track)}.layer-opacity input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-8px;border:2px solid #2f7cf6;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}.layer-opacity input[type=range]::-moz-range-track{height:6px;border:0;border-radius:999px;background:var(--fade-track)}.layer-opacity input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid #2f7cf6;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}.place-search{z-index:6}.place-search-toggle{width:44px;height:44px;flex-basis:44px;border-radius:50%;color:#dfe6f0}.history-scrubber,.place-search-toggle{background:var(--glass);box-shadow:0 4px 18px rgba(0,0,0,.35)}.history-scrubber{left:14px;right:14px;bottom:20px;height:64px;padding:0 10px;border:0;border-radius:18px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.scrub-play{width:44px;height:44px;border-radius:50%}.scrub-play,.scrub-play:hover,.scrub-play[aria-pressed=true]{background:#2f7cf6;color:#fff}.scrub-now{width:44px;height:44px;border-radius:50%;background:transparent;color:#9aa4b2}.scrub-caption{font-size:17px}.scrub-caption.is-live:after{content:"LIVE";margin-left:8px;padding:2px 6px;border-radius:4px;background:var(--live);color:#fff;font-size:11px;letter-spacing:.05em;text-transform:uppercase}html[lang=th] .scrub-caption.is-live:after{content:"สด"}.scrub-caption.is-stale{color:#fbbf24}.scrub-rail{height:22px}.scrub-tick{width:2px;height:8px;background:rgba(255,255,255,.35)}.scrub-tick.is-now{width:3px;height:18px;background:#fff}.scrub-tick.is-clock{width:2px;height:6px;background:rgba(255,255,255,.4)}.scrub-tick.is-forecast{height:10px;background:#7fb6ff}.scrub-future-band{position:absolute;top:50%;height:14px;transform:translateY(-50%);border-radius:7px;background:rgba(47,124,246,.28);pointer-events:none}.scrub-range{display:flex;justify-content:space-between;gap:8px;color:#9aa4b2;font-size:11px;font-weight:650}.scrub-needle{background:#fff;box-shadow:none}.bma-station-panel,.legend,.products-panel{border:0;border-radius:16px;background:var(--glass-solid);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 8px 28px rgba(0,0,0,.45);color:var(--ink)}.bma-station-panel{right:78px;bottom:auto;top:120px;width:min(360px,calc(100vw - 110px));max-height:min(440px,calc(100dvh - 250px));border-radius:18px}.bma-station-now{font-size:1.35rem}.app-shell[data-shell-view=forecast] .history-scrubber,.app-shell[data-shell-view=forecast] .layers-control,.app-shell[data-shell-view=forecast] .map-rail [data-rail-slot=clock],.app-shell[data-shell-view=forecast] .map-rail [data-rail-slot=info],.app-shell[data-shell-view=forecast] .map-rail [data-rail-slot=recenter],.app-shell[data-shell-view=forecast] .map-rail [data-rail-slot=zoom],.app-shell[data-shell-view=forecast] .maplibregl-ctrl-bottom-left,.app-shell[data-shell-view=forecast] .maplibregl-ctrl-bottom-right,.app-shell[data-shell-view=forecast] .maplibregl-ctrl-top-right{visibility:hidden;pointer-events:none}.forecast-page{top:68px;background:rgba(10,14,22,.62);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.forecast-scroll{flex:1 1;min-height:0;overflow:auto;padding:8px 16px 24px}.forecast-sticky{position:-webkit-sticky;position:sticky;top:0;z-index:3;margin:0 -16px 12px;padding:4px 16px 10px;background:rgba(16,20,28,.82);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}.forecast-chip-row{display:flex;align-items:center;gap:8px}.forecast-chips{flex:1 1;min-width:0;margin:0;-webkit-mask-image:linear-gradient(90deg,#000 0 88%,transparent);mask-image:linear-gradient(90deg,#000 0 88%,transparent)}.forecast-chips button{height:44px;border:0;border-radius:22px;padding:0 16px;background:rgba(255,255,255,.08);color:#c3cad5;font-weight:650}.forecast-chips button.on,.forecast-chips button[aria-pressed=true]{background:#2f7cf6;color:#fff}.chip-next{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer}.forecast-run{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0;color:#c3cad5;font-size:14px}.forecast-badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:12px;background:#143322;color:#3dd68c;font-size:12px;font-weight:700}.forecast-badge.is-stale,.forecast-stale{background:transparent;color:#f5b544}.forecast-badge.is-stale{background:rgba(245,181,68,.16)}.forecast-stale{margin:8px 0 0;padding:10px 12px;border-radius:12px;background:rgba(245,181,68,.14);font-size:14px}.forecast-stale span,.forecast-stale strong{display:block}.forecast-layout{display:flex;flex-direction:column;gap:12px}.forecast-card{border-radius:18px;padding:14px 16px 16px;background:rgba(28,34,48,.72);box-shadow:0 8px 24px rgba(0,0,0,.25)}.forecast-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.forecast-card h2,.forecast-head h1{font-weight:650;letter-spacing:.09em;text-transform:uppercase}.forecast-card h2,.forecast-head h1,.forecast-model{margin:0;color:#8b95a5;font-size:12px}.forecast-hero-temp{display:flex;align-items:center;gap:8px;margin-top:6px;color:#f5b544}.forecast-hero-temp svg{width:42px;height:42px}.forecast-hero-temp p{margin:0;color:#fff;font-size:56px;font-weight:650;line-height:1;letter-spacing:-.03em}.forecast-rainline{margin:4px 0 0;color:#7fb6ff;font-size:28px;font-weight:650;line-height:1.15}html[lang=th] .forecast-rainline{font-size:24px}.forecast-condition{margin:4px 0 8px;color:#c3cad5;font-size:16px}.forecast-metrics{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px 16px;gap:8px 16px;margin:12px 0 0;padding:0;list-style:none}.forecast-metrics li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-height:28px;color:#c3cad5;font-size:15px}.forecast-metrics b{color:#fff;font-size:16px;white-space:nowrap}.forecast-metrics i{display:inline-block;margin-left:4px;font-style:normal}.forecast-hours{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:2px}.forecast-pm25{margin-top:8px}.forecast-pm25,.forecast-pm25-now{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.forecast-pm25-now{margin:0;color:#c3cad5;font-size:14px}.forecast-day-pm25,.forecast-pm25-badge,.forecast-pm25-chip{color:#111827;font-weight:700}.forecast-pm25-badge{display:inline-flex;align-items:center;min-height:28px;padding:2px 8px;border-radius:8px;font-size:16px}.forecast-pm25-label{color:#e8ecf2;font-weight:650}.forecast-pm25-note,.forecast-pm25-status{flex:1 0 100%;margin:0;color:#9aa4b2;font-size:12px}.forecast-pm25 button{min-height:32px;margin-left:6px;padding:0 10px;border:0;border-radius:8px;background:#2f7cf6;color:#fff;font-weight:650}.forecast-hours>div{flex:none;width:76px;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;color:#c3cad5;font-size:13px}.forecast-hours>div.is-now{background:rgba(47,124,246,.28);color:#fff}.forecast-hours svg{width:26px;height:26px;color:#f5b544}.forecast-hour-readout{display:flex;align-items:center;justify-content:center;gap:3px}.forecast-hours b{color:#fff;font-size:15px}.forecast-hours small{color:#9ec5ff;font-size:14px;font-weight:650}.forecast-pm25-chip{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:16px;padding:0 3px;border-radius:6px;background:rgba(255,255,255,.08);font-size:10px;line-height:16px;font-style:normal}.forecast-chart-head{display:flex;justify-content:space-between;align-items:baseline}.forecast-tabs{display:flex;margin:8px 0;padding:3px;border-radius:22px;background:rgba(255,255,255,.06)}.forecast-tabs button{flex:1 1;height:38px;min-width:44px;border:0;border-radius:19px;background:transparent;color:#9aa4b2;font-weight:650}.forecast-tabs button[aria-pressed=true]{background:#2f7cf6;color:#fff}.forecast-day{min-height:44px;width:100%;display:grid;grid-template-columns:46px 18px 52px 40px minmax(0,1fr);align-items:center;grid-gap:8px;gap:8px;border:0;border-top:1px solid rgba(255,255,255,.06);background:transparent;color:#e8ecf2;font:600 15px/1 ui-sans-serif,system-ui,Noto Sans Thai,Sarabun,sans-serif;cursor:pointer;text-align:left}.forecast-day svg{width:18px;height:18px;color:#7fb6ff}.forecast-day-rain{color:#7fb6ff}.forecast-day-pm25{justify-self:stretch;min-height:18px;border-radius:6px;background:rgba(255,255,255,.08);font-size:11px;line-height:18px;text-align:center}.forecast-day-range{display:flex;align-items:center;gap:6px;min-width:0;color:#c3cad5;font-size:13px}.temp-track{position:relative;flex:1 1;background:rgba(255,255,255,.08)}.temp-fill,.temp-track{height:6px;border-radius:3px}.temp-fill{position:absolute;top:0;background:linear-gradient(90deg,#7fb6ff,#f5b544)}.forecast-credit,.forecast-ecmwf-footer,.forecast-unofficial{color:#9aa4b2;font-size:12px;line-height:1.45;text-align:center}.forecast-unofficial button{min-height:0}@media (max-width:720px){.maplibregl-ctrl-zoom-in,.maplibregl-ctrl-zoom-out{display:none}.place-search{top:auto;left:auto;right:14px;bottom:306px;transform:none;max-width:min(280px,calc(100vw - 28px))}.place-search[data-open=true]{width:min(280px,calc(100vw - 28px));flex-direction:row-reverse}.bma-station-panel{left:12px;right:12px;top:auto;bottom:calc(var(--scrub-lift) + 36px);width:auto}.nav-seg{padding:0 10px;font-size:14px}}@media (min-width:721px){.brand-name{display:inline}.place-search{top:max(12px,env(safe-area-inset-top,0px));right:12px;left:auto;transform:none}.app-shell[data-shell-view=forecast] .place-search{visibility:visible;pointer-events:auto;z-index:10}.layers-panel{width:min(320px,calc(100vw - 148px))}.legend{left:auto;right:84px;top:72px;bottom:auto;width:min(280px,32vw)}.forecast-scroll{width:min(1180px,100%);margin:0 auto}.forecast-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1.15fr) minmax(280px,.95fr);grid-template-areas:"now chart days" "hourly hourly days";align-items:start}.forecast-now{grid-area:now}.forecast-chart-card{grid-area:chart}.forecast-hourly{grid-area:hourly}.forecast-days-card{grid-area:days}.forecast-rainline{font-size:24px}.forecast-chart{height:132px}.forecast-hero-temp p{font-size:48px}}@media (min-width:721px) and (max-height:860px){.forecast-scroll{padding-top:4px;padding-bottom:8px}.forecast-layout{gap:8px}.forecast-card{padding:10px 14px 12px}.forecast-hero-temp{margin-top:2px}.forecast-hero-temp svg{width:32px;height:32px}.forecast-hero-temp p{font-size:40px}.forecast-pm25{margin-top:4px;gap:4px}.forecast-rainline{font-size:20px}.forecast-metrics{margin-top:6px;gap:2px 12px}.forecast-metrics li{min-height:22px}.forecast-hours{margin-top:4px}.forecast-hours>div{min-height:0;gap:2px}.forecast-chart{height:96px}.forecast-page .app-footer{padding-top:2px;padding-bottom:2px}.forecast-cams-credit{font-size:10px;line-height:1.25}}@media (max-width:720px){.layer-toggle{min-height:44px;font-size:16px}}.map-wrap{--dock-gap:12px;--scrub-h:64px;--strip-h:52px;--scrub-lift:calc(var(--dock-gap) + var(--scrub-h) + var(--strip-h) + 12px)}.app-footer{position:relative;z-index:12;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:62px;margin:0;padding:6px 12px calc(6px + env(safe-area-inset-bottom, 0px));box-sizing:border-box;background:#0d1117;border-top:1px solid rgba(255,255,255,.08);color:#b8c1cc;font-size:12px;line-height:1.4;text-align:center}.app-footer .ecmwf-face,.app-footer .map-notice,.app-footer p{position:static;margin:0;padding:0;background:none;border:0;color:inherit;font-size:12px;text-shadow:none;text-align:center;pointer-events:auto}.forecast-cams-credit{max-width:68ch;font-size:11px;line-height:1.35}.app-footer .forecast-unofficial button,.app-footer .map-notice-link,.app-footer a{display:inline-block;min-height:44px;margin:-14px -4px;padding:14px 4px;color:#6aa6ff;text-decoration:underline;text-underline-offset:2px;line-height:16px;vertical-align:baseline;box-sizing:border-box}.forecast-page .app-footer{width:100%}.forecast-page .app-footer .forecast-unofficial button,.forecast-page .app-footer a{min-height:24px;margin:0 2px;padding:0 2px}@media (max-width:720px){.forecast-page .app-footer{flex-shrink:1;min-height:0;max-height:18vh;overflow:auto}.forecast-hero-temp p{font-size:48px}.forecast-metrics{margin-top:8px;gap:4px 12px}.forecast-metrics li{min-height:22px}}.forecast-credit{margin:16px 0 0;font-size:11px;opacity:.8}.history-scrubber{bottom:var(--dock-gap)}.legend-strip{position:absolute;z-index:4;left:14px;right:14px;bottom:calc(var(--dock-gap) + var(--scrub-h));display:flex;align-items:center;gap:4px;min-height:52px;margin:0;padding:8px 12px 6px 18px;border:0;border-bottom:1px solid rgba(255,255,255,.08);border-radius:18px 18px 0 0;background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink);font:inherit;text-align:left}.legend-strip[hidden]{display:none}.legend-strip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.legend-strip[data-rows="2"]{min-height:92px}.legend-strip:not([hidden])~.history-scrubber{border-top-left-radius:0;border-top-right-radius:0}.legend-strip-rows{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:8px}.legend-strip-row{display:grid;grid-template-rows:auto 8px auto;grid-gap:3px;gap:3px}.legend-strip-row[data-kind=label]{grid-template-rows:auto auto;gap:2px}.legend-strip-label{color:#b8c1cc}.legend-strip-label,.legend-strip-plain{font-size:12px;font-weight:600;line-height:1.15}.legend-strip-plain{color:#dfe6f0}.legend-strip-ramp{display:flex;width:100%;height:8px;border-radius:2px;overflow:hidden}.legend-strip-ramp span{flex:1 1;min-width:0}.legend-strip-ticks{position:relative;height:14px;color:#dfe6f0;font-size:11px}.legend-strip-row[data-legend-shared] .legend-strip-ticks{height:16px;font-size:12px}.legend-strip-row[data-legend-shared] .legend-strip-ticks span{line-height:15px}.legend-strip-ticks.is-staggered{height:28px}.legend-strip-ticks span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap;line-height:13px}.legend-strip-ticks span[data-edge=start]{transform:none}.legend-strip-ticks span[data-edge=end]{transform:translateX(-100%)}.legend-strip-ticks.is-staggered span[data-stagger="1"]{top:14px}.map-root-wrap .maplibregl-ctrl-top-right{bottom:calc(var(--scrub-lift) + 8px)}@media (max-width:720px){.map-root-wrap[data-layers-open=true] .legend-strip{display:none}.map-root-wrap[data-layers-open=true] .history-scrubber{border-radius:18px}.app-footer .ecmwf-face,.app-footer .map-notice{max-width:360px}}@media (min-width:721px){.app-footer{flex-direction:row;flex-wrap:wrap;gap:0 6px;min-height:32px;padding:4px 16px}.app-footer .ecmwf-face:before{content:"· "}.history-scrubber,.legend-strip{left:50%;right:auto;width:min(520px,calc(100vw - 220px));transform:translateX(-50%)}.legend-strip-rows{gap:6px}.legend-strip-row{grid-template-columns:118px 1fr;grid-template-rows:8px auto;column-gap:12px;row-gap:3px;align-items:center}.legend-strip-row .legend-strip-label{grid-row:1/span 2}.legend-strip-row[data-kind=label]{grid-template-rows:auto}.legend-strip-row[data-kind=label] .legend-strip-label{grid-row:auto}}.layers-stack{z-index:8;bottom:var(--rail-bottom,calc(var(--scrub-lift) + 4px))}.map-root-wrap .maplibregl-ctrl-top-right{bottom:calc(var(--scrub-lift) + 4px + 44px + 12px)}.map-root-wrap .maplibregl-ctrl-bottom-right{right:14px;left:auto!important;bottom:calc(var(--scrub-lift) + 4px)!important;z-index:6;width:44px!important;height:44px!important;max-width:44px;margin:0}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){width:44px;height:44px;min-height:44px;margin:0!important;padding:0!important;border-radius:50%;background:var(--glass)!important;box-shadow:0 4px 18px rgba(0,0,0,.35);overflow:hidden}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button{width:44px!important;height:44px!important;left:0!important;top:0!important;right:auto!important;border-radius:50%;background-color:transparent!important;background-position:50%;background-repeat:no-repeat;filter:invert(1) brightness(1.6)}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show{position:absolute;right:0;bottom:0;top:auto;box-sizing:border-box;width:min(340px,calc(100vw - 100px));height:auto;max-height:min(420px,calc(100dvh - var(--scrub-lift) - 160px));margin:0!important;padding:8px 16px 52px 12px!important;overflow:auto;z-index:8}.map-root-wrap .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{width:44px!important;height:44px!important;top:auto!important;bottom:0!important;right:0!important;left:auto!important;border-radius:50%;background-color:transparent!important;background-position:50%;background-repeat:no-repeat;filter:invert(1) brightness(1.6)}@media (max-width:720px){.map-root-wrap .maplibregl-ctrl-top-right .maplibregl-ctrl-zoom-in,.map-root-wrap .maplibregl-ctrl-top-right .maplibregl-ctrl-zoom-out{display:none}}@media (min-width:721px){.map-topbar{right:68px}}.map-root-wrap .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,.map-root-wrap .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{filter:invert(1) brightness(1.2);background-color:transparent}@media (max-width:720px){.layers-panel{max-height:calc(100% - var(--scrub-lift) - 80px);overflow:auto}}.map-rail{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:12px;box-sizing:border-box;padding-right:14px;padding-bottom:var(--rail-bottom,calc(var(--scrub-lift) + 4px));pointer-events:none}.map-rail>*{pointer-events:auto;flex:0 0 auto}.map-rail-slot:empty,.map-root-wrap .maplibregl-ctrl-bottom-right:empty,.map-root-wrap .maplibregl-ctrl-top-right:empty{display:none}.map-rail .maplibregl-ctrl{margin:0!important;float:none;position:static;clear:none}.map-rail .maplibregl-ctrl-group,.map-rail .maplibregl-ctrl-group:not(:empty){display:flex;flex-direction:column;gap:12px;background:transparent;border:0;border-radius:0;box-shadow:none}.map-rail .maplibregl-ctrl-group button+button{border-top:0}.map-rail .maplibregl-ctrl-group button,.map-rail .products-toggle{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background-color:var(--glass);color:#dfe6f0;box-shadow:0 4px 18px rgba(0,0,0,.35)}.map-rail .products-toggle-ctrl{display:flex}.map-rail button.maplibregl-ctrl-geolocate{overflow:hidden}.map-rail button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{width:29px;height:29px;filter:invert(1) brightness(1.2)}.map-rail button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon,.map-rail button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon,.map-rail button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon,.map-rail button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{filter:none}.map-rail .maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,.map-rail .maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{filter:invert(1) brightness(1.2);background-color:transparent}.map-rail .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){position:static}.map-rail [data-rail-slot=info]{width:44px;height:44px}.map-rail .place-search{position:relative;top:auto;right:auto;bottom:auto;left:auto;transform:none;z-index:6;width:max-content;max-width:min(280px,calc(100vw - 28px))}@media (max-width:720px){.map-rail [data-rail-slot=zoom]{display:none}.map-rail .place-search[data-open=true]{width:min(280px,calc(100vw - 28px));flex-direction:row-reverse}}@media (min-width:721px){.map-rail .place-search{position:absolute;top:max(12px,env(safe-area-inset-top,0px));right:14px;left:auto;bottom:auto;transform:none}}.map-rail [data-rail-slot=info]{position:relative}.map-rail:has(.maplibregl-compact-show),.map-rail:has(.place-search[data-open=true]){z-index:9}@media (max-width:720px) and (min-height:561px){.map-rail .place-search-list{top:auto;bottom:calc(100% + 4px);max-height:min(280px,46vh,max(132px,calc(100dvh - var(--rail-bottom, 200px) - 300px)))}}@media (max-width:380px){.nav-seg{gap:0;padding:0 12px;font-size:0}}@media (max-width:280px){.map-topbar{left:8px;right:8px}.brand-lockup{display:none}.nav-seg{min-width:36px;padding:0 9px}.lang-switch button{width:36px;min-width:36px}.history-scrubber{grid-template-columns:32px minmax(0,1fr) 32px;column-gap:2px;padding-left:4px;padding-right:4px}.history-scrubber,.legend-strip{left:6px;right:6px}.scrub-now,.scrub-play{width:32px;height:32px}.scrub-caption{font-size:13px;text-overflow:clip}.scrub-caption.is-stale{white-space:normal;overflow:visible;font-size:11px;line-height:1.1;overflow-wrap:anywhere}.scrub-caption.is-live:after,html[lang=th] .scrub-caption.is-live:after{content:"";display:inline-block;width:8px;height:8px;margin-left:5px;padding:0;border-radius:50%;vertical-align:1px}}.disclaimer-dialog[open]{display:flex;flex-direction:column}.disclaimer-dialog #disclaimer-body{min-height:0;overflow:auto}.disclaimer-dialog .disclaimer-ok{flex:none}@media (max-height:480px),(max-width:280px){.disclaimer-dialog{max-height:calc(100dvh - 24px);padding:12px}.disclaimer-head{flex-wrap:wrap;gap:6px}}