@charset "UTF-8";

.mobile-charts,
.mobile-charts * {
    box-sizing: border-box;
}

.mobile-charts button {
    font: inherit;
}

.mobile-charts {
    width: 100%;
    padding: 0;
}

.mobile-charts-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    margin-bottom: .55rem;
    padding: .65rem;
    border: 1px solid rgba(116, 180, 221, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 56, 84, .9), rgba(7, 31, 52, .9));
}

.mobile-charts-toolbar span,
.mobile-chart-card header span {
    display: block;
    color: #39d8b6;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .095em;
}

.mobile-charts-toolbar strong {
    display: block;
    margin-top: .18rem;
    color: #dce9f2;
    font-size: .66rem;
    line-height: 1.3;
}

.mobile-range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .25rem;
    padding: .22rem;
    border: 1px solid rgba(116, 180, 221, .14);
    border-radius: 10px;
    background: rgba(1, 14, 26, .42);
}

.mobile-range button {
    min-width: 46px;
    min-height: 34px;
    padding: .3rem .38rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #9fb2c2;
    background: transparent;
    font-size: .6rem;
    font-weight: 750;
}

.mobile-range button.active {
    border-color: rgba(72, 200, 241, .28);
    color: #fff;
    background: linear-gradient(135deg, rgba(72, 200, 241, .2), rgba(57, 216, 182, .12));
}

.mobile-chart-status {
    padding: 2.5rem 1rem;
    border: 1px solid rgba(116, 180, 221, .14);
    border-radius: 14px;
    color: #91a6b8;
    background: rgba(7, 30, 50, .72);
    font-size: .7rem;
    text-align: center;
}

.mobile-chart-status.error {
    color: #ffd0d8;
    border-color: rgba(255, 111, 134, .25);
}

.mobile-chart-status[hidden],
.mobile-charts-grid[hidden] {
    display: none !important;
}

.mobile-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
}

.mobile-chart-card {
    min-width: 0;
    padding: .7rem .65rem .55rem;
    overflow: hidden;
    border: 1px solid rgba(116, 180, 221, .16);
    border-radius: 15px;
    background: linear-gradient(150deg, rgba(15, 52, 79, .94), rgba(6, 27, 46, .95));
    box-shadow: 0 12px 28px rgba(0, 8, 20, .12);
}

.mobile-chart-card > header {
    display: flex;
    min-height: 34px;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
}

.mobile-chart-card h2 {
    margin: .15rem 0 0;
    color: #f5fbff;
    font-size: .88rem;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.chart-legend {
    display: flex;
    max-width: 46%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .12rem .28rem;
    color: #91a6b8;
    font-size: .49rem;
    line-height: 1.2;
    text-align: right;
}

.chart-legend i {
    width: 9px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
}

.chart-legend .temp { color: #ff6f86; }
.chart-legend .dew { color: #48c8f1; }
.chart-legend .wind { color: #48c8f1; }
.chart-legend .gust { color: #ffad66; }
.chart-legend .rain { color: #48c8f1; }
.chart-legend .rate { color: #a789ff; }

.mobile-chart-stats {
    display: flex;
    min-height: 30px;
    align-items: center;
    gap: .25rem;
    margin: .38rem 0 .24rem;
}

.mobile-chart-stat {
    min-width: 0;
    padding: .25rem .4rem;
    border: 1px solid rgba(116, 180, 221, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.mobile-chart-stat span {
    display: block;
    color: #7f96a9;
    font-size: .46rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mobile-chart-stat strong {
    display: block;
    margin-top: .08rem;
    overflow: hidden;
    color: #dce9f2;
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-chart-canvas {
    position: relative;
    height: 164px;
}

.mobile-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
    .mobile-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-chart-canvas {
        height: 155px;
    }

    .mobile-charts-toolbar {
        margin-bottom: .4rem;
    }
}

@media (max-width: 350px) {
    .mobile-charts-toolbar {
        grid-template-columns: 1fr;
    }

    .mobile-range button {
        min-height: 32px;
    }

    .mobile-chart-canvas {
        height: 152px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
