/* Solar project summary refinement */
#energy-chart-section {
    position: relative;
    overflow: hidden;
    border-left-width: 2px !important;
    border-left-color: rgba(56, 189, 248, 0.72) !important;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 22%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)) !important;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.dark #energy-chart-section {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(19, 31, 52, 0.98), rgba(18, 28, 47, 0.92)) !important;
    border-left-color: rgba(56, 189, 248, 0.68) !important;
    box-shadow:
        0 28px 72px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#energy-chart-section::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.8), rgba(96, 165, 250, 0.28), transparent);
    pointer-events: none;
}

#energy-chart-section h2 {
    color: #0f172a !important;
    letter-spacing: -0.015em;
}

.dark #energy-chart-section h2 {
    color: #f8fafc !important;
}

#energy-chart-section .chart-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.84rem;
    line-height: 1.15;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.62) !important;
    color: #475569 !important;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(12px);
}

.dark #energy-chart-section .chart-tab-btn {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.36) !important;
    color: #dbeafe !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#energy-chart-section .chart-tab-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.32);
}

#energy-chart-section .chart-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.98), rgba(37, 99, 235, 0.96)) !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
    color: #f8fafc !important;
    box-shadow:
        0 16px 30px rgba(37, 99, 235, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dark #energy-chart-section .chart-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.98), rgba(37, 99, 235, 0.96)) !important;
    border-color: rgba(96, 165, 250, 0.38) !important;
    color: #f8fafc !important;
    box-shadow:
        0 16px 30px rgba(37, 99, 235, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 0 1px rgba(125, 211, 252, 0.08);
}

#energy-chart-section .chart-tab-btn:active {
    transform: translateY(0) scale(0.985);
}

#energy-chart-section .power-peak-card {
    --power-peak-rgb: 56, 189, 248;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.6)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 14px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    backdrop-filter: blur(14px);
}

.dark #energy-chart-section .power-peak-card {
    border-color: rgba(var(--power-peak-rgb), 0.24);
    background:
        radial-gradient(circle at top right, rgba(var(--power-peak-rgb), 0.16), transparent 34%),
        linear-gradient(180deg, rgba(17, 57, 89, 0.97), rgba(20, 31, 52, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(var(--power-peak-rgb), 0.08),
        0 18px 34px rgba(2, 6, 23, 0.18);
}

#energy-chart-section .power-peak-card::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--power-peak-rgb), 0.92), rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.78;
    pointer-events: none;
}

#energy-chart-section .power-peak-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--power-peak-rgb), 0.34);
}

#energy-chart-section .power-peak-card--pv {
    --power-peak-rgb: 245, 158, 11;
}

#energy-chart-section .power-peak-card--evn {
    --power-peak-rgb: 168, 85, 247;
}

#energy-chart-section .power-peak-card--load {
    --power-peak-rgb: 59, 130, 246;
}

#energy-chart-section .power-peak-card--charge {
    --power-peak-rgb: 34, 197, 94;
}

#energy-chart-section .power-peak-card--discharge {
    --power-peak-rgb: 248, 113, 113;
}

#energy-chart-section .power-peak-card--backup {
    --power-peak-rgb: 34, 211, 238;
}

#energy-chart-section .power-date-btn {
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(255, 255, 255, 0.66) !important;
    color: #475569 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dark #energy-chart-section .power-date-btn {
    border-color: rgba(96, 165, 250, 0.18) !important;
    background: rgba(15, 23, 42, 0.4) !important;
    color: #e2e8f0 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(2, 6, 23, 0.14);
}

#energy-chart-section .power-date-btn:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: rgba(14, 165, 233, 0.12) !important;
}

.dark #energy-chart-section .power-date-btn:hover {
    background: rgba(56, 189, 248, 0.16) !important;
}

#energy-chart-section .power-date-input {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(255, 255, 255, 0.66) !important;
    color: #334155 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dark #energy-chart-section .power-date-input {
    border-color: rgba(96, 165, 250, 0.18) !important;
    background: rgba(15, 23, 42, 0.4) !important;
    color: #e2e8f0 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(2, 6, 23, 0.14);
}

#energy-chart-section .power-date-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.34) !important;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

#energy-chart-section .power-chart-panel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.dark #energy-chart-section .power-chart-panel {
    border-color: rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(20, 31, 52, 0.92), rgba(32, 45, 66, 0.84)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 20px 40px rgba(2, 6, 23, 0.2);
}

#energy-chart-section .power-chart-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.44), rgba(59, 130, 246, 0.12), transparent);
    pointer-events: none;
}

#energy-chart-section .power-mini-stat {
    --power-mini-rgb: 56, 189, 248;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.64)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 12px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dark #energy-chart-section .power-mini-stat {
    border-color: rgba(var(--power-mini-rgb), 0.24);
    background:
        radial-gradient(circle at top right, rgba(var(--power-mini-rgb), 0.14), transparent 34%),
        linear-gradient(180deg, rgba(20, 47, 72, 0.96), rgba(22, 35, 56, 0.9)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 30px rgba(2, 6, 23, 0.16);
}

#energy-chart-section .power-mini-stat::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--power-mini-rgb), 0.92), rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.78;
    pointer-events: none;
}

#energy-chart-section .power-mini-stat--amber {
    --power-mini-rgb: 245, 158, 11;
}

#energy-chart-section .power-mini-stat--cyan {
    --power-mini-rgb: 34, 211, 238;
}

#energy-chart-section .power-mini-stat--blue {
    --power-mini-rgb: 59, 130, 246;
}

#energy-chart-section .power-mini-stat--green {
    --power-mini-rgb: 34, 197, 94;
}

#energy-chart-section .power-mini-stat--red {
    --power-mini-rgb: 248, 113, 113;
}

#energy-chart-section .power-mini-stat--purple {
    --power-mini-rgb: 168, 85, 247;
}

#powerChartLegend {
    scrollbar-width: none;
}

#powerChartLegend::-webkit-scrollbar {
    display: none;
}

