.ax-private-kicker {
    color: #72cfe9;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ax-private-login {
    min-height: 62vh;
    display: grid;
    place-items: center;
}

.ax-private-login-card,
.ax-private-hero,
.ax-sensor-section,
.ax-private-station,
.ax-sensor-name-editor {
    border: 1px solid var(--ax-line);
    background:
        linear-gradient(
            150deg,
            rgba(15, 39, 60, .88),
            rgba(5, 20, 34, .92)
        );
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.ax-private-login-card {
    width: min(430px, 100%);
    padding: 1.7rem;
    border-radius: 24px;
}

.ax-private-login-card h1 {
    margin: .35rem 0;
    font-size: 2rem;
    font-weight: 900;
}

.ax-private-login-card > p {
    color: #93aec1;
    line-height: 1.55;
}

.ax-private-form {
    display: grid;
    gap: .9rem;
    margin-top: 1.2rem;
}

.ax-private-form label > span {
    display: block;
    margin-bottom: .35rem;
    color: #91adbf;
    font-size: .75rem;
}

.ax-private-form input,
.ax-sensor-name-row input,
.ax-heat-add-grid input {
    width: 100%;
    padding: .78rem .85rem;
    color: #f3f9fc;
    background: rgba(1, 12, 21, .72);
    border: 1px solid rgba(142, 190, 226, .2);
    border-radius: 11px;
    outline: none;
    color-scheme: dark;
}

.ax-private-form input:focus,
.ax-sensor-name-row input:focus,
.ax-heat-add-grid input:focus {
    border-color: rgba(87, 213, 255, .65);
    box-shadow: 0 0 0 3px rgba(87, 213, 255, .08);
}

.ax-private-form input::placeholder,
.ax-sensor-name-row input::placeholder,
.ax-heat-add-grid input::placeholder {
    color: #8aa6b8;
    opacity: 1;
}

.ax-private-form input:-webkit-autofill,
.ax-private-form input:-webkit-autofill:hover,
.ax-private-form input:-webkit-autofill:focus,
.ax-sensor-name-row input:-webkit-autofill,
.ax-heat-add-grid input:-webkit-autofill,
.ax-heat-add-grid input:-webkit-autofill:hover,
.ax-heat-add-grid input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f3f9fc;
    caret-color: #f3f9fc;
    box-shadow: 0 0 0 1000px #071520 inset;
    transition: background-color 9999s ease-in-out 0s;
}

.ax-private-primary,
.ax-sensor-name-actions button {
    padding: .8rem 1rem;
    color: #041923;
    background: linear-gradient(135deg, #62ddf9, #64e2aa);
    border: 0;
    border-radius: 11px;
    font-weight: 850;
    cursor: pointer;
}

.ax-private-error {
    margin: .8rem 0;
    padding: .7rem .8rem;
    color: #ffc0c8;
    background: rgba(244, 63, 94, .09);
    border: 1px solid rgba(244, 63, 94, .22);
    border-radius: 11px;
}

.ax-private-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 1rem 0 1.3rem;
    padding: 1.4rem 1.5rem;
    border-radius: 22px;
}

.ax-private-hero h1 {
    margin: .3rem 0 .35rem;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 920;
    letter-spacing: -.045em;
}

.ax-private-hero p {
    margin: 0;
    color: #91adc0;
}

.ax-private-user {
    padding: .45rem .7rem;
    border: 1px solid var(--ax-line);
    border-radius: 999px;
    color: #bad7e6;
    font-size: .75rem;
}

.ax-private-stations {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}

.ax-private-station {
    display: block;
    padding: 1.2rem;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.ax-private-station:hover {
    transform: translateY(-3px);
    border-color: rgba(87, 213, 255, .42);
}

.ax-private-station-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.ax-private-station-head h2 {
    margin: .15rem 0 0;
    font-size: 1.3rem;
    font-weight: 880;
}

.ax-private-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1rem;
}

.ax-private-summary > div,
.ax-equipment-card > div {
    padding: .7rem;
    border-radius: 12px;
    background: rgba(0, 10, 18, .35);
}

.ax-private-summary span,
.ax-equipment-card span,
.ax-sensor-card span,
.ax-channel-values span {
    display: block;
    color: #7595ab;
    font-size: .65rem;
}

.ax-private-summary strong {
    display: block;
    margin-top: .18rem;
}

