:root,

:root[data-theme="light"] {
    --bg-primary: #eef6ff;
    --bg-secondary: #f8fbff;
    --bg-tertiary: #e9f2fb;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(12, 28, 56, 0.1);
    --text-main: #102033;
    --text-soft: #5f748e;
    --heading-color: #0b1b31;
    --accent: #0ea5e9;
    --accent-2: #7c3aed;
    --accent-3: #06b6d4;
    --danger-soft: #e11d48;
    --success-soft: #16a34a;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
    --table-head-bg: rgba(14, 165, 233, 0.08);
    --table-row-hover: rgba(14, 165, 233, 0.05);
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(15, 23, 42, 0.12);
    --modal-bg: #ffffff;
    --grid-line: rgba(14, 165, 233, 0.08);
    --chart-text: #24415f;
    --chart-subtext: #44617f;
    --chart-grid: rgba(15, 23, 42, 0.08);
    --swal-bg: #ffffff;
    --swal-text: #102033;
    --surface-soft: rgba(14, 165, 233, 0.06);
    --surface-soft-strong: rgba(14, 165, 233, 0.08);
    --status-online-bg: rgba(22, 163, 74, 0.12);
    --status-online-text: #15803d;
    --status-offline-bg: rgba(225, 29, 72, 0.12);
    --status-offline-text: #be123c;
}

:root[data-theme="dark"] {
    --bg-primary: #07111f;
    --bg-secondary: #0d1b2e;
    --bg-tertiary: #0a1628;
    --card-bg: rgba(13, 27, 46, 0.82);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fbff;
    --text-soft: #9eb4d1;
    --heading-color: #ffffff;
    --accent: #4fd1c5;
    --accent-2: #8b5cf6;
    --accent-3: #67e8f9;
    --danger-soft: #ff7a90;
    --success-soft: #78f0a9;
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
    --table-head-bg: rgba(255, 255, 255, 0.04);
    --table-row-hover: rgba(255, 255, 255, 0.03);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.12);
    --modal-bg: #0b1728;
    --grid-line: rgba(103, 232, 249, 0.07);
    --chart-text: #d9e7f7;
    --chart-subtext: #b8c7da;
    --chart-grid: rgba(255, 255, 255, 0.06);
    --swal-bg: #0b1728;
    --swal-text: #f8fbff;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --surface-soft-strong: rgba(255, 255, 255, 0.08);
    --status-online-bg: rgba(120, 240, 169, 0.14);
    --status-online-text: #78f0a9;
    --status-offline-bg: rgba(255, 122, 144, 0.14);
    --status-offline-text: #ff7a90;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(79, 209, 197, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 24%),
        linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 46%, var(--bg-tertiary) 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    font-size: 0.95rem;
    position: relative;
    transition: background 0.25s ease, color 0.25s ease;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        repeating-linear-gradient(90deg, transparent 0, transparent 42px, var(--grid-line) 43px, transparent 44px),
        repeating-linear-gradient(180deg, transparent 0, transparent 42px, var(--grid-line) 43px, transparent 44px);
    opacity: 0.65;
}

body::after {
    background:
        radial-gradient(circle at 12% 18%, rgba(103, 232, 249, 0.2), transparent 18%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.18), transparent 20%),
        linear-gradient(115deg, transparent 15%, rgba(103, 232, 249, 0.12) 28%, transparent 40%),
        linear-gradient(295deg, transparent 55%, rgba(139, 92, 246, 0.1) 70%, transparent 82%);
    mix-blend-mode: screen;
    opacity: 0.75;
}

.page-shell {
    padding: 16px 0 24px;
    position: relative;
    z-index: 1;
}

.page-container {
    max-width: 1280px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.compact-card {
    border-radius: 16px;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(79, 209, 197, 0.1), rgba(139, 92, 246, 0.1));
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% 35%;
    height: 180px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.18) 0%, rgba(103, 232, 249, 0) 68%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-title,
.section-title,
.modal-title,
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.05;
}