#energy-chart-section .power-legend-btn {
    --legend-rgb: 56, 189, 248;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.56) !important;
    color: #475569 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(10px);
}

.dark #energy-chart-section .power-legend-btn {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.36) !important;
    color: #dbeafe !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#energy-chart-section .power-legend-btn.active {
    background: linear-gradient(135deg, rgba(var(--legend-rgb), 0.2), rgba(var(--legend-rgb), 0.11)) !important;
    border-color: rgba(var(--legend-rgb), 0.34) !important;
    color: #0f172a !important;
    box-shadow:
        0 12px 20px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.dark #energy-chart-section .power-legend-btn.active {
    background: linear-gradient(135deg, rgba(var(--legend-rgb), 0.28), rgba(var(--legend-rgb), 0.14)) !important;
    color: #f8fafc !important;
    box-shadow:
        0 16px 24px rgba(2, 6, 23, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#energy-chart-section .power-legend-btn:active {
    transform: scale(0.98);
}

#energy-chart-section .power-legend-btn.opacity-40 {
    opacity: 0.38 !important;
    box-shadow: none !important;
}

#energy-chart-section .power-legend-btn--pv {
    --legend-rgb: 245, 158, 11;
}

#energy-chart-section .power-legend-btn--load {
    --legend-rgb: 59, 130, 246;
}

#energy-chart-section .power-legend-btn--evn {
    --legend-rgb: 168, 85, 247;
}

#energy-chart-section .power-legend-btn--charge {
    --legend-rgb: 34, 197, 94;
}

#energy-chart-section .power-legend-btn--discharge {
    --legend-rgb: 248, 113, 113;
}

#energy-chart-section .power-legend-btn--backup {
    --legend-rgb: 34, 211, 238;
}

#energy-chart-section #powerChartLoading {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(10px);
}

.dark #energy-chart-section #powerChartLoading {
    background: rgba(15, 23, 42, 0.78) !important;
}

