@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
    --bg: #eef5ff;
    --bg-soft: #e4eefb;
    --ink: #10263f;
    --ink-soft: #516683;
    --line: #d2deef;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --brand: #0d76bf;
    --brand-deep: #0b4f84;
    --teal: #1f9e90;
    --amber: #dc912a;
    --red: #d8564c;
    --shadow: 0 20px 46px rgba(19, 48, 88, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Noto Sans SC", "Space Grotesk", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 20% 18%, #f8fcff 0%, var(--bg) 35%, var(--bg-soft) 100%);
}

.bg-gradient {
    position: fixed;
    border-radius: 999px;
    filter: blur(76px);
    z-index: -3;
    opacity: 0.55;
}

.bg-gradient-a {
    width: 520px;
    height: 520px;
    left: -180px;
    top: -160px;
    background: #6cc1f3;
}

.bg-gradient-b {
    width: 600px;
    height: 600px;
    right: -220px;
    top: 22%;
    background: #7fe0cb;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 38, 63, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 38, 63, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -4;
}

.layout-app {
    height: 100vh;
    overflow: hidden;
}

.layout-app.modal-open {
    overflow: hidden;
}

.app-frame {
    height: 100vh;
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
}

.sidebar {
    background: linear-gradient(170deg, #0a3558 0%, #0d5587 60%, #0a4068 100%);
    color: #e8f4ff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 20px 0 48px rgba(14, 49, 92, 0.2);
    z-index: 40;
    overflow-y: auto;
}

.brand-block {
    padding: 6px 8px;
}

.brand-tag {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 244, 255, 0.72);
}

.brand-block h1 {
    margin: 6px 0;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 1.42rem;
    letter-spacing: 0.01em;
}

.brand-desc {
    margin: 0;
    color: rgba(232, 244, 255, 0.8);
    font-size: 0.84rem;
    line-height: 1.6;
}

.nav-group {
    display: grid;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: #e9f5ff;
    border-radius: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link span {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
}

.nav-link small {
    display: block;
    margin-top: 2px;
    color: rgba(233, 245, 255, 0.72);
    font-size: 0.78rem;
}

.nav-link:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(90, 191, 255, 0.25), rgba(133, 237, 214, 0.25));
    border-color: rgba(157, 223, 255, 0.6);
}

.side-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
}

.side-footer p {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(233, 245, 255, 0.74);
}

.side-footer strong {
    display: block;
    margin-top: 4px;
    font-size: 0.96rem;
    word-break: break-all;
}

.sidebar-mask {
    display: none;
}

.main-shell {
    min-width: 0;
    height: 100vh;
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar h2 {
    margin: 0;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 1.52rem;
    letter-spacing: 0.01em;
}

.topbar .sub {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-clock {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #2b4463;
    font-size: 0.84rem;
    white-space: nowrap;
}

.logout-chip {
    text-decoration: none;
    color: #265277;
    border-radius: 999px;
    border: 1px solid #c8d8ed;
    background: rgba(255, 255, 255, 0.74);
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #c5d8ef;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    background: #1f4668;
    border-radius: 999px;
}

.nav-toggle span + span {
    margin-top: 3px;
}

.content-panel {
    display: grid;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    align-content: start;
}

.content-panel::-webkit-scrollbar {
    width: 10px;
}

.content-panel::-webkit-scrollbar-thumb {
    background: #c7d8ec;
    border-radius: 999px;
}

.content-panel::-webkit-scrollbar-track {
    background: transparent;
}

.notice {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.notice-info {
    background: #eaf4ff;
    border-color: #bfdaf7;
    color: #214b72;
}

.notice-success {
    background: #e6f7f0;
    border-color: #bee9d7;
    color: #126449;
}

.notice-error {
    background: #ffecec;
    border-color: #f5c9c6;
    color: #852f2a;
}

.glass-card {
    border: 1px solid rgba(178, 201, 227, 0.75);
    border-radius: 16px;
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 14px;
    animation: lift-in 0.45s ease both;
}

.section-head h3 {
    margin: 0;
    font-size: 1.08rem;
}

.section-head p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.section-head-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.kpi-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(177, 201, 227, 0.86);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.8));
    box-shadow: var(--shadow);
    padding: 14px 15px;
    overflow: hidden;
    animation: lift-in 0.46s ease both;
}

.kpi-card::after {
    content: "";
    position: absolute;
    inset: auto -22px -28px auto;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    opacity: 0.16;
}

.kpi-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.kpi-card h3 {
    margin: 6px 0 3px;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 1.72rem;
    line-height: 1.1;
}

.kpi-card span {
    font-size: 0.78rem;
    color: #667b97;
}

.kpi-card:not(.kpi-wide) {
    grid-column: span 3;
}

.kpi-wide {
    grid-column: span 3;
}

.kpi-neutral::after {
    background: #51a7de;
}

.kpi-warning::after {
    background: #f1b453;
}

.kpi-success::after {
    background: #49bd9f;
}

.kpi-danger::after {
    background: #ee7a6f;
}

