.forecast-controls { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; gap: 14px; padding: 18px; margin: 28px 0 12px; box-shadow: none; }
.forecast-selection { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); margin: 4px 0 0; padding: 12px 0 0; min-width: 0; }
.forecast-selection legend { padding-right: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.checkbox-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; }
.checkbox-option { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.checkbox-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.checkbox-option:has(input:disabled) { opacity: .55; }
.checkbox-option small { color: var(--muted); font-weight: normal; }
.forecast-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.forecast-summary article .summary-value { display: block; margin: 10px 0; font-size: 20px; color: inherit; text-transform: none; letter-spacing: normal; }
.forecast-summary article .summary-value small { display: block; margin-bottom: 3px; font-weight: normal; font-size: 12px; opacity: .85; }
.forecast-summary strong { font-size: 19px; }
.chart-tooltip { max-width: min(540px, calc(100vw - 20px)); max-height: 80vh; overflow: hidden; }
.tooltip-row { display: flex; justify-content: space-between; gap: 16px; }
.tooltip-row small { opacity: .78; }
.experiment-option { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.experiment-option input { width: auto; margin: 0; }
.experiment-option small { padding: 2px 6px; color: #8a3b14; background: #fae1d2; border-radius: 999px; font-size: 10px; }
.source-attribution a { color: inherit; text-underline-offset: 2px; }
.view-toggle { display: flex; gap: 6px; }
.forecast-summary { grid-template-columns: repeat(4, 1fr); margin: 22px 0; }
.forecast-summary article { background: var(--green-dark); }
.forecast-summary article:nth-child(2) { background: var(--green); }
.forecast-summary article:nth-child(3) { color: var(--ink); background: var(--sun); }
.forecast-summary article:nth-child(4) { color: var(--ink); background: #dce7ed; }
.energy-comparison { display: block; max-width: 28rem; margin-top: 8px; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.35; }
.visualization { padding: 24px; box-shadow: none; }
.chart-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 15px; max-width: 65%; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 18px; height: 3px; border-radius: 2px; }
.chart-wrap { position: relative; width: 100%; min-height: 420px; }
#forecast-chart { width: 100%; height: 420px; overflow: visible; }
.axis { color: var(--muted); font-size: 11px; }
.grid line { stroke: #e3e8e2; }
.grid path { display: none; }
.chart-line { fill: none; stroke-width: 2.3; }
.hover-line { stroke: #809087; stroke-dasharray: 4 4; }
.chart-tooltip { position: fixed; z-index: 30; min-width: 150px; padding: 10px 12px; color: white; background: rgba(13, 48, 35, .94); border-radius: 9px; pointer-events: none; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); }
.table-view { overflow: hidden; box-shadow: none; }
.forecast-table { width: 100%; border-collapse: collapse; }
.forecast-table th, .forecast-table td { padding: 11px 13px; text-align: right; white-space: nowrap; border-bottom: 1px solid #e8ece7; font-size: 13px; }
.forecast-table th { position: sticky; top: 0; color: var(--muted); background: #fafbf7; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.forecast-table th:first-child, .forecast-table td:first-child, .forecast-table th:nth-child(2), .forecast-table td:nth-child(2) { text-align: left; }
.condition-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.map-section { margin-top: 54px; }
.forecast-map { height: 430px; margin-top: 18px; overflow: hidden; box-shadow: none; }
.map-key { display: flex; gap: 22px; padding: 11px 4px; color: var(--muted); font-size: 12px; }
.map-key span { display: flex; align-items: center; gap: 7px; }
.map-key i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.site-dot { background: var(--green); }
.grid-dot { background: var(--sun); border-radius: 2px !important; }
.icon-grid-dot { background: #d15f20; border-radius: 2px !important; transform: rotate(45deg); }
.model-marker { width: 15px; height: 15px; background: var(--sun); border: 2px solid #6c4c0a; transform: rotate(45deg); }
.icon-model-marker { width: 15px; height: 15px; background: #d15f20; border: 2px solid #7f2f0f; transform: rotate(45deg); }
.site-marker { width: 16px; height: 16px; background: var(--green); border: 3px solid white; border-radius: 50%; box-shadow: 0 1px 5px #243c30; }

@media (max-width: 880px) {
  .forecast-controls { grid-template-columns: 1fr 1fr; }
  .forecast-summary { grid-template-columns: 1fr 1fr; }
  .chart-heading { flex-direction: column; }
  .chart-legend { justify-content: flex-start; max-width: none; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar .account { width: 100%; justify-content: flex-end; }
  .forecast-controls, .forecast-summary { grid-template-columns: 1fr; }
  .view-toggle .button { flex: 1; }
  .chart-wrap, #forecast-chart { min-height: 340px; height: 340px; }
}