@media (max-width: 640px) {
    #energy-chart-section {
        border-radius: 24px !important;
        padding: 0.95rem !important;
    }

    #energy-chart-section .chart-tab-btn {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
        padding: 0.6rem 0.75rem;
        font-size: 0.74rem;
    }

    #energy-chart-section .power-peak-card {
        border-radius: 18px;
        padding: 0.7rem 0.5rem !important;
    }

    #energy-chart-section .power-date-input {
        min-width: 136px !important;
    }

    #energy-chart-section .power-chart-panel {
        border-radius: 20px;
        padding: 0.9rem !important;
    }

    #energy-chart-section .power-mini-stat {
        border-radius: 16px;
    }

    #energy-chart-section .power-legend-btn {
        padding: 0.4rem 0.62rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        background: #0f172a !important;
    }

    main {
        isolation: isolate;
    }

    #energy-chart-section,
    #summaryStats .daily-summary-shell,
    #telegramSettingsSection>div,
    #batteryCellSection>div,
    .solar-forecast-shell {
        isolation: isolate;
        contain: layout;
        background-clip: padding-box;
    }

    #energy-chart-section,
    #energy-chart-section .power-chart-panel,
    #energy-chart-section .power-peak-card,
    #energy-chart-section .power-mini-stat,
    #energy-chart-section .chart-tab-btn,
    #energy-chart-section .power-date-btn,
    #energy-chart-section .power-date-input,
    #energy-chart-section .power-legend-btn,
    #energy-chart-section #powerChartLoading,
    #solarProjectSummary>div,
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div,
    #solarProjectSummary #summaryChartSection>div,
    #solarProjectSummary #viewCalculatorLink,
    #solarProjectSummary #goToCalculatorBtn,
    #solarProjectSummary #btnSolarCloudSync,
    #solarProjectSummary #btnSolarWsDefault,
    #solarProjectSummary #solarDataSourceBadge,
    #summaryStats .daily-summary-shell,
    #summaryStats .daily-summary-card,
    #summaryStats .daily-soc-panel,
    #summaryStats .daily-temp-panel,
    #summaryStats .soc-temp-toggle,
    #summaryStats .daily-line-chart-shell,
    #summaryStats .daily-self-sufficiency-section,
    #summaryStats #ss-timeline-stats>div,
    #summaryStats .daily-ss-chart-shell,
    #summaryStats .daily-live-indicator,
    #summaryStats .daily-autoreload-indicator,
    #telegramSettingsSection>div,
    #telegramSettingsSection .space-y-3>div,
    #telegramSettingsSection .tg-checkbox-label,
    #telegramSettingsSection input[type="number"],
    #telegramSettingsSection select,
    #telegramSettingsSection .telegram-status,
    #telegramSettingsSection #telegramSaveBtn,
    #batteryCellSection>div,
    #batteryCellSection .cell-stat-card,
    #batteryCellSection #cellSectionContent>div,
    .solar-live-pill,
    .solar-control-pill,
    .solar-kpi-pill,
    .solar-inline-metric,
    .solar-hero-card,
    .solar-stat-card,
    .solar-hourly-shell {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark #energy-chart-section::before,
    .dark #energy-chart-section .power-peak-card::after,
    .dark #energy-chart-section .power-chart-panel::before,
    .dark #energy-chart-section .power-mini-stat::after,
    .dark #summaryStats .daily-summary-shell::before,
    .dark #summaryStats .daily-summary-card::after,
    .dark #summaryStats .daily-line-chart-shell::before,
    .dark #solarProjectSummary>div::before,
    .dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div::after,
    .dark #telegramSettingsSection>div::before,
    .dark #telegramSettingsSection .space-y-3>div::after {
        display: none !important;
    }

    .dark #energy-chart-section {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.97), rgba(24, 38, 62, 0.92)) !important;
        box-shadow:
            0 20px 44px rgba(2, 6, 23, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .dark #energy-chart-section .power-chart-panel {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 26%),
            linear-gradient(180deg, rgba(22, 45, 75, 0.95), rgba(26, 42, 68, 0.93)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 16px 30px rgba(2, 6, 23, 0.18);
    }

    .dark #energy-chart-section .power-peak-card,
    .dark #energy-chart-section .power-mini-stat {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
            linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
    }

    .dark #energy-chart-section .chart-tab-btn,
    .dark #energy-chart-section .power-date-btn,
    .dark #energy-chart-section .power-date-input,
    .dark #energy-chart-section .power-legend-btn {
        background: rgba(22, 38, 62, 0.82) !important;
    }

    .dark #solarProjectSummary>div {
        background:
            linear-gradient(180deg, rgba(22, 38, 64, 0.97), rgba(25, 42, 68, 0.95)) !important;
        box-shadow:
            0 22px 52px rgba(2, 6, 23, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div,
    .dark #solarProjectSummary #summaryChartSection>div {
        background:
            linear-gradient(180deg, rgba(25, 50, 82, 0.96), rgba(28, 45, 72, 0.93)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 16px 30px rgba(2, 6, 23, 0.15);
    }

    /* ============================================
       MOBILE PERF FIX: Solar Summary Cards
       Disable all expensive paint properties that cause
       GPU compositing bugs (text disappearing during scroll)
       ============================================ */
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div {
        transition: none !important;
        overflow: visible !important;
        contain: layout style !important;
        will-change: auto !important;
    }

    /* Kill ALL pseudo-element overlays on solar cards (both light + dark) */
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div::after,
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div::before,
    #solarProjectSummary>div::before {
        display: none !important;
        content: none !important;
    }

    /* Simplify parent container too */
    #solarProjectSummary>div {
        transition: none !important;
        overflow: visible !important;
        contain: layout style !important;
    }

    .dark #solarProjectSummary #solarDataSourceBadge {
        background: rgba(22, 38, 62, 0.78) !important;
    }

    .dark #summaryStats .daily-summary-shell {
        background:
            linear-gradient(180deg, rgba(28, 45, 72, 0.97), rgba(32, 50, 78, 0.95)) !important;
        box-shadow:
            0 20px 44px rgba(2, 6, 23, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .dark #summaryStats .daily-summary-card,
    .dark #summaryStats .daily-soc-panel,
    .dark #summaryStats .daily-temp-panel,
    .dark #summaryStats .daily-line-chart-shell,
    .dark #summaryStats .daily-self-sufficiency-section,
    .dark #summaryStats #ss-timeline-stats>div,
    .dark #summaryStats .daily-ss-chart-shell {
        background:
            linear-gradient(180deg, rgba(25, 45, 75, 0.96), rgba(28, 48, 78, 0.93)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 14px 28px rgba(2, 6, 23, 0.12);
    }

    .dark #summaryStats .soc-temp-toggle,
    .dark #summaryStats .daily-live-indicator,
    .dark #summaryStats .daily-autoreload-indicator {
        background: rgba(22, 38, 62, 0.82) !important;
    }

    .dark #telegramSettingsSection>div {
        background:
            linear-gradient(180deg, rgba(25, 42, 68, 0.97), rgba(28, 45, 72, 0.95)) !important;
        box-shadow:
            0 20px 44px rgba(2, 6, 23, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .dark #telegramSettingsSection .space-y-3>div,
    .dark #telegramSettingsSection input[type="number"],
    .dark #telegramSettingsSection select,
    .dark #telegramSettingsSection .telegram-status {
        background:
            linear-gradient(180deg, rgba(28, 48, 78, 0.96), rgba(30, 50, 80, 0.93)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 14px 28px rgba(2, 6, 23, 0.12);
    }

    .dark #telegramSettingsSection .tg-checkbox-label {
        background: transparent !important;
        box-shadow: none !important;
    }

    .dark #batteryCellSection>div {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.97), rgba(24, 38, 62, 0.92)) !important;
    }

    .dark #batteryCellSection .cell-stat-card {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
            linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
    }

    .dark #batteryCellSection #cellSectionContent>div {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.96), rgba(26, 42, 66, 0.92)) !important;
    }

    .dark .solar-live-pill,
    .dark .solar-control-pill,
    .dark .solar-kpi-pill,
    .dark .solar-inline-metric,
    .dark .solar-hero-card,
    .dark .solar-stat-card,
    .dark .solar-hourly-shell {
        background:
            linear-gradient(180deg, rgba(19, 31, 52, 0.964), rgba(22, 35, 58, 0.942)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 14px 30px rgba(2, 6, 23, 0.16);
    }
}

#summaryStats .daily-summary-shell {
    position: relative;
    overflow: hidden;
    border-left-width: 2px !important;
    border-left-color: rgba(56, 189, 248, 0.72) !important;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 22%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(241, 245, 249, 0.86)) !important;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.dark #summaryStats .daily-summary-shell {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(22, 35, 59, 0.985), rgba(22, 33, 55, 0.94)) !important;
    border-left-color: rgba(56, 189, 248, 0.66) !important;
    box-shadow:
        0 28px 72px rgba(2, 6, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#summaryStats .daily-summary-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.8), rgba(56, 189, 248, 0.24), transparent);
    pointer-events: none;
}

#summaryStats .daily-summary-header {
    background: transparent !important;
    border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}

.dark #summaryStats .daily-summary-header {
    border-bottom-color: rgba(96, 165, 250, 0.14) !important;
}

#summaryStats .daily-summary-header h2 {
    color: #0f172a !important;
    letter-spacing: -0.015em;
}

.dark #summaryStats .daily-summary-header h2 {
    color: #f8fafc !important;
}

#summaryStats .daily-summary-header p {
    color: #0284c7 !important;
    opacity: 0.92;
}

.dark #summaryStats .daily-summary-header p {
    color: #7dd3fc !important;
    opacity: 0.96;
}

#summaryStats .daily-summary-header>div>div:first-child>div:first-child {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.98), rgba(37, 99, 235, 0.94)) !important;
    box-shadow:
        0 14px 24px rgba(14, 165, 233, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.dark #summaryStats .daily-summary-header>div>div:first-child>div:first-child {
    box-shadow:
        0 18px 28px rgba(2, 6, 23, 0.22),
        0 0 0 1px rgba(56, 189, 248, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#summaryStats .daily-summary-header>div>div:first-child>div:first-child i {
    color: #eff6ff !important;
}

#summaryStats .daily-summary-body {
    position: relative;
}