.insight-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 0.78fr) minmax(560px, 2.22fr);
}

.status-distribution {
    display: grid;
    gap: 12px;
}

.ratio-item + .ratio-item {
    margin-top: 2px;
}

.ratio-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.ratio-header strong {
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.ratio-bar {
    height: 9px;
    border-radius: 999px;
    background: #eaf1fb;
    overflow: hidden;
}

.ratio-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #23a085, #5fd2b4);
}

.ratio-bar-warn i {
    background: linear-gradient(90deg, #d2871e, #f0be66);
}

.ratio-bar-danger i {
    background: linear-gradient(90deg, #d9564a, #ef8f84);
}

.status-note {
    margin-top: 2px;
    border: 1px dashed #d3e2f3;
    border-radius: 10px;
    background: #f7fbff;
    padding: 9px 10px;
    font-size: 0.85rem;
    color: #415d7f;
    line-height: 1.55;
}

.top-node-table-card {
    min-width: 0;
}

.top-node-table-card table {
    min-width: 100%;
}

.table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #dee8f5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.table-wrap-viewport {
    max-height: calc(100vh - 308px);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 9px 8px;
    border-bottom: 1px solid #edf2fa;
    text-align: left;
    font-size: 0.85rem;
    white-space: nowrap;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f9ff;
    color: #385676;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

tbody tr:hover {
    background: #f8fcff;
}

.host-cell {
    color: #0e5f99;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-0 {
    background: #e4f8ef;
    color: #12684a;
}

.status-1 {
    background: #ffeed1;
    color: #86550f;
}

.status-2 {
    background: #ffe4e1;
    color: #8f322c;
}

.filter-panel {
    padding-bottom: 12px;
}

.filter-grid-modern {
    display: grid;
    grid-template-columns: 1.15fr 0.92fr 1fr 0.82fr 0.82fr minmax(170px, 0.9fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.filter-grid-modern label,
.form-grid label,
.inline-form label {
    display: grid;
    gap: 5px;
    color: #2f4c6d;
    font-size: 0.84rem;
}

.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 0;
    padding-bottom: 6px;
}

.checkbox-line input {
    width: 15px;
    height: 15px;
    margin: 0;
}

input,
select,
button,
.btn-primary,
.btn-ghost,
.btn-danger,
.btn-link {
    font-family: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid #cfdced;
    background: #ffffff;
    color: var(--ink);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.88rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #5caee2;
    box-shadow: 0 0 0 3px rgba(92, 174, 226, 0.2);
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: 7px;
    white-space: nowrap;
}

.btn-primary,
.btn-ghost,
.btn-danger,
.btn-link {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #1f87ce, #0e5f97);
}

.btn-ghost {
    color: #365676;
    background: #ecf3fb;
    border: 1px solid #cfdeef;
}

.btn-danger {
    color: #fff;
    background: #d7584d;
}

.btn-link {
    color: #225e8c;
    background: #ebf5fe;
    border: 1px solid #d0e2f3;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.btn-block {
    width: 100%;
}

.action-cell {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.inline-editor[open] {
    width: 100%;
}

.inline-editor {
    position: relative;
}

.inline-editor summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.inline-editor summary::-webkit-details-marker {
    display: none;
}

.modal-backdrop {
    display: none;
}

.inline-editor[open] .modal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(11, 32, 52, 0.42);
    backdrop-filter: blur(2px);
    z-index: 90;
    cursor: pointer;
}

.inline-form {
    display: none;
}

.inline-editor[open] .inline-form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, 92vw);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    border: 1px solid #d5e3f4;
    background: #fbfdff;
    border-radius: 12px;
    box-shadow: 0 22px 52px rgba(17, 43, 74, 0.28);
    padding: 10px;
    display: grid;
    gap: 8px;
    z-index: 100;
}

.inline-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 2px;
}

.pagination {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    border: 1px solid #cedded;
    border-radius: 8px;
    background: #f7fbff;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #355472;
    text-decoration: none;
}

.pagination .disabled {
    color: #8496ad;
    background: #f1f5fb;
}

.mobile-node-list,
.mobile-history-list {
    display: none;
}

.node-mobile-card,
.history-mobile-card {
    border: 1px solid #d7e4f3;
    border-radius: 14px;
    background: #fcfeff;
    padding: 11px;
}

.node-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.node-mobile-head h4 {
    margin: 0;
    font-size: 1rem;
    color: #0e5c93;
}

.node-mobile-head p {
    margin: 3px 0 0;
    color: #57708d;
    font-size: 0.8rem;
}

.node-mobile-grid,
.history-mobile-grid,
.live-kv-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.node-mobile-grid div,
.history-mobile-grid div,
.live-kv-grid div {
    border: 1px solid #dfebf8;
    border-radius: 10px;
    background: #f7fbff;
    padding: 8px;
}

.node-mobile-grid span,
.history-mobile-grid span,
.live-kv-grid span,
.node-meta-grid span {
    color: #67809d;
    font-size: 0.76rem;
}