.ax-private-status {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    flex: none;
    padding: .32rem .7rem .32rem .55rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.ax-private-status::before {
    content: "";
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.ax-private-status.is-live {
    color: #b7f0d4;
    background: rgba(12, 42, 32, .72);
    border-color: rgba(100, 226, 170, .28);
}

.ax-private-status.is-live::before {
    background: #64e2aa;
    box-shadow: 0 0 0 3px rgba(100, 226, 170, .16);
}

.ax-private-status.is-stale {
    color: #ffd2a1;
    background: rgba(48, 28, 12, .72);
    border-color: rgba(249, 160, 80, .28);
}

.ax-private-status.is-stale::before {
    background: #f5a45a;
    box-shadow: 0 0 0 3px rgba(245, 164, 90, .14);
}

.ax-private-status.is-offline {
    color: #ffc0c8;
    background: rgba(48, 16, 24, .72);
    border-color: rgba(244, 63, 94, .28);
}

.ax-private-status.is-offline::before {
    background: #f8718a;
    box-shadow: 0 0 0 3px rgba(248, 113, 138, .14);
}

.ax-private-station-time,
.ax-private-open {
    margin-top: .75rem;
    font-size: .7rem;
}

.ax-private-station-time {
    color: #718fa5;
}

.ax-private-open,
.ax-private-back {
    color: #74dff5;
    font-weight: 800;
    text-decoration: none;
}

.ax-private-empty {
    padding: 2rem;
    border: 1px solid var(--ax-line);
    border-radius: 18px;
    background: var(--ax-panel);
    text-align: center;
}

.ax-private-empty p {
    color: var(--ax-muted);
}

.ax-sensor-section {
    margin-bottom: 1.2rem;
    padding: 1.15rem;
    border-radius: 20px;
}

.ax-sensor-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: .85rem;
}

.ax-sensor-section-head span {
    color: #6f98b3;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.ax-sensor-section-head h2 {
    margin: .12rem 0 0;
    font-size: 1.2rem;
    font-weight: 880;
}

.ax-sensor-grid,
.ax-channel-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: .65rem;
}

.ax-sensor-card,
.ax-channel-card {
    padding: .9rem;
    border: 1px solid rgba(142, 190, 226, .1);
    border-radius: 14px;
    background: rgba(1, 12, 21, .42);
}

.ax-sensor-card strong {
    display: block;
    margin: .2rem 0;
    font-size: 1.45rem;
}

.ax-sensor-card small {
    color: #708da2;
    font-size: .65rem;
}

.ax-channel-number {
    margin-bottom: .65rem;
    color: #a3d6e9;
    font-size: .78rem;
    font-weight: 850;
}

.ax-channel-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.ax-channel-values > div {
    padding: .55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.ax-channel-values strong {
    display: block;
    margin-top: .16rem;
    font-size: 1.15rem;
}

.ax-equipment-card {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));
    gap: .6rem;
}

.ax-battery-details {
    margin-top: .8rem;
}

.ax-battery-details summary,
.ax-sensor-name-editor summary {
    cursor: pointer;
}

.ax-battery-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(120px, 1fr));
    gap: .45rem;
    margin-top: .6rem;
}

.ax-battery-grid > div {
    padding: .55rem .65rem;
    border-radius: 10px;
    background: rgba(0, 9, 17, .38);
}

.ax-name-saved {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    color: #91efbd;
    background: rgba(52, 211, 153, .08);
    border: 1px solid rgba(52, 211, 153, .2);
    border-radius: 12px;
}

.ax-sensor-name-editor {
    margin-bottom: 1.2rem;
    border-radius: 18px;
    overflow: hidden;
}

.ax-sensor-name-editor > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    list-style: none;
}

.ax-sensor-name-editor > summary::-webkit-details-marker {
    display: none;
}

.ax-sensor-name-editor > summary strong {
    display: block;
    color: #edf8fc;
}

.ax-sensor-name-editor > summary small {
    display: block;
    margin-top: .15rem;
    color: #7797ac;
    font-size: .68rem;
}

.ax-sensor-name-editor form {
    padding: 0 1.15rem 1.15rem;
}

.ax-sensor-name-help {
    margin: 0 0 .9rem;
    color: #85a3b6;
    font-size: .75rem;
    line-height: 1.5;
}

.ax-sensor-name-grid {
    display: grid;
    gap: .6rem;
}