#summaryStats .daily-live-indicator {
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    color: #0284c7 !important;
}

.dark #summaryStats .daily-live-indicator {
    background: rgba(11, 84, 118, 0.28);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.14);
    color: #7dd3fc !important;
}

#summaryStats .daily-summary-card {
    --daily-card-accent: rgba(56, 189, 248, 0.92);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.62)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    backdrop-filter: blur(14px);
}

.dark #summaryStats .daily-summary-card {
    border-color: rgba(56, 189, 248, 0.22);
    background:
        radial-gradient(circle at top right, rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.18), transparent 34%),
        linear-gradient(180deg, rgba(20, 63, 97, 0.98), rgba(24, 40, 66, 0.94)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(56, 189, 248, 0.06),
        0 18px 34px rgba(2, 6, 23, 0.14);
}

#summaryStats .daily-summary-card::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--daily-card-accent), rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.78;
    pointer-events: none;
}

#summaryStats .daily-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.32);
}

#summaryStats .daily-summary-card--pv {
    --daily-card-accent: rgba(34, 211, 238, 0.92);
    --daily-card-accent-rgb: 34, 211, 238;
}

#summaryStats .daily-summary-card--battery {
    --daily-card-accent: rgba(45, 212, 191, 0.92);
    --daily-card-accent-rgb: 45, 212, 191;
}

#summaryStats .daily-summary-card--source {
    --daily-card-accent: rgba(59, 130, 246, 0.92);
    --daily-card-accent-rgb: 59, 130, 246;
}

#summaryStats .daily-summary-card>div:first-child>div:last-child {
    color: #0f172a !important;
    letter-spacing: -0.015em;
}

.dark #summaryStats .daily-summary-card>div:first-child>div:last-child {
    color: #f8fafc !important;
}

#summaryStats .daily-summary-card>div:first-child>div:first-child {
    background: rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.14) !important;
    border: 1px solid rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 10px 18px rgba(15, 23, 42, 0.08);
}

.dark #summaryStats .daily-summary-card>div:first-child>div:first-child {
    background: rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.1) !important;
    border-color: rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 22px rgba(2, 6, 23, 0.14);
}

#summaryStats .daily-summary-card>div:first-child>div:first-child i {
    color: rgba(var(--daily-card-accent-rgb, 56, 189, 248), 0.98) !important;
}

#summaryStats .daily-summary-card>div:last-child>div {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.52) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(10px);
}

.dark #summaryStats .daily-summary-card>div:last-child>div {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(14, 28, 48, 0.42) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#summaryStats .daily-summary-card>div:last-child>div>div:first-child {
    color: #64748b !important;
    letter-spacing: -0.01em;
}

.dark #summaryStats .daily-summary-card>div:last-child>div>div:first-child {
    color: #94a3b8 !important;
}

/* ── Harmonized value colors (dark mode) ── */
/* Năng Lượng: PV = bright cyan, Tiêu thụ = neutral white */
.dark #pv-total {
    color: #67e8f9 !important; /* cyan-300 */
}
.dark #load-total {
    color: #e2e8f0 !important; /* slate-200 – neutral */
}

/* Pin Lưu Trữ: Nạp = sky-blue, Xả = soft rose (semantic: spending) */
.dark #bat-charge {
    color: #7dd3fc !important; /* sky-300 */
}
.dark #bat-discharge {
    color: #fda4af !important; /* rose-300 */
}

/* Nguồn Điện: EVN = warm amber (external source), Dự phòng = soft indigo */
.dark #grid-total {
    color: #fcd34d !important; /* amber-300 */
}
.dark #essential-total {
    color: #a5b4fc !important; /* indigo-300 */
}

#summaryStats .daily-soc-section,
#summaryStats .daily-self-sufficiency-section {
    border-top-color: rgba(148, 163, 184, 0.16) !important;
}

.dark #summaryStats .daily-soc-section,
.dark #summaryStats .daily-self-sufficiency-section {
    border-top-color: rgba(96, 165, 250, 0.12) !important;
}

#summaryStats .soc-temp-toggle {
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.66) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.dark #summaryStats .soc-temp-toggle {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.54) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 26px rgba(2, 6, 23, 0.16);
}

#summaryStats .soc-temp-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    border-radius: 999px;
    color: #475569 !important;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dark #summaryStats .soc-temp-tab-btn {
    color: #dbeafe !important;
}

#summaryStats .soc-temp-tab-btn.is-active {
    color: #f8fafc !important;
    box-shadow:
        0 14px 24px rgba(14, 165, 233, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#summaryStats #socChartBtn.is-active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(14, 165, 233, 0.94)) !important;
}

#summaryStats #tempChartBtn.is-active {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.98), rgba(249, 115, 22, 0.94)) !important;
}

#summaryStats .soc-temp-tab-btn:active {
    transform: scale(0.985);
}

#summaryStats .daily-autoreload-indicator {
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.dark #summaryStats .daily-autoreload-indicator {
    background: rgba(11, 51, 49, 0.46);
    border-color: rgba(45, 212, 191, 0.18);
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.12);
}

#summaryStats #soc-big-value,
#summaryStats #temp-big-value {
    letter-spacing: -0.04em;
    text-shadow: none;
}

.dark #summaryStats #soc-big-value {
    color: #22d3ee !important;
}

.dark #summaryStats #temp-big-value {
    color: #fb923c !important;
}

#summaryStats .daily-soc-panel,
#summaryStats .daily-temp-panel {
    position: relative;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(248, 250, 252, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0.25rem 0;
}

.dark #summaryStats .daily-soc-panel,
.dark #summaryStats .daily-temp-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(20, 32, 52, 0.5), rgba(14, 24, 40, 0.22));
    border-color: rgba(96, 165, 250, 0.1);
}

