:root {
    color-scheme: dark;
    --brand-ink: #f7faf9;
    --brand-green: #55e6c1;
    --brand-mint: #55e6c1;
    --brand-sky: #70bce9;
    --brand-sun: #ffd33d;
    --brand-paper: #edf5f3;
    --brand-night: #000810;
    --brand-white: #f7faf9;
    --page: #020d15;
    --page-deep: #000810;
    --page-raised: #061720;
    --surface: #081820;
    --surface-soft: #0b222b;
    --surface-strong: #102f36;
    --text-strong: #f7faf9;
    --text: #d7e2e2;
    --text-muted: #a8b5b8;
    --text-faint: #74868a;
    --line: rgba(142, 215, 206, .4);
    --line-soft: rgba(142, 196, 194, .24);
    --accent: #55e6c1;
    --accent-ink: #63edc9;
    --accent-soft: #123b38;
    --sky: #70bce9;
    --sky-soft: #0b2e40;
    --sun: #ffd33d;
    --sun-soft: #3a3216;
    --good: #63d5ad;
    --good-soft: #11372f;
    --caution: #f4c63e;
    --caution-soft: #3a3114;
    --attention: #f58a3d;
    --attention-soft: #3d261b;
    --danger: #ef4d5a;
    --danger-soft: #3d2027;
    --extreme: #f05da1;
    --extreme-soft: #411e35;
    --unknown: #9fb1ba;
    --unknown-soft: #22343d;
    --warning-badge-ink: #03110e;
    --shadow: 0 18px 48px rgba(0, 0, 0, .18);
    --shadow-elevated: 0 24px 70px rgba(0, 0, 0, .3);
    --hero-start: #061722;
    --hero-middle: #0d3147;
    --hero-end: #173445;
    --hero-sun-glow: rgba(255, 211, 61, .18);
    --hero-cloud-glow: rgba(255, 255, 255, .19);
    --hero-sky-glow: rgba(112, 188, 233, .18);
    --hero-strong: #f7faf9;
    --hero-muted: #c1d0d2;
    --hero-label: #63edc9;
    --hero-trust: #aebfc2;
    --hero-facts-bg: rgba(1, 11, 17, .64);
    --hero-facts-line: rgba(255, 255, 255, .13);
    --hero-share-bg: rgba(1, 11, 17, .35);
    --hero-share-line: rgba(255, 255, 255, .22);
    --hero-decoration: rgba(2, 12, 15, .75);
    --hero-mobile-copy: linear-gradient(90deg, rgba(2, 13, 21, .9), rgba(2, 13, 21, .28));
    --hero-glyph-shadow: drop-shadow(0 12px 24px rgba(0, 0, 0, .28));
    --radar-preview-bg: #061820;
    --radar-basemap-filter: saturate(.62) brightness(.55) contrast(1.18) hue-rotate(18deg);
    --radar-mobile-copy: linear-gradient(90deg, rgba(2, 14, 21, .98) 0 64%, rgba(2, 14, 21, .62) 88%, transparent 100%);
    --radar-mobile-strong: #f7faf9;
    --radar-mobile-muted: #b9c9cb;
    --radar-mobile-label: #63edc9;
    --radar-mobile-nowcast-bg: rgba(6, 36, 40, .76);
    --radar-mobile-line: rgba(255, 255, 255, .18);
    --radar-control-bg: rgba(0, 8, 13, .72);
    --radar-control-line: rgba(255, 255, 255, .22);
    --radar-control-text: #fff;
    --radius-small: 10px;
    --radius-inner: 14px;
    --radius: 20px;
    --radius-control: 999px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --touch: 44px;
    --content: 1240px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

html[data-theme="light"] {
    color-scheme: light;
    --brand-ink: #09282d;
    --page: #edf5f3;
    --page-deep: #e4efec;
    --page-raised: #f8fbfa;
    --surface: #ffffff;
    --surface-soft: #f0f6f4;
    --surface-strong: #e4efec;
    --text-strong: #09282d;
    --text: #2e484d;
    --text-muted: #50696d;
    --text-faint: #5c7478;
    --line: rgba(29, 101, 93, .34);
    --line-soft: rgba(29, 91, 87, .17);
    --accent: #147966;
    --accent-ink: #0b6656;
    --accent-soft: #d9eee9;
    --sky: #3b89aa;
    --sky-soft: #dfeef4;
    --sun: #b87408;
    --sun-soft: #fff1c7;
    --good: #147653;
    --good-soft: #daf0e7;
    --caution: #8d6308;
    --caution-soft: #fff0c8;
    --attention: #a34d1b;
    --attention-soft: #fce5d7;
    --danger: #ac2f3b;
    --danger-soft: #f8e0e3;
    --extreme: #8f285c;
    --extreme-soft: #f4ddea;
    --unknown: #526c76;
    --unknown-soft: #e4ecef;
    --warning-badge-ink: #fff;
    --shadow: 0 18px 48px rgba(20, 55, 51, .1);
    --hero-start: #fbfefd;
    --hero-middle: #e8f3f0;
    --hero-end: #d7e9e6;
    --hero-sun-glow: rgba(184, 116, 8, .12);
    --hero-cloud-glow: rgba(255, 255, 255, .72);
    --hero-sky-glow: rgba(59, 137, 170, .13);
    --hero-strong: #09282d;
    --hero-muted: #526b70;
    --hero-label: #0b6656;
    --hero-trust: #60777b;
    --hero-facts-bg: rgba(255, 255, 255, .72);
    --hero-facts-line: rgba(29, 91, 87, .18);
    --hero-share-bg: rgba(255, 255, 255, .78);
    --hero-share-line: rgba(29, 91, 87, .24);
    --hero-decoration: rgba(20, 121, 102, .1);
    --hero-mobile-copy: linear-gradient(90deg, rgba(251, 254, 253, .97), rgba(232, 243, 240, .9) 72%, rgba(232, 243, 240, .35));
    --hero-glyph-shadow: drop-shadow(0 10px 20px rgba(20, 55, 51, .14));
    --radar-preview-bg: #dcebe8;
    --radar-basemap-filter: saturate(.52) brightness(1.3) contrast(.78);
    --radar-mobile-copy: linear-gradient(90deg, rgba(251, 254, 253, .98) 0 64%, rgba(232, 243, 240, .9) 88%, rgba(232, 243, 240, .16) 100%);
    --radar-mobile-strong: #09282d;
    --radar-mobile-muted: #526b70;
    --radar-mobile-label: #0b6656;
    --radar-mobile-nowcast-bg: rgba(217, 238, 233, .9);
    --radar-mobile-line: rgba(29, 91, 87, .2);
    --radar-control-bg: rgba(255, 255, 255, .88);
    --radar-control-line: rgba(29, 91, 87, .24);
    --radar-control-text: #0b6656;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% -12%, color-mix(in srgb, var(--sky) 8%, transparent) 0, transparent 35rem),
        radial-gradient(circle at 0 42%, color-mix(in srgb, var(--accent) 5%, transparent) 0, transparent 30rem),
        linear-gradient(180deg, var(--page-deep) 0, var(--page) 46rem, var(--page-deep) 100%);
    color: var(--text);
}

button,
input {
    font: inherit;
}

button,
a {
    touch-action: manipulation;
}

button {
    color: inherit;
}

a {
    color: var(--accent-ink);
}

:where(a, button, input, summary):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    color: var(--text-strong);
    text-wrap: balance;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 12px;
    padding: 11px 15px;
    transform: translateY(-160%);
    border-radius: var(--radius-small);
    background: var(--text-strong);
    color: var(--page);
    font-weight: 750;
    text-decoration: none;
    transition: transform .16s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--line);
    background: var(--surface-soft);
}

.ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    vertical-align: middle;
}

.ui-icon .ui-icon-fill,
.ui-icon.ui-icon-play path {
    fill: currentColor;
    stroke: currentColor;
}

.weather-glyph {
    overflow: visible;
}

.weather-sun-glow {
    fill: color-mix(in srgb, var(--sun) 25%, transparent);
    filter: blur(5px);
}

.weather-sun,
.weather-moon,
.weather-star,
.weather-lightning {
    fill: var(--sun);
}

.weather-sun-rays,
.weather-rain,
.weather-snow,
.weather-fog {
    fill: none;
    stroke: var(--sun);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.weather-sun-rays-small {
    stroke-width: 4;
}

.weather-cloud,
.weather-storm-cloud,
.weather-cloud-shadow {
    stroke-linejoin: round;
}

.weather-cloud {
    fill: #f4f7f7;
    stroke: #d6e2e5;
    stroke-width: 2;
}

.weather-storm-cloud {
    fill: #8094a0;
    stroke: #a9bbc3;
    stroke-width: 2;
}

.weather-cloud-shadow {
    fill: rgba(0, 0, 0, .24);
    filter: blur(4px);
}

.weather-rain {
    stroke: var(--sky);
    stroke-width: 6;
}

.weather-snow {
    stroke: #bfe8ff;
    stroke-width: 4;
}

.weather-fog {
    stroke: #bed0d5;
}

.weather-unknown-ring,
.weather-unknown-mark {
    fill: none;
    stroke: var(--text-faint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.weather-unknown-ring {
    stroke-dasharray: 6 8;
    stroke-width: 3;
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.theme-icon-moon {
    display: block;
}

.theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-icon-sun {
    display: block;
}

html[data-theme="light"] .theme-icon-moon {
    display: none;
}

.page-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    width: min(100%, 900px);
    min-height: 88px;
    margin: 0 auto 22px;
    align-items: center;
    gap: 12px;
}

.page-header-action {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--text-strong);
    text-decoration: none;
}

.page-header-action:hover {
    border-color: var(--line);
    background: var(--surface-soft);
}

.page-header-copy {
    min-width: 0;
    text-align: center;
}

.page-header-copy h1 {
    margin: 2px 0 0;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.page-header-copy > p:last-child {
    display: flex;
    min-width: 0;
    margin: 7px 0 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: .93rem;
}

.page-header .eyebrow {
    color: var(--accent);
}

@media (min-width: 921px) {
    .page-header > .theme-toggle {
        visibility: hidden;
        pointer-events: none;
    }
}

.app-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 94%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    box-shadow: var(--shadow);
}

.section-label {
    margin: 0;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.scroll-strip {
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
    scrollbar-width: thin;
}

.scroll-strip::-webkit-scrollbar {
    height: 4px;
}

.scroll-strip::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (max-width: 620px) {
    .page-header {
        min-height: 74px;
        margin-bottom: 14px;
    }

    .page-header-copy h1 {
        font-size: 1.68rem;
    }

    .page-header-copy .eyebrow {
        display: none;
    }
}

.weather-page {
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
    padding-top: 22px;
}

.eyebrow {
    margin: 0;
    color: var(--accent-ink);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.location-tools {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.place-intro {
    min-width: 0;
}

.place-intro h1 {
    margin: 3px 0 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: -.035em;
    line-height: 1.05;
}

.place-intro p:last-child {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .84rem;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.button,
.location-search button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-strong);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.button:hover,
.location-search button:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: var(--accent-soft);
}

.button-primary,
.location-search button {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .location-search button {
    color: #07110e;
}

.button[aria-busy="true"] {
    cursor: wait;
    opacity: .68;
}

.search-panel {
    grid-column: 1 / -1;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.search-panel > summary {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--text-strong);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 750;
    list-style: none;
}

.search-panel > summary::-webkit-details-marker {
    display: none;
}

.search-panel > summary::after {
    color: var(--text-muted);
    content: "+";
    font-size: 1.2rem;
    font-weight: 500;
}

.search-panel[open] > summary {
    border-bottom: 1px solid var(--line-soft);
}

.search-panel[open] > summary::after {
    content: "−";
}

.search-panel-content {
    padding: 14px;
}

.location-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.location-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--page-raised);
    color: var(--text-strong);
}

.location-search input::placeholder {
    color: var(--text-muted);
}

.location-status {
    min-height: 1.3em;
    margin: 9px 2px 0;
    color: var(--text-muted);
    font-size: .8rem;
}

.location-feedback {
    grid-column: 1 / -1;
    margin: 0 2px;
}

.search-results {
    display: grid;
    margin: 12px 0 0;
    padding: 0;
    gap: 5px;
    list-style: none;
}

.search-results a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    border-radius: 9px;
    color: var(--text-strong);
    text-decoration: none;
}

.search-results a:hover {
    background: var(--surface-soft);
}

.search-results small {
    color: var(--text-muted);
    text-align: right;
}

.favorites-panel {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.favorites-panel[hidden] {
    display: none;
}

.favorites-panel > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.favorites-panel > header strong {
    color: var(--text-strong);
    font-size: .8rem;
}

.favorites-panel > header span {
    color: var(--text-muted);
    font-size: .7rem;
}

.favorites-panel ul {
    display: grid;
    margin: 8px 0 0;
    padding: 0;
    gap: 4px;
    list-style: none;
}

.favorites-panel li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 44px;
    align-items: center;
    gap: 8px;
}

.favorites-panel a {
    overflow: hidden;
    color: var(--text-strong);
    font-size: .82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-panel button {
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .73rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.state-notice {
    display: flex;
    margin: 0 0 16px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--unknown);
    border-radius: var(--radius-small);
    background: var(--unknown-soft);
    color: var(--text);
    font-size: .86rem;
}

.state-notice strong {
    color: var(--text-strong);
}

.state-notice.warning {
    border-left-color: var(--caution);
    background: var(--caution-soft);
}

.state-notice.error {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}

.weather-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr);
    min-height: 438px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 22px 22px 22px 8px;
    background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--sky-soft) 82%, transparent) 0, transparent 20rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.weather-hero[data-condition="klar"] {
    background:
        radial-gradient(circle at 84% 4%, var(--sun-soft) 0, transparent 23rem),
        linear-gradient(145deg, var(--surface) 15%, color-mix(in srgb, var(--sky-soft) 44%, var(--surface)) 100%);
}

