:root {
    color-scheme: dark;
    --text: #ffffff;
    --muted: rgba(240, 247, 255, 0.72);
    --panel: rgba(39, 73, 108, 0.72);
    --panel-strong: rgba(30, 59, 91, 0.88);
    --line: rgba(255, 255, 255, 0.22);
    --line-soft: rgba(255, 255, 255, 0.1);
    --cyan: #62d3ff;
    --blue: #6fb6ff;
    --rose: #ff8b9a;
    --green: #4de0a4;
    --amber: #ffd05c;
    --weather-image: url("backgrounds/weather-cloud.jpg");
    --weather-overlay: rgba(40, 79, 116, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #668baa;
}

body {
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: #668baa;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

body::before {
    z-index: 0;
    background-image: var(--weather-image);
    background-position: center top;
    background-size: cover;
    transform: scale(1.12);
    animation: sky-drift 48s ease-in-out infinite alternate;
    transition: background-image 500ms ease;
}

body::after {
    z-index: 0;
    background: var(--weather-overlay);
    box-shadow: inset 0 -35vh 35vh rgba(28, 61, 94, 0.34);
    transition: background 500ms ease;
}

body.weather-neutral,
body.weather-cloud {
    --weather-image: url("backgrounds/weather-cloud.jpg");
    --weather-overlay: rgba(53, 84, 112, 0.27);
}

body.weather-clear {
    --weather-image: url("backgrounds/weather-clear.jpg");
    --weather-overlay: rgba(37, 111, 166, 0.2);
}

body.weather-rain {
    --weather-image: url("backgrounds/weather-rain.jpg");
    --weather-overlay: rgba(39, 71, 102, 0.33);
}

body.weather-snow {
    --weather-image: url("backgrounds/weather-cloud.jpg");
    --weather-overlay: rgba(89, 116, 139, 0.22);
}

body.weather-thunder {
    --weather-image: url("backgrounds/weather-thunder.jpg");
    --weather-overlay: rgba(31, 41, 71, 0.36);
}

body.detail-open {
    overflow: hidden;
}

#app {
    position: relative;
    z-index: 1;
}

#app::before {
    position: fixed;
    inset: -14%;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image: var(--weather-image);
    background-position: 35% 15%;
    background-size: cover;
    opacity: 0.18;
    filter: blur(1px);
    mix-blend-mode: screen;
    animation: cloud-drift 72s linear infinite alternate;
}

@keyframes sky-drift {
    from {
        transform: scale(1.12) translate3d(-1.8%, -1%, 0);
    }
    to {
        transform: scale(1.2) translate3d(2.4%, 1.4%, 0);
    }
}

@keyframes cloud-drift {
    from {
        transform: translate3d(-5%, -1%, 0) scale(1.08);
    }
    to {
        transform: translate3d(6%, 2%, 0) scale(1.16);
    }
}

[v-cloak] {
    display: none;
}