#summaryStats #soc-max-time,
#summaryStats #soc-min-time,
#summaryStats #temp-max-time,
#summaryStats #temp-min-time,
#summaryStats #soc-hover-badge span,
#summaryStats #temp-hover-badge span {
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark #summaryStats #soc-max-time,
.dark #summaryStats #soc-min-time,
.dark #summaryStats #temp-max-time,
.dark #summaryStats #temp-min-time,
.dark #summaryStats #soc-hover-badge span,
.dark #summaryStats #temp-hover-badge span {
    box-shadow:
        0 12px 20px rgba(2, 6, 23, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#summaryStats #soc-max-time,
#summaryStats #soc-hover-badge span:last-child {
    background: rgba(207, 250, 254, 0.92) !important;
    color: #0891b2 !important;
}

#summaryStats #soc-min-time {
    background: rgba(254, 243, 199, 0.92) !important;
    color: #b45309 !important;
}

#summaryStats #temp-max-time {
    background: rgba(254, 226, 226, 0.92) !important;
    color: #dc2626 !important;
}

#summaryStats #temp-min-time {
    background: rgba(219, 234, 254, 0.92) !important;
    color: #2563eb !important;
}

#summaryStats #soc-hover-badge span:first-child,
#summaryStats #temp-hover-badge span:first-child {
    background: rgba(224, 242, 254, 0.94) !important;
    color: #0369a1 !important;
}

#summaryStats #temp-hover-badge span:last-child {
    background: rgba(255, 237, 213, 0.94) !important;
    color: #c2410c !important;
}

.dark #summaryStats #soc-max-time,
.dark #summaryStats #soc-hover-badge span:last-child {
    background: rgba(8, 145, 178, 0.22) !important;
    color: #67e8f9 !important;
}

.dark #summaryStats #soc-min-time {
    background: rgba(180, 83, 9, 0.22) !important;
    color: #fcd34d !important;
}

.dark #summaryStats #temp-max-time {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}

.dark #summaryStats #temp-min-time {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #93c5fd !important;
}

.dark #summaryStats #soc-hover-badge span:first-child,
.dark #summaryStats #temp-hover-badge span:first-child {
    background: rgba(14, 116, 144, 0.24) !important;
    color: #bae6fd !important;
}

.dark #summaryStats #temp-hover-badge span:last-child {
    background: rgba(194, 65, 12, 0.22) !important;
    color: #fdba74 !important;
}

#summaryStats .daily-line-chart-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.dark #summaryStats .daily-line-chart-shell {
    border-color: rgba(96, 165, 250, 0.16);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(22, 35, 58, 0.95), rgba(30, 44, 67, 0.9)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 18px 34px rgba(2, 6, 23, 0.14);
}

#summaryStats canvas#socChart,
#summaryStats canvas#tempChart,
#summaryStats canvas#ss-ratio-chart {
    display: block;
    width: 100% !important;
    height: 100% !important;
    image-rendering: auto;
}

#summaryStats .daily-line-chart-shell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(59, 130, 246, 0.12), transparent);
    pointer-events: none;
}

#summaryStats .daily-self-sufficiency-section h3 {
    letter-spacing: -0.015em;
}

#summaryStats .daily-self-sufficiency-section {
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(248, 250, 252, 0.16));
    padding: 1rem 0 0;
}

.dark #summaryStats .daily-self-sufficiency-section {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(18, 31, 52, 0.26), rgba(14, 24, 40, 0.1));
}

#summaryStats .daily-self-sufficiency-section>div:first-child {
    align-items: center;
}

#summaryStats .daily-self-sufficiency-section>div:first-child h3 {
    color: #0f172a !important;
}

.dark #summaryStats .daily-self-sufficiency-section>div:first-child h3 {
    color: #f8fafc !important;
}

#summaryStats .daily-self-sufficiency-section>div:first-child>span {
    color: #64748b !important;
}

.dark #summaryStats .daily-self-sufficiency-section>div:first-child>span {
    color: #94a3b8 !important;
}

#summaryStats .daily-self-sufficiency-section>div:nth-child(2) {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 0.95rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(241, 245, 249, 0.28));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 14px 28px rgba(15, 23, 42, 0.07);
}

.dark #summaryStats .daily-self-sufficiency-section>div:nth-child(2) {
    border-color: rgba(96, 165, 250, 0.14);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(21, 36, 60, 0.86), rgba(19, 30, 50, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 30px rgba(2, 6, 23, 0.14);
}

#summaryStats #self-sufficiency-circle {
    stroke: #0ea5e9 !important;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.2));
}

#summaryStats #self-sufficiency-rate {
    color: #0369a1 !important;
}

.dark #summaryStats #self-sufficiency-rate {
    color: #38bdf8 !important;
}

#summaryStats #ss-max-rate {
    color: #0369a1 !important;
}

.dark #summaryStats #ss-max-rate {
    color: #7dd3fc !important;
}

#summaryStats #ss-max-time,
#summaryStats #ss-timeline-time {
    color: #0f172a !important;
}

.dark #summaryStats #ss-max-time,
.dark #summaryStats #ss-timeline-time {
    color: #dbeafe !important;
}

#summaryStats #ss-chart-toggle-btn,
#summaryStats #ss-play-btn {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(59, 130, 246, 0.94)) !important;
    color: #f8fafc !important;
    box-shadow:
        0 12px 22px rgba(14, 165, 233, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#summaryStats #ss-timeline-slider {
    accent-color: #14b8a6;
}

#summaryStats #ss-timeline-controls {
    align-items: center;
}

#summaryStats #ss-timeline-controls>div:last-child {
    padding: 0.15rem 0 0;
}

#summaryStats #ss-timeline-slider::-webkit-slider-runnable-track {
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.26);
}

#summaryStats #ss-timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.86rem;
    height: 0.86rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border: 2px solid #f8fafc;
    margin-top: -0.24rem;
    box-shadow: 0 8px 14px rgba(14, 165, 233, 0.24);
}

.dark #summaryStats #ss-timeline-slider::-webkit-slider-runnable-track {
    background: rgba(71, 85, 105, 0.74);
}

#summaryStats #ss-timeline-slider::-moz-range-track {
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.26);
}

