:root {
    --surface-1: #fcfcfb;
    --text-secondary: #52514e;
    --grid: rgba(0, 0, 0, 0.08);
    --series-1: #2a78d6; /* szklarnia */
    --series-2: #eb6834; /* zewnątrz */
    --series-3: #1baf7a; /* pogoda */
    --sun: rgba(0, 0, 0, 0.35);
}

body {
    background: var(--surface-1);
    font-size: 1.1rem;
}

.card-title {
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.value {
    font-size: clamp(2.6rem, 4.2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.value small {
    font-size: 0.5em;
}

.value i {
    font-size: 0.75em;
}

.card-main {
    background: var(--series-1);
    color: #fff;
    border: 0;
}

.card-main .card-title {
    color: rgba(255, 255, 255, 0.9);
}

.card-main .value {
    font-size: clamp(3.4rem, 4.5vw, 4rem);
}

.chart-box {
    position: relative;
    height: 260px;
}

.chart-box.chart-tall {
    height: 400px;
}

.day-picker input {
    max-width: 12rem;
    font-size: 1.15rem;
}

@media (max-width: 575.98px) {
    .card-body {
        padding: 0.75rem 1rem;
    }

    /* Karty bieżących odczytów: tytuł po lewej, duża wartość po prawej. */
    .now .card-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .now .card-title {
        margin: 0;
    }

    .now .value i {
        display: none;
    }

    .card-main .card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats .card-body {
        padding: 0.6rem 0.5rem;
        text-align: center;
    }

    .stats .card-title {
        font-size: 1rem;
    }

    .stats .value {
        font-size: 1.75rem;
    }

    .stats .value i {
        display: none;
    }

    .day-picker {
        flex-grow: 1;
    }

    .day-picker input {
        max-width: none;
    }

    .chart-box {
        height: 230px;
    }

    .chart-box.chart-tall {
        height: 320px;
    }
}