.ax-sensor-name-row {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(180px, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .7rem;
    border-radius: 12px;
    background: rgba(0, 9, 17, .32);
}

.ax-sensor-name-row strong {
    display: block;
    color: #dcecf5;
    font-size: .76rem;
}

.ax-sensor-name-row small {
    display: block;
    margin-top: .18rem;
    color: #718fa4;
    font-size: .64rem;
}

.ax-sensor-name-actions {
    margin-top: .9rem;
    text-align: right;
}

@media (max-width: 640px) {
    .ax-private-hero {
        display: block;
        padding: 1.05rem;
    }

    .ax-private-hero p {
        font-size: .92rem;
        line-height: 1.45;
    }

    .ax-private-account {
        margin-top: .85rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .55rem;
    }

    .ax-private-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .ax-channel-grid,
    .ax-sensor-grid {
        grid-template-columns: 1fr;
    }

    .ax-sensor-name-row {
        grid-template-columns: 1fr;
    }

    .ax-private-stations {
        grid-template-columns: 1fr;
    }

    .ax-private-station-head {
        flex-wrap: wrap;
        gap: .55rem;
    }

    .ax-private-station-head h2 {
        font-size: 1.15rem;
        word-break: break-word;
    }

    .ax-heat-entry {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
        padding: 1rem 1.05rem;
    }

    .ax-heat-entry h2 {
        font-size: 1.12rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .ax-heat-entry-values {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        gap: .55rem .7rem;
        align-items: end;
        width: 100%;
    }

    .ax-heat-entry-values div {
        text-align: left;
        min-width: 0;
    }

    .ax-heat-entry-values strong {
        font-size: 1.2rem;
    }

    .ax-heat-entry-values .ax-private-status {
        justify-self: end;
        align-self: center;
        white-space: nowrap;
    }
}


/* ==========================================================
   AleXoR Weather — private sensor history
   ========================================================== */

.ax-history-panel {
    margin-bottom: 1.2rem;
    padding: 1.15rem;
    border: 1px solid var(--ax-line);
    border-radius: 20px;
    background:
        linear-gradient(
            150deg,
            rgba(13, 35, 54, .82),
            rgba(5, 19, 32, .9)
        );
    box-shadow:
        0 20px 55px rgba(0, 0, 0, .18);
}

.ax-history-head h2 {
    margin: .18rem 0 .3rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.025em;
}

.ax-history-head p {
    margin: 0;
    color: #87a5b8;
    font-size: .8rem;
}

.ax-history-controls {
    display: grid;
    grid-template-columns:
        minmax(220px, .7fr)
        minmax(320px, 1.3fr);
    gap: 1rem;
    margin: 1rem 0;
    align-items: end;
}

.ax-history-controls > label > span,
.ax-history-periods > span {
    display: block;
    margin-bottom: .38rem;
    color: #7898ad;
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ax-history-controls select {
    width: 100%;
    min-height: 42px;
    padding: .65rem .8rem;
    color: #eef8fc;
    background: rgba(1, 12, 21, .7);
    border: 1px solid rgba(142, 190, 226, .2);
    border-radius: 11px;
    outline: none;
}

.ax-history-controls select:focus {
    border-color:
        rgba(87, 213, 255, .58);
}

.ax-history-periods > div {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ax-history-periods button {
    padding: .58rem .72rem;
    color: #8eacbf;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(142, 190, 226, .13);
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.ax-history-periods button:hover {
    color: #dff6ff;
    border-color:
        rgba(87, 213, 255, .32);
}

.ax-history-periods button.is-active {
    color: #dffaff;
    background:
        rgba(87, 213, 255, .1);
    border-color:
        rgba(87, 213, 255, .4);
}

.ax-history-message {
    padding: 1rem;
    color: #86a5b8;
    text-align: center;
    border-radius: 12px;
    background: rgba(0, 9, 17, .28);
}

.ax-history-charts {
    display: grid;
    gap: .8rem;
}

.ax-history-chart-card {
    padding: .9rem;
    border: 1px solid rgba(142, 190, 226, .1);
    border-radius: 15px;
    background: rgba(0, 10, 18, .38);
}

.ax-history-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.ax-history-chart-head h3 {
    margin: .1rem 0 0;
    color: #e9f5fb;
    font-size: .9rem;
    font-weight: 850;
}

.ax-history-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.ax-history-stats > span {
    min-width: 72px;
    padding: .35rem .45rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
}

.ax-history-stats small {
    display: block;
    color: #6f8fa5;
    font-size: .56rem;
}

.ax-history-stats strong {
    display: block;
    margin-top: .08rem;
    color: #dff2fb;
    font-size: .7rem;
}

.ax-history-chart-wrap {
    position: relative;
    height: 310px;
}

.ax-history-table-card {
    margin-top: .85rem;
    border: 1px solid rgba(142, 190, 226, .1);
    border-radius: 15px;
    background: rgba(0, 9, 17, .34);
    overflow: hidden;
}

.ax-history-table-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem .9rem;
    border-bottom:
        1px solid rgba(142, 190, 226, .08);
}

.ax-history-table-head span {
    display: block;
    color: #718fa5;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ax-history-table-head strong {
    display: block;
    margin-top: .12rem;
    color: #e5f3fa;
    font-size: .82rem;
}

.ax-history-table-head small {
    color: #6e8ba0;
    font-size: .62rem;
}

.ax-history-table-scroll {
    overflow-x: auto;
}

.ax-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem;
}

.ax-history-table th,
.ax-history-table td {
    padding: .62rem .8rem;
    text-align: left;
    white-space: nowrap;
    border-bottom:
        1px solid rgba(142, 190, 226, .06);
}

.ax-history-table th {
    color: #7899ad;
    background: rgba(255, 255, 255, .018);
    font-size: .62rem;
    font-weight: 800;
}

.ax-history-table td {
    color: #c8dce7;
}

.ax-history-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .ax-history-controls {
        grid-template-columns: 1fr;
    }

    .ax-history-chart-head {
        display: block;
    }

    .ax-history-stats {
        justify-content: flex-start;
        margin-top: .55rem;
    }

    .ax-history-chart-wrap {
        height: 260px;
    }

    .ax-history-table-head {
        display: block;
    }

    .ax-history-table-head small {
        display: block;
        margin-top: .3rem;
    }
}


/* Private history — multi-sensor dashboard */

.ax-sensor-pref-controls {
    display: grid;
    gap: .45rem;
}

.ax-sensor-history-choice {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #91adbf;
    font-size: .7rem;
}

.ax-sensor-history-choice input {
    width: auto;
    margin: 0;
}

.ax-history-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.ax-history-all-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.ax-history-sensor-card {
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(142,190,226,.11);
    border-radius: 16px;
    background: rgba(0,10,18,.38);
}

.ax-history-sensor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .7rem;
}

.ax-history-sensor-head span {
    display: block;
    color: #718fa5;
    font-size: .6rem;
}

.ax-history-sensor-head h3 {
    margin: .15rem 0 0;
    color: #edf8fc;
    font-size: .95rem;
    font-weight: 850;
}

.ax-history-sensor-head small {
    color: #7ca2b8;
    font-size: .62rem;
    white-space: nowrap;
}

.ax-history-sensor-card
.ax-history-chart-wrap {
    height: 245px;
}

.ax-history-card-stats {
    display: grid;
    gap: .4rem;
    margin-top: .7rem;
}

.ax-history-metric-stats {
    display: grid;
    grid-template-columns:
        minmax(100px, 1fr)
        repeat(3, auto);
    gap: .35rem;
    align-items: center;
}

.ax-history-metric-stats > strong {
    color: #a9c7d8;
    font-size: .67rem;
}

.ax-history-metric-stats > span {
    min-width: 64px;
    padding: .3rem .4rem;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}

.ax-history-metric-stats small,
.ax-history-metric-stats b {
    display: block;
}

.ax-history-metric-stats small {
    color: #6f8ea3;
    font-size: .53rem;
}

.ax-history-metric-stats b {
    margin-top: .05rem;
    color: #dcecf5;
    font-size: .67rem;
}

.ax-history-values {
    margin-top: .65rem;
    border-top:
        1px solid rgba(142,190,226,.08);
    padding-top: .55rem;
}

.ax-history-values > summary {
    color: #83b8ce;
    font-size: .68rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .ax-history-head {
        display: block;
    }

    .ax-history-periods {
        margin-top: .8rem;
    }

    .ax-history-all-grid {
        grid-template-columns: 1fr;
    }

    .ax-history-metric-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .ax-history-metric-stats
    > strong {
        grid-column: 1 / -1;
    }
}


/* 2026-09 private account + equipment polish */

.ax-private-account {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ax-private-account form {
    margin: 0;
}

.ax-private-logout {
    padding: .45rem .7rem;
    color: #9bb9ca;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--ax-line);
    border-radius: 999px;
    font-size: .72rem;
    cursor: pointer;
}

.ax-private-logout:hover {
    color: #e8f8ff;
    border-color: rgba(87,213,255,.4);
}

.ax-history-metric-stats em {
    display: block;
    margin-top: .12rem;
    color: #63849a;
    font-size: .5rem;
    font-style: normal;
    white-space: nowrap;
}

.ax-equipment-info-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: .55rem;
    margin-top: .7rem;
}

.ax-equipment-info-grid > div {
    padding: .7rem;
    border: 1px solid rgba(142,190,226,.08);
    border-radius: 11px;
    background: rgba(0,10,18,.3);
}

.ax-equipment-info-grid span {
    display: block;
    color: #7595ab;
    font-size: .63rem;
}

.ax-equipment-info-grid strong {
    display: block;
    margin-top: .18rem;
    color: #dcecf5;
    font-size: .82rem;
}

.ax-power-help {
    margin: .55rem 0 .7rem;
    color: #718fa4;
    font-size: .66rem;
    line-height: 1.45;
}

/* ============================================================
   Управление отоплением (MaksMS Pro mode)
   ============================================================ */

.ax-heat-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1.15rem 1.3rem;
    border: 1px solid var(--ax-line);
    border-radius: 20px;
    background:
        linear-gradient(
            150deg,
            rgba(60, 32, 16, .72),
            rgba(20, 12, 6, .88)
        );
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.ax-heat-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 176, 90, .55);
}