button,
input {
    font: inherit;
}

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

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.app-shell {
    width: min(980px, calc(100vw - 24px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(12px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}

.glass {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(17, 40, 66, 0.16);
    backdrop-filter: blur(24px) saturate(118%);
    -webkit-backdrop-filter: blur(24px) saturate(118%);
}

.section.glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.section,
.modal-panel,
.favorite-chip,
.error-strip,
.radar-timeline {
    border-radius: 8px;
}

.hero {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 18px 24px;
    text-align: center;
    text-shadow: 0 2px 16px rgba(15, 39, 65, 0.38);
}

.hero-actions {
    position: absolute;
    top: 4px;
    left: 0;
    right: 2px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    z-index: 3;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--text);
    background: rgba(35, 70, 105, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(22, 46, 72, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 160ms ease, background 160ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(43, 86, 128, 0.54);
    outline: none;
}

.icon-btn:disabled {
    cursor: default;
    opacity: 0.45;
    transform: none;
}

.spin-icon {
    animation: spin 850ms linear infinite;
}

.icon-btn.active {
    color: #ffe47a;
    background: rgba(113, 91, 28, 0.42);
}

.icon-btn.active svg {
    fill: currentColor;
}

.muted,
.section-subtitle {
    color: var(--muted);
}

.hero-location {
    width: min(100%, 620px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
}

.location-title {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    font-weight: 720;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-line {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
}

.hero-weather {
    margin-top: 8px;
}

.temp-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(5rem, 18vw, 7.4rem);
    font-weight: 270;
    line-height: 0.9;
}

.temp-display span {
    margin-top: 0.07em;
    font-size: 0.42em;
    font-weight: 300;
}

.hero-condition {
    margin-top: 6px;
    font-size: 1.08rem;
    font-weight: 650;
}

.hero-high-low {
    margin-top: 1px;
    font-size: 0.88rem;
    font-weight: 620;
}

.hero-summary {
    width: 100%;
    max-width: min(600px, calc(100vw - 34px));
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hero-metrics {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metric {
    min-width: 0;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 1px 6px;
    align-items: center;
    padding: 8px 10px;
    text-align: left;
}

.hero-metric + .hero-metric {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metric svg {
    grid-row: span 2;
    color: rgba(255, 255, 255, 0.82);
}

.hero-metric span {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-metric strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 13px;
}

.status-pill {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(42, 78, 113, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    font-size: 0.69rem;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.status-button {
    cursor: pointer;
    transition: background 160ms ease;
}

.status-button:hover,
.status-button:focus-visible {
    background: rgba(54, 101, 145, 0.54);
    outline: none;
}

.favorites-rail {
    display: flex;
    gap: 7px;
    margin: 0 0 10px;
    overflow-x: auto;
}

.favorite-chip {
    height: 34px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    color: var(--text);
    background: rgba(35, 70, 105, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    white-space: nowrap;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.favorite-chip span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.error-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    color: #fff3f4;
    background: rgba(146, 42, 59, 0.55);
    border: 1px solid rgba(255, 213, 218, 0.3);
    font-size: 0.78rem;
}

.section {
    position: relative;
    margin-top: 10px;
    padding: 0 12px 12px;
    background: rgba(35, 70, 106, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 15px 38px rgba(20, 47, 73, 0.2);
}

.section-head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 -12px 6px;
    padding: 9px 12px 8px;
}

.sticky-section-head {
    position: sticky;
    top: max(7px, env(safe-area-inset-top));
    z-index: 30;
    background: rgba(38, 74, 110, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px 7px 0 0;
    box-shadow: 0 8px 20px rgba(25, 49, 75, 0.12);
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 760;
    text-transform: uppercase;
}

.section-subtitle {
    margin-top: 2px;
    font-size: 0.68rem;
}

.hour-strip {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 3px 2px 2px;
}

.hour-card {
    width: 70px;
    min-width: 70px;
    height: 105px;
    display: grid;
    grid-template-rows: 18px 32px 21px 18px;
    place-items: center;
    gap: 2px;
    padding: 6px 5px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 6px;
    scroll-snap-align: start;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 150ms ease, box-shadow 150ms ease;
}

.hour-card:hover,
.hour-card:focus-visible,
.hour-card.selected {
    background: rgba(121, 199, 238, 0.11);
    box-shadow: none;
    outline: none;
}

.weather-pictogram {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 auto;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(17, 46, 70, 0.2));
}

.hour-weather-pictogram {
    width: 30px;
    height: 30px;
}

.hour-time,
.hour-temp,
.hour-rain {
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hour-time {
    font-size: 0.67rem;
    font-weight: 690;
}

.hour-temp {
    font-size: 0.92rem;
    font-weight: 720;
}

.hour-rain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #8fe0ff;
    font-size: 0.62rem;
    font-weight: 720;
}

.hour-rain svg {
    width: 12px;
    height: 12px;
}

.meteogram-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background-color: #477ca5;
    background-image: var(--weather-image);
    background-position: center;
    background-size: cover;
    text-align: left;
}

.meteogram-panel::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: rgba(37, 82, 119, 0.88);
    backdrop-filter: blur(18px) saturate(88%);
    -webkit-backdrop-filter: blur(18px) saturate(88%);
}

.meteogram-toolbar {
    position: relative;
    z-index: 50;
    min-height: 62px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    color: #f8f8f8;
    background: rgba(38, 82, 119, 0.96);
    border-bottom: 1px solid rgba(211, 237, 252, 0.14);
    box-shadow: 0 8px 24px rgba(18, 43, 68, 0.14);
}

.meteogram-toolbar .icon-btn {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 120;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
}

.meteogram-toolbar > div:first-child {
    min-width: 0;
    padding-right: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-kicker {
    margin-bottom: 2px;
    color: rgba(225, 242, 253, 0.72);
    font-size: 0.64rem;
    font-weight: 720;
    text-transform: uppercase;
}

.meteogram-scroll {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.meteogram-horizontal {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.meteogram-sheet {
    min-width: 100%;
    background: rgba(38, 82, 119, 0.68);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.meteogram-row {
    display: block;
    min-width: 100%;
    border-bottom: 1px solid rgba(221, 241, 252, 0.09);
}

.meteogram-row:first-child {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(42, 90, 128, 0.98);
    box-shadow: 0 7px 18px rgba(18, 43, 68, 0.15);
}

.meteogram-row:last-child {
    border-bottom: 0;
}

.meteo-row-label {
    position: sticky;
    left: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100vw;
    height: 30px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(43, 92, 130, 0.98);
    border-bottom: 1px solid rgba(220, 241, 252, 0.1);
    font-size: 0.68rem;
    font-weight: 760;
    text-transform: uppercase;
}

.meteo-row-label small {
    overflow: hidden;
    color: rgba(225, 242, 253, 0.7);
    font-size: 0.57rem;
    font-weight: 650;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.meteogram-row:first-child .meteo-row-label {
    z-index: 45;
}

.meteo-track {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 63px,
        rgba(226, 243, 253, 0.075) 63px,
        rgba(226, 243, 253, 0.075) 64px
    );
}

.meteo-cells,
.chart-values {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64px;
}

.meteo-hour-cell {
    position: relative;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    text-align: center;
}

.meteo-hour-cell.is-selected,
.chart-value-cell.is-selected {
    background: rgba(112, 198, 239, 0.1);
    box-shadow: none;
}

.meteo-time-cell {
    min-height: 50px;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 700;
}

.meteo-time-cell small,
.meteo-hour-cell small {
    max-width: 100%;
    overflow: hidden;
    color: rgba(226, 243, 253, 0.72);
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meteo-weather-cell {
    min-height: 58px;
    flex-direction: column;
    color: #dcefff;
}

.meteo-weather-cell .detail-weather-pictogram {
    width: 27px;
    height: 27px;
}

.meteo-chart-track {
    height: 96px;
}

.meteo-chart-track.wind-chart {
    height: 148px;
}

.meteo-chart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.meteo-chart .temperature-line {
    fill: none;
    stroke: #f27622;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(73, 38, 16, 0.24));
}

.meteo-chart .temperature-area {
    fill: rgba(244, 131, 48, 0.18);
    stroke: none;
}

.meteo-chart .temperature-point {
    fill: #f27622;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.25;
}

.meteo-chart .wind-line {
    fill: none;
    stroke: #f5bb32;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-values {
    position: absolute;
    inset: 0;
}

.chart-value-cell {
    position: relative;
    min-width: 64px;
}

.chart-value {
    position: absolute;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    padding: 1px 3px;
    color: #fff;
    background: rgba(29, 67, 102, 0.82);
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 730;
    white-space: nowrap;
}

.temperature-value {
    padding: 0;
    transform: translate(-50%, -125%);
    color: #fff;
    background: transparent;
    border-radius: 0;
    font-size: 0.68rem;
    font-weight: 780;
    text-shadow: 0 1px 3px rgba(19, 49, 73, 0.82);
}

.temperature-chart-track {
    background-color: rgba(24, 67, 101, 0.12);
}

.meteo-risk-track,
.meteo-amount-track {
    background-color: rgba(24, 67, 101, 0.09);
    background-image:
        repeating-linear-gradient(
            to top,
            rgba(226, 243, 253, 0.055) 0,
            rgba(226, 243, 253, 0.055) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 63px,
            rgba(226, 243, 253, 0.075) 63px,
            rgba(226, 243, 253, 0.075) 64px
        );
}

.meteo-risk-bar-cell {
    min-height: 98px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
    padding: 7px 7px 5px;
}

.meteo-risk-value {
    position: absolute;
    top: 7px;
    right: 0;
    left: 0;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 750;
    text-align: center;
}

.meteo-risk-bar {
    width: 100%;
    min-height: 0;
    background: rgba(103, 188, 245, 0.94);
    border-radius: 2px 2px 0 0;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.meteo-bar-cell {
    min-height: 104px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6px 6px 5px;
}

.meteo-bar {
    width: 100%;
    min-height: 0;
    background: #2374c9;
    border-radius: 2px 2px 0 0;
}

.meteo-bar-value {
    width: 100%;
    margin-bottom: 3px;
    font-size: 0.63rem;
    font-weight: 720;
    text-align: center;
}

.wind-direction {
    color: #f5bb32;
    transform-origin: center;
}

.wind-direction-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.59rem;
}

.wind-gust-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff9aa8;
    font-size: 0.58rem;
    font-weight: 760;
    white-space: nowrap;
}

.meteo-simple-cell {
    min-height: 52px;
    flex-direction: column;
    font-size: 0.66rem;
    font-weight: 720;
}

.meteo-simple-cell svg {
    color: #65aef4;
}

.meteo-percent-cell {
    min-height: 92px;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 5px 4px 0;
}

.meteo-percent-fill {
    width: 100%;
    min-height: 2px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    color: #123247;
    background: rgba(108, 211, 240, 0.86);
    font-size: 0.61rem;
    font-weight: 760;
}

.cloud-fill {
    color: #17344b;
    background: rgba(205, 224, 237, 0.9);
}

.day-list {
    display: grid;
}

.day-row {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(226, 243, 253, 0.075);
}

.day-row:last-child {
    border-bottom: 0;
}

.day-button {
    width: 100%;
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 38px minmax(180px, 0.8fr) 62px 20px;
    gap: 9px;
    align-items: center;
    padding: 7px 2px;
    color: var(--text);
    text-align: left;
}

.day-button > div:first-child,
.temp-range {
    min-width: 0;
}

.day-button:hover,
.day-button:focus-visible {
    background: rgba(132, 205, 239, 0.07);
    outline: none;
}

.day-name {
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 730;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-button .muted {
    overflow: hidden;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #e3f4ff;
}

.day-weather-pictogram {
    width: 31px;
    height: 31px;
}

.temp-range {
    overflow: hidden;
    display: grid;
    grid-template-columns: 34px minmax(64px, 140px) 34px;
    gap: 7px;
    align-items: center;
    justify-content: end;
    white-space: nowrap;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
}

.temp-min {
    color: #cbe7ff;
    text-align: right;
}

.temp-max {
    color: #fff3d0;
}

.day-range-track {
    position: relative;
    height: 4px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.17);
    border-radius: 999px;
}

.day-range-fill {
    position: absolute;
    top: 0;
    height: 4px;
    min-width: 5px;
    background: linear-gradient(90deg, #58c7f5 0%, #f5c74f 56%, #ef7645 100%);
    border-radius: 999px;
}

.day-range-fill i {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid rgba(29, 66, 99, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.rain-summary {
    font-size: 0.68rem;
}

.day-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(27, 56, 86, 0.25);
}

.part-column {
    min-width: 0;
    padding: 9px 10px;
}

.part-column + .part-column {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.part-title {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.61rem;
    font-weight: 760;
    text-transform: uppercase;
}

.metric-stack {
    display: grid;
    gap: 4px;
    font-size: 0.7rem;
}

.metric-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.radar-shell {
    padding: 0;
}

.radar-head {
    margin: 0;
    padding-right: 10px;
    padding-left: 10px;
}

.radar-open-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 700;
}

.radar-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
}

#radarMap {
    width: 100%;
    height: 390px;
    background: #6e8794;
}

.radar-stage.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 150;
    overflow: hidden;
    border-radius: 0;
    background: #466c82;
}

.radar-stage.is-fullscreen #radarMap {
    height: 100dvh;
}

.radar-fullscreen-head {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    z-index: 700;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px 7px 13px;
    background: rgba(38, 75, 106, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.radar-fullscreen-head div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.radar-fullscreen-head strong {
    font-size: 0.86rem;
}

.radar-fullscreen-head small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaflet-container {
    color: #15202a;
    background: #6e8794;
    font: inherit;
}

.radar-base-tile {
    filter: saturate(0.74) brightness(1.05);
}

.dwd-radar-tile,
.rainviewer-radar-tile {
    filter: saturate(1.35) contrast(1.12);
}

.leaflet-control-attribution {
    display: none;
}

.leaflet-bar {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(26, 45, 59, 0.22) !important;
}

.leaflet-bar a {
    color: #fff !important;
    background: rgba(45, 70, 88, 0.74) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.radar-legend {
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 500;
    padding: 7px 6px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(37, 58, 74, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    font-size: 0.58rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.radar-legend-official {
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
}

.radar-legend-official img {
    width: 74px;
    height: auto;
    display: block;
}

.radar-stage:not(.is-fullscreen) .radar-legend-official img {
    width: 62px;
}

.radar-stage.is-fullscreen .radar-legend {
    top: calc(max(10px, env(safe-area-inset-top)) + 66px);
}

.radar-stage.is-fullscreen .leaflet-top.leaflet-left {
    top: calc(max(10px, env(safe-area-inset-top)) + 66px);
    right: 10px;
    left: auto;
}

.radar-legend > span {
    display: block;
    margin-bottom: 4px;
    text-align: center;
}

.radar-legend-scale {
    position: relative;
    width: 32px;
    height: 132px;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    align-items: center;
    padding-left: 13px;
}

.radar-legend-scale i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 8px;
    background: linear-gradient(to bottom, #bb1edb, #ee285c, #ff7e1f, #ffdb3a, #2fd274, #22a8f2, rgba(100, 194, 255, 0.3));
    border-radius: 999px;
}

.radar-legend-scale b {
    font-size: 0.52rem;
    font-weight: 650;
}

.radar-timeline {
    position: relative;
    z-index: 500;
    margin: -178px 10px 10px;
    padding: 9px 11px 8px;
    background: rgba(34, 55, 72, 0.72);
}

.radar-stage.is-fullscreen .radar-timeline {
    position: absolute;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    margin: 0;
}

.radar-timeline-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.radar-outlook {
    display: grid;
    gap: 7px;
    margin-bottom: 8px;
}

.radar-outlook-copy {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.radar-outlook-copy strong {
    font-size: 0.68rem;
}

.radar-outlook-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.56rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-outlook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.radar-outlook-item {
    min-width: 0;
    min-height: 43px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 1px 4px;
    align-items: center;
    padding: 5px 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.radar-outlook-item > span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.55rem;
}

.radar-outlook-item > strong {
    grid-column: 1 / -1;
    overflow: hidden;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-outlook-item svg {
    color: #9edfff;
}

.radar-outlook-item.light {
    background: rgba(71, 167, 225, 0.2);
}

.radar-outlook-item.moderate {
    background: rgba(48, 180, 131, 0.24);
}

.radar-outlook-item.heavy {
    background: rgba(245, 167, 51, 0.25);
}

.radar-play-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.radar-play-button:disabled {
    opacity: 0.45;
}

.radar-frame-title {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.radar-frame-title strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-frame-title small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-range-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 2px;
    background: rgba(11, 29, 46, 0.38);
    border-radius: 7px;
}

.radar-range-control button {
    min-height: 29px;
    padding: 0 9px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 0.64rem;
    font-weight: 690;
}

.radar-range-control button.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.radar-slider {
    width: 100%;
    height: 20px;
    margin: 5px 0 0;
    accent-color: #f4f8fb;
}

.radar-time-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.55rem;
}

.radar-model-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 490;
    width: min(300px, calc(100% - 84px));
    padding: 12px;
    transform: translate(-50%, -60%);
    color: #fff;
    background: rgba(38, 75, 106, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(17, 42, 66, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.radar-model-title {
    font-size: 0.78rem;
    font-weight: 760;
}

.radar-model-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 9px 0 7px;
    background: rgba(255, 255, 255, 0.15);
}

.radar-model-values span {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 3px;
    background: rgba(33, 69, 102, 0.78);
    font-size: 0.68rem;
    font-weight: 720;
    white-space: nowrap;
}

.radar-model-card > small {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.6rem;
    line-height: 1.35;
}

.widget-section {
    padding: 0;
}

.widget-guide-button {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    color: #fff;
    background: transparent;
    border: 0;
    text-align: left;
}

.widget-guide-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #dff5ff;
    background: rgba(104, 202, 246, 0.16);
    border: 1px solid rgba(173, 226, 252, 0.24);
    border-radius: 8px;
}

.widget-guide-button > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.widget-guide-button strong {
    font-size: 0.84rem;
}

.widget-guide-button small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
    line-height: 1.35;
}

.widget-modal-backdrop {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
}

.widget-modal {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
}

.widget-modal-head,
.widget-code-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.widget-steps {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.widget-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.widget-steps li > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #e9f8ff;
    background: rgba(104, 202, 246, 0.18);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 760;
}

.widget-steps li > div {
    display: grid;
    gap: 2px;
}

.widget-steps strong {
    font-size: 0.76rem;
}

.widget-steps small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.67rem;
    line-height: 1.4;
}

.scriptable-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.widget-code-head {
    margin-top: 14px;
}

.widget-code-head strong {
    font-size: 0.76rem;
}

.widget-code-head > div {
    display: flex;
    gap: 6px;
}

.widget-code-head .icon-btn {
    width: 36px;
    height: 36px;
}

.widget-code {
    width: 100%;
    max-width: 100%;
    max-height: 42vh;
    margin: 8px 0 0;
    overflow: auto;
    padding: 11px;
    color: #e5f5ff;
    background: rgba(18, 45, 70, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    font: 0.66rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre;
}

.empty-state {
    min-height: 240px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.loader {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 850ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    padding: max(24px, env(safe-area-inset-top)) 12px 24px;
    background: rgba(24, 45, 65, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-panel {
    width: min(560px, 100%);
    margin-top: 7vh;
    padding: 14px;
    background: rgba(36, 70, 103, 0.78);
}

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

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-input:focus {
    border-color: rgba(124, 218, 255, 0.68);
}

.search-results {
    display: grid;
    max-height: 54vh;
    margin-top: 10px;
    overflow-y: auto;
}

.result-button {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.result-name {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sources-list {
    display: grid;
    margin-top: 10px;
}

.source-item {
    min-height: 58px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 52px;
    grid-template-areas:
        "number copy toggle"
        "number status toggle";
    gap: 8px;
    align-items: center;
    padding: 6px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.source-number {
    grid-area: number;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #dff7ff;
    background: rgba(84, 197, 241, 0.14);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 760;
}

.source-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 710;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-copy {
    grid-area: copy;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.source-weight {
    color: var(--muted);
    font-size: 0.62rem;
    white-space: nowrap;
}

.source-status-copy {
    grid-area: status;
    min-width: 72px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.61rem;
    font-weight: 700;
    white-space: nowrap;
}

.source-status-copy svg {
    width: 17px;
    height: 17px;
}

.source-status-copy.ok {
    color: var(--green);
}

.source-status-copy.failed {
    color: #ff8798;
}

.source-toggle {
    grid-area: toggle;
    position: relative;
    width: 52px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
}

.source-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.source-toggle-track {
    width: 42px;
    height: 24px;
    display: flex;
    align-items: center;
    padding: 2px;
    background: rgba(151, 172, 190, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: background 180ms ease, border-color 180ms ease;
}

.source-toggle-track i {
    width: 18px;
    height: 18px;
    display: block;
    background: #f7fbff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 37, 56, 0.28);
    transition: transform 180ms ease;
}

.source-toggle input:checked + .source-toggle-track {
    background: #2cc985;
    border-color: rgba(197, 255, 229, 0.42);
}

.source-toggle input:checked + .source-toggle-track i {
    transform: translateX(18px);
}

.source-toggle input:focus-visible + .source-toggle-track {
    outline: 2px solid #9ee8ff;
    outline-offset: 1px;
}

.source-toggle.disabled {
    cursor: default;
    opacity: 0.48;
}

@media (min-width: 520px) {
    .source-item {
        grid-template-columns: 28px minmax(0, 1fr) auto 52px;
        grid-template-areas: "number copy status toggle";
    }
}

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

.source-recalculation {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
}

.feedback-toast {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    z-index: 1200;
    max-width: 520px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px 12px;
    color: #f5fcff;
    background: rgba(34, 75, 105, 0.94);
    border: 1px solid rgba(174, 229, 255, 0.32);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(14, 37, 57, 0.28);
    font-size: 0.75rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.feedback-toast svg {
    flex: 0 0 auto;
    color: var(--green);
}

@media (max-width: 760px) {
    .app-shell {
        width: min(100vw - 10px, 980px);
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .hero {
        min-height: 340px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .day-button {
        grid-template-columns: minmax(110px, 0.8fr) 38px minmax(150px, 1.2fr) 20px;
        gap: 7px;
    }

    .day-button .rain-summary {
        display: none;
    }

    .temp-range {
        grid-template-columns: 34px minmax(60px, 112px) 34px;
        gap: 6px;
        font-size: 0.84rem;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: 326px;
        justify-content: flex-start;
        padding-top: 51px;
    }

    .hero-actions {
        top: 1px;
        left: 50%;
        right: auto;
        width: max-content;
        justify-content: center;
        transform: translateX(-50%);
    }

    .icon-btn {
        width: 37px;
        height: 37px;
    }

    .location-title {
        font-size: 1.52rem;
    }

    .temp-display {
        font-size: 4.85rem;
    }

    .hero-summary {
        max-width: 310px;
        margin-top: 8px;
        font-size: 0.72rem;
    }

    .hero-metrics {
        margin-top: 10px;
    }

    .hero-metric {
        grid-template-columns: 13px minmax(0, 1fr);
        gap: 1px 4px;
        padding: 7px 5px;
    }

    .hero-metric svg {
        width: 13px;
        height: 13px;
    }

    .hero-metric strong {
        font-size: 0.68rem;
    }

    .status-row {
        margin-top: 8px;
    }

    .section {
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    }

    .section-head {
        min-height: 52px;
        margin-right: -10px;
        margin-left: -10px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
    }

    .hour-card {
        width: 70px;
        min-width: 70px;
        height: 108px;
        grid-template-rows: 18px 32px 22px 18px;
        padding: 6px 4px;
    }

    .hour-time {
        font-size: 0.68rem;
    }

    .hour-temp {
        font-size: 0.94rem;
    }

    .hour-rain {
        font-size: 0.66rem;
    }

    .day-button {
        min-height: 64px;
        grid-template-columns: minmax(128px, 1.25fr) 30px minmax(116px, 0.75fr);
        gap: 6px;
        padding: 8px 0;
    }

    .day-button > svg:last-child {
        display: none;
    }

    .day-button .muted {
        max-width: 100%;
        font-size: 0.69rem;
    }

    .day-name {
        font-size: 0.84rem;
    }

    .weather-symbol {
        width: 30px;
        height: 30px;
    }

    .weather-symbol .day-weather-pictogram {
        width: 30px;
        height: 30px;
    }

    .temp-range {
        width: auto;
        grid-template-columns: 34px minmax(48px, 72px) 34px;
        gap: 4px;
        font-size: 0.86rem;
    }

    .day-details {
        font-size: 0.72rem;
    }

    .part-column {
        padding: 8px 6px;
    }

    .metric-line {
        display: grid;
        gap: 1px;
    }

    .meteo-row-label {
        height: 32px;
        padding: 0 10px;
        font-size: 0.66rem;
    }

    #radarMap {
        height: 360px;
    }

    .radar-stage.is-fullscreen #radarMap {
        height: 100dvh;
    }

    .radar-timeline {
        margin: -184px 7px 7px;
        padding: 8px;
    }

    .radar-timeline-head {
        grid-template-columns: 34px minmax(0, 1fr) 108px;
        gap: 6px;
    }

    .radar-play-button {
        width: 32px;
        height: 32px;
    }

    .radar-range-control button {
        min-height: 26px;
        padding: 0 5px;
        font-size: 0.6rem;
    }

    .radar-open-button {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.66rem;
    }

    .radar-model-card {
        width: min(292px, calc(100% - 72px));
    }

    .radar-outlook-copy {
        display: grid;
        gap: 1px;
    }

    .radar-outlook-copy small {
        text-align: left;
    }

    .radar-outlook-item {
        padding-right: 5px;
        padding-left: 5px;
    }

    .widget-guide-button {
        min-height: 82px;
    }

    .widget-guide-button strong {
        font-size: 0.86rem;
    }

    .widget-guide-button small {
        font-size: 0.7rem;
    }

    .widget-modal-backdrop {
        padding: max(8px, env(safe-area-inset-top)) 5px max(8px, env(safe-area-inset-bottom));
    }

    .widget-modal {
        margin-top: 0;
        padding: 12px;
    }

    .widget-code {
        max-height: 38vh;
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    #app::before {
        animation: none;
    }
}
