:root {
    color-scheme: light;
    --ink: #102025;
    --muted: #607078;
    --soft: #eef5f2;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(29, 71, 76, 0.14);
    --shadow: 0 24px 80px rgba(15, 49, 55, 0.16);
    --storm: #0d3b46;
    --storm-2: #14576a;
    --sun: #ffb84d;
    --rain: #1b8bd1;
    --leaf: #3f8f65;
    --danger: #c4493d;
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --ticker-height: 48px;
    --radar-height: clamp(430px, 50vh, 620px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    font-family: "Aptos Display", "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 6%, rgba(255, 184, 77, 0.38), transparent 28rem),
        radial-gradient(circle at 92% 14%, rgba(27, 139, 209, 0.28), transparent 30rem),
        linear-gradient(145deg, #f8efe0 0%, #e5f2ee 42%, #cfe4e9 100%);
}

main {
    min-width: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(13, 59, 70, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 59, 70, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.12));
}

button,
input {
    font: inherit;
    min-width: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

img,
svg,
iframe {
    max-width: 100%;
}

iframe {
    display: block;
}

.page-shell {
    width: min(1500px, calc(100% - clamp(24px, 5vw, 72px)));
    margin: 0 auto;
    padding: calc(clamp(22px, 4vw, 48px) + var(--ticker-height)) 0 max(64px, env(safe-area-inset-bottom));
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: stretch;
    margin-bottom: 22px;
}

.hero-copy,
.search-card,
.glass-panel {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
    .hero-copy,
    .search-card,
    .glass-panel {
        background: rgba(255, 255, 255, 0.94);
    }
}

.hero-copy {
    overflow: hidden;
    min-height: 360px;
    padding: clamp(28px, 5vw, 58px);
    border-radius: var(--radius-xl);
    color: white;
    background:
        radial-gradient(circle at 86% 20%, rgba(255, 184, 77, 0.52), transparent 15rem),
        radial-gradient(circle at 12% 100%, rgba(125, 219, 255, 0.26), transparent 22rem),
        linear-gradient(135deg, #0b2932 0%, #15586b 52%, #224a34 100%);
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -10rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 58%),
        conic-gradient(from 40deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.12), transparent);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(16, 32, 37, 0.58);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.68);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    margin-bottom: 18px;
    font-size: clamp(4rem, 10vw, 9.4rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4.4vw, 4.8rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
}

h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.35;
}

.hero-search-copy {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    line-height: 1.55;
}

.search-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius-xl);
    background: var(--panel-strong);
}

.search-card label {
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-row input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(13, 59, 70, 0.16);
    border-radius: 18px;
    outline: 0;
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-row input:focus {
    border-color: rgba(20, 87, 106, 0.52);
    box-shadow: 0 0 0 4px rgba(27, 139, 209, 0.12);
}

.search-row button,
.ghost-button {
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 900;
}

.search-row button {
    padding: 0 22px;
    color: white;
    background: linear-gradient(135deg, var(--storm), var(--storm-2));
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ghost-button {
    flex: 1 1 150px;
    padding: 0 18px;
    color: var(--storm);
    background: rgba(13, 59, 70, 0.08);
    border: 1px solid rgba(13, 59, 70, 0.12);
}

.search-results {
    display: grid;
    gap: 8px;
}

.search-result {
    width: 100%;
    border: 1px solid rgba(13, 59, 70, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.76);
}

.search-result strong {
    display: block;
}

.search-result span {
    color: var(--muted);
    font-size: 0.9rem;
}

.location-note,
.section-meta {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

.current-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.load-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-bottom: 18px;
    padding: 14px 18px;
    color: var(--storm);
    font-weight: 900;
}

.load-status::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 6px rgba(63, 143, 101, 0.12);
}

.load-status.is-loading::before {
    background: var(--rain);
    box-shadow: 0 0 0 6px rgba(27, 139, 209, 0.14);
    animation: pulseStatus 900ms ease-in-out infinite alternate;
}

.load-status.is-error {
    color: #711f18;
    border-color: rgba(196, 73, 61, 0.28);
    background: rgba(255, 240, 236, 0.86);
}

.load-status.is-error::before {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(196, 73, 61, 0.14);
}

.news-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--ticker-height);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f8fbff;
    background: rgba(6, 15, 26, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.news-ticker::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
}