.ax-heat-entry h2 {
    margin: .15rem 0 0;
    font-size: 1.25rem;
    font-weight: 850;
}

.ax-heat-entry-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .45rem;
    color: #ffb05a;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1.35;
    max-width: 100%;
}

.ax-heat-host {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    word-break: break-all;
}

.ax-heat-kicker-sep {
    opacity: .55;
}

.ax-heat-term-no {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .66rem;
    font-weight: 850;
}

.ax-heat-entry-values {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ax-heat-entry-values div {
    text-align: right;
}

.ax-heat-entry-values span {
    display: block;
    color: #b79a80;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ax-heat-entry-values strong {
    font-size: 1.35rem;
    font-weight: 850;
}

.ax-heat-hero {
    background:
        linear-gradient(
            145deg,
            rgba(72, 32, 10, .78),
            rgba(8, 22, 36, .94) 58%
        );
    border-color: rgba(255, 176, 90, .28);
}

.ax-heat-hero p {
    max-width: 36rem;
}

.ax-heat-panel {
    margin-top: 1.4rem;
    padding: 1.35rem 1.4rem 1.2rem;
    border: 1px solid rgba(255, 176, 90, .22);
    border-radius: 24px;
    background:
        linear-gradient(
            155deg,
            rgba(64, 28, 10, .55),
            rgba(8, 20, 32, .94) 42%,
            rgba(5, 20, 34, .96)
        );
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ax-heat-panel.is-heating {
    border-color: rgba(255, 176, 90, .55);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, .18),
        0 0 0 1px rgba(255, 140, 50, .18),
        0 18px 40px rgba(255, 120, 40, .1);
}

.ax-heat-panel.is-off {
    border-color: rgba(142, 190, 226, .16);
}

.ax-heat-title {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.ax-heat-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    background: rgba(255, 140, 60, .16);
    color: #ffb05a;
    flex: none;
}

.ax-heat-mark svg,
.ax-heat-mark i {
    width: 1.35rem;
    height: 1.35rem;
}

.ax-heat-panel.is-heating .ax-heat-mark {
    background: rgba(255, 140, 60, .28);
    color: #ffd19a;
}

.ax-heat-panel.is-off .ax-heat-mark {
    background: rgba(142, 190, 226, .12);
    color: #8aa6b8;
}

.ax-heat-climate {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.15fr);
    gap: 1rem;
}