.dark #summaryStats #ss-timeline-slider::-moz-range-track {
    background: rgba(71, 85, 105, 0.74);
}

#summaryStats #ss-timeline-slider::-moz-range-thumb {
    width: 0.86rem;
    height: 0.86rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border: 2px solid #f8fafc;
    box-shadow: 0 8px 14px rgba(14, 165, 233, 0.24);
}

#summaryStats #ss-timeline-stats>div,
#summaryStats .daily-ss-chart-shell {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.dark #summaryStats #ss-timeline-stats>div,
.dark #summaryStats .daily-ss-chart-shell {
    border-color: rgba(96, 165, 250, 0.14);
    background: rgba(17, 30, 49, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    #summaryStats .daily-summary-shell {
        border-radius: 24px;
    }

    #summaryStats .daily-summary-grid {
        grid-template-columns: 1fr;
    }

    #summaryStats .daily-summary-card {
        border-radius: 22px;
    }

    #summaryStats .daily-soc-section>div:first-child,
    #summaryStats .daily-self-sufficiency-section>div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #summaryStats .daily-autoreload-indicator,
    #summaryStats .daily-live-indicator {
        font-size: 0.64rem;
    }

    #summaryStats .soc-temp-toggle {
        width: 100%;
    }

    #summaryStats .soc-temp-tab-btn {
        flex: 1 1 0;
    }

    #summaryStats #socContainer>div:first-child,
    #summaryStats #tempContainer>div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    #summaryStats #soc-hover-badge,
    #summaryStats #temp-hover-badge {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }

    #summaryStats .daily-line-chart-shell {
        border-radius: 22px;
    }
}

@media (max-width: 768px) {

    .dark #summaryStats .daily-summary-shell {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.97), rgba(24, 38, 62, 0.92)) !important;
        box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark #summaryStats .daily-summary-card {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
            linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 20px rgba(2, 6, 23, 0.15) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark #summaryStats .daily-soc-panel,
    .dark #summaryStats .daily-temp-panel,
    .dark #summaryStats .daily-line-chart-shell,
    .dark #summaryStats .daily-self-sufficiency-section,
    .dark #summaryStats .daily-self-sufficiency-section>div:nth-child(2),
    .dark #summaryStats .soc-temp-toggle {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.96), rgba(26, 42, 66, 0.92)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark #summaryStats .daily-summary-card>div:last-child>div {
        background:
            linear-gradient(180deg, rgba(18, 50, 80, 0.6), rgba(22, 38, 62, 0.4)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark #summaryStats .daily-summary-shell::before,
    .dark #summaryStats .daily-summary-card::after,
    .dark #summaryStats .daily-line-chart-shell::before {
        display: none !important;
        content: none !important;
    }

    .dark #summaryStats .daily-summary-shell,
    .dark #summaryStats .daily-summary-card,
    .dark #summaryStats .daily-line-chart-shell,
    .dark #summaryStats .daily-self-sufficiency-section,
    .dark #summaryStats .daily-self-sufficiency-section>div:nth-child(2) {
        transition: none !important;
        transform: none !important;
    }
}

#solarProjectSummary>div {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border-left-width: 2px !important;
    border-left-color: rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.86));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 24px 68px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dark #solarProjectSummary>div {
    border-left-color: rgba(45, 212, 191, 0.5) !important;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 80px rgba(2, 6, 23, 0.36);
}

#solarProjectSummary>div {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.86)) !important;
    border-left-width: 2px !important;
    border-left-color: rgba(20, 184, 166, 0.7) !important;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
}

.dark #solarProjectSummary>div {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(19, 31, 52, 0.97), rgba(21, 33, 56, 0.9)) !important;
    border-left-color: rgba(56, 189, 248, 0.62) !important;
    box-shadow:
        0 28px 72px rgba(2, 6, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#solarProjectSummary>div::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.68), rgba(96, 165, 250, 0.24), transparent);
    pointer-events: none;
}

#solarProjectSummary>div>div:first-child>div>span:last-child {
    color: #0f172a !important;
    letter-spacing: -0.015em;
}

.dark #solarProjectSummary>div>div:first-child>div>span:last-child {
    color: #f8fafc !important;
}

#solarProjectSummary #viewCalculatorLink,
#solarProjectSummary #goToCalculatorBtn {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.94)) !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow:
        0 18px 34px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#solarProjectSummary #viewCalculatorLink:hover,
#solarProjectSummary #goToCalculatorBtn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.98), rgba(37, 99, 235, 0.98)) !important;
    box-shadow:
        0 22px 40px rgba(37, 99, 235, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

#solarProjectSummary #solarDataSourceBadge {
    background: rgba(248, 250, 252, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #475569 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dark #solarProjectSummary #solarDataSourceBadge {
    background: rgba(22, 36, 58, 0.64) !important;
    border-color: rgba(56, 189, 248, 0.24) !important;
    color: #eaf4ff !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2);
}

#solarProjectSummary #btnSolarCloudSync,
#solarProjectSummary #btnSolarWsDefault {
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(59, 130, 246, 0.86)) !important;
    box-shadow:
        0 14px 28px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div {
    --solar-card-accent: rgba(45, 212, 191, 0.86);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.56)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    backdrop-filter: blur(14px);
}

.dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div {
    border-color: rgba(56, 189, 248, 0.24);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
        linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(56, 189, 248, 0.07),
        0 18px 36px rgba(2, 6, 23, 0.18);
}

