.presura-precipitation-timeline {
    box-sizing: border-box;
    grid-column: 1 / -1;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(207, 244, 229, 0.14);
    padding-top: 0.6rem;
    width: 100%;
}

.presura-precipitation-timeline__summary {
    align-items: center;
    background: rgba(2, 24, 27, 0.36);
    border: 1px solid rgba(207, 244, 229, 0.16);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    text-align: left;
    width: 100%;
}

.presura-precipitation-timeline[data-state="collapsed"] {
    grid-column: 1 / -1;
}

.presura-precipitation-timeline[data-state="medium"],
.presura-precipitation-timeline[data-state="expanded"] {
    grid-column: 1 / -1;
}

.presura-precipitation-timeline__place {
    color: #d9fff3;
    font-weight: 800;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presura-precipitation-timeline__status {
    color: rgba(236, 255, 249, 0.78);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presura-precipitation-timeline__chevron {
    color: rgba(128, 222, 255, 0.9);
    font-size: 0.72rem;
    margin-left: auto;
}

.presura-precipitation-timeline__panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.6rem 0 0.1rem;
    width: 100%;
}

.presura-precipitation-timeline__panel[hidden] {
    display: none !important;
}

.presura-precipitation-timeline__handle {
    align-self: center;
    background: rgba(236, 255, 249, 0.38);
    border: 0;
    border-radius: 999px;
    cursor: grab;
    height: 5px;
    justify-self: center;
    min-height: 5px;
    padding: 0;
    width: 48px;
}

.presura-precipitation-timeline__handle:active {
    cursor: grabbing;
}

.presura-precipitation-timeline__readout {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: rgba(236, 255, 249, 0.82);
    font-size: 0.82rem;
    padding-inline: 0.15rem;
}

.presura-precipitation-timeline__readout strong {
    color: #ffffff;
}

.presura-precipitation-timeline__chart {
    background:
        linear-gradient(180deg, rgba(22, 75, 126, 0.22), rgba(5, 45, 48, 0.2)),
        rgba(2, 24, 27, 0.24);
    border: 1px solid rgba(207, 244, 229, 0.16);
    border-radius: 16px;
    cursor: ew-resize;
    min-height: 158px;
    overflow: hidden;
    touch-action: none;
    width: 100%;
}

.presura-precipitation-timeline__chart svg {
    display: block;
    height: 158px;
    width: 100%;
}

.presura-precipitation-timeline__chart .precip-band {
    fill: rgba(255, 255, 255, 0.035);
}

.presura-precipitation-timeline__chart .precip-band + .precip-band-label,
.presura-precipitation-timeline__chart .precip-band-label {
    fill: rgba(236, 255, 249, 0.74);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.presura-precipitation-timeline__chart .precip-time-tick line {
    stroke: rgba(207, 244, 229, 0.13);
    stroke-width: 1;
}

.presura-precipitation-timeline__chart .precip-time-tick text {
    fill: rgba(236, 255, 249, 0.82);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.presura-precipitation-timeline__chart .precip-axis {
    stroke: rgba(207, 244, 229, 0.2);
    stroke-width: 1;
}

.presura-precipitation-timeline__chart .precip-area {
    fill: url(#presura-precip-fill);
}

.presura-precipitation-timeline__chart .precip-line {
    fill: none;
    stroke: #5ec6ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
    filter: drop-shadow(0 0 8px rgba(94, 198, 255, 0.28));
}

.presura-precipitation-timeline__chart .precip-cursor {
    stroke: #ffae45;
    stroke-width: 3;
}

.presura-precipitation-timeline__chart .precip-now {
    stroke: rgba(255, 255, 255, 0.48);
    stroke-dasharray: 4 4;
    stroke-width: 1;
}

.presura-precipitation-timeline__chart .precip-now-label {
    fill: #ff6c9f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.presura-precipitation-timeline__empty {
    align-items: center;
    color: rgba(236, 255, 249, 0.65);
    display: flex;
    font-size: 0.82rem;
    height: 158px;
    justify-content: center;
}

@media (max-width: 767px) {
    .presura-precipitation-timeline {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .presura-precipitation-timeline__summary {
        min-height: 32px;
        padding: 0.25rem 0.55rem;
    }

    .presura-precipitation-timeline__place {
        max-width: 7.5rem;
    }

    .presura-precipitation-timeline__status {
        font-size: 0.72rem;
    }

    .presura-precipitation-timeline__panel {
        max-height: min(34dvh, 240px);
        overflow: auto;
        overscroll-behavior: contain;
        padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
        transition: max-height 180ms ease;
    }

    .presura-precipitation-timeline[data-state="medium"] .presura-precipitation-timeline__panel {
        max-height: min(34dvh, 240px);
    }

    .presura-precipitation-timeline[data-state="expanded"] .presura-precipitation-timeline__panel {
        max-height: min(58dvh, 420px);
    }

    .presura-precipitation-timeline__chart,
    .presura-precipitation-timeline__chart svg {
        min-height: 142px;
        height: 142px;
    }

    .presura-precipitation-timeline[data-state="expanded"] .presura-precipitation-timeline__chart,
    .presura-precipitation-timeline[data-state="expanded"] .presura-precipitation-timeline__chart svg {
        min-height: 190px;
        height: 190px;
    }

    .presura-precipitation-timeline__chart .precip-band-label,
    .presura-precipitation-timeline__chart .precip-time-tick text,
    .presura-precipitation-timeline__chart .precip-now-label {
        font-size: 11px;
    }
}