.ax-heat-controls {
    display: grid;
    gap: 1rem;
}

.ax-heat-delta {
    display: block;
    margin: .15rem 0 .35rem;
    color: #b79a80;
    font-size: .92rem;
    font-style: normal;
    font-weight: 700;
}

.ax-heat-delta.is-ok {
    color: #7ee0b0;
}

.ax-heat-delta.is-low {
    color: #8ec8ff;
}

.ax-heat-delta.is-high {
    color: #ffb05a;
}

.ax-heat-power-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .7rem;
}

.ax-heat-edit {
    display: grid;
    gap: 1.35rem;
    padding-bottom: .4rem;
}

.ax-heat-edit h3 {
    margin: 0 0 .7rem;
    color: #ffd19a;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ax-heat-danger {
    padding-top: .3rem;
    border-top: 1px solid rgba(244, 63, 94, .18);
}

.ax-heat-label-list {
    display: grid;
    gap: .55rem;
    margin-bottom: .85rem;
}

.ax-heat-label-row {
    display: grid;
    grid-template-columns: minmax(108px, .75fr) minmax(160px, 1.25fr);
    gap: .7rem;
    align-items: center;
}

.ax-heat-label-row span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .55rem;
    color: #91adbf;
    font-size: .8rem;
}

.ax-heat-label-row strong {
    color: #edf8fc;
}