.hero-subtitle,
.section-subtitle,
.stat-label,
.helper-text,
.footer-text,
.form-text,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter label {
    color: var(--text-soft) !important;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

:root[data-theme="light"] .soft-badge {
    background: rgba(14, 165, 233, 0.08);
}

.header-tools-card {
    position: relative;
    overflow: hidden;
}

.theme-select {
    font-weight: 600;
}


.hero-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.hero-top-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.theme-toggle-wrap {
    display: flex;
    align-items: center;
    margin: 0;
}

.theme-toggle-input {
    display: none;
}

.theme-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    user-select: none;
    transition: all 0.25s ease;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label {
    background: rgba(15, 23, 42, 0.28);
    border-color: rgba(56, 189, 248, 0.18);
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-toggle-text {
    color: var(--text-main);
}

.theme-toggle-slider {
    position: relative;
    width: 46px;
    height: 24px;
    border-radius: 999px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-toggle-slider {
    background: linear-gradient(135deg, #334155, #475569);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.theme-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-toggle-slider::after {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.theme-toggle-input:checked + .theme-toggle-label {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-text {
    color: #b45309;
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-slider {
    background: linear-gradient(135deg, #facc15, #fb923c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-slider::after {
    background: #fff7ed;
    left: 25px;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.35);
}

.theme-toggle-text {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}


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

.header-mini-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

:root[data-theme="light"] .header-mini-card {
    background: rgba(14, 165, 233, 0.06);
}

.header-mini-title {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.header-mini-value {
    color: var(--heading-color);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.header-mini-select {
    width: 100%;
}

.energy-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.energy-status-card {
    width: 100%;
    min-width: 0;
    min-height: 280px;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.energy-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.energy-card-head-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.energy-status-card .stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0;
    flex-shrink: 0;
    background: var(--surface-soft-strong);
    border: 1px solid var(--card-border);
}

.energy-status-card .stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-soft) !important;
    margin-bottom: 0;
    line-height: 1.2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-pill.online {
    background: var(--status-online-bg);
    color: var(--status-online-text);
}

.status-pill.offline {
    background: var(--status-offline-bg);
    color: var(--status-offline-text);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.energy-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.metric-box {
    background: var(--surface-soft);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 14px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.metric-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 6px;
    line-height: 1.25;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: var(--heading-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    flex-wrap: wrap;
}

.metric-value span {
    font-size: 1.08em;
    font-weight: 800;
    line-height: 1;
    min-width: 0;
    word-break: break-word;
}

.metric-value small {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-soft);
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
}

.energy-status-card .helper-text {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 14px !important;
}

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

.stat-card,
.toolbar-card,
.content-card,
.admin-card,
.latest-period-card {
    padding: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after,
.latest-period-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -45px;
    top: -45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    pointer-events: none;
}

.latest-period-card {
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
}

:root[data-theme="light"] .stat-icon {
    background: rgba(14, 165, 233, 0.08);
}

.stat-value {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.table-block {
    width: 100%;
}

.dashboard-table {
    width: 100% !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--card-border);
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--chart-text);
    background: var(--table-head-bg);
    border-bottom-width: 1px;
    padding-top: 12px;
    padding-bottom: 12px;
    white-space: nowrap;
}

.table tbody td,
.table tfoot th,
.table tfoot td {
    padding-top: 11px;
    padding-bottom: 11px;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--table-row-hover);
}

.table tfoot {
    background: var(--table-head-bg);
    font-weight: 700;
}

.metric-positive {
    color: var(--success-soft);
    font-weight: 700;
}

.metric-negative {
    color: var(--danger-soft);
    font-weight: 700;
}

.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 12px;
    min-height: 42px;
    font-size: 0.94rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    color: var(--text-main);
    border-color: rgba(79, 209, 197, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(79, 209, 197, 0.12);
}

.form-select option {
    color: #111827;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.93rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5b9df9);
    border: none;
    color: #06131f;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5bdbc9, #71a9fb);
    color: #041018;
}

.btn-success {
    background: linear-gradient(135deg, #5ee7a6, #34d399);
    border: none;
    color: #052014;
}

.btn-danger {
    background: linear-gradient(135deg, #ff7a90, #ff5577);
    border: none;
}

.chart-wrap {
    position: relative;
}

.chart-wrap-lg {
    height: 300px;
}

.chart-wrap-md {
    height: 280px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
}

:root[data-theme="light"] .meta-item {
    background: rgba(14, 165, 233, 0.05);
}

.latest-meta {
    min-height: 100%;
}

.meta-title {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-bar {
    margin-top: 14px;
    padding: 12px 0 0;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .row {
    row-gap: 10px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 7px 10px;
}

.dataTables_wrapper .dt-button {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-main) !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
}

:root[data-theme="light"] .dataTables_wrapper .dt-button {
    background: rgba(14, 165, 233, 0.08) !important;
}

.dataTables_wrapper .dt-button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.dataTables_wrapper .dt-scroll {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}

.dataTables_wrapper .dt-scroll-body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dt-scroll-head,
.dataTables_wrapper .dt-scroll-headInner,
.dataTables_wrapper .dt-scroll-body table,
.dataTables_wrapper .dt-scroll-head table {
    min-width: 760px !important;
}

.modal-content {
    background: var(--modal-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-radius: 18px;
}

.modal-header,
.modal-footer {
    border-color: var(--card-border);
}

.btn-close {
    filter: invert(1) grayscale(1);
}

:root[data-theme="light"] .btn-close {
    filter: none;
}

.dashboard-table tbody td:focus,
.dashboard-table tbody th:focus,
.dashboard-table tbody td:active,
.dashboard-table tbody th:active,
.dashboard-table tbody tr:active > *,
table.dataTable tbody tr.selected > *,
table.dataTable tbody tr > .selected,
table.dataTable tbody th.selected,
table.dataTable tbody td.selected {
    color: var(--text-main) !important;
    box-shadow: none !important;
}

.dashboard-table tbody tr:focus-within > *,
table.dataTable tbody tr.selected > * {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

:root[data-theme="light"] .dashboard-table tbody tr:focus-within > *,
:root[data-theme="light"] table.dataTable tbody tr.selected > * {
    background-color: rgba(14, 165, 233, 0.12) !important;
}

.dashboard-table tbody tr,
.dashboard-table tbody td,
.dashboard-table tbody th {
    color: var(--text-main);
}

.admin-card .stat-icon {
    margin-bottom: 0;
}

.modal-dialog {
    max-width: 540px;
}

@media (max-width: 1399.98px) {
    .stats-grid-5,
    .latest-grid-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .header-info-grid,
    .stats-grid-5,
    .latest-grid-5,
    .energy-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .energy-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .energy-status-card {
        min-height: 270px;
        padding: 16px;
        border-radius: 22px;
    }

    .energy-metrics {
        gap: 10px;
    }

    .metric-box {
        min-height: 92px;
        padding: 13px;
    }
}

@media (max-width: 991.98px) {
    .chart-wrap-lg {
        height: 260px;
    }

    .chart-wrap-md {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.92rem;
    }

    .header-info-grid,
    .stats-grid-5,
    .latest-grid-5 {
        grid-template-columns: 1fr;
    }

    .energy-status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .energy-status-card {
        min-height: auto;
        padding: 15px;
        border-radius: 20px;
    }

    .energy-card-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .energy-status-card .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .energy-status-card .stat-label {
        font-size: 0.88rem;
    }

    .status-pill {
        padding: 0.36rem 0.58rem;
        font-size: 0.74rem;
        gap: 6px;
    }

    .energy-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .metric-box {
        min-height: 84px;
        padding: 12px;
        border-radius: 16px;
    }

    .metric-title {
        font-size: 0.68rem;
        margin-bottom: 4px;
    }

    .metric-value {
        font-size: 0.9rem;
        gap: 4px;
    }

    .metric-value small {
        font-size: 0.68rem;
    }

    .energy-status-card .helper-text {
        font-size: 0.72rem;
        margin-top: 10px !important;
    }

    .page-shell {
        padding: 12px 0 20px;
    }

    .stat-card,
    .toolbar-card,
    .content-card,
    .admin-card,
    .latest-period-card {
        padding: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .soft-badge {
        font-size: 0.8rem;
        padding: 7px 10px;
    }

    .hero-topbar {
        margin-bottom: 8px;
    }

    .hero-top-group {
        gap: 10px;
    }

    .theme-toggle-label {
        padding: 7px 11px;
    }

    .theme-toggle-text {
        font-size: 0.8rem;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dt-buttons {
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 6px;
    }
}

@media (max-width: 575.98px) {
    .hero-topbar {
        align-items: flex-start;
    }

    .energy-status-card {
        padding: 12px;
        border-radius: 18px;
    }

    .energy-card-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .energy-status-card .stat-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 0.98rem;
    }

    .energy-status-card .stat-label {
        font-size: 0.82rem;
    }

    .status-pill {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .metric-box {
        min-height: 76px;
        padding: 10px;
        border-radius: 14px;
    }

    .metric-title {
        font-size: 0.64rem;
    }

    .metric-value {
        font-size: 0.84rem;
    }

    .metric-value span {
        font-size: 1em;
    }

    .metric-value small {
        font-size: 0.66rem;
    }

    .energy-status-card .helper-text {
        font-size: 0.68rem;
    }
}

@media (max-width: 430px) {
    .energy-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