.node-mobile-grid strong,
.history-mobile-grid strong,
.live-kv-grid strong,
.node-meta-grid strong {
    display: block;
    margin-top: 3px;
    color: #244362;
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-all;
}

.node-mobile-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-history .node-overview {
    padding-bottom: 12px;
}

.node-meta-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.node-meta-grid div {
    border: 1px solid #dbe8f7;
    border-radius: 10px;
    background: #f8fcff;
    padding: 9px;
}

.history-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(420px, 1.8fr) minmax(260px, 1fr);
}

.realtime-panel {
    min-width: 0;
}

.history-chart {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: 1px solid #dce9f8;
    background: linear-gradient(180deg, #fafdff 0%, #f3f8ff 100%);
}

.chart-legend {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #496380;
    font-size: 0.82rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-speed {
    background: #1278c1;
}

.dot-cpu {
    background: #27a17a;
}

.dot-mem {
    background: #df8f26;
}

.history-mobile-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-mobile-card header strong {
    font-size: 0.86rem;
    color: #234764;
}

.history-mobile-card header span {
    font-size: 0.76rem;
    color: #4e6684;
}

.empty-text {
    margin: 10px 0 4px;
    color: #647d9a;
}

.layout-login {
    min-height: 100vh;
}

.main-shell-full {
    width: min(1180px, 94vw);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-panel-login {
    width: 100%;
    overflow: visible;
}

.page-login {
    gap: 0;
}

.login-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 18px;
}

.login-brand-panel,
.login-form-panel {
    border: 1px solid rgba(176, 201, 226, 0.82);
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: lift-in 0.55s ease both;
}

.login-brand-panel {
    background: linear-gradient(165deg, rgba(7, 79, 128, 0.92), rgba(8, 111, 170, 0.9));
    color: #f0f8ff;
    padding: 24px;
}

.brand-chip {
    margin: 0;
    display: inline-block;
    border: 1px solid rgba(241, 248, 255, 0.4);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.login-brand-panel h2 {
    margin: 12px 0 10px;
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}

.login-brand-panel .lead {
    margin: 0;
    color: rgba(240, 248, 255, 0.88);
    line-height: 1.72;
}

.login-feature-grid {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-feature-grid div {
    border: 1px solid rgba(223, 241, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    padding: 10px;
}

.login-feature-grid strong {
    display: block;
    font-size: 0.9rem;
}

.login-feature-grid span {
    display: block;
    margin-top: 3px;
    color: rgba(235, 245, 255, 0.84);
    font-size: 0.78rem;
}

.login-form-panel {
    background: rgba(255, 255, 255, 0.9);
    padding: 22px;
}

.login-form-panel h3 {
    margin: 0;
    font-size: 1.32rem;
}

.login-form-panel > p {
    margin: 6px 0 14px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    gap: 11px;
}

.tip {
    margin-top: 12px;
    color: #667f9b;
    font-size: 0.8rem;
}

code {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.86em;
}

@keyframes lift-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1560px) {
    .kpi-card h3 {
        font-size: 1.56rem;
    }
}

@media (max-width: 1300px) {
    .app-frame {
        grid-template-columns: 246px minmax(0, 1fr);
    }

    .filter-grid-modern {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .checkbox-line,
    .filter-actions {
        padding-bottom: 0;
    }

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

@media (max-width: 1080px) {
    .kpi-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .kpi-card,
    .kpi-card:not(.kpi-wide),
    .kpi-wide {
        grid-column: span 3;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .table-wrap-viewport {
        max-height: none;
    }
}

@media (max-width: 960px) {
    .layout-app {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .app-frame {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 300px);
        transform: translateX(-105%);
        transition: transform 0.26s ease;
    }

    .layout-app.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-mask {
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(10, 28, 46, 0.48);
        backdrop-filter: blur(2px);
        z-index: 35;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        display: block;
    }

    .layout-app.sidebar-open .sidebar-mask {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .main-shell {
        height: auto;
        min-height: 100vh;
        padding: 14px;
    }

    .topbar {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .content-panel {
        overflow: visible;
        padding-right: 0;
    }

    .node-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inline-editor[open] .inline-form {
        width: min(360px, 90vw);
        box-shadow: none;
    }

    .login-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-card,
    .kpi-card:not(.kpi-wide),
    .kpi-wide {
        grid-column: span 1;
    }

    .filter-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-node-table,
    .desktop-history-table {
        display: none;
    }

    .mobile-node-list,
    .mobile-history-list {
        display: grid;
        gap: 10px;
    }
}

@media (max-width: 620px) {
    .topbar h2 {
        font-size: 1.32rem;
    }

    .topbar .sub {
        font-size: 0.84rem;
    }

    .topbar-clock {
        font-size: 0.78rem;
    }

    .filter-grid-modern,
    .node-mobile-grid,
    .history-mobile-grid,
    .live-kv-grid,
    .login-feature-grid,
    .node-meta-grid {
        grid-template-columns: 1fr;
    }

    .glass-card,
    .kpi-card,
    .login-brand-panel,
    .login-form-panel {
        border-radius: 14px;
    }

    .main-shell-full {
        width: 94vw;
    }
}