.news-ticker-content {
    display: flex;
    align-items: center;
    width: max-content;
    flex-wrap: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.news-ticker-sequence {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
}

.news-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-right: 44px;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
}

.news-item::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rain), var(--leaf));
    box-shadow: 0 0 0 6px rgba(27, 139, 209, 0.14);
}

.news-item a {
    color: inherit;
    text-decoration: none;
    opacity: 0.94;
}

.news-item a:hover,
.news-item a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.news-loading {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
}

@keyframes pulseStatus {
    from {
        transform: scale(0.88);
        opacity: 0.72;
    }
    to {
        transform: scale(1.12);
        opacity: 1;
    }
}

.glass-panel {
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.6vw, 28px);
}

.current-card {
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 96% 4%, rgba(255, 184, 77, 0.52), transparent 14rem),
        linear-gradient(135deg, #14343a, #0d3b46 52%, #102025);
}

.current-card::after {
    content: "";
    position: absolute;
    right: -7rem;
    top: 1rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.current-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.current-place {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.current-temp {
    margin: 8px 0 0;
    font-size: clamp(4rem, 9vw, 8.8rem);
    line-height: 0.82;
    letter-spacing: -0.09em;
}

.current-icon {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
}

.current-desc {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.current-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.metric-pill {
    display: inline-flex;
    gap: 7px;
    align-items: baseline;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
}

.metric-pill span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brief-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.brief-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.brief-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brief-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
    background: rgba(13, 59, 70, 0.06);
}

.brief-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--rain);
}

.section-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 18px 0 20px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 49, 55, 0.08);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.section-tabs::-webkit-scrollbar,
.forecast-grid::-webkit-scrollbar,
.hourly-scroll::-webkit-scrollbar {
    display: none;
}

.section-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--storm);
    text-decoration: none;
    font-weight: 900;
    background: rgba(13, 59, 70, 0.07);
}

.warning-strip {
    margin-bottom: 26px;
}

.warning-ok {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #25553c;
}

.warning-alert {
    display: grid;
    gap: 10px;
    border-color: rgba(196, 73, 61, 0.28);
    background: rgba(255, 247, 236, 0.86);
}

.warning-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(196, 73, 61, 0.08);
}

.warning-item strong {
    display: block;
}

.section-block {
    margin-top: clamp(30px, 5vw, 62px);
}

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