.weather-hero[data-condition="regen"],
.weather-hero[data-condition="gewitter"] {
    background:
        radial-gradient(circle at 80% 0, color-mix(in srgb, var(--sky-soft) 76%, transparent) 0, transparent 25rem),
        linear-gradient(145deg, var(--surface) 10%, color-mix(in srgb, var(--unknown-soft) 58%, var(--surface)) 100%);
}

.hero-main {
    display: flex;
    min-width: 0;
    padding: clamp(24px, 5vw, 54px);
    flex-direction: column;
    justify-content: space-between;
}

.hero-now {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.temperature {
    margin: 8px 0 0;
    color: var(--text-strong);
    font-size: clamp(4.3rem, 11vw, 7rem);
    font-weight: 720;
    letter-spacing: -.09em;
    line-height: .88;
}

.feels-like {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: .92rem;
}

.weather-glyph {
    width: clamp(76px, 12vw, 112px);
    height: clamp(76px, 12vw, 112px);
    flex: 0 0 auto;
    color: var(--sky);
}

.weather-glyph.klar {
    color: var(--sun);
}

.weather-glyph.gewitter {
    color: var(--attention);
}

.hero-statement {
    max-width: 760px;
    margin-top: 32px;
}

.hero-statement h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.3vw, 2.45rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.hero-statement > p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.hero-facts {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text);
    font-size: .86rem;
}

.hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-facts span::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.hero-rail {
    display: grid;
    align-content: stretch;
    border-left: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}

.rail-block {
    display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--line-soft);
}

.rail-block:last-child {
    border-bottom: 0;
}

.rail-label {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rail-block strong {
    margin-top: 7px;
    color: var(--text-strong);
    font-size: 1.06rem;
    line-height: 1.3;
}

.rail-block p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.confidence-unavailable strong {
    color: var(--unknown);
}

.warning-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 0 0 16px;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}

.warning-symbol {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--caution-soft);
    color: var(--caution);
    font-weight: 900;
}

.warning-status strong {
    color: var(--text-strong);
    font-size: .9rem;
}

.warning-status p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: .79rem;
    line-height: 1.35;
}

.warning-status p a {
    margin-left: 4px;
    color: var(--accent-ink);
    font-weight: 750;
    white-space: nowrap;
}