.ax-heat-label-row em {
    color: #ffb05a;
    font-size: .68rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ax-heat-label-row input {
    width: 100%;
    padding: .72rem .8rem;
    color: #f3f9fc;
    background: rgba(1, 12, 21, .72);
    border: 1px solid rgba(142, 190, 226, .2);
    border-radius: 11px;
    outline: none;
    color-scheme: dark;
}

.ax-heat-label-row input:focus {
    border-color: rgba(87, 213, 255, .65);
    box-shadow: 0 0 0 3px rgba(87, 213, 255, .08);
}

.ax-heat-label-row input::placeholder {
    color: #8aa6b8;
    opacity: 1;
}

.ax-heat-settings > summary {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ax-heat-settings > summary svg,
.ax-heat-settings > summary i {
    width: 1.05rem;
    height: 1.05rem;
    color: #ffb05a;
}

.ax-heat-panel.is-busy {
    opacity: .75;
}

.ax-heat-message {
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: 11px;
    font-size: .9rem;
}

.ax-heat-message.is-info {
    color: #cfe6f5;
    background: rgba(87, 213, 255, .08);
    border: 1px solid rgba(87, 213, 255, .22);
}

.ax-heat-message.is-ok {
    color: #b8f2d4;
    background: rgba(96, 230, 173, .09);
    border: 1px solid rgba(96, 230, 173, .25);
}

.ax-heat-message.is-error {
    color: #ffc0c8;
    background: rgba(244, 63, 94, .09);
    border: 1px solid rgba(244, 63, 94, .22);
}

.ax-heat-main {
    display: grid;
    gap: 1rem;
}

.ax-heat-now,
.ax-heat-target,
.ax-heat-power {
    padding: 1.1rem;
    border: 1px solid rgba(142, 190, 226, .16);
    border-radius: 18px;
    background: rgba(1, 12, 21, .45);
}

.ax-heat-now span,
.ax-heat-target span,
.ax-heat-power span {
    display: block;
    color: #91adbf;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ax-heat-now strong {
    display: block;
    margin: .45rem 0 .1rem;
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    font-weight: 920;
    line-height: .92;
    letter-spacing: -.04em;
}

.ax-heat-now small,
.ax-heat-target small,
.ax-heat-power small {
    color: #7f9bad;
    font-size: .78rem;
}

.ax-heat-target-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
}

.ax-heat-target-head b {
    color: #ffb05a;
    font-size: 1.7rem;
    font-weight: 900;
}

.ax-heat-setter {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin: .8rem 0 .6rem;
}

.ax-heat-setter button {
    min-width: 44px;
    padding: .6rem .7rem;
    color: #eaf6fd;
    background: rgba(87, 213, 255, .1);
    border: 1px solid rgba(87, 213, 255, .28);
    border-radius: 11px;
    font-size: 1.1rem;
    font-weight: 850;
    cursor: pointer;
}

.ax-heat-setter button:hover:not(:disabled) {
    background: rgba(87, 213, 255, .18);
}

.ax-heat-setter button:disabled {
    opacity: .5;
    cursor: default;
}

.ax-heat-setter input {
    width: 100%;
    min-width: 70px;
    padding: .62rem .7rem;
    color: #f3f9fc;
    background: rgba(1, 12, 21, .72);
    border: 1px solid rgba(142, 190, 226, .2);
    border-radius: 11px;
    font-size: 1.05rem;
    font-weight: 750;
    text-align: center;
    outline: none;
}

.ax-heat-setter input:focus {
    border-color: rgba(87, 213, 255, .65);
    box-shadow: 0 0 0 3px rgba(87, 213, 255, .08);
}

.ax-heat-setter .ax-heat-apply {
    min-width: auto;
    padding: .62rem 1rem;
    color: #041923;
    background: linear-gradient(135deg, #62ddf9, #64e2aa);
    border: 0;
    font-size: .9rem;
    white-space: nowrap;
}

.ax-heat-power-state {
    margin: .45rem 0 .75rem;
    color: #9ab3c4;
    font-size: 1.2rem;
    font-weight: 850;
}

.ax-heat-power-state.is-on {
    color: #64e2aa;
}

.ax-heat-power-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}

.ax-heat-power-buttons button {
    padding: .7rem .7rem;
    border-radius: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease, background .12s ease;
}

.ax-heat-power-buttons button:disabled {
    opacity: .5;
    cursor: default;
}

.ax-heat-power-buttons .ax-heat-on {
    color: #9ad8bc;
    background: rgba(100, 226, 170, .08);
    border: 1px solid rgba(100, 226, 170, .28);
}

.ax-heat-power-buttons .ax-heat-on.is-active {
    color: #041923;
    background: linear-gradient(135deg, #64e2aa, #7ef0c0);
    border: 0;
}

.ax-heat-power-buttons .ax-heat-off {
    color: #c9d6df;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(142, 190, 226, .2);
}

.ax-heat-power-buttons .ax-heat-off.is-active {
    color: #ffc0c8;
    background: rgba(244, 63, 94, .16);
    border: 1px solid rgba(244, 63, 94, .42);
}

.ax-heat-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(142, 190, 226, .14);
}

.ax-heat-meta span {
    display: block;
    color: #7f9bad;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ax-heat-meta strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.ax-heat-sensors {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(142, 190, 226, .14);
}

.ax-heat-sensors > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem;
    margin-top: .7rem;
}