.section-heading .section-meta {
    max-width: 34rem;
    text-align: right;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(168px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.forecast-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.7)),
        radial-gradient(circle at top right, rgba(255, 184, 77, 0.26), transparent 8rem);
    box-shadow: 0 16px 40px rgba(15, 49, 55, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.forecast-card:hover,
.forecast-card.is-active {
    transform: translateY(-4px);
    border-color: rgba(20, 87, 106, 0.34);
    box-shadow: 0 22px 52px rgba(15, 49, 55, 0.15);
}

.forecast-day {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

.forecast-icon {
    margin: 16px 0 8px;
    font-size: 3.3rem;
    line-height: 1;
}

.forecast-temp {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.forecast-temp span:last-child {
    color: var(--muted);
    font-size: 1.15rem;
}

.forecast-desc {
    min-height: 2.8em;
    margin: 10px 0;
    color: var(--storm);
    font-weight: 900;
    line-height: 1.16;
}

.forecast-facts {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.day-detail {
    margin-top: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.detail-title {
    margin-bottom: 8px;
    font-size: 2rem;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.detail-stats,
.model-list {
    display: grid;
    gap: 8px;
}

.detail-stat,
.model-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(13, 59, 70, 0.06);
}

.radar-grid,
.health-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.radar-grid {
    grid-auto-rows: 1fr;
}

.health-grid {
    grid-template-columns: minmax(270px, 0.8fr) minmax(280px, 1fr) minmax(280px, 1fr);
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.map-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.panel-title-row span,
.panel-title-row a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.panel-actions a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(13, 59, 70, 0.08);
    text-decoration: none;
}

.radar-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(13, 59, 70, 0.07);
}

.radar-mode-button {
    flex: 1 1 150px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--storm);
    background: transparent;
    font-weight: 950;
}

.radar-mode-button.is-active {
    color: white;
    background: linear-gradient(135deg, var(--storm), var(--storm-2));
    box-shadow: 0 12px 28px rgba(13, 59, 70, 0.18);
}

.radar-choice[hidden] {
    display: none;
}

.radar-choice.is-active {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
}

.regnradar-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
    font-weight: 900;
}

.regnradar-title {
    display: grid;
    gap: 3px;
}

.regnradar-title small {
    color: var(--storm);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.regnradar-toolbar div {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.regnradar-toolbar button {
    min-width: 46px;
    min-height: 38px;
    border: 1px solid rgba(13, 59, 70, 0.12);
    border-radius: 12px;
    cursor: pointer;
    color: var(--storm);
    background: rgba(255, 255, 255, 0.86);
    font-weight: 950;
}

.regnradar-viewport {
    position: relative;
    flex: 0 0 var(--radar-height);
    height: var(--radar-height);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(13, 59, 70, 0.1);
    border-radius: 22px;
    background:
        radial-gradient(circle at 22% 82%, rgba(27, 139, 209, 0.22), transparent 16rem),
        linear-gradient(135deg, rgba(13, 59, 70, 0.08), rgba(255, 255, 255, 0.5)),
        #dcebed;
    cursor: grab;
    overscroll-behavior: contain;
    touch-action: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.regnradar-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.regnradar-viewport img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    margin: 0;
    image-rendering: auto;
    pointer-events: none;
    user-select: none;
    transform-origin: 0 0;
    will-change: transform;
}

.radar-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.lightning-frame,
.weather-radar-frame,
.uv-map {
    width: 100%;
    border: 1px solid rgba(13, 59, 70, 0.1);
    border-radius: 22px;
    overflow: hidden;
    background: #d9e7e6;
}

.lightning-frame,
.weather-radar-frame {
    flex: 0 0 var(--radar-height);
    height: var(--radar-height);
    min-height: 0;
}

.weather-radar-frame {
    min-height: 0;
}

.lightning-frame,
.weather-radar-frame {
    display: block;
}

.leaflet-container {
    font: inherit;
    cursor: grab;
    touch-action: pan-x pan-y pinch-zoom;
}

.leaflet-container:active {
    cursor: grabbing;
}

.uv-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0;
}

.uv-number {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.82;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.uv-label {
    font-size: 1.15rem;
    font-weight: 900;
}

.uv-map {
    height: 210px;
    margin-top: 14px;
}

.pollen-list,
.air-list,
.station-grid {
    display: grid;
    gap: 10px;
}

.pollen-row {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 12px;
    align-items: center;
}

.pollen-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 59, 70, 0.09);
}

.pollen-bar span {
    display: block;
    width: var(--bar-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--leaf), var(--sun), var(--danger));
}

.tone-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--storm);
    background: rgba(13, 59, 70, 0.08);
    font-size: 0.82rem;
    font-weight: 900;
}

.tone-high,
.tone-very-high,
.tone-extreme,
.tone-poor,
.tone-very-poor {
    color: #711f18;
    background: rgba(196, 73, 61, 0.14);
}

.tone-moderate {
    color: #6c4200;
    background: rgba(255, 184, 77, 0.2);
}

.tone-good,
.tone-fair,
.tone-low,
.tone-none {
    color: #1d5b3f;
    background: rgba(63, 143, 101, 0.16);
}

.air-hero {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(13, 59, 70, 0.06);
}

.air-number {
    font-size: 4rem;
    line-height: 0.82;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.air-list {
    margin-top: 14px;
}

.air-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(13, 59, 70, 0.055);
}

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

.station-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 40px rgba(15, 49, 55, 0.08);
}