.warning-status > span:last-child {
    color: var(--caution);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.warning-status > a {
    min-height: 40px;
    align-content: center;
    font-size: .75rem;
    font-weight: 750;
    text-underline-offset: 3px;
}

.warning-clear .warning-symbol {
    background: var(--good-soft);
    color: var(--good);
}

.warning-clear > div strong {
    color: var(--good);
}

.warning-unavailable .warning-symbol {
    background: var(--caution-soft);
    color: var(--caution);
}

.weather-hero + .warning-status,
.weather-hero + .official-warning {
    margin-top: 16px;
}

.official-warning {
    --warning-accent: var(--unknown);
    --warning-soft: var(--unknown-soft);
    margin: 0 0 16px;
    overflow: hidden;
    border: 2px solid var(--warning-accent);
    border-radius: 14px 14px 14px 5px;
    background: var(--warning-soft);
}

.official-warning > header {
    display: flex;
    padding: 18px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--warning-accent) 25%, transparent);
}

.official-warning h2 {
    margin: 4px 0 0;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.official-warning > header a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 14px;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--warning-accent);
    font-size: .78rem;
    font-weight: 780;
    text-decoration: none;
}

.official-warning-list {
    display: grid;
    gap: 1px;
}

.official-warning-list article {
    padding: 20px;
    background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.warning-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.warning-heading .warning-severity {
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--warning-accent);
    color: var(--warning-badge-ink);
    font-size: .67rem;
    font-weight: 820;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.warning-heading .warning-timing {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-strong);
    font-size: .67rem;
    font-weight: 760;
}

.warning-heading strong {
    color: var(--text-strong);
    font-size: .82rem;
}

.official-warning-list h3 {
    margin: 13px 0 8px;
    font-size: 1.08rem;
}

.official-warning-list p {
    max-width: 900px;
    margin: 0;
    color: var(--text);
    font-size: .84rem;
    line-height: 1.55;
}

.warning-instruction {
    margin-top: 10px !important;
    padding-left: 12px;
    border-left: 3px solid var(--warning-accent);
}

.official-warning dl {
    display: flex;
    margin: 15px 0 0;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.official-warning dl div {
    display: flex;
    gap: 6px;
    font-size: .75rem;
}

.official-warning dt {
    color: var(--text-muted);
}

.official-warning dd {
    margin: 0;
    color: var(--text-strong);
    font-weight: 680;
}

.warning-stale-note {
    margin: 0;
    padding: 11px 20px;
    background: var(--caution-soft);
    color: var(--caution);
    font-size: .8rem;
    font-weight: 700;
}

.warning-updated {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: .73rem;
    font-weight: 650;
}

.warning-unknown {
    --warning-accent: var(--unknown);
    --warning-soft: var(--unknown-soft);
}

.warning-minor {
    --warning-accent: var(--caution);
    --warning-soft: var(--caution-soft);
}

.warning-moderate {
    --warning-accent: var(--attention);
    --warning-soft: var(--attention-soft);
}

.warning-severe {
    --warning-accent: var(--danger);
    --warning-soft: var(--danger-soft);
}

.warning-extreme {
    --warning-accent: var(--extreme);
    --warning-soft: var(--extreme-soft);
    border-width: 3px;
}

.forecast-change {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 16px;
    align-items: start;
    gap: 12px;
    padding: 15px;
    border-left: 3px solid var(--line);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.forecast-change[data-state="changed"] {
    border-left-color: var(--attention);
}

.forecast-change[data-state="stable"] {
    border-left-color: var(--good);
}

.change-mark {
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.forecast-change strong {
    color: var(--text-strong);
    font-size: .82rem;
}

.forecast-change p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: .81rem;
    line-height: 1.45;
}

.content-section {
    margin-top: 44px;
}

.section-heading {
    display: flex;
    margin-bottom: 14px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    letter-spacing: -.035em;
}

.section-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--text-muted);
    font-size: .83rem;
    line-height: 1.45;
    text-align: right;
}

.hourly-scroller {
    display: grid;
    grid-auto-columns: minmax(148px, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    padding: 2px 2px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-color: var(--line) transparent;
}

.hour-card {
    min-height: 188px;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 12px 12px 12px 5px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    scroll-snap-align: start;
}

.hour-card.is-next {
    border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
    background: var(--accent-soft);
}

.hour-next-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--accent-ink);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hour-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hour-time strong {
    color: var(--text-strong);
    font-size: .88rem;
}

.hour-time span {
    color: var(--text-muted);
    font-size: .7rem;
}

.hour-temp {
    margin: 18px 0 3px;
    color: var(--text-strong);
    font-size: 1.7rem;
    font-weight: 750;
    letter-spacing: -.05em;
}

.hour-condition {
    min-height: 2.6em;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.precip-track {
    height: 5px;
    margin: 14px 0 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-strong);
}

.precip-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--sky);
}

.precip-track.precip-missing {
    background: repeating-linear-gradient(
        135deg,
        var(--surface-strong) 0 5px,
        transparent 5px 9px);
    outline: 1px dashed var(--line);
}

.precip-10 span { width: 10%; }
.precip-20 span { width: 20%; }
.precip-30 span { width: 30%; }
.precip-40 span { width: 40%; }
.precip-50 span { width: 50%; }
.precip-60 span { width: 60%; }
.precip-70 span { width: 70%; }
.precip-80 span { width: 80%; }
.precip-90 span { width: 90%; }
.precip-100 span { width: 100%; }

.hour-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text);
    font-size: .75rem;
}

