.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 {
    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;
}

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

.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;
    padding: .3rem .5rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
}

.ax-private-status.is-live {
    color: #89eabd;
    background: rgba(52, 211, 153, .08);
    border-color: rgba(52, 211, 153, .2);
}

.ax-private-status.is-stale {
    color: #ffc177;
    background: rgba(249, 115, 22, .08);
    border-color: rgba(249, 115, 22, .2);
}

.ax-private-status.is-offline {
    color: #ff98a8;
    background: rgba(244, 63, 94, .08);
    border-color: rgba(244, 63, 94, .2);
}

.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-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;
    }
}


/* ==========================================================
   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(360px, 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;
    }
}