/* Disable hover lift on touch devices to prevent flicker during scroll */
@media (hover: hover) {
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div:hover {
        transform: translateY(-2px);
        border-color: rgba(56, 189, 248, 0.36);
    }
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--solar-card-accent), rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.78;
    pointer-events: none;
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(1)>div:nth-child(1) {
    --solar-card-accent: rgba(34, 211, 238, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(1)>div:nth-child(2) {
    --solar-card-accent: rgba(59, 130, 246, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(2)>div:nth-child(1) {
    --solar-card-accent: rgba(14, 165, 233, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(2)>div:nth-child(2) {
    --solar-card-accent: rgba(96, 165, 250, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(3)>div:nth-child(1) {
    --solar-card-accent: rgba(37, 99, 235, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div:nth-child(3)>div:nth-child(2) {
    --solar-card-accent: rgba(45, 212, 191, 0.92);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div>div:first-child span:last-child {
    color: #475569 !important;
    letter-spacing: 0.04em;
}

.dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div>div:first-child span:last-child {
    color: #dbeafe !important;
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div>div:nth-child(2) {
    text-shadow: none;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#summaryTotalSavings {
    color: #22d3ee !important;
}

#summaryTotalLoad {
    color: #60a5fa !important;
}

#summaryTotalSolar {
    color: #fbbf24 !important;
}

#summaryTotalGrid {
    color: #94a3b8 !important;
}

#summaryCostWithoutSolar {
    color: #fb923c !important;
}

#summaryAvgSavings {
    color: #0ea5e9 !important;
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div button {
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    background: rgba(255, 255, 255, 0.62) !important;
    color: #475569 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div button {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #eff6ff !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(2, 6, 23, 0.12);
}

#solarProjectSummary .grid.grid-cols-1.gap-3>div>div button:hover {
    background: rgba(14, 165, 233, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
    color: #0f172a !important;
}

.dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div button:hover {
    background: rgba(56, 189, 248, 0.24) !important;
    color: #f8fafc !important;
}

#solarProjectSummary #summaryChartSection>div {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.dark #solarProjectSummary #summaryChartSection>div {
    border-color: rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(20, 31, 52, 0.92), rgba(32, 45, 66, 0.82)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 40px rgba(2, 6, 23, 0.2);
}

/* ============================================
   Chart Tab Buttons (Công Suất Trong Ngày)
   Matches SOC toggle button styling
   ============================================ */
.chart-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #475569 !important;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dark .chart-tab-btn {
    color: #dbeafe !important;
}

.chart-tab-btn.is-active {
    color: #f8fafc !important;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(14, 165, 233, 0.94)) !important;
    box-shadow:
        0 14px 24px rgba(14, 165, 233, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.chart-tab-btn:active {
    transform: scale(0.985);
}

/* ============================================
   Energy Chart Section - Dark Mode Card
   ============================================ */
.dark #energy-chart-section {
    border-color: rgba(14, 165, 233, 0.3) !important;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(22, 36, 58, 0.96), rgba(26, 40, 64, 0.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 32px rgba(2, 6, 23, 0.16);
}

/* ============================================
   Lighter Dark Mode Backgrounds for Main Sections
   ============================================ */
.dark #summaryStats .daily-summary-shell,
.dark #chart-section,
.dark #solarProjectSummary {
    --section-bg-boost: 1;
}

/* Telegram Checkbox Accent Override */
#telegramSettingsSection .tg-checkbox:checked {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

/* Telegram Checkbox Size - compact for mobile */
#telegramSettingsSection .tg-checkbox {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex-shrink: 0;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#telegramSettingsSection .tg-checkbox-label span {
    font-size: 0.75rem;
    line-height: 1.25;
}

@media (max-width: 640px) {
    #telegramSettingsSection .tg-checkbox-label span {
        font-size: 0.6875rem;
    }
    #telegramSettingsSection .tg-checkbox-label {
        padding: 6px 8px !important;
    }
}

/* Checkbox label styling - subtle frosted glass rows */
#telegramSettingsSection .tg-checkbox-label,
#telegramSettingsSection .grid .tg-checkbox-label {
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
}

.dark #telegramSettingsSection .tg-checkbox-label,
.dark #telegramSettingsSection .grid .tg-checkbox-label {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(56, 189, 248, 0.1);
}

.dark #telegramSettingsSection .tg-checkbox-label:hover {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(56, 189, 248, 0.2);
}

/* ============================================
   Telegram Status Badge - Sky Blue Override
   ============================================ */
#telegramStatus.bg-green-100 {
    background-color: rgba(14, 165, 233, 0.15) !important;
}
#telegramStatus.text-green-600 {
    color: #0ea5e9 !important;
}
.dark #telegramStatus.bg-green-100,
.dark #telegramStatus.dark\:bg-green-900\/30 {
    background-color: rgba(14, 165, 233, 0.2) !important;
}
.dark #telegramStatus.dark\:text-green-400 {
    color: #38bdf8 !important;
}
/* Override any inline bg-green classes */
#telegramSettingsSection #telegramStatus[class*="bg-green"] {
    background-color: rgba(14, 165, 233, 0.15) !important;
    color: #0ea5e9 !important;
}
.dark #telegramSettingsSection #telegramStatus[class*="bg-green"] {
    background-color: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
}

/* ============================================
   Battery Cell Section - Sky Blue Theme Override
   ============================================ */

/* Section border */
#batteryCellSection > div {
    border-color: rgba(14, 165, 233, 0.3) !important;
}
.dark #batteryCellSection > div {
    border-color: rgba(56, 189, 248, 0.25) !important;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(22, 40, 65, 0.97), rgba(24, 38, 62, 0.92)) !important;
}

/* Header gradient */
#batteryCellSection #cellSectionHeader {
    background: linear-gradient(to right, rgba(224, 242, 254, 0.8), rgba(207, 250, 254, 0.6)) !important;
    border-bottom-color: rgba(14, 165, 233, 0.2) !important;
}
.dark #batteryCellSection #cellSectionHeader {
    background: linear-gradient(to right, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.08)) !important;
    border-bottom-color: rgba(56, 189, 248, 0.2) !important;
}

/* Header icon badge */
#batteryCellSection #cellSectionHeader .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #38bdf8, #0ea5e9) !important;
}

/* Count badge */
#batteryCellSection #cellCountBadge {
    background-color: #0ea5e9 !important;
}

/* Reload button */
#batteryCellSection #reloadCellBtn {
    background-color: #0ea5e9 !important;
}
#batteryCellSection #reloadCellBtn:hover {
    background-color: #0284c7 !important;
}