.ax-heat-sensors > div > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    border: 1px solid rgba(142, 190, 226, .14);
    border-radius: 12px;
    background: rgba(1, 12, 21, .4);
}

.ax-heat-sensors > div > div.is-bound {
    border-color: rgba(255, 176, 90, .4);
}

.ax-heat-sensors span {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    color: #8aa6b8;
    font-size: .8rem;
    min-width: 0;
}

.ax-heat-sensors span small {
    color: #7f9bad;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ax-heat-sensors strong {
    font-weight: 800;
}

.ax-heat-gpio-icon {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    padding: .4rem .65rem;
    border-radius: 12px;
    border: 1px solid rgba(142, 190, 226, .2);
    background: #4a5560;
    color: #e8eef2;
    font-weight: 850;
}

.ax-heat-gpio-icon svg,
.ax-heat-gpio-icon i {
    width: 1.15rem;
    height: 1.15rem;
}

.ax-heat-gpio-icon b {
    font-size: 1.05rem;
    line-height: 1;
}

.ax-heat-gpio-icon.is-on {
    background: #73c140;
    border-color: #73c140;
    color: #10200a;
}

.ax-heat-gpio-icon.is-off {
    background: #8b939c;
    border-color: #8b939c;
    color: #1a1d21;
}

.ax-heat-gpio-icon.is-mini {
    margin: 0;
    padding: .28rem .5rem;
    border-radius: 10px;
}

.ax-heat-gpio-icon.is-mini svg,
.ax-heat-gpio-icon.is-mini i {
    width: 1rem;
    height: 1rem;
}

.ax-heat-gpio-icon.is-mini b {
    font-size: .95rem;
}

.ax-heat-meta strong:has(.ax-heat-gpio-icon) {
    display: flex;
    align-items: center;
}

.ax-heat-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ax-heat-panel-head h2 {
    margin: .2rem 0 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.ax-heat-panel-head-right {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.ax-heat-remove {
    padding: .65rem .9rem;
    color: #ffc0c8;
    background: rgba(244, 63, 94, .1);
    border: 1px solid rgba(244, 63, 94, .28);
    border-radius: 11px;
    font-weight: 750;
    cursor: pointer;
}

.ax-heat-settings {
    margin-top: 1.15rem;
    padding: 0.2rem 0 0;
    border-top: 1px solid rgba(142, 190, 226, .14);
}

.ax-heat-settings > summary {
    cursor: pointer;
    color: #dcecf5;
    font-weight: 800;
    padding: .85rem 0;
    list-style: none;
}

.ax-heat-settings > summary::-webkit-details-marker {
    display: none;
}

.ax-heat-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .8rem;
    margin-bottom: .4rem;
}

.ax-heat-settings-grid input,
.ax-heat-settings-grid select {
    width: 100%;
    padding: .72rem .8rem;
    color: #f3f9fc;
    background: rgba(1, 12, 21, .72);
    border: 1px solid rgba(142, 190, 226, .2);
    border-radius: 11px;
    outline: none;
    color-scheme: dark;
}

.ax-heat-settings-grid input:focus,
.ax-heat-settings-grid select:focus {
    border-color: rgba(87, 213, 255, .65);
    box-shadow: 0 0 0 3px rgba(87, 213, 255, .08);
}

.ax-heat-settings-grid label > span {
    display: block;
    margin-bottom: .35rem;
    color: #91adbf;
    font-size: .75rem;
}

.ax-heat-settings-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-top: .45rem;
    grid-column: 1 / -1;
}