.data-alternative {
    margin-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.data-alternative summary {
    min-height: 44px;
    padding: 12px 2px;
    color: var(--text);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    color: var(--text-muted);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.decision-card {
    display: flex;
    min-height: 250px;
    padding: 18px;
    flex-direction: column;
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--unknown);
    border-radius: 10px 10px 10px 4px;
    background: var(--surface);
}

.decision-card header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-label {
    color: currentColor;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decision-card h3 {
    margin: 21px 0 9px;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.decision-card > strong {
    color: var(--text-strong);
    font-size: 1.08rem;
    line-height: 1.25;
}

.decision-card p {
    margin: 9px 0 18px;
    flex: 1;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.decision-value {
    color: var(--text-strong);
    font-size: .82rem;
    font-weight: 750;
}

.decision-window {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 650;
}

.status-green {
    border-top-color: var(--good);
    color: var(--good);
}

.status-yellow {
    border-top-color: var(--caution);
    color: var(--caution);
}

.status-orange {
    border-top-color: var(--attention);
    color: var(--attention);
}

.status-red {
    border-top-color: var(--danger);
    color: var(--danger);
}

.status-neutral {
    border-top-color: var(--unknown);
    color: var(--unknown);
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
}

.day-card {
    min-width: 0;
    padding: 17px 14px;
    border-right: 1px solid var(--line-soft);
}

.day-card:last-child {
    border-right: 0;
}

.day-card time {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 750;
}

.day-card h3 {
    min-height: 2.5em;
    margin: 15px 0 5px;
    font-size: .84rem;
    line-height: 1.25;
}

.day-temperature {
    display: block;
    color: var(--text-strong);
    font-size: 1.1rem;
    font-weight: 760;
}

.day-card p {
    display: grid;
    margin: 12px 0 0;
    gap: 5px;
    color: var(--text-muted);
    font-size: .72rem;
}

.day-confidence {
    display: block;
    margin-top: 13px;
    color: var(--unknown);
    font-size: .67rem;
    font-weight: 720;
}

.day-trend {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: .68rem;
    font-weight: 720;
    line-height: 1.35;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.metric-tile {
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 10px 10px 10px 4px;
    background: var(--surface);
}

.metric-tile > span {
    color: var(--text-muted);
    font-size: .72rem;
}

.metric-tile strong {
    display: block;
    margin: 9px 0 4px;
    color: var(--text-strong);
    font-size: 1.2rem;
}

.metric-tile em {
    color: var(--text-muted);
    font-size: .72rem;
    font-style: normal;
}

.mode-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--surface-soft);
}

.mode-switch a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    align-items: center;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 720;
    text-decoration: none;
}

.mode-switch a[aria-current="page"] {
    background: var(--surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    color: var(--text-strong);
}

.source-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.source-panel h2 {
    margin: 4px 0 8px;
    font-size: 1.2rem;
}

.source-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.source-meta {
    display: grid;
    gap: 8px;
}

.source-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line-soft);
    font-size: .77rem;
}

.source-meta span {
    color: var(--text-muted);
}

.source-meta strong {
    color: var(--text-strong);
    text-align: right;
}

.empty-state {
    display: grid;
    min-height: 360px;
    padding: 40px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.empty-state > div {
    max-width: 570px;
}

.empty-state h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.empty-state p {
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.error-page {
    width: min(760px, calc(100% - 32px));
    margin: 72px auto;
}

@media (max-width: 1040px) {
    .weather-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr);
    }

    .decision-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .day-card:nth-child(4) {
        border-right: 0;
    }

    .day-card:nth-child(n+5) {
        border-top: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .weather-page {
        width: min(var(--content), calc(100% - 24px));
        padding-top: 14px;
    }

    .location-tools {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .location-actions {
        justify-content: flex-start;
    }

    .search-panel {
        grid-column: 1;
    }

    .weather-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 18px 18px 18px 7px;
    }

    .hero-main {
        min-height: 420px;
        padding: 26px;
    }

    .hero-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--line-soft);
        border-left: 0;
    }

    .rail-block {
        min-height: 140px;
        padding: 18px;
        border-right: 1px solid var(--line-soft);
        border-bottom: 0;
    }

    .rail-block:last-child {
        border-right: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .section-heading > p {
        text-align: left;
    }

    .daily-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .day-card,
    .day-card:nth-child(4) {
        border-right: 1px solid var(--line-soft);
    }

    .day-card:nth-child(even) {
        border-right: 0;
    }

    .day-card:nth-child(n+3) {
        border-top: 1px solid var(--line-soft);
    }

    .source-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .weather-page {
        width: min(var(--content), calc(100% - 20px));
    }

    .place-intro h1 {
        font-size: 1.35rem;
    }

    .location-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .location-actions .button {
        padding: 0 10px;
        white-space: nowrap;
    }

    .location-search {
        grid-template-columns: 1fr;
    }

    .location-search button {
        width: 100%;
    }

    .hero-main {
        min-height: 392px;
        padding: 22px;
    }

    .hero-now {
        gap: 12px;
    }

    .temperature {
        font-size: 4.45rem;
    }

    .weather-glyph {
        width: 72px;
        height: 72px;
    }

    .hero-statement {
        margin-top: 24px;
    }

    .hero-statement h2 {
        font-size: 1.55rem;
    }

    .hero-facts {
        gap: 7px 13px;
        font-size: .78rem;
    }

    .rail-block {
        min-height: 132px;
        padding: 15px;
    }

    .rail-block strong {
        font-size: .92rem;
    }

    .warning-status {
        padding: 10px 12px;
        align-items: start;
        grid-template-columns: auto 1fr;
        gap: 9px;
    }

    .warning-status .warning-symbol {
        width: 26px;
        height: 26px;
    }

    .warning-status strong {
        font-size: .84rem;
    }

    .official-warning > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .official-warning > header a {
        width: 100%;
        justify-content: center;
    }

    .content-section {
        margin-top: 36px;
    }

    .decision-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .decision-card {
        min-height: 205px;
    }

    .mode-switch {
        width: 100%;
    }

    .mode-switch a {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 350px) {
    .location-actions {
        grid-template-columns: 1fr;
    }

    .hero-main {
        padding: 18px;
    }

    .temperature {
        font-size: 4rem;
    }

    .hero-rail {
        grid-template-columns: 1fr;
    }

    .rail-block {
        min-height: 112px;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .status-dot,
    .hero-facts span::before,
    .precip-track span {
        forced-color-adjust: none;
    }
}

/* Product navigation and compact map layout */
.breadcrumbs {
    display: flex;
    margin: 0 0 14px;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .78rem;
}

.breadcrumbs a {
    text-underline-offset: 3px;
}

.map-product-shell {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--sky-soft) 72%, transparent), transparent 34rem),
        var(--page);
}

