.daily-card { margin-top: 18px; }
.live-card { margin-top: 18px; }
.live-chart { position: relative; }
.daily-chart { position: relative; height: 340px; }
.energy-totals { display: flex; gap: 22px; color: var(--muted); font-size: 12px; }
.energy-totals strong { display: block; color: var(--ink); font-size: 24px; }
.chart-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.daily-peaks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 4px; }
.daily-peaks[hidden] { display: none; }
.daily-peaks span { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f5f7f3; }
.daily-peaks small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.daily-peaks strong { font-size: 18px; }
.daily-peaks .peak-total { background: #edf4ed; color: var(--green); }
.day-tooltip { position: absolute; z-index: 2; display: none; min-width: 190px; padding: 9px 11px; border-radius: 6px; background: rgba(43, 48, 45, .9); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 12px; line-height: 1.45; pointer-events: none; }
.day-tooltip.visible { display: block; }
.day-tooltip time { display: block; margin-bottom: 3px; color: #dce3de; font-weight: 700; }
.day-tooltip span { display: block; white-space: nowrap; }
.day-tooltip i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.legend-soc { background: #6f74c9 !important; }
.period-selector { display: inline-flex; gap: 3px; margin: 14px 0 2px; padding: 4px; border-radius: 11px; background: #f0f3ef; }
.period-selector button { min-width: 68px; padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.period-selector button.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(25,50,38,.1); }
.period-navigation { display: grid; grid-template-columns: 110px minmax(150px, auto) 110px; align-items: center; width: fit-content; margin: 10px 0 3px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.period-navigation button { height: 36px; border: 0; background: #fff; color: var(--green); font-weight: 700; cursor: pointer; }
.period-navigation button:hover:not(:disabled) { background: #edf4ed; }
.period-navigation button:disabled { color: #aeb7b1; cursor: not-allowed; }
.period-navigation strong { padding: 0 16px; border-inline: 1px solid var(--line); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
    .energy-totals { flex-direction: column; gap: 6px; }
    .daily-card .section-heading { gap: 14px; }
    .energy-totals strong { font-size: 19px; }
    .daily-peaks { grid-template-columns: repeat(2, 1fr); }
    .daily-chart { height: 310px; }
    .period-navigation { grid-template-columns: 90px minmax(120px, 1fr) 90px; width: 100%; }
}
