/* Počasí Domašov — desktop theme D03. All visual overrides are opt-in. */
html[data-pd-theme="dark"] {color-scheme:dark;--pd-bg:#0d151e;--pd-shell:#172430;--pd-card:#344857;--pd-raised:#405668;--pd-border:#536b7d;--pd-ink:#edf3f7;--pd-muted:#a8bac7;--pd-teal:#397e83;--pd-link:#8cc9e8;background:var(--pd-bg)}
html[data-pd-theme="dark"] body {color:var(--pd-ink)}
html[data-pd-theme="dark"][data-pd-top] body {background:var(--pd-bg)!important;}
html[data-pd-theme="dark"] #telo {background:var(--pd-shell)!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] #hlavicka {background:linear-gradient(115deg,#20394a,#294b59)!important;border-color:#3a5968!important;box-shadow:none!important;}
html[data-pd-theme="dark"] #hlavicka .header-main-title,html[data-pd-theme="dark"] #hlavicka .header-place,html[data-pd-theme="dark"] #hlavicka .header-model {color:var(--pd-ink)!important;text-shadow:none!important;}
html[data-pd-theme="dark"] .header-station img {filter:brightness(0) saturate(100%) invert(78%) sepia(11%) saturate(562%) hue-rotate(163deg) brightness(92%) contrast(89%);}
html[data-pd-theme="dark"] #telo>.pd-main-nav {background:#243643!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav>a,html[data-pd-theme="dark"] #telo>.pd-main-nav>details {background:#30434f!important;color:var(--pd-ink)!important;border-color:#455a68!important;box-shadow:none!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav>a:hover,html[data-pd-theme="dark"] #telo>.pd-main-nav>details[open],html[data-pd-theme="dark"] #telo>.pd-main-nav>details:hover {background:#3a505e!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav>.pd-nav-active,html[data-pd-theme="dark"] #telo>.pd-main-nav .pd-nav-dropdown a.pd-nav-active {background:var(--pd-teal)!important;color:#fff!important;border-color:#569a9f!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav .pd-nav-dropdown {background:#263845!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav .pd-nav-dropdown a {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] #telo>.pd-main-nav .pd-nav-dropdown a:hover {background:#3a505e!important;}
html[data-pd-theme="dark"] a:focus-visible,html[data-pd-theme="dark"] button:focus-visible,html[data-pd-theme="dark"] select:focus-visible {outline-color:#80ced0!important;}
html[data-pd-theme="dark"] #meridla .g-card {background:var(--pd-card)!important;border-color:var(--pd-border);border-top-color:var(--card-accent,#9aa6b2);}
html[data-pd-theme="dark"] #meridla .g-readout {background:var(--pd-raised)!important;}
html[data-pd-theme="dark"] .jqstooltip {background:#263845!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .jqsfield {color:var(--pd-ink)!important;}
/* D01 detail pass: preserve the hierarchy of nested panels, readable values and semantic accents. */
html[data-pd-theme="dark"]:not([data-pd-top]) {background:transparent;}
html[data-pd-theme="dark"] #nadpis {background:#293e4d!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] #paticka {background:#253642!important;border-color:var(--pd-border)!important;color:var(--pd-muted)!important;}
html[data-pd-theme="dark"] .home-section-title,html[data-pd-theme="dark"] .dnow-title,html[data-pd-theme="dark"] .v6-station-day,html[data-pd-theme="dark"] .mm-agreement-number {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] #meridla {--ink:#edf3f7!important;--muted:#a8bac7!important;--track:#3d5261!important;--line:#455b6a!important;--surface:#344857!important;--readout:#405668!important;}
html[data-pd-theme="dark"] #meridla .g-card h2,html[data-pd-theme="dark"] #meridla .g-readout b {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] #meridla .g-dial .needle {stroke:#e4edf3!important;}
html[data-pd-theme="dark"] #meridla .g-dial .pivot {fill:#e4edf3!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-card {box-shadow:0 2px 6px #0005!important;}
html[data-pd-theme="dark"] .home-weather-card-head {background:var(--home-accent,#8ea7b8)!important;}
html[data-pd-theme="dark"] .dnow-icons img,html[data-pd-theme="dark"] .air-quality-symbol img {filter:brightness(0) invert(.92)!important;}


html[data-pd-theme="dark"] .air-quality-symbol {background:#294a42!important;}
html[data-pd-theme="dark"] .almanach .day.selected,html[data-pd-theme="dark"] .almanach .day.selected:hover,html[data-pd-theme="dark"] .almanach .leapbtn.selected {background:var(--pd-teal)!important;color:#fff!important;}
html[data-pd-theme="dark"] .almanach .day.event::after {background:#e2af6c!important;}
html[data-pd-theme="dark"] .almanach .day.selected::after {background:#fff!important;}
html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab.is-active,html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab.is-active:hover,html[data-pd-theme="dark"] .ver-metric-tab.is-active,html[data-pd-theme="dark"] .ver-observation-filter.is-active,html[data-pd-theme="dark"] .mm-model-option.is-selected,html[data-pd-theme="dark"] .modern-switch-link.record-tab-active,html[data-pd-theme="dark"] .modern-switch-link.bio-tab-active,html[data-pd-theme="dark"] .records-graph-selector button.is-active {background:var(--pd-teal)!important;color:#fff!important;border-color:#569a9f!important;}
html[data-pd-theme="dark"] .mm-progress {background:#3a4b58!important;}
html[data-pd-theme="dark"] .mm-progress i {background:#72b1d1!important;}
html[data-pd-theme="dark"] .mm-progress i.good {background:#7bc595!important;}
html[data-pd-theme="dark"] .mm-progress i.mid {background:#e2b769!important;}
html[data-pd-theme="dark"] .mm-progress i.low {background:#df9085!important;}
html[data-pd-theme="dark"] .astro-home-event-symbol svg {fill:#e4ba80!important;}
html[data-pd-theme="dark"] #bio-main .bio-level-label {color:#14212a!important;}
html[data-pd-theme="dark"] a.modern-switch-link[data-pd-selected] {background:var(--pd-teal)!important;color:#fff!important;border-color:#569a9f!important;}

/* D02: contrast ladder, original weather color coding and monochrome footer marks. */
html[data-pd-theme="dark"] :is(.home-section,.info-box,.forecast-compare,.forecast-info-panel) {background:#263746!important;box-shadow:0 3px 10px #0003!important;}
html[data-pd-theme="dark"] :is(.home-mini-graph-card,.home-current-condition,.home-forecast-strip,.astro-modern-card,.pd-detail-content,.pd-detail-highlight,.forecast-card,.sidebar-mm-day) {box-shadow:0 2px 7px #0003!important;}
html[data-pd-theme="dark"] .pd-detail-content {background:var(--pd-card)!important;}
html[data-pd-theme="dark"] .pd-detail-name {background:#405668!important;}
html[data-pd-theme="dark"] .pd-detail-highlight {background:color-mix(in srgb,var(--pd-accent,#91a8ba) 23%,#344857)!important;}
html[data-pd-theme="dark"] .home-weather-card-head img {filter:none!important;}

/* D03: preserve metric hue in dark surfaces; no bright pastel cards. */
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-temp, html[data-pd-theme="dark"] .home-weather-card.home-weather-temp .home-weather-card-body {background:var(--pd-temp)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-hum, html[data-pd-theme="dark"] .home-weather-card.home-weather-hum .home-weather-card-body {background:var(--pd-hum)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-solar, html[data-pd-theme="dark"] .home-weather-card.home-weather-solar .home-weather-card-body {background:var(--pd-solar)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-uv, html[data-pd-theme="dark"] .home-weather-card.home-weather-uv .home-weather-card-body {background:var(--pd-uv)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-rain, html[data-pd-theme="dark"] .home-weather-card.home-weather-rain .home-weather-card-body {background:var(--pd-rain)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-wind, html[data-pd-theme="dark"] .home-weather-card.home-weather-wind .home-weather-card-body {background:var(--pd-cold)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-pressure, html[data-pd-theme="dark"] .home-weather-card.home-weather-pressure .home-weather-card-body {background:var(--pd-pressure)!important;}
html[data-pd-theme="dark"] .home-weather-cards>a.home-weather-sky, html[data-pd-theme="dark"] .home-weather-card.home-weather-sky .home-weather-card-body {background:var(--pd-sky)!important;}
html[data-pd-theme="dark"] .home-weather-card :is(.home-weather-card-title,.home-weather-card-value,.v4-sky-state) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .home-weather-card-head {background:var(--home-accent,#8ea7b8)!important;}
html[data-pd-theme="dark"] .home-weather-card-head img {filter:none!important;}
html[data-pd-theme="dark"] .home-weather-card-head svg {color:#172430!important;}
html[data-pd-theme="dark"] .home-mini-graph-card {background:color-mix(in srgb,var(--mini-accent,#91a8ba) 15%,#344857)!important;}
html[data-pd-theme="dark"] .pd-detail-highlight {background:color-mix(in srgb,var(--pd-accent,#91a8ba) 19%,#344857)!important;}
html[data-pd-theme="dark"] :is(.home-footer-brand,.site-footer-brand) img[src$="/logo.png"] {content:url('/images/logo-dark-d03.png');filter:none!important;}
html[data-pd-theme="dark"] .home-footer-brand svg {fill:#e7eff5!important;color:#e7eff5!important;}
html[data-pd-theme="dark"] .astro-horizon-icon {filter:brightness(0) invert(.9)!important;}
html[data-pd-theme="dark"] .astro-sun-track {stroke:#8ba3b5!important;}
html[data-pd-theme="dark"] .astro-sun-panel[data-panel-mode="night"] .astro-sun-progress {stroke:#8bbdf4!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-aktual {background:var(--pd-orange)!important;color:var(--pd-ink)!important;border-top-color:#e58919!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-max {background:var(--pd-orange)!important;color:var(--pd-ink)!important;border-top-color:#ed9835!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-uv {background:var(--pd-uv)!important;color:var(--pd-ink)!important;border-top-color:#8854c8!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-energie {background:var(--pd-rain)!important;color:var(--pd-ink)!important;border-top-color:#3181bc!important;}
html[data-pd-theme="dark"] .svit-karty .svit-karta {background:var(--pd-solar)!important;color:var(--pd-ink)!important;border-top-color:#e6bd79!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-hodnota {background:var(--pd-uv)!important;color:var(--pd-ink)!important;border-top-color:#8954c5!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-maximum {background:var(--pd-uv)!important;color:var(--pd-ink)!important;border-top-color:#8954c5!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-zero {background:#3d564d!important;color:var(--pd-ink)!important;border-top-color:#39a52f!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-low {background:#3d564d!important;color:var(--pd-ink)!important;border-top-color:#39a52f!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-mod {background:#59553d!important;color:var(--pd-ink)!important;border-top-color:#e1c500!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-high {background:var(--pd-orange)!important;color:var(--pd-ink)!important;border-top-color:#f18b00!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-very {background:var(--pd-temp)!important;color:var(--pd-ink)!important;border-top-color:#df2525!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-ext {background:#53435b!important;color:var(--pd-ink)!important;border-top-color:#b716a5!important;}
html[data-pd-theme="dark"] .uv-prehled-karta.uv-prehled-unknown {background:var(--pd-sky)!important;color:var(--pd-ink)!important;border-top-color:#858a91!important;}
html[data-pd-theme="dark"] .history-today-card.history-card-max {background:var(--pd-temp)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .history-today-card.history-card-min {background:var(--pd-cold)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .history-today-card.history-card-rain {background:var(--pd-rain)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .history-today-card.history-card-average {background:var(--pd-solar)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .history-today-card.history-card-years {background:var(--pd-uv)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .et-box.puda-box {background:var(--pd-soil)!important;color:var(--pd-ink)!important;border-top-color:#C8B18A!important;}
html[data-pd-theme="dark"] :is(.sol-test-grid,.svit-karty) :is(.svit-karta-popis,.svit-karta-hodnota,.sol-karta-cas,.sol-energie-doplnek),
html[data-pd-theme="dark"] .uv-prehled-karta :is(.uv-prehled-nadpis,.uv-prehled-cislo,.uv-prehled-doplnek,.uv-prehled-rozsah),
html[data-pd-theme="dark"] .puda-box :is(.et-box-title,.et-box-value:not(.puda-trend-value),.puda-range-label,.puda-range-value:not([style])) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-uv .svit-karta-hodnota {color:#dfc8ff!important;}
html[data-pd-theme="dark"] .sol-test-grid .sol-karta-energie .svit-karta-hodnota {color:#b5e1ff!important;}
html[data-pd-theme="dark"] :is(.uv-prehled-zero,.uv-prehled-low) .uv-prehled-hodnoceni {color:#b5e7ad!important;}
html[data-pd-theme="dark"] .uv-prehled-mod .uv-prehled-hodnoceni {color:#f5e69a!important;}
html[data-pd-theme="dark"] .uv-prehled-high .uv-prehled-hodnoceni {color:#ffd2a1!important;}
html[data-pd-theme="dark"] .uv-prehled-very .uv-prehled-hodnoceni {color:#ffb5b5!important;}
html[data-pd-theme="dark"] .uv-prehled-ext .uv-prehled-hodnoceni {color:#f5b5ef!important;}
html[data-pd-theme="dark"] .uv-prehled-unknown .uv-prehled-hodnoceni {color:var(--pd-muted)!important;}
html[data-pd-theme="dark"] .puda-state-meter,html[data-pd-theme="dark"] .puda-summary-card,html[data-pd-theme="dark"] .uv-prehled-vysvetleni {background:var(--pd-card)!important;color:var(--pd-ink)!important;box-shadow:0 2px 7px #0003!important;}
html[data-pd-theme="dark"] .puda-state-marker-text {background:#263746!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .puda-state-marker-arrow {border-top-color:#c5d5df!important;}
html[data-pd-theme="dark"] .puda-state-dry {background:#d9534f!important;}
html[data-pd-theme="dark"] .puda-state-low {background:#f0ad4e!important;}
html[data-pd-theme="dark"] .puda-state-optimal {background:#5cb85c!important;}
html[data-pd-theme="dark"] .puda-state-high {background:#5bc0de!important;}
html[data-pd-theme="dark"] .puda-state-saturated {background:#337ab7!important;}
html[data-pd-theme="dark"] .mm-hero-stat :is(span,strong) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-temp-l1 {background:#4c424b!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-temp-l2 {background:#51434b!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-temp-l3 {background:#55434a!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-temp-l4 {background:#5a434a!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-rain-l0 {background:#354b59!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-rain-l1 {background:var(--pd-rain)!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-rain-l2 {background:#3a586e!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-rain-l3 {background:#3e6076!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-wind-l0 {background:#3e4c59!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-wind-l1 {background:var(--pd-cold)!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-wind-l2 {background:#445469!important;}
html[data-pd-theme="dark"] .mm-hero-stat.mm-wind-l3 {background:#495b70!important;}

/* D04: single semantic palette shared by all desktop pages. */
html[data-pd-theme="dark"] {--pd-temp:#57434a;--pd-cold:#414f61;--pd-hum:#385459;--pd-solar:#56544b;--pd-uv:#4c465e;--pd-rain:#385365;--pd-wind:#414f61;--pd-pressure:#385358;--pd-sky:#46535d;--pd-et:#40564b;--pd-soil:#544e44;--pd-leaf:#485647;--pd-orange:#584b3e;}
html[data-pd-theme="dark"] img[src*="toplist.cz/count.asp"][width="1"][height="1"] {opacity:0!important;pointer-events:none!important;}
html[data-pd-theme="dark"] :is(.site-footer-brand,.home-footer-brand) img[src$="/logo.png"] {content:url('/images/logo-dark-d03.png')!important;filter:none!important;}
html[data-pd-theme="dark"] :is(.home-weather-temp,.pd-detail-row#detail-teplota .pd-detail-highlight,.dy-card-temp-max,.tm-card-temp-max,.ty-card-temp-max,.records-card-temp-max,.card-temp-hot,.history-card-max,#meridla .g-card[data-id="temp"]){background:var(--pd-temp)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.dy-card-temp-min,.tm-card-temp-min,.ty-card-temp-min,.records-card-temp-min,.card-temp-cold,.history-card-min){background:var(--pd-cold)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-hum,.pd-detail-row#detail-vlhkost .pd-detail-highlight,.tm-card-hum,.ty-card-hum,.records-card-humidity,.card-wetdays,#meridla .g-card[data-id="dew"],#meridla .g-card[data-id="hum"]){background:var(--pd-hum)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-rain,.pd-detail-row#detail-srazky .pd-detail-highlight,.pd-detail-row[style*="--pd-accent:#87CEEB"] .pd-detail-highlight,.dy-card-rain,.tm-card-rain,.ty-card-rain,.records-card-rain,.card-rain,.history-card-rain,#meridla .g-card[data-id="rfall"],#meridla .g-card[data-id="rrate"],.sol-test-grid .sol-karta-energie){background:var(--pd-rain)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-wind,.pd-detail-row#detail-vitr .pd-detail-highlight,.dy-card-wind,.tm-card-wind,.ty-card-wind,.records-card-wind,#meridla .g-card[data-id="wlatest"],#meridla .g-card[data-id="bearing"],#meridla .g-card[data-id="windrun"]){background:var(--pd-wind)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-pressure,.pd-detail-row#detail-tlak .pd-detail-highlight,.dy-card-pressure,.tm-card-pressure,.ty-card-pressure,.records-card-pressure,#meridla .g-card[data-id="press"]){background:var(--pd-pressure)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-solar,.pd-detail-row[style*="--pd-accent:#FFE4B5"] .pd-detail-highlight,.svit-karty .svit-karta,.sol-test-grid .sol-karta-aktual,.sol-test-grid .sol-karta-max,#meridla .g-card[data-id="SolarRad"]){background:var(--pd-solar)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-uv,.pd-detail-row[style*="--pd-accent:#B19CD9"] .pd-detail-highlight,.uv-prehled-karta.uv-prehled-hodnota,.uv-prehled-karta.uv-prehled-maximum,.sol-test-grid .sol-karta-uv,#meridla .g-card[data-id="UV"],.storm-day-card){background:var(--pd-uv)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.home-weather-sky,.pd-detail-row[style*="--pd-accent:#AEBEC8"] .pd-detail-highlight,#meridla .g-card[data-id="cloudbase"]){background:var(--pd-sky)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.pd-detail-row[style*="--pd-accent:#91C887"] .pd-detail-highlight,.et-box:not(.puda-box):not(.list-box)){background:var(--pd-et)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.pd-detail-row[style*="--pd-accent:#C8B18A"] .pd-detail-highlight,.et-box.puda-box){background:var(--pd-soil)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.pd-detail-row[style*="--pd-accent:#B6C19E"] .pd-detail-highlight,.et-box.list-box){background:var(--pd-leaf)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.card-temp-avg){background:var(--pd-orange)!important;color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .dy-card-temp-max{border-top-color:#D7191C!important;}
html[data-pd-theme="dark"] .dy-card-temp-min{border-top-color:#29489A!important;}
html[data-pd-theme="dark"] .dy-card-rain{border-top-color:#287CB7!important;}
html[data-pd-theme="dark"] .dy-card-wind{border-top-color:#5B7FA3!important;}
html[data-pd-theme="dark"] .dy-card-pressure{border-top-color:#397F82!important;}
html[data-pd-theme="dark"] .tm-card-temp-max{border-top-color:#D7191C!important;}
html[data-pd-theme="dark"] .tm-card-temp-min{border-top-color:#294A9B!important;}
html[data-pd-theme="dark"] .tm-card-rain{border-top-color:#287CB7!important;}
html[data-pd-theme="dark"] .tm-card-hum{border-top-color:#3F8F8C!important;}
html[data-pd-theme="dark"] .tm-card-wind{border-top-color:#5B7FA3!important;}
html[data-pd-theme="dark"] .tm-card-pressure{border-top-color:#397F82!important;}
html[data-pd-theme="dark"] .ty-card-temp-max{border-top-color:#D7191C!important;}
html[data-pd-theme="dark"] .ty-card-temp-min{border-top-color:#29489A!important;}
html[data-pd-theme="dark"] .ty-card-rain{border-top-color:#287CB7!important;}
html[data-pd-theme="dark"] .ty-card-hum{border-top-color:#3F8F8C!important;}
html[data-pd-theme="dark"] .ty-card-wind{border-top-color:#5B7FA3!important;}
html[data-pd-theme="dark"] .ty-card-pressure{border-top-color:#397F82!important;}
html[data-pd-theme="dark"] .records-card-temp-max{border-top-color:#D7191C!important;}
html[data-pd-theme="dark"] .records-card-temp-min{border-top-color:#29489A!important;}
html[data-pd-theme="dark"] .records-card-rain{border-top-color:#287CB7!important;}
html[data-pd-theme="dark"] .records-card-humidity{border-top-color:#3F8F8C!important;}
html[data-pd-theme="dark"] .records-card-wind{border-top-color:#5B7FA3!important;}
html[data-pd-theme="dark"] .records-card-pressure{border-top-color:#397F82!important;}
html[data-pd-theme="dark"] .card-temp-avg{border-top-color:#D97A22!important;}
html[data-pd-theme="dark"] .card-temp-hot{border-top-color:#D7191C!important;}
html[data-pd-theme="dark"] .card-temp-cold{border-top-color:#29489A!important;}
html[data-pd-theme="dark"] .card-rain{border-top-color:#287CB7!important;}
html[data-pd-theme="dark"] .card-wetdays{border-top-color:#3F8F8C!important;}
html[data-pd-theme="dark"] :is(.dy-card-title,.tm-card-title,.ty-card-title,.records-overview-card-title,.card-title,.et-box-title,.et-box-value,.list-card-caption,.tm-card-detail,.ty-card-detail,.records-overview-card-date,.card-date) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.tm-card-value,.ty-card-value,.records-overview-card-value,.card-value) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] :is(.dy-info-box,.tm-info-box,.ty-info-box,.info-page-box,.record-data-panel,.records-graph-panel,.graph-card,.storm-chart-panel,.storm-direction-panel,.list-dew-panel,.list-event-panel,.bio-chart-card,.bio-calendar-card,.kamera-panel,.kamera-unified-panel,.syn-local-card,.syn-map-card,.astro-events-card) {background:var(--pd-card)!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] :is(.radar-box.radar-card-neutral,.radar-model-card,.forecast-card,.ver-summary-card,.astro-mini-card,.station-photo-card,.station-extra-card) {background:var(--pd-card)!important;border-color:var(--pd-border);}
html[data-pd-theme="dark"] .radar-box.radar-card-ok,html[data-pd-theme="dark"] .radar-box.radar-card-info {background:var(--pd-rain)!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-warn {background:var(--pd-solar)!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-alert {background:var(--pd-temp)!important;}


/* D05: targeted contrast corrections; no layout or light-theme changes. */
html[data-pd-theme="dark"] {--pd-plot:#283c4b;--pd-plot-grid:#506777;--pd-chart-cold:#83b8ff;--pd-chart-warm:#ff9e9a;--pd-storm:#8f74b4;--pd-storm-inner:#5a4776;}
/* SVG meteogram: remove light outline inherited from light theme. */
html[data-pd-theme="dark"] .v3-meteogram text {fill:#e9f2f8!important;}
html[data-pd-theme="dark"] .v3-meteogram text[paint-order="stroke fill"] {stroke:none!important;stroke-width:0!important;fill:#dcebf5!important;paint-order:normal!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-temp-label {fill:#fff!important;stroke:#203444!important;stroke-width:2.4px!important;stroke-linejoin:round;paint-order:stroke fill!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-temp-line {stroke:var(--pd-chart-warm)!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-temp-point {fill:var(--pd-chart-warm)!important;stroke:#233746;stroke-width:.7px;}
html[data-pd-theme="dark"] .v3-meteogram .v7-wind-curve {stroke:#d2c3ed!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-wind-point {fill:#d2c3ed!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-wind-arrow {fill:#f1f6fa!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-wind-calm {stroke:#f1f6fa!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-plot-base,html[data-pd-theme="dark"] .v3-meteogram .v7-day-band {fill:#344958!important;}
html[data-pd-theme="dark"] .v3-meteogram .v7-night-band {fill:#1e303e!important;fill-opacity:.88!important;}
html[data-pd-theme="dark"] .v3-meteogram .v7-daynight-bands>rect:not([class]) {fill:#2c4253!important;fill-opacity:.55!important;}
html[data-pd-theme="dark"] .v3-meteogram #v7-cloud-fill stop:nth-child(1) {stop-color:#64859a!important;}
html[data-pd-theme="dark"] .v3-meteogram #v7-cloud-fill stop:nth-child(2) {stop-color:#536e82!important;}
html[data-pd-theme="dark"] .v3-meteogram #v7-cloud-fill stop:nth-child(3) {stop-color:#75818a!important;}
html[data-pd-theme="dark"] .v3-meteogram line:not(.v7-chart-cursor line) {stroke:#677f90!important;}
html[data-pd-theme="dark"] .v3-meteogram .v7-plot-frame {stroke:#718899!important;}
html[data-pd-theme="dark"] .sidebar-mm-wind-arrow svg path {fill:#f5f8fb!important;}
/* NOW and AQI separation. */
html[data-pd-theme="dark"] .air-quality-panel .air-quality-metric {border-left:1px solid #61798b!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-outfit {background:#334b43!important;border-top-color:#527064!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons {background:#405b51!important;border-color:#68877a!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons.outfit-temp-freezing {background:#3d566d!important;border-color:#65829d!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons.outfit-temp-cool {background:#3e575f!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons.outfit-temp-mild {background:#465b43!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons.outfit-temp-warm {background:#63573e!important;}
html[data-pd-theme="dark"] .dnow-panel .dnow-icons.outfit-temp-hot {background:#68494a!important;}
/* CHMU warnings retain the actual original light-mode severity palette. */
html[data-pd-theme="dark"] #obal .v7-chmu.r1 {--v7-alert-bg:#fff2b8!important;--v7-alert-ink:#8b6900!important;--pd-alert-icon:#f0dfa0;}
html[data-pd-theme="dark"] #obal .v7-chmu.r2 {--v7-alert-bg:#ffd9a6!important;--v7-alert-ink:#944600!important;--pd-alert-icon:#f0bf80;}
html[data-pd-theme="dark"] #obal .v7-chmu.r3 {--v7-alert-bg:#f4b7b4!important;--v7-alert-ink:#9b2020!important;--pd-alert-icon:#e99c98;}
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu>summary {background:var(--v7-alert-bg)!important;color:#242321!important;}
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu .pd-notice-icon {background:var(--pd-alert-icon)!important;color:#242321!important;}
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu :is(.v7-chmu-heading,.v7-chmu-line,.v7-chmu-copy) {color:#242321!important;}
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu .pd-notice-button {background:#f4f4ee!important;color:#31465e!important;border-color:#998b6f!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-yellow {background:#fff2b8!important;--chmu-accent:#e6b800!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-orange {background:#ffd9a6!important;--chmu-accent:#e98118!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-red {background:#f4b7b4!important;--chmu-accent:#c92a2a!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card,html[data-pd-theme="dark"] #obal .chmu-alert-card :is(div,span,strong,p,a) {color:#242321!important;}
/* Radar: filter only OSM tiles, not meteorological data, labels or controls. */
html[data-pd-theme="dark"] #radar-map {background:#182631!important;}
html[data-pd-theme="dark"] #radar-map .leaflet-tile-pane {filter:invert(1) hue-rotate(180deg) saturate(.62) brightness(.84) contrast(.88)!important;}
/* Leaf wetness: separate diagnostic, event and plot surfaces. */
html[data-pd-theme="dark"] .list-dew-panel {background:#283e4a!important;box-shadow:0 3px 9px #0003!important;}
html[data-pd-theme="dark"] .list-dew-panel.list-event-panel {background:#344a3c!important;box-shadow:0 3px 9px #0003!important;}
html[data-pd-theme="dark"] .list-dew-panel :is(.list-dew-value,.list-episode-graph,.list-event-timeline,.list-event-item) {background:#405565!important;border:1px solid #5b7586!important;}
html[data-pd-theme="dark"] .list-event-panel :is(.list-event-timeline,.list-event-item) {background:#435a49!important;border-color:#627b65!important;}
html[data-pd-theme="dark"] .list-event-duration {border-left-color:#718875!important;border-right-color:#718875!important;}
html[data-pd-theme="dark"] .list-dew-current.list-dew-current-wet {background:#345b72!important;border-color:#5b8ba6!important;}
html[data-pd-theme="dark"] .list-dew-current.list-dew-current-dry {background:#405c43!important;border-color:#67866a!important;}
html[data-pd-theme="dark"] .list-dew-current.list-dew-current-unavailable {background:#3b4b55!important;border-color:#62737e!important;}
html[data-pd-theme="dark"] .list-dew-current :is(.list-dew-status,.list-dew-small-label,.list-dew-explanation) {color:#e6f0f6!important;}
html[data-pd-theme="dark"] .list-dew-current-wet .list-dew-status:before {background:#87c8ed!important;}
html[data-pd-theme="dark"] .list-episode-svg line {stroke:#617986!important;}
html[data-pd-theme="dark"] .list-episode-svg path {stroke:#b1d68e!important;}
html[data-pd-theme="dark"] .list-episode-svg circle {fill:#b1d68e!important;}
html[data-pd-theme="dark"] .list-episode-svg text {fill:#e2ecf1!important;}
/* Storm: keep a recognizable lavender hierarchy, not the over-saturated navy-purple. */
html[data-pd-theme="dark"] .storm-status {background:#71608d!important;color:#fff!important;box-shadow:none!important;}
html[data-pd-theme="dark"] .storm-status :is(.storm-status-card,.storm-status-meta-pill) {background:var(--pd-storm-inner)!important;border-color:#9b83b6!important;}
html[data-pd-theme="dark"] .storm-status-icon {background:#cbb6e3!important;border-color:#d9c4eb!important;}
html[data-pd-theme="dark"] .storm-status :is(.storm-status-title,.storm-status-text,.storm-status-card-label,.storm-status-card-value,.storm-status-card-sub,.storm-status-meta-pill) {color:#fff!important;}
html[data-pd-theme="dark"] .storm-status :is(.storm-status-card-icon,.storm-status-meta-pill) svg [stroke="#6431A7"] {stroke:#e5ccff!important;}
html[data-pd-theme="dark"] .storm-day-card {background:#554762!important;border-top-color:#c5a5e5!important;}
/* Astronomy: preserve a bright moon disk and distinguish night trajectory. */
html[data-pd-theme="dark"] :is(.astro-sun-track,.astro-live-track) {stroke:#99adbd!important;}
html[data-pd-theme="dark"] :is(.astro-sun-panel,.astro-live-pane)[data-panel-mode="night"] :is(.astro-sun-track,.astro-live-track) {stroke:#9cb9de!important;}
html[data-pd-theme="dark"] :is(.astro-sun-panel,.astro-live-pane)[data-panel-mode="night"] :is(.astro-sun-progress,.astro-live-progress) {stroke:#c0ddff!important;}
html[data-pd-theme="dark"] :is(.astro-sun-panel,.astro-live-pane)[data-panel-mode="day"] :is(.astro-sun-progress,.astro-live-progress) {stroke:#ffd35a!important;}
html[data-pd-theme="dark"] :is(.astro-sun-position-dot,.astro-live-position-dot).is-moon {background:linear-gradient(90deg,#fbfcfe 0%,#eef1f5 26%,#d9dfe7 48%,#b9c2ce 72%,#8d97a6 100%)!important;border-color:#eef4fc!important;}
html[data-pd-theme="dark"] :is(.astro-horizon-icon,.astro-live-horizon-icon) {filter:brightness(0) invert(.9)!important;}
html[data-pd-theme="dark"] .astro-events-card {background:#263746!important;}
html[data-pd-theme="dark"] .astro-events-card :is(.astro-event-item,.astro-events-empty) {background:#384e5e!important;box-shadow:none!important;}
html[data-pd-theme="dark"] .astro-event-content a {color:#a6d7f0!important;}
/* D05: plot surfaces are darker than the surrounding cards. */
html[data-pd-theme="dark"] :is(.graph-card,.records-graph-panel,.storm-chart-panel,.storm-direction-panel) {background:var(--pd-plot)!important;}
html[data-pd-theme="dark"] .v3-meteogram text[paint-order="stroke fill"] {stroke:#263b49!important;stroke-width:1.6px!important;paint-order:stroke fill!important;}
html[data-pd-theme="dark"] .v3-meteogram text.pd-meteo-temp-label {stroke:#203444!important;stroke-width:2px!important;fill:#fff!important;}
html[data-pd-theme="dark"] .air-quality-panel .air-quality-meta {border-left:1px solid #61798b!important;}
html[data-pd-theme="dark"] .list-dew-panel .list-episode-graph {background:var(--pd-plot)!important;}
html[data-pd-theme="dark"] .list-dew-panel :is(.list-dew-value-label,.list-event-point-label,.list-event-item,.list-event-onset-values span) {color:#c3d5df!important;}
html[data-pd-theme="dark"] .list-dew-panel :is(.list-dew-value,.list-event-item,.list-event-timeline) strong {color:#edf3f7!important;}

/* D06: harmonize forecast clothing, radar/camera cards, records and NOAA report. */
html[data-pd-theme="dark"] .mm-outfit-advice.mm-outfit-banner {background:#334b43!important;box-shadow:0 3px 9px #0003!important;}
html[data-pd-theme="dark"] .mm-outfit-banner :is(.mm-outfit-heading,.mm-outfit-sentence,.mm-outfit-icon-plus) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .mm-outfit-banner :is(.mm-outfit-source,.mm-outfit-measure-time) {color:#b9cfc5!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip {background:#405b51!important;border-color:#68877a!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip.outfit-temp-freezing {background:#3d566d!important;border-color:#65829d!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip.outfit-temp-cool {background:#3e575f!important;border-color:#64818a!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip.outfit-temp-mild {background:#465b43!important;border-color:#6e8868!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip.outfit-temp-warm {background:#63573e!important;border-color:#928164!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-strip.outfit-temp-hot {background:#68494a!important;border-color:#956a6b!important;}
html[data-pd-theme="dark"] .mm-outfit-banner .mm-outfit-icon-item img {filter:brightness(0) invert(.92)!important;}
/* Radar: original blue status family, no green for a quiet radar. */
html[data-pd-theme="dark"] .radar-box.radar-card-neutral {background:var(--pd-card)!important;border-top-color:#aeb7c1!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-ok {background:color-mix(in srgb,var(--pd-rain) 55%,var(--pd-card))!important;border-top-color:#5a87b8!important;}
html[data-pd-theme="dark"] #card-current-box.radar-card-ok {background:color-mix(in srgb,var(--pd-rain) 35%,var(--pd-card))!important;border-top-color:#6691bd!important;}
html[data-pd-theme="dark"] #card-forecast-box.radar-card-ok {background:color-mix(in srgb,var(--pd-rain) 75%,var(--pd-card))!important;border-top-color:#527fac!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-info {background:var(--pd-rain)!important;border-top-color:#3f75b4!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-warn {background:var(--pd-orange)!important;border-top-color:#d89a2b!important;}
html[data-pd-theme="dark"] .radar-box.radar-card-alert {background:var(--pd-temp)!important;border-top-color:#c95b5b!important;}
html[data-pd-theme="dark"] .radar-box :is(.radar-box-title,.radar-box-value,.radar-box-text) {color:var(--pd-ink)!important;}
/* Camera: preserve cloud-cover gradient from the original live inline colors. */
html[data-pd-theme="dark"] .kamera-public-grid .kamera-analysis-cell {background:var(--pd-sky)!important;border-top-color:#89a9c5!important;}
html[data-pd-theme="dark"] .kamera-public-grid .kamera-metric-cloud {background:var(--pd-camera-tint,var(--pd-sky))!important;border-top-color:var(--pd-camera-edge,#6f97bb)!important;}
html[data-pd-theme="dark"] .kamera-public-grid .kamera-metric-sky {background:var(--pd-camera-tint,var(--pd-sky))!important;border-top-color:var(--pd-camera-edge,#89a9c5)!important;}
html[data-pd-theme="dark"] .kamera-public-grid .kamera-metric-type {background:var(--pd-sky)!important;border-top-color:#8aa0b6!important;}
html[data-pd-theme="dark"] .kamera-public-grid .kamera-metric-sun {background:var(--pd-solar)!important;border-top-color:#e4a11b!important;}
html[data-pd-theme="dark"] .kamera-public-grid :is(.kamera-analysis-label,.kamera-ai-percent) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] .kamera-public-grid :is(.kamera-type-note,.kamera-mini-caption) {color:#c3d1db!important;}
html[data-pd-theme="dark"] .kamera-public-grid .kamera-mini-empty {fill:#c3d1db!important;}
/* Record tables: replace the legacy pale inset divider with the common border. */
html[data-pd-theme="dark"] #Current_Weather_Records tr.section-head td {background:var(--pd-raised)!important;color:var(--pd-ink)!important;border-color:var(--pd-border)!important;border-bottom:0!important;box-shadow:inset 0 -1px 0 var(--pd-border)!important;}
html[data-pd-theme="dark"] #Current_Weather_Records tr:not(.section-head):not(.section-spacer) td {background:var(--pd-card)!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] #Current_Weather_Records tr:not(.section-head):not(.section-spacer):hover td {background:var(--pd-raised)!important;}
html[data-pd-theme="dark"] .month-card-outer .month-block {background:var(--pd-card)!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] .month-block .month-head,html[data-pd-theme="dark"] .month-table th {background:var(--pd-raised)!important;color:var(--pd-ink)!important;border-color:var(--pd-border)!important;box-shadow:none!important;}
html[data-pd-theme="dark"] .month-table td {background:var(--pd-card)!important;border-color:var(--pd-border)!important;}
html[data-pd-theme="dark"] .month-table td:first-child {background:#3a5060!important;}
/* NOAA: neutral outer frame remains; the document itself is a distinct inset surface. */
html[data-pd-theme="dark"] .noaa_rep_container .noaa-report-card {background:var(--pd-card)!important;}
html[data-pd-theme="dark"] .noaa_rep_container .noaa-report-card__inner {background:#223442!important;box-shadow:none!important;}
html[data-pd-theme="dark"] .noaa_rep_container .noaa-report-card__heading {background:#405668!important;color:var(--pd-ink)!important;border-bottom-color:#506777!important;box-shadow:none!important;}
html[data-pd-theme="dark"] .noaa_rep_container .noaa-report-card__body {background:transparent!important;scrollbar-color:#7893a6 #223442!important;}
html[data-pd-theme="dark"] .noaa_rep_container .noaa-report-card pre.noaa-report-raw {background:transparent!important;color:#dce8f0!important;}

/* D07: forecast methods and observation table only. Match the light layout. */
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare {background:transparent!important;border:0!important;box-shadow:none!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-item {border:0!important;border-radius:12px!important;box-shadow:0 4px 12px #0003!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-davis {background:var(--pd-uv)!important;border-top:4px solid #a69ab8!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-zambretti {background:var(--pd-et)!important;border-top:4px solid #4e9a62!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-aladin {background:var(--pd-orange)!important;border-top:4px solid #d79243!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-item :is(.forecast-compare-name,.forecast-compare-text) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement {background:var(--pd-card)!important;border:1px solid var(--pd-border)!important;box-shadow:0 3px 9px #0003!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement :is(.forecast-agreement-level,.forecast-agreement-percent,.forecast-agreement-text) {color:var(--pd-ink)!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement-bar {background:#223442!important;border:1px solid #718a9c!important;min-width:0;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement-bar-fill {background:#a5b8c5!important;}
html[data-pd-theme="dark"] #forecastViewMethods :is(.forecast-agreement-high,.forecast-agreement-dry) .forecast-agreement-bar-fill {background:#82c492!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement-wet .forecast-agreement-bar-fill {background:#83b9e2!important;}
html[data-pd-theme="dark"] #forecastViewMethods :is(.forecast-agreement-medium,.forecast-agreement-partial) .forecast-agreement-bar-fill {background:#e2bb6b!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement-low .forecast-agreement-bar-fill {background:#efa968!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-agreement-none .forecast-agreement-bar-fill {background:#e99292!important;}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-compare-note {color:var(--pd-muted)!important;}
/* Keep the same table language as the bias tables, while keeping the header sticky. */
html[data-pd-theme="dark"] #verObservationCard .ver-observation-scroll {box-sizing:border-box;border:1px solid var(--pd-border)!important;border-radius:10px!important;background:#2c4050!important;scrollbar-color:#7893a6 #263746;scrollbar-width:thin;}
html[data-pd-theme="dark"] #verObservationCard .ver-observation-scroll .ver-table-wrap {overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;}
html[data-pd-theme="dark"] #verObservationTable {margin:0!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:transparent!important;}
html[data-pd-theme="dark"] #verObservationTable :is(th,td) {color:var(--pd-ink)!important;border:0!important;border-right:1px solid #4b6273!important;border-bottom:1px solid #4b6273!important;}
html[data-pd-theme="dark"] #verObservationTable th {background:#2b475a!important;position:sticky;top:0;z-index:2;}
html[data-pd-theme="dark"] #verObservationTable td {background:var(--pd-card)!important;}
html[data-pd-theme="dark"] #verObservationTable tbody tr:nth-child(even) td {background:#3a4e5e!important;}
html[data-pd-theme="dark"] #verObservationTable :is(th,td):last-child {border-right:0!important;}
html[data-pd-theme="dark"] #verObservationTable tbody tr:last-child td {border-bottom:0!important;}
html[data-pd-theme="dark"] #verObservationCard .ver-observation-scroll::-webkit-scrollbar {width:9px;}
html[data-pd-theme="dark"] #verObservationCard .ver-observation-scroll::-webkit-scrollbar-track {background:#263746;}
html[data-pd-theme="dark"] #verObservationCard .ver-observation-scroll::-webkit-scrollbar-thumb {background:#7893a6;border:2px solid #263746;border-radius:8px;}

/* D08: History and statistics (Betel). Scope to its iframe; AJAX uses the same theme. */
html.pd-history-stat[data-pd-theme="dark"] #table_container {color:var(--pd-ink)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_name {color:var(--pd-ink)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li a {background:var(--pd-card)!important;color:var(--pd-ink)!important;border-color:var(--pd-border)!important;box-shadow:none!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li a:is(:hover,:focus-visible) {background:var(--pd-raised)!important;color:var(--pd-ink)!important;border-color:#7893a6!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li.picked a {background:var(--pd-teal)!important;color:#fff!important;border-color:#569a9f!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container .history-table-card {background:var(--pd-card)!important;box-shadow:0 3px 9px #0003!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container .history-table-card > table {background:#223442!important;border-color:var(--pd-border)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table :is(th,td) {color:var(--pd-ink)!important;border-color:#536b7d!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table th {background:#2b475a!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table tr > th:first-child {background:#405668!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container #seasonTable tr:first-child th {background:#2b475a!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table td {background:#2a3d4c!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table td.nondate {background:#202f3b!important;color:var(--pd-muted)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table :is(.datacell,.datacell2)[style*="--pd-history-tint"] {background:var(--pd-history-tint)!important;color:var(--pd-ink)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table tr:last-child td[colspan="12"] {background:#263746!important;color:var(--pd-muted)!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table .highlight {background:var(--pd-teal)!important;color:#fff!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container table .box {outline-color:#a6d7f0!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container .meterBar {background:#527d9d!important;}
html.pd-history-stat[data-pd-theme="dark"] #table_container select,html.pd-history-stat[data-pd-theme="dark"] #table_container .wx-choice-wrap > button.wx-choice-trigger {background:var(--pd-card)!important;color:var(--pd-ink)!important;border-color:var(--pd-border)!important;box-shadow:none!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-trigger:after {border-color:#b9d1e2!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu {background:#263746!important;border-color:var(--pd-border)!important;scrollbar-color:#7893a6 #263746;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu > button.wx-choice-item {color:var(--pd-ink)!important;background:transparent!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu > button.wx-choice-item:is(:hover,:focus-visible) {background:var(--pd-raised)!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu > button.wx-choice-item[aria-selected="true"] {background:var(--pd-teal)!important;color:#fff!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu::-webkit-scrollbar-track {background:#263746!important;}
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu::-webkit-scrollbar-thumb {background:#7893a6!important;border-color:#263746!important;}

/* D14: compact switch at the right edge of the shared navigation. */
html[data-pd-theme] .pd-main-nav.pd-theme-host {position:relative;padding-left:80px!important;padding-right:112px!important;}
/* The last navigation dropdown must stay right-aligned after the switch is appended. */
html[data-pd-theme] .pd-main-nav.pd-theme-host > details:last-of-type .pd-nav-dropdown {left:auto;right:0;}
@media (max-width: 1150px) {
 html[data-pd-theme] .pd-main-nav.pd-theme-host {padding-left:12px!important;padding-right:112px!important;}
}
html[data-pd-theme] #pd-theme-control {
 position:fixed; right:6px; bottom:12px; z-index:9000;
 display:flex; align-items:center; justify-content:flex-end; gap:0;
 width:33px; height:31px; padding:0; margin:0; box-sizing:border-box;
 border-radius:7px; border:1px solid rgba(0,0,0,.27); overflow:hidden;
 background:#f4f4ee; color:#111; box-shadow:0 1px 3px rgba(0,0,0,.14);
 transition:width .18s ease,background-color .15s,border-color .15s,box-shadow .15s;
}
html[data-pd-theme] #pd-theme-control.is-open {width:95px;}
html[data-pd-theme] #pd-theme-control .pd-theme-option {
 display:flex; align-items:center; justify-content:center; flex:0 0 31px;
 width:31px; height:29px; min-width:0; min-height:0; padding:0; margin:0;
 box-sizing:border-box; border:0; border-radius:0; background:transparent;
 color:inherit; cursor:pointer; box-shadow:none; appearance:none; -webkit-appearance:none;
 line-height:1; transform:none; transition:background-color .15s;
}
html[data-pd-theme] #pd-theme-control .pd-theme-other {visibility:hidden;pointer-events:none;}
html[data-pd-theme] #pd-theme-control.is-open .pd-theme-other {visibility:visible;pointer-events:auto;}
html[data-pd-theme] #pd-theme-control.is-open .pd-theme-other + .pd-theme-other {border-left:1px solid rgba(0,0,0,.27);}
html[data-pd-theme="dark"] #pd-theme-control.is-open .pd-theme-other + .pd-theme-other {border-color:#455a68;}
html[data-pd-theme] #pd-theme-control.is-open .pd-theme-current {border-left:1px solid rgba(0,0,0,.27);background:#e2e8eb;}
html[data-pd-theme] #pd-theme-control svg {display:block;width:17px;height:17px;flex:none;pointer-events:none;}
html[data-pd-theme] .pd-main-nav.pd-theme-host > #pd-theme-control {position:absolute;right:12px;top:50%;bottom:auto;transform:translateY(-50%);z-index:101;}

html[data-pd-theme="dark"] #pd-theme-control {background:#30434f;color:var(--pd-ink);border-color:#455a68;box-shadow:none;}
html[data-pd-theme="dark"] #pd-theme-control.is-open .pd-theme-current {background:#405668;border-color:#455a68;}
/* D18: match the navigation buttons; avoid sticky hover on touchscreens. */
@media (hover:hover) and (pointer:fine) {
 html[data-pd-theme="light"] #pd-theme-control:hover {background:#fff;border-color:#617a98;box-shadow:0 2px 8px rgba(32,70,115,.35);}
 html[data-pd-theme="light"] #pd-theme-control.is-open .pd-theme-option:hover {background:#dbe7ee;}
 html[data-pd-theme="dark"] #pd-theme-control:hover {background:#3a505e;}
 html[data-pd-theme="dark"] #pd-theme-control.is-open .pd-theme-option:hover {background:#405668;}
}
html[data-pd-theme] #pd-theme-control .pd-theme-option:focus-visible {outline:2px solid #629da6;outline-offset:-3px;}
@media (prefers-reduced-motion:reduce) {html[data-pd-theme] #pd-theme-control {transition:none;}}
@media print {html[data-pd-theme] #pd-theme-control {display:none!important;}}

/* D10: soften warning surfaces but keep distinct official severity hues. */
html[data-pd-theme="dark"] #obal .v7-chmu.r1 {--v7-alert-bg:#d2be78!important;--v7-alert-ink:#594500!important;--pd-alert-icon:#c2aa60;}
html[data-pd-theme="dark"] #obal .v7-chmu.r2 {--v7-alert-bg:#d3a075!important;--v7-alert-ink:#663005!important;--pd-alert-icon:#c28a5d;}
html[data-pd-theme="dark"] #obal .v7-chmu.r3 {--v7-alert-bg:#cc8986!important;--v7-alert-ink:#6e2020!important;--pd-alert-icon:#bb7573;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-yellow {background:#d2be78!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-orange {background:#d3a075!important;}
html[data-pd-theme="dark"] #obal .chmu-alert-card.chmu-alert-red {background:#cc8986!important;}
/* The same dark Detail button for warning, storm and record notices. */
html[data-pd-theme="dark"] #obal .pd-home-notice .pd-notice-button,
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu .pd-notice-button {background:#344857!important;color:#edf3f7!important;border-color:#637b8a!important;}
html[data-pd-theme="dark"] #obal .pd-home-notice .pd-notice-button:is(:hover,:focus-visible),
html[data-pd-theme="dark"] #obal .pd-home-notice .v7-chmu>summary:is(:hover,:focus-visible) .pd-notice-button {background:#486070!important;color:#fff!important;border-color:#8098a7!important;}

/* D17: neutral summary tiles on the home page; retain metric-colored top borders. */
html[data-pd-theme="dark"] #telo .pd-detail-row > .pd-detail-highlight {background:var(--pd-card)!important;border-top-color:var(--pd-accent)!important;color:var(--pd-ink)!important;}


/* D20: flat panel surfaces. Keep layout, semantic accents, table grids and control borders. */
html[data-pd-theme="dark"] :is(#obal,body) :is(
 .home-section,.home-current-condition,.home-forecast-strip,
 .pd-detail-content,.dnow-panel,.v6-station,.v3-mini,.sidebar-mm-widget,.sidebar-mm-head,
 .astro-modern-card,.astro-events-card,.astro-event-item,.astro-events-empty,.astro-mini-card,
 .astro-live-path-wrap,.astro-sky-wrap,.astro-twilight-card,
 .info-box,.dy-info-box,.tm-info-box,.ty-info-box,.info-page-box,
 .dy-block,.tm-graph-block,.tm-graph-frame,.ty-graph-block,.ty-graph-frame,
 .record-data-panel,.records-graph-panel,.graph-card,.storm-chart-panel,.storm-direction-panel,
 .list-dew-panel,.list-event-panel,.list-dew-value,.list-episode-graph,.list-event-timeline,.list-event-item,.list-dew-current,
 .bio-chart-card,.bio-calendar-card,.kamera-panel,.kamera-unified-panel,.kamera-cloud-full-panel,
 .syn-local-card,.syn-map-card,.radar-control-panel,.radar-map-frame,.radar-model-card,
 .station-photo-card,.station-extra-card,.forecast-info-panel,.forecast-agreement,
 .mm-panel,.mm-meteogram-card,.ver-card,.ver-summary-card,.ver-status-banner,
 .mm-outfit-banner,.puda-state-meter,.puda-summary-card,.uv-prehled-vysvetleni,
 .storm-status,.storm-status-card,.storm-empty-banner,
 .history-data-panel,.history-table-card,.noaa-data-panel,.noaa-report-card,.noaa-report-card__inner,
 .snow-data-panel,.snow-graph-frame,.month-card-outer
) {
 border-color:transparent!important;
 box-shadow:0 3px 9px rgba(0,0,0,.12)!important;
}
/* The notice wrapper and the original flat nested sections need no extra shadow. */
html[data-pd-theme="dark"] #obal :is(.pd-home-notice-frame,.sidebar-mm-widget,.sidebar-mm-head,.v3-mini,.dnow-panel) {
 box-shadow:none!important;
}
/* Metric cards: retain their colored top stripe, not a four-sided outline. */
html[data-pd-theme="dark"] :is(#obal,body) :is(
 .pd-detail-highlight,.home-weather-card,.home-mini-graph-card,.dy-compare-card,.tm-card,.ty-card,
 .records-overview-card,.forecast-card,.forecast-compare-item,.mm-hero-stat,.mm-card,
 .radar-box,.kamera-analysis-cell,.g-card,.et-box,.puda-box,.uv-prehled-karta,
 .sol-karta-aktual,.sol-karta-max,.sol-karta-uv,.sol-karta-energie,.svit-karta,
 .storm-day-card,.history-today-card,.puda-trend-card
) {
 border-left-color:transparent!important;
 border-right-color:transparent!important;
 border-bottom-color:transparent!important;
 box-shadow:0 3px 8px rgba(0,0,0,.14)!important;
}
/* Forecast day columns: no rectangular borders or shadows; only subtle original separators. */
html[data-pd-theme="dark"] :is(#obal,body) .sidebar-mm-days,
html[data-pd-theme="dark"] :is(#obal,body) .sidebar-mm-day {
 border-color:transparent!important;
 box-shadow:none!important;
}
html[data-pd-theme="dark"] :is(#obal,body) .sidebar-mm-day + .sidebar-mm-day {border-left-color:#465b69!important;}

/* D21: keep a visible, restrained outline on interactive controls only.
   Never reintroduce the panel/card outlines removed in D20. */
html[data-pd-theme="dark"] body :is(
 a.modern-switch-link, input.button, a.button, button.button,
 .home-forecast-tab, .forecast-view-tab, .ver-metric-tab, .ver-observation-filter,
 .mm-main-tab, .mm-model-tab, .mm-day-tab, .mm-model-option,
 .kamera-media-tab, .kamera-tab-link, .kamera-mask-button,
 .radar-view-btn, .radar-btn, .syn-forecast-tab,
 .wx-choice-trigger, .storm-year-choice-trigger, .et-year-choice-trigger,
 .list-year-choice-trigger, .puda-year-choice-trigger, .solar-year-choice-trigger,
 .noaa-period-submit, .storm-history-monthnav button, .puda-summary-form select,
 .puda-summary-form button, .almanach .todaybtn, .almanach .leapbtn
):where(:not(.pd-theme-option,.wx-choice-item)) {
 border:1px solid #617889!important;
}
html[data-pd-theme="dark"] body :is(
 a.modern-switch-link[data-pd-selected], a.modern-switch-link.record-tab-active,
 a.modern-switch-link.bio-tab-active, a.modern-switch-link.history-tab-active,
 a.modern-switch-link.noaa-tab-active, .home-forecast-tab.is-active,
 .forecast-view-tab.is-active, .ver-metric-tab.is-active, .ver-observation-filter.is-active,
 .mm-main-tab.is-active, .mm-model-tab.is-active, .mm-day-tab.is-active,
 .mm-model-option.is-selected, .kamera-media-tab.is-active,
 .radar-view-btn.active, .radar-btn.active, .syn-forecast-tab.syn-active
) {border-color:#79aeb3!important;}
/* Graph selectors retain their original metric-colored active borders. */
html[data-pd-theme="dark"] body :is(
 .graph-switch button, .filters button, .filter-buttons button,
 .tab-switch button, .table-switch button, .period-switch button,
 .switch-buttons button, .records-graph-selector button, .history-graph-controls button,
 button[data-metric], button[data-int]
):not(.active,.is-active,[aria-pressed="true"],[aria-selected="true"]) {
 border:1px solid #617889!important;
}
/* Keep the border visible on hover and keyboard focus; do not alter fills. */
html[data-pd-theme="dark"] body :is(
 a.modern-switch-link, input.button, a.button, button.button,
 .home-forecast-tab, .forecast-view-tab, .ver-metric-tab, .ver-observation-filter,
 .mm-main-tab, .mm-model-tab, .mm-day-tab, .mm-model-option,
 .kamera-media-tab, .kamera-tab-link, .kamera-mask-button,
 .radar-view-btn, .radar-btn, .syn-forecast-tab, .wx-choice-trigger,
 .storm-year-choice-trigger, .et-year-choice-trigger, .list-year-choice-trigger,
 .puda-year-choice-trigger, .solar-year-choice-trigger, .noaa-period-submit,
 .storm-history-monthnav button, .puda-summary-form select, .puda-summary-form button
):is(:hover,:focus-visible):not(:disabled,.pd-theme-option,.wx-choice-item) {
 border-color:#8ba3b5!important;
}

/* Forecast tabs also have an ID-qualified legacy style. */
html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab {border-color:#617889!important;}
html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab.is-active {border-color:#79aeb3!important;}
html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab:is(:hover,:focus-visible) {border-color:#8ba3b5!important;}

/* D22: remove the legacy white inset edge of the technical solar chart. */
html[data-pd-theme="dark"] :is(#obal,body) .astro-sun-chart {
 border-color:transparent!important;
 box-shadow:0 3px 9px rgba(0,0,0,.12)!important;
}

/* D23: signed temperature colors, meteorogram contrast and header decoration. */
html[data-pd-theme="dark"] :is(.v3-meteogram,.mm-meteo-svg) .pd-temp-warm-stop {stop-color:var(--pd-chart-warm)!important;}
html[data-pd-theme="dark"] :is(.v3-meteogram,.mm-meteo-svg) .pd-temp-cold-stop {stop-color:var(--pd-chart-cold)!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-temp-line {stroke:url(#pd-home-temp-sign)!important;}
html[data-pd-theme="dark"] .v3-meteogram .pd-meteo-temp-point.pd-temp-cold,
html[data-pd-theme="dark"] .v3-meteogram .v7-chart-cursor circle.pd-temp-cold {fill:var(--pd-chart-cold)!important;}
html[data-pd-theme="dark"] .v3-meteogram .v7-chart-cursor circle {fill:var(--pd-chart-warm)!important;}
html[data-pd-theme="dark"] .v3-legend .pd-meteo-temp-key:before,
html[data-pd-theme="dark"] .mm-meteo-legend .mm-meteo-temp {background:linear-gradient(90deg,var(--pd-chart-cold) 50%,var(--pd-chart-warm) 50%)!important;}
html[data-pd-theme="dark"] .v3-legend .pd-meteo-day-key:before {background:#344958!important;}
html[data-pd-theme="dark"] .v3-legend .pd-meteo-night-key:before {background:#1e303e!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-day-band {fill:#344958!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-night-band {fill:#1e303e!important;fill-opacity:1!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-lane {fill:#526778!important;fill-opacity:.12!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-cloud-band {fill:#a8bdca!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-temp-line {stroke:url(#pd-mm-temp-sign)!important;}
html[data-pd-theme="dark"] .mm-meteo-svg #mm-temp-fill-v2 stop {stop-color:#86a8c6!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-wind-line {stroke:#d2c3ed!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .pd-mm-wind-arrow {fill:#f1f6fa!important;}
html[data-pd-theme="dark"] .mm-meteo-svg #mmMeteoTempMarker {fill:var(--pd-chart-warm)!important;}
html[data-pd-theme="dark"] .mm-meteo-svg #mmMeteoTempMarker.pd-temp-cold {fill:var(--pd-chart-cold)!important;}
html[data-pd-theme="dark"] .mm-meteo-svg #mmMeteoWindMarker {fill:#d2c3ed!important;}
html[data-pd-theme="dark"] .mm-meteo-legend .mm-meteo-wind {background:#d2c3ed!important;}
html[data-pd-theme="dark"] .mm-meteo-legend .mm-meteo-cloud {background:#a8bdca!important;}
html[data-pd-theme="dark"] .mm-meteo-svg line {stroke:#718899!important;}
html[data-pd-theme="dark"] .mm-meteo-svg .mm-meteo-cursor line {stroke:#a8bdca!important;}
html[data-pd-theme="dark"] .mm-meteo-svg rect[fill="none"][rx="9"] {stroke:#718899!important;}
/* Retain the original circle sizes/positions across all four seasons. */
html[data-pd-theme="dark"] #hlavicka:before,
html[data-pd-theme="dark"] #hlavicka:is(.header-jaro,.header-leto,.header-podzim,.header-zima):before {
 background:radial-gradient(circle at 92% 16%,rgba(180,214,233,.22) 0,rgba(180,214,233,.22) 28px,transparent 29px),radial-gradient(circle at 10% 84%,rgba(180,214,233,.17) 0,rgba(180,214,233,.17) 22px,transparent 23px)!important;
}

/* D24: signed curves in both themes; numeric temperature labels are neutral. */
html:not([data-pd-theme="dark"]) {
 --pd-meteo-cold:#29489A;
 --pd-meteo-warm:#B56F62;
}
html:not([data-pd-theme="dark"]) :is(.v3-meteogram,.mm-meteo-svg) .pd-temp-cold-stop {stop-color:var(--pd-meteo-cold)!important;}
html:not([data-pd-theme="dark"]) :is(.v3-meteogram,.mm-meteo-svg) .pd-temp-warm-stop {stop-color:var(--pd-meteo-warm)!important;}
html:not([data-pd-theme="dark"]) .v3-meteogram .pd-meteo-temp-line {stroke:url(#pd-home-temp-sign)!important;}
html:not([data-pd-theme="dark"]) .mm-meteo-svg .pd-mm-temp-line {stroke:url(#pd-mm-temp-sign)!important;}
html:not([data-pd-theme="dark"]) .v3-meteogram .pd-meteo-temp-point,
html:not([data-pd-theme="dark"]) .v3-meteogram .v7-chart-cursor circle,
html:not([data-pd-theme="dark"]) .mm-meteo-svg #mmMeteoTempMarker {fill:var(--pd-meteo-warm)!important;}
html:not([data-pd-theme="dark"]) .v3-meteogram .pd-meteo-temp-point.pd-temp-cold,
html:not([data-pd-theme="dark"]) .v3-meteogram .v7-chart-cursor circle.pd-temp-cold,
html:not([data-pd-theme="dark"]) .mm-meteo-svg #mmMeteoTempMarker.pd-temp-cold {fill:var(--pd-meteo-cold)!important;}
html:not([data-pd-theme="dark"]) .v3-meteogram text.pd-meteo-temp-label {fill:#16345f!important;stroke:#f2f6f8;stroke-width:1.8px;stroke-linejoin:round;paint-order:stroke fill;}
html[data-pd-theme="dark"] .v3-meteogram text.pd-meteo-temp-label {fill:#edf3f7!important;}
html:not([data-pd-theme="dark"]) .v7-chart-tooltip .v7-chart-tip-temp,
html:not([data-pd-theme="dark"]) #mmMeteoTemp {color:#16345f!important;}
html[data-pd-theme="dark"] .v7-chart-tooltip .v7-chart-tip-temp,
html[data-pd-theme="dark"] #mmMeteoTemp {color:#edf3f7!important;}
html:not([data-pd-theme="dark"]) .v3-legend .pd-meteo-temp-key:before,
html:not([data-pd-theme="dark"]) .mm-meteo-legend .mm-meteo-temp {background:linear-gradient(90deg,var(--pd-meteo-cold) 50%,var(--pd-meteo-warm) 50%)!important;}

/* D25: forecast-method pictograms retain their monochrome drawing and semantic tile. */
html[data-pd-theme="dark"] #forecastViewMethods .forecast-card .forecast-card-icon {
  color:var(--pd-method-icon-ink,#edf3f7)!important;
  background:var(--pd-method-icon-bg,#405668)!important;
}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-card-davis .forecast-card-icon {
  --pd-method-icon-bg:#51485e;
  --pd-method-icon-ink:#e4d8f1;
}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-card-zambretti .forecast-card-icon {
  --pd-method-icon-bg:#345548;
  --pd-method-icon-ink:#d0ecd4;
}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-card-aladin .forecast-card-icon {
  --pd-method-icon-bg:#5a4938;
  --pd-method-icon-ink:#ffe0ad;
}
html[data-pd-theme="dark"] #forecastViewMethods .forecast-card .forecast-card-icon svg * {
  stroke:currentColor!important;
}


/* D26: quiet selected states for ordinary view controls, as in the light theme.
   Main navigation, calendar dates and semantic metric colors are independent. */
html[data-pd-theme="dark"] {
 --pd-tab-selected:#4a6173;
 --pd-tab-selected-border:#91a7b9;
 --pd-tab-hover:#536e82;
}
html[data-pd-theme="dark"] body :is(
 a.modern-switch-link[data-pd-selected], a.modern-switch-link.record-tab-active,
 a.modern-switch-link.bio-tab-active, a.modern-switch-link.history-tab-active,
 a.modern-switch-link.noaa-tab-active,
 .ver-metric-tab.is-active, .ver-observation-filter.is-active,
 .mm-main-tab.is-active, .mm-model-tab.is-active, .mm-day-tab.is-active,
 .mm-model-option.is-selected, .kamera-media-tab.is-active,
 .radar-view-btn.active, .syn-forecast-tab.syn-active
),
html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab.is-active,
html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li.picked a,
html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu > button.wx-choice-item[aria-selected="true"],
html[data-pd-theme="dark"] .almanach .leapbtn.selected {
 background:var(--pd-tab-selected)!important;
 color:var(--pd-ink)!important;
 border-color:var(--pd-tab-selected-border)!important;
 box-shadow:0 1px 4px rgba(0,0,0,.18)!important;
}
@media (hover:hover) and (pointer:fine) {
 html[data-pd-theme="dark"] body :is(
  a.modern-switch-link[data-pd-selected], a.modern-switch-link.record-tab-active,
  a.modern-switch-link.bio-tab-active, a.modern-switch-link.history-tab-active,
  a.modern-switch-link.noaa-tab-active,
  .ver-metric-tab.is-active, .ver-observation-filter.is-active,
  .mm-main-tab.is-active, .mm-model-tab.is-active, .mm-day-tab.is-active,
  .mm-model-option.is-selected, .kamera-media-tab.is-active,
  .radar-view-btn.active, .syn-forecast-tab.syn-active
 ):hover,
 html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab.is-active:hover,
 html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li.picked a:hover,
 html.pd-history-stat[data-pd-theme="dark"] .wx-choice-menu > button.wx-choice-item[aria-selected="true"]:hover,
 html[data-pd-theme="dark"] .almanach .leapbtn.selected:hover {
  background:var(--pd-tab-hover)!important;
  color:var(--pd-ink)!important;
  border-color:#93a9ba!important;
 }
}
/* Record graph buttons use the same semantic hues as the other metric graphs. */
html[data-pd-theme="dark"] .records-graph-selector button.is-active[data-record-metric="temp"] {background:#a45b59!important;border-color:#d58b88!important;color:#fff!important;}
html[data-pd-theme="dark"] .records-graph-selector button.is-active[data-record-metric="rain"] {background:#386b82!important;border-color:#78b5d1!important;color:#fff!important;}
html[data-pd-theme="dark"] .records-graph-selector button.is-active[data-record-metric="wind"] {background:#4b6379!important;border-color:#88a7bf!important;color:#fff!important;}
html[data-pd-theme="dark"] .records-graph-selector button.is-active[data-record-metric="pressure"] {background:#38666a!important;border-color:#77aeb0!important;color:#fff!important;}

/* D26: restore the three small home-page action outlines (forecast, astronomy,
   station information). These are controls, not panel borders. */
html[data-pd-theme="dark"] #obal #telo :is(a.home-forecast-page-link,a.home-info-more) {
 background:var(--pd-card)!important;
 color:var(--pd-ink)!important;
 border:1px solid #617889!important;
}
html[data-pd-theme="dark"] #obal #telo :is(a.home-forecast-page-link,a.home-info-more):is(:hover,:focus-visible) {
 background:var(--pd-tab-hover)!important;
 color:var(--pd-ink)!important;
 border-color:#8ba3b5!important;
}

/* D27: a slightly stronger hover for ordinary view tabs, including inactive tabs.
   No changes to main navigation or metric-specific buttons. */
@media (hover:hover) and (pointer:fine) {
 html[data-pd-theme="dark"] body :is(
  a.modern-switch-link, .ver-metric-tab, .ver-observation-filter,
  .mm-main-tab, .mm-model-tab, .mm-day-tab, .mm-model-option,
  .kamera-media-tab, .radar-view-btn, .syn-forecast-tab
 ):hover:not(:disabled,[aria-disabled="true"]),
 html[data-pd-theme="dark"] #forecastViewTabs .forecast-view-tab:hover:not(:disabled,[aria-disabled="true"]),
 html.pd-history-stat[data-pd-theme="dark"] #table_container #table_menu li a:hover,
 html[data-pd-theme="dark"] .almanach .leapbtn:hover:not(:disabled) {
  background:var(--pd-tab-hover)!important;
  color:var(--pd-ink)!important;
  border-color:#a1b6c6!important;
  box-shadow:0 2px 6px rgba(0,0,0,.24)!important;
 }
}

/* D28: status LEDs retain their original semantics, with higher contrast in dark mode.
   Keep the existing size and state logic; only the indicator fill and halo change. */
html[data-pd-theme="dark"] .v6-station-online.is-online i,
html[data-pd-theme="dark"] .domasov-live-status.is-live::before {
 background:#78d99a!important;
 box-shadow:0 0 0 2px rgba(120,217,154,.16),0 0 5px rgba(120,217,154,.36)!important;
}
html[data-pd-theme="dark"] .v6-station-online.is-offline i {
 background:#ff9290!important;
 box-shadow:0 0 0 2px rgba(255,146,144,.15),0 0 5px rgba(255,146,144,.32)!important;
}
html[data-pd-theme="dark"] .list-dew-current .list-dew-status.list-dew-dry::before {
 background:#83e1a1!important;
 box-shadow:0 0 0 4px rgba(131,225,161,.18),0 0 7px rgba(131,225,161,.35)!important;
}
html[data-pd-theme="dark"] .list-dew-current .list-dew-status.list-dew-wet::before {
 background:#8ed8ff!important;
 box-shadow:0 0 0 4px rgba(142,216,255,.18),0 0 7px rgba(142,216,255,.35)!important;
}
html[data-pd-theme="dark"] .list-dew-current .list-dew-status.list-dew-unavailable::before {
 background:#b3c2ce!important;
 box-shadow:0 0 0 3px rgba(179,194,206,.13)!important;
}

/* D29: soften the five monochrome history pictograms. Leave colored
   header icons, the actual weather icons and the light theme untouched. */
html[data-pd-theme="dark"] .home-bottom-widget-history .history-today-card-icon img,
html[data-pd-theme="dark"] :is(.pd-login-top,.pd-brand) img[src$="/vantage_vue_silueta.png"] {
 filter:brightness(0) saturate(100%) invert(78%) sepia(11%) saturate(562%) hue-rotate(163deg) brightness(92%) contrast(89%)!important;
}

/* D29: admin panels follow the public site's flat surface hierarchy.
   Transparent borders retain the original dimensions. Keep table rules,
   state markers, form controls and semantic alert colors intact. */
html[data-pd-theme="dark"] body.pd-admin-body :is(
 .public-status-overall,.public-status-card,.public-status-section,.public-status-service,
 .service-source,.service-card,.status-card-section,.status-storage-card,.status-time-card,
 .status-health-item,.mm-top,.mm-status,.mm-table-card,.mm-compare-panel,.mm-day-card,
 .kamera-cloud-card,.kamera-panel,.kamera-source-card,
 .snow-admin .admin-card,.snow-admin .daily-card,.snow-admin .maintenance-card,
 .snow-admin .mode-card,.snow-admin .quick-card,
 .wrapper .card,.wrapper .header,.pd-leaf .panel
),
html[data-pd-theme="dark"] body.pd-standalone :is(.pd-login,.pd-settings .pd-box) {
 border-color:transparent!important;
 box-shadow:0 3px 9px rgba(0,0,0,.12)!important;
}
html[data-pd-theme="dark"] body.pd-standalone .pd-login-top {
 border-bottom-color:transparent!important;
}
/* The password input is an interactive control: keep a visible focus ring. */
html[data-pd-theme="dark"] body.pd-standalone .pd-form input[type="password"] {
 background:#283c4b!important;
 color:var(--pd-ink)!important;
 border:1px solid #617889!important;
 caret-color:var(--pd-ink)!important;
}
html[data-pd-theme="dark"] body.pd-standalone .pd-form input[type="password"]:focus {
 border-color:#91a7b9!important;
 outline:2px solid #91a7b9!important;
 outline-offset:1px;
 box-shadow:none!important;
}
/* Service LEDs: retain the original state classes, dimensions and animation. */
html[data-pd-theme="dark"] :is(.ps-ok,.svc-ok) :is(.public-status-overall-dot,.public-status-dot,.service-dot),
html[data-pd-theme="dark"] .status-led.status-led-ok {
 background:#78d99a!important;
 border-color:#78d99a!important;
 box-shadow:0 0 0 3px rgba(120,217,154,.16),0 0 6px rgba(120,217,154,.36)!important;
}
html[data-pd-theme="dark"] :is(.ps-warn,.svc-warn) :is(.public-status-overall-dot,.public-status-dot,.service-dot) {
 background:#efc56f!important;
 border-color:#efc56f!important;
 box-shadow:0 0 0 3px rgba(239,197,111,.16),0 0 6px rgba(239,197,111,.36)!important;
}
html[data-pd-theme="dark"] :is(.ps-error,.svc-error) :is(.public-status-overall-dot,.public-status-dot,.service-dot),
html[data-pd-theme="dark"] .status-led.status-led-error {
 background:#ff9290!important;
 border-color:#ff9290!important;
 box-shadow:0 0 0 3px rgba(255,146,144,.15),0 0 6px rgba(255,146,144,.32)!important;
}
html[data-pd-theme="dark"] :is(.ps-unknown,.svc-unknown) :is(.public-status-overall-dot,.public-status-dot,.service-dot),
html[data-pd-theme="dark"] .status-led.status-led-neutral {
 background:#b3c2ce!important;
 border-color:#b3c2ce!important;
 box-shadow:0 0 0 3px rgba(179,194,206,.13)!important;
}

/* D31: dark neutral graphite pictograms in the history strip, no blue cast.
   Do not change the station silhouette or icons on the colored metric headers. */
html[data-pd-theme="dark"] .home-bottom-widget-history .history-today-card-icon img {
 filter:brightness(0) invert(13%)!important;
}
/* D30: match the top-level canvas to the dark page, including mobile Safari.
   The original mobile rule sets the root background to white !important;
   the theme converter can turn it into the lighter card color. */
html[data-pd-theme="dark"][data-pd-top] {
 background:var(--pd-bg)!important;
}
@media only screen and (max-device-width:900px) {
 html[data-pd-theme="dark"][data-pd-top] body > #obal {
  margin-top:0!important;
 }
}