.map-product-header {
    position: sticky;
    z-index: 90;
    top: 0;
    display: grid;
    min-height: 64px;
    padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--page-raised) 91%, transparent);
    box-shadow: 0 8px 30px rgba(16, 39, 34, .05);
    backdrop-filter: blur(18px);
}

.map-back,
.map-product-brand,
.map-product-nav a {
    color: var(--text-strong);
    text-decoration: none;
}

.map-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 750;
}

.map-product-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
}

.map-product-brand img {
    border-radius: 10px;
}

.map-product-brand span {
    display: grid;
}

.map-product-brand strong {
    font-size: .86rem;
}

.map-product-brand small {
    color: var(--text-muted);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.map-product-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--surface);
}

.map-product-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
}

.map-product-nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff;
}

.map-product-main {
    min-height: calc(100dvh - 64px);
}

.map-workspace {
    width: min(1680px, 100%);
    min-height: calc(100dvh - 64px);
    margin: 0 auto;
    padding: 16px clamp(12px, 2vw, 28px) calc(20px + env(safe-area-inset-bottom));
}

.map-workspace:fullscreen {
    overflow: auto;
    background: var(--page);
}

.map-toolbar {
    display: grid;
    margin-bottom: 12px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px 18px;
}

.map-heading h1 {
    margin: 2px 0 0;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.map-heading > p:last-child {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
}

.map-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.map-toolbar .location-status {
    grid-column: 1 / -1;
    margin: 0;
}

.map-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    gap: 14px;
    align-items: start;
}

.map-canvas-panel,
.map-inspector > section,
.map-details,
.model-selectors {
    border: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
}

.map-canvas-panel {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px 20px 20px 7px;
}

.weather-map,
.radar-preview-map {
    --map-scale: 1;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 56% 52%, color-mix(in srgb, var(--surface-strong) 78%, transparent), transparent 34%),
        var(--sky-soft);
}

.weather-map {
    min-height: clamp(390px, 61vh, 720px);
    border-bottom: 1px solid var(--line-soft);
    cursor: crosshair;
}

.weather-map[data-zoomed="true"] {
    cursor: zoom-out;
}

.map-transform-layer {
    position: absolute;
    z-index: 1;
    inset: 0;
    transform: scale(var(--map-scale));
    transform-origin: 50% 50%;
    transition: transform .2s ease;
}

.map-basemap,
.map-weather-layer,
.map-city-layer {
    position: absolute;
    transition: opacity .18s ease;
}

.map-basemap {
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
}

.map-weather-layer {
    z-index: 3;
    max-width: none;
    object-fit: fill;
    image-rendering: auto;
    user-select: none;
}

.model-weather-layer {
    opacity: .88;
}

.map-city-layer {
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.map-city-layer span {
    position: absolute;
    padding: 2px 4px;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    background: color-mix(in srgb, var(--page-raised) 74%, transparent);
    color: var(--text-strong);
    font-size: clamp(.56rem, 1vw, .69rem);
    font-weight: 720;
    line-height: 1;
    text-shadow: 0 1px 2px var(--surface);
}

.map-location-marker,
.model-map-probe {
    position: absolute;
    z-index: 8;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent), 0 5px 16px rgba(0, 0, 0, .24);
    pointer-events: none;
}

.map-location-marker i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
}

.map-radius-ring {
    position: absolute;
    z-index: 7;
    min-width: 20px;
    min-height: 20px;
    transform: translate(-50%, -50%);
    border: 1.5px dashed color-mix(in srgb, var(--accent) 88%, #fff);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    box-shadow: 0 0 0 2px rgba(4, 18, 25, .5), 0 0 16px color-mix(in srgb, var(--accent) 24%, transparent);
    pointer-events: none;
}

.radar-workspace .map-location-marker {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.model-map-probe {
    width: 30px;
    height: 30px;
    border: 2px solid var(--sun);
    background: transparent;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 24%, transparent);
}

.map-loader,
.map-error {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    display: grid;
    min-width: min(330px, calc(100% - 32px));
    padding: 20px;
    transform: translate(-50%, -50%);
    place-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 91%, transparent);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .15);
    color: var(--text);
    text-align: center;
    backdrop-filter: blur(16px);
}