.ax-heat-settings-check input {
    width: auto;
    margin: 0;
}

.ax-heat-settings-check span {
    margin: 0;
    color: #dcecf5;
    font-size: .9rem;
}

.ax-heat-add {
    margin-top: 1.2rem;
}

.ax-heat-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin: 1rem 0 .4rem;
}

.ax-heat-add-grid label > span {
    display: block;
    margin-bottom: .35rem;
    color: #91adbf;
    font-size: .75rem;
}

@media (max-width: 860px) {
    .ax-heat-climate {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ax-heat-hero {
        margin-top: .75rem;
        padding: 1rem 1.05rem;
    }

    .ax-heat-hero p {
        font-size: .9rem;
    }

    .ax-heat-panel {
        margin-top: 1rem;
        padding: .95rem .9rem 1rem;
        border-radius: 18px;
        overflow: hidden;
    }

    .ax-heat-panel-head {
        flex-direction: column;
        align-items: stretch;
        gap: .7rem;
        margin-bottom: .85rem;
    }

    .ax-heat-panel-head-right {
        align-self: flex-start;
    }

    .ax-heat-title {
        min-width: 0;
        width: 100%;
    }

    .ax-heat-panel-head h2 {
        font-size: 1.18rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .ax-heat-entry-kicker {
        max-width: 100%;
    }

    .ax-heat-host {
        flex: 1 1 100%;
    }

    .ax-heat-kicker-sep {
        display: none;
    }

    .ax-heat-now,
    .ax-heat-target,
    .ax-heat-power {
        padding: .95rem .9rem;
        border-radius: 16px;
    }

    .ax-heat-now strong {
        font-size: clamp(2.35rem, 12vw, 3rem);
    }

    .ax-heat-target-head b {
        font-size: 1.45rem;
    }

    .ax-heat-setter {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr) 3rem;
        gap: .45rem;
        align-items: stretch;
        margin: .75rem 0 .35rem;
    }

    .ax-heat-setter button {
        min-width: 0;
        min-height: 48px;
        padding: .55rem .4rem;
        font-size: 1.25rem;
    }

    .ax-heat-setter input {
        min-width: 0;
        width: 100%;
        min-height: 48px;
        font-size: 1.15rem;
    }

    .ax-heat-setter .ax-heat-apply {
        grid-column: 1 / -1;
        min-height: 48px;
        width: 100%;
        font-size: 1rem;
    }

    .ax-heat-power-buttons button {
        min-height: 48px;
        padding: .85rem .55rem;
        font-size: .95rem;
    }

    .ax-heat-meta {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .ax-heat-meta strong {
        font-size: .98rem;
        word-break: break-word;
    }

    .ax-heat-sensors > div {
        grid-template-columns: 1fr;
    }

    .ax-heat-sensors > div > div {
        padding: .7rem .75rem;
    }

    .ax-heat-settings-grid,
    .ax-heat-add-grid {
        grid-template-columns: 1fr;
    }

    .ax-heat-settings-grid input,
    .ax-heat-settings-grid select,
    .ax-heat-add-grid input,
    .ax-heat-label-row input {
        min-height: 48px;
        font-size: 16px; /* iOS: no auto-zoom */
    }

    .ax-heat-settings-check {
        padding-top: .2rem;
    }

    .ax-heat-label-row {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .ax-sensor-name-actions {
        text-align: left;
    }

    .ax-sensor-name-actions button,
    .ax-heat-remove {
        width: 100%;
        min-height: 48px;
    }

    .ax-heat-entry-values {
        grid-template-columns: 1fr 1fr;
    }

    .ax-heat-entry-values .ax-private-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