.station-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.station-value {
    margin: 8px 0;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.station-meta {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.hourly-panel {
    display: grid;
    gap: 18px;
}

.minute-rain {
    display: grid;
    gap: 10px;
}

.minute-bars {
    display: grid;
    grid-template-columns: repeat(32, minmax(10px, 1fr));
    gap: 4px;
    align-items: end;
    min-height: 80px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(13, 59, 70, 0.06);
}

.minute-bar {
    min-height: 4px;
    height: max(4px, var(--bar-height, 4px));
    border-radius: 999px 999px 2px 2px;
    background: linear-gradient(180deg, #1b8bd1, #66c7ff);
}

.hourly-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hour-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.hour-time {
    color: var(--muted);
    font-weight: 900;
}

.hour-icon {
    margin: 8px 0;
    font-size: 2rem;
}

.hour-temp {
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hour-meta {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.loading-block,
.empty-block,
.noscript {
    padding: 20px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(13, 59, 70, 0.06);
}

.noscript {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    color: white;
    background: var(--danger);
}

@media (max-width: 1180px) {
    .hero,
    .current-grid,
    .radar-grid,
    .health-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .section-heading .section-meta {
        text-align: left;
    }

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

@media (max-width: 720px) {
    :root {
        --radar-height: min(56vh, 500px);
        --radar-height: min(56svh, 500px);
    }

    .page-shell {
        width: min(100% - 24px, 1500px);
        padding-top: calc(var(--ticker-height) + 12px);
    }

    .hero,
    .current-grid,
    .radar-grid,
    .health-grid,
    .detail-grid {
        gap: 14px;
    }

    .hero-copy {
        min-height: 310px;
        padding: 26px;
    }

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

    .section-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
        padding: 6px;
        border-radius: 22px;
    }

    .section-tabs a {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 9px 13px;
    }

    .current-top,
    .panel-title-row,
    .air-hero,
    .regnradar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-item {
        padding-right: 32px;
        font-size: 0.86rem;
    }

    .glass-panel {
        padding: clamp(16px, 5vw, 22px);
    }

    .panel-actions,
    .regnradar-toolbar div {
        justify-content: flex-start;
        width: 100%;
    }

    .regnradar-toolbar button {
        flex: 1 1 0;
    }

    .radar-switcher {
        border-radius: 18px;
    }

    .radar-mode-button {
        flex-basis: 100%;
    }

    .station-grid {
        grid-template-columns: 1fr;
    }

    .pollen-row {
        grid-template-columns: 72px 1fr;
    }

    .pollen-row .tone-chip {
        grid-column: 2;
        justify-self: start;
    }

    .lightning-frame,
    .weather-radar-frame {
        height: var(--radar-height);
        min-height: 340px;
    }

    .weather-radar-frame {
        min-height: 340px;
    }

    .regnradar-viewport {
        height: var(--radar-height);
        min-height: 340px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --radar-height: min(52vh, 460px);
        --radar-height: min(52svh, 460px);
    }

    .page-shell {
        width: min(100% - 18px, 1500px);
        padding-top: calc(var(--ticker-height) + 9px);
    }

    .news-ticker {
        padding: 10px 0;
    }

    .news-item {
        padding-right: 28px;
        font-size: 0.82rem;
    }

    .hero-copy,
    .search-card,
    .glass-panel {
        border-radius: 22px;
    }

    .hero-copy {
        min-height: 260px;
        padding: 22px;
    }

    h1 {
        max-width: 11ch;
        font-size: clamp(3.1rem, 19vw, 4.4rem);
        letter-spacing: -0.075em;
    }

    h2 {
        font-size: clamp(2rem, 13vw, 3.1rem);
    }

    .current-temp,
    .uv-number {
        font-size: clamp(3.6rem, 20vw, 5.4rem);
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .regnradar-viewport,
    .lightning-frame,
    .weather-radar-frame {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .search-card,
    .glass-panel,
    .forecast-card,
    .station-card {
        animation: reveal 520ms ease both;
    }

    @keyframes reveal {
        from {
            transform: translateY(14px);
        }
        to {
            transform: translateY(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker-content {
        transform: none !important;
        overflow-x: auto;
    }
}