.map-loader img {
    animation: brand-breathe 1.4s ease-in-out infinite alternate;
}

.map-error strong {
    color: var(--text-strong);
}

.map-error span {
    color: var(--text-muted);
    font-size: .82rem;
}

.map-zoom-controls {
    position: absolute;
    z-index: 30;
    top: 12px;
    right: 12px;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
    backdrop-filter: blur(10px);
}

.map-zoom-controls button {
    min-width: 44px;
    min-height: 42px;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
    font-weight: 800;
}

.map-zoom-controls button:last-child {
    border-bottom: 0;
    font-size: .65rem;
}

.map-attribution {
    position: absolute;
    z-index: 25;
    right: 8px;
    bottom: 7px;
    padding: 3px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--page-raised) 78%, transparent);
    color: var(--text-muted);
    font-size: .58rem;
    pointer-events: none;
}

.radar-timeline {
    display: grid;
    padding: 14px clamp(12px, 2vw, 22px) 16px;
    gap: 10px;
    background: var(--surface);
}

.timeline-semantics,
.model-time-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: .71rem;
    font-weight: 720;
    letter-spacing: .03em;
}

.timeline-semantics strong {
    color: var(--accent-ink);
}

.timeline-semantics .is-disabled {
    text-decoration: line-through;
    opacity: .68;
}

.radar-timeline input[type="range"] {
    width: 100%;
    min-height: 44px;
    accent-color: var(--accent);
    cursor: pointer;
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.timeline-actions button,
.timeline-actions select {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-strong);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
}

.timeline-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.timeline-actions label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .72rem;
}

.timeline-gaps {
    min-height: 1.2em;
    color: var(--text-muted);
    font-size: .72rem;
}

.map-inspector {
    display: grid;
    gap: 10px;
}

.map-inspector > section,
.map-details {
    border-radius: 15px 15px 15px 5px;
    box-shadow: none;
}

.map-status-card,
.map-summary-card,
.map-legend-card,
.model-professional {
    padding: 16px;
}

.map-status-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.map-status-line strong {
    color: var(--text-strong);
    font-size: .88rem;
}

.status-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--unknown);
    box-shadow: 0 0 0 4px var(--unknown-soft);
}

.status-dot[data-state="fresh"] {
    background: var(--good);
    box-shadow: 0 0 0 4px var(--good-soft);
}

.status-dot[data-state="delayed"],
.status-dot[data-state="stale"] {
    background: var(--caution);
    box-shadow: 0 0 0 4px var(--caution-soft);
}

.status-dot[data-state="unavailable"] {
    background: var(--danger);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

.map-status-card p,
.map-summary-card > p,
.model-professional > p {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.map-summary-card h2,
.map-legend-card h2,
.model-professional h2 {
    margin: 4px 0 0;
    font-size: 1.16rem;
    letter-spacing: -.025em;
}

.map-facts {
    display: grid;
    margin: 15px 0 0;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: var(--line-soft);
}

.map-facts div {
    min-width: 0;
    padding: 9px;
    background: var(--surface-soft);
}

.map-facts dt {
    color: var(--text-muted);
    font-size: .62rem;
    text-transform: uppercase;
}

.map-facts dd {
    margin: 3px 0 0;
    color: var(--text-strong);
    font-size: .74rem;
    font-weight: 730;
    overflow-wrap: anywhere;
}

.map-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.radar-legend {
    display: grid;
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radar-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: .7rem;
}

.radar-legend i {
    width: 24px;
    height: 10px;
    border-radius: 4px;
}

.rain-none { background: repeating-linear-gradient(135deg, var(--surface-strong) 0 2px, transparent 2px 5px); }
.rain-light { background: #8dd9db; }
.rain-moderate { background: #3985ca; }
.rain-heavy { background: #6e50bd; }
.rain-extreme { border: 2px solid #46143f; background: #c93b88; }

.map-details > summary {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    color: var(--text-strong);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
}

.map-details > div {
    padding: 0 14px 15px;
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.map-details a {
    text-underline-offset: 3px;
}

.frame-list {
    display: grid;
    max-height: 230px;
    margin: 12px 0 0;
    padding: 0;
    gap: 4px;
    overflow: auto;
    list-style: none;
}

.frame-list button,
.model-frame-table button {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: .7rem;
    text-align: left;
}

.frame-list button[aria-current="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

/* Model controls */
.model-selectors {
    display: grid;
    margin-bottom: 12px;
    padding: 10px;
    grid-template-columns: minmax(150px, .6fr) minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 8px;
    border-radius: 14px;
    box-shadow: none;
}

.model-selectors label {
    display: grid;
    gap: 4px;
}

.model-selectors label > span {
    color: var(--text-muted);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.model-selectors select {
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text-strong);
    font-size: .8rem;
    font-weight: 720;
}

.parameter-favorite {
    border-radius: 11px;
    font-size: 1.2rem;
}

.model-mode {
    border-radius: 11px;
}

.model-time-heading strong {
    color: var(--text-strong);
}

.model-legend-strip {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.model-legend-strip span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.model-legend-strip i {
    height: 13px;
    border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    border-radius: 4px;
}

.model-legend-strip small {
    color: var(--text-muted);
    font-size: .57rem;
    line-height: 1.15;
}

.model-frame-table {
    min-width: 420px;
    margin-top: 12px;
}

/* Home radar poster */
.radar-preview {
    margin-top: 38px;
    padding: clamp(16px, 2.5vw, 26px);
    border: 1px solid var(--line-soft);
    border-radius: 22px 22px 22px 7px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
}

.radar-preview-heading {
    margin-bottom: 16px;
}

.radar-preview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.radar-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
    gap: 18px;
    align-items: stretch;
}

.radar-preview-map {
    display: block;
    min-height: clamp(280px, 34vw, 380px);
    border: 1px solid var(--line-soft);
    border-radius: 16px 16px 16px 5px;
    color: inherit;
    text-decoration: none;
}

.radar-preview-map:hover {
    border-color: var(--accent);
}

.radar-preview-time {
    position: absolute;
    z-index: 20;
    top: 10px;
    left: 10px;
    padding: 7px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text-strong);
    font-size: .68rem;
    font-weight: 780;
    backdrop-filter: blur(10px);
}

.radar-preview-loader {
    position: absolute;
    z-index: 18;
    top: 50%;
    left: 50%;
    display: grid;
    transform: translate(-50%, -50%);
    place-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .74rem;
}

.radar-preview-loader img {
    animation: brand-breathe 1.4s ease-in-out infinite alternate;
}

html[data-theme="dark"] .map-loader img,
html[data-theme="dark"] .radar-preview-loader img {
    filter: invert(1);
}

.radar-preview-copy {
    display: flex;
    min-width: 0;
    padding: 8px 2px;
    flex-direction: column;
    justify-content: center;
}

.radar-preview-copy h3 {
    margin: 22px 0 0;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    letter-spacing: -.035em;
}

.radar-preview-copy > p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.radar-preview-copy .radar-preview-boundary {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-size: .7rem;
}

.radar-preview-fallback {
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid var(--caution);
    border-radius: 10px;
    background: var(--caution-soft);
    color: var(--text);
    font-size: .8rem;
}

.radar-preview-fallback span {
    margin-left: 5px;
}

.model-discovery {
    display: flex;
    margin-top: 18px;
    padding: clamp(17px, 2.5vw, 25px);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid color-mix(in srgb, var(--sky) 48%, var(--line-soft));
    border-radius: 16px 16px 16px 5px;
    background: linear-gradient(120deg, var(--sky-soft), var(--surface));
}

.model-discovery h2 {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.model-discovery p:last-child {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: .8rem;
}

@keyframes brand-breathe {
    from { opacity: .62; transform: scale(.94); }
    to { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 980px) {
    .map-layout-grid {
        grid-template-columns: 1fr;
    }

    .map-inspector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-details {
        grid-column: 1 / -1;
    }

    .radar-preview-grid {
        grid-template-columns: 1fr;
    }

    .radar-preview-copy {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 18px;
    }

    .radar-preview-copy .map-status-line,
    .radar-preview-copy h3,
    .radar-preview-copy > p {
        grid-column: 1;
    }

    .radar-preview-copy .map-facts,
    .radar-preview-copy .map-facts {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .radar-preview-copy .radar-preview-boundary {
        grid-column: 2;
        grid-row: 4;
    }
}

@media (max-width: 720px) {
    .map-product-header {
        grid-template-columns: auto 1fr auto;
        gap: 7px;
    }

    .map-product-brand {
        display: none;
    }

    .map-product-nav {
        justify-self: center;
    }

    .map-back span:last-child {
        display: none;
    }

    .map-toolbar {
        grid-template-columns: 1fr;
    }

    .map-toolbar-actions {
        justify-content: flex-start;
    }

    .map-workspace {
        padding-top: 12px;
    }

    .weather-map {
        min-height: clamp(350px, 57vh, 560px);
    }

    .map-inspector {
        grid-template-columns: 1fr;
    }

    .map-details {
        grid-column: 1;
    }

    .model-selectors {
        grid-template-columns: 1fr 1fr auto;
    }

    .model-selectors label:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .model-mode {
        grid-column: 2;
        grid-row: 1;
    }

    .parameter-favorite {
        grid-column: 3;
        grid-row: 2;
    }

    .radar-preview-copy {
        display: block;
    }

    .radar-preview-copy .map-facts {
        margin-top: 14px;
    }

    .model-discovery {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .map-product-nav a {
        padding: 0 9px;
    }

    .map-toolbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-toolbar-actions .button {
        padding: 0 7px;
        font-size: .74rem;
    }

    .weather-map {
        min-height: 390px;
    }

    .map-city-layer span {
        display: none;
    }

    .map-city-layer span:nth-child(1),
    .map-city-layer span:nth-child(2),
    .map-city-layer span:nth-child(4),
    .map-city-layer span:nth-child(5) {
        display: block;
    }

    .timeline-actions label {
        width: 100%;
        justify-content: space-between;
    }

    .timeline-actions select {
        flex: 1;
    }

    .model-time-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .model-selectors {
        grid-template-columns: 1fr auto;
    }

    .model-selectors label:first-child,
    .model-mode {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .model-selectors label:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }

    .parameter-favorite {
        grid-column: 2;
        grid-row: 3;
    }

    .radar-preview {
        padding: 12px;
    }

    .radar-preview-heading {
        display: block;
    }

    .radar-preview-actions {
        margin-top: 12px;
        justify-content: stretch;
    }

    .radar-preview-actions > * {
        flex: 1;
    }

    .radar-preview-map {
        min-height: 290px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-loader img,
    .radar-preview-loader img {
        animation: none;
    }

    .map-transform-layer,
    .map-basemap,
    .map-weather-layer,
    .map-city-layer {
        transition: none;
    }
}