/* Cell stat card top accent bars - all sky blue */
.dark #batteryCellSection .cell-stat-card > div:first-child {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #38bdf8) !important;
}

/* Cell stat card borders - unified */
#batteryCellSection .cell-stat-card {
    border-color: rgba(14, 165, 233, 0.2) !important;
}
.dark #batteryCellSection .cell-stat-card {
    border-color: rgba(56, 189, 248, 0.2) !important;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
        linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
}

/* Toggle icon color */
#batteryCellSection #toggleIcon {
    color: #0ea5e9 !important;
}

/* Subtitle "Giám sát từng cell" */
#batteryCellSection #cellSectionHeader p {
    color: #0284c7 !important;
}
.dark #batteryCellSection #cellSectionHeader p {
    color: #38bdf8 !important;
}

/* Subtitle "Năng lượng • Pin • Nguồn điện • SOC" - match cell pin style */
#summaryStats .daily-summary-shell > div:first-child p {
    color: #0284c7 !important;
}
.dark #summaryStats .daily-summary-shell > div:first-child p {
    color: #38bdf8 !important;
}

/* Header background - match Cell Pin section header */
#summaryStats .daily-summary-shell > div:first-child {
    background: linear-gradient(to right, rgba(224, 242, 254, 0.8), rgba(207, 250, 254, 0.6)) !important;
    border-bottom-color: rgba(14, 165, 233, 0.2) !important;
}
.dark #summaryStats .daily-summary-shell > div:first-child {
    background: linear-gradient(to right, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.08)) !important;
    border-bottom-color: rgba(56, 189, 248, 0.2) !important;
}

/* "Tất cả cell đang giao tiếp" status text */
#batteryCellSection #cellSectionContent > p,
#batteryCellSection .text-teal-600,
#batteryCellSection .text-teal-500,
#batteryCellSection .text-green-600,
#batteryCellSection .text-green-500,
#batteryCellSection .text-emerald-600,
#batteryCellSection .text-emerald-500,
#batteryCellSection [class*="text-green"],
#batteryCellSection [class*="text-teal"],
#batteryCellSection [class*="text-emerald"] {
    color: #0284c7 !important;
}
.dark #batteryCellSection #cellSectionContent > p,
.dark #batteryCellSection .dark\:text-teal-400,
.dark #batteryCellSection .text-teal-600,
.dark #batteryCellSection .text-teal-500,
.dark #batteryCellSection .text-green-600,
.dark #batteryCellSection .text-green-500,
.dark #batteryCellSection [class*="text-green"],
.dark #batteryCellSection [class*="text-teal"],
.dark #batteryCellSection [class*="text-emerald"] {
    color: #38bdf8 !important;
}

/* ============================================
   Solar Summary Cards - Sky Blue Tone Override
   ============================================ */

/* Card backgrounds - sky blue instead of emerald */
#solarProjectSummary .grid.grid-cols-2 > div {
    background: linear-gradient(to bottom right, rgba(224, 242, 254, 0.5), rgba(186, 230, 253, 0.3)) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}
.dark #solarProjectSummary .grid.grid-cols-2 > div {
    background: linear-gradient(to bottom right, rgba(14, 165, 233, 0.12), rgba(2, 132, 199, 0.08)) !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
}

/* Card title text */
#solarProjectSummary .grid.grid-cols-2 span.text-emerald-600 {
    color: #0284c7 !important;
}
.dark #solarProjectSummary .grid.grid-cols-2 span.text-emerald-600 {
    color: #38bdf8 !important;
}

/* Card value text */
#solarProjectSummary .grid.grid-cols-2 div.text-emerald-600 {
    color: #0284c7 !important;
}
.dark #solarProjectSummary .grid.grid-cols-2 div.text-emerald-600 {
    color: #38bdf8 !important;
}

/* Card buttons */
#solarProjectSummary .grid.grid-cols-2 button {
    background-color: rgba(14, 165, 233, 0.15) !important;
    color: #0284c7 !important;
}
#solarProjectSummary .grid.grid-cols-2 button:hover {
    background-color: rgba(14, 165, 233, 0.3) !important;
}
.dark #solarProjectSummary .grid.grid-cols-2 button {
    color: #38bdf8 !important;
}

/* ============================================
   MOBILE PERF FIX: Solar Summary Cards
   This block MUST be at the END of the file to
   override the desktop .dark rules above.
   Keeps original gradients but removes transitions,
   pseudo-elements, and GPU-heavy properties.
   ============================================ */
@media (max-width: 768px) {
    /* Parent container — brighter gradient */
    .dark #solarProjectSummary>div {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 26%),
            radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 36%),
            linear-gradient(180deg, rgba(22, 40, 65, 0.97), rgba(24, 38, 62, 0.92)) !important;
        box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2) !important;
        transition: none !important;
        overflow: visible !important;
    }

    /* The 6 stat cards — brighter gradient */
    .dark #solarProjectSummary .grid.grid-cols-1.gap-3>div>div {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.32), transparent 30%),
            linear-gradient(180deg, rgba(20, 62, 100, 0.97), rgba(24, 40, 64, 0.92)) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 20px rgba(2, 6, 23, 0.15) !important;
        transition: none !important;
        overflow: visible !important;
        contain: layout style !important;
        transform: none !important;
    }

    /* Chart section — brighter gradient */
    .dark #solarProjectSummary #summaryChartSection>div {
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
            linear-gradient(180deg, rgba(22, 38, 60, 0.94), rgba(30, 48, 70, 0.85)) !important;
        box-shadow: 0 4px 12px rgba(2, 6, 23, 0.15) !important;
        transition: none !important;
    }

    /* Kill ALL pseudo-element overlays */
    #solarProjectSummary>div::before,
    #solarProjectSummary>div::after,
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div::before,
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div::after {
        display: none !important;
        content: none !important;
    }

    /* Light mode cards too */
    #solarProjectSummary .grid.grid-cols-1.gap-3>div>div {
        transition: none !important;
        overflow: visible !important;
        contain: layout style !important;
        transform: none !important;
    }
}