#ev-overview { --ev-low:#7fbcc0; --ev-central:#2b8f96; --ev-high:#00565c; --ev-ref:#6A717A; --ev-grid:#ECEEF0; --ev-band:rgb(43 143 150 / 14%); }
/* Demand / shiftable / V2G use violet, yellow and the accent teal (validated all-pairs for colour vision deficiency). */
#ev-flex-chart { --ev-demand:#6250d6; --ev-shift:#eda100; }
.ev-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; padding:8px 0 8px; flex-wrap:wrap; }
.ev-heading h2 { font-size:26px; margin:0; letter-spacing:-.035em; }
.ev-sources { margin:4px 0 0; color:var(--muted); font-size:12px; }
.ev-sources a { color:inherit; }
.ev-actions { display:flex; align-items:center; gap:10px; }
.ev-year { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.ev-year select { height:32px; border:1px solid var(--line); border-radius:var(--pill); padding:0 10px; background:#fff; font:inherit; color:var(--ink); }
.ev-presets { display:flex; align-items:center; gap:5px; }
.ev-presets span { font-size:12px; color:var(--muted); margin-right:2px; }
.ev-controls { margin:0 0 6px; padding:22px 0 18px; border-bottom:1px solid var(--line); }
.ev-controls-head h3 { margin:0; font-size:15px; }
.ev-controls-head p { margin:3px 0 16px; color:var(--muted); font-size:12px; max-width:760px; }
.ev-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ev-group { border:1px solid var(--line); border-radius:var(--radius-md); padding:14px 16px 12px; background:#fff; }
.ev-group label { display:block; cursor:pointer; }
.ev-group label strong { display:block; font-size:14px; }
.ev-group label span { display:block; color:var(--muted); font-size:12px; line-height:1.4; margin-top:2px; min-height:34px; }
.ev-group input[type=range], .ev-param input[type=range] { width:100%; margin:10px 0 0; accent-color:var(--accent); }
.ev-scale { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); margin-bottom:8px; }
.ev-group ul { list-style:none; margin:0; padding:8px 0 0; border-top:1px solid var(--soft); font-size:12px; }
.ev-group li { display:flex; justify-content:space-between; gap:10px; padding:3px 0; }
.ev-group li span { color:var(--muted); }
.ev-group li b { font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
.ev-group em { color:var(--amber); font-style:normal; }
.ev-group em.fixed { color:var(--muted); }
.ev-link { border:0; background:none; padding:6px 0 0; color:var(--accent); font:inherit; font-size:12px; cursor:pointer; text-decoration:underline; }
.ev-advanced, .ev-method { margin-top:16px; }
.ev-advanced > summary, .ev-method > summary { cursor:pointer; font-size:13px; font-weight:650; color:var(--accent); }
.ev-advanced h4 { margin:18px 0 4px; font-size:13px; }
.ev-param { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr); gap:20px; padding:12px 0; border-bottom:1px solid var(--soft); }
.ev-param-text strong { font-size:13px; }
.ev-param-text p { margin:4px 0 0; font-size:12px; color:var(--ink); line-height:1.45; }
.ev-param-text p.ev-param-sources { color:var(--muted); }
.ev-param-text a { color:var(--accent); }
.ev-param-control b { display:block; font-size:12px; font-variant-numeric:tabular-nums; }
.ev-param-control small { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.ev-method ol { margin:10px 0 0; padding-left:20px; font-size:12px; line-height:1.55; max-width:900px; }
.ev-tornado-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.ev-metric-switch { display:flex; gap:5px; }
.ev-notice { color:var(--muted); font-size:13px; }
.bess-metric small { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.35; }
.ev-visuals { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); }
.ev-chart { padding:24px 26px 22px 0; min-width:0; }
.ev-visuals .ev-chart + .ev-chart { padding-left:26px; border-left:1px solid var(--line); }
.ev-chart-wide { border-bottom:1px solid var(--line); padding-right:0; }
.ev-chart h3 { font-size:14px; margin:0; }
.ev-chart-note { margin:2px 0 12px; color:var(--muted); font-size:12px; }
.ev-plot { position:relative; }
.ev-plot svg { display:block; width:100%; height:auto; overflow:visible; }
.ev-plot .axis text { fill:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.ev-plot .grid line { stroke:var(--ev-grid); stroke-width:1; }
.ev-plot .baseline { stroke:#C9CED3; stroke-width:1; }
.ev-plot .series { fill:none; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.ev-plot .series.dashed { stroke-dasharray:5 4; }
.ev-plot .ref { stroke:var(--ev-ref); stroke-width:1.25; stroke-dasharray:2 3; }
.ev-plot .label { font-size:11px; fill:var(--ink); font-weight:600; }
.ev-plot .ref-label { font-size:11px; fill:var(--muted); }
.ev-plot .crosshair { stroke:#9AA2AA; stroke-width:1; }
.ev-plot .band { fill:var(--ev-band); stroke:none; }
.ev-plot .marker { stroke:#C9CED3; stroke-width:1; stroke-dasharray:3 3; }
.ev-plot .peak-shade { fill:var(--soft); }
.ev-plot .tornado-label { font-size:12px; fill:var(--ink); }
.ev-plot .tornado-value { font-size:11px; fill:var(--muted); font-variant-numeric:tabular-nums; }
.ev-plot .dot { stroke:#fff; stroke-width:2; }
.ev-legend { display:flex; flex-wrap:wrap; gap:4px 14px; margin:0 0 8px; font-size:12px; color:var(--muted); }
.ev-legend span { display:inline-flex; align-items:center; gap:6px; }
.ev-legend i { width:14px; height:2px; border-radius:1px; display:inline-block; }
.ev-legend i.ref-swatch { background:repeating-linear-gradient(90deg, var(--ev-ref) 0 2px, transparent 2px 5px); height:1.5px; }
.ev-legend i.band-swatch { height:10px; width:14px; background:var(--ev-band); border-radius:2px; }
.ev-legend i.square { height:8px; width:8px; border-radius:2px; }
.ev-legend i.square.peak { background:var(--soft); border:1px solid var(--line); }
.ev-legend i.dashed { background:repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.ev-tooltip { position:absolute; pointer-events:none; min-width:150px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 2px 12px rgb(12 16 20 / 8%); font-size:12px; z-index:2; }
.ev-tooltip strong { display:block; margin-bottom:4px; }
.ev-tooltip div { display:flex; justify-content:space-between; gap:14px; }
.ev-tooltip div span { display:inline-flex; align-items:center; gap:6px; color:var(--muted); }
.ev-tooltip i { width:8px; height:8px; border-radius:50%; display:inline-block; }
.ev-tooltip b { font-weight:600; font-variant-numeric:tabular-nums; }
.ev-section { margin-top:26px; }
.ev-table td.num, .ev-table th.num { text-align:right; white-space:nowrap; }
.ev-table th { color:var(--muted); font-size:11px; font-weight:600; }
.ev-table a { color:var(--accent); }
.ev-basis { display:inline-block; padding:1px 7px; border-radius:var(--pill); font-size:11px; background:var(--soft); color:var(--ink); }
.ev-basis.assumption { background:var(--amber-soft); color:var(--amber); }
.ev-basis.sourced, .ev-basis.derived { background:var(--accent-soft); color:var(--accent); }
.ev-basis.partly-sourced { background:var(--soft); color:var(--ink); }
@media(max-width:1000px) { .ev-groups { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:820px) { .ev-groups { grid-template-columns:1fr; } .ev-param { grid-template-columns:1fr; gap:8px; } .ev-visuals { grid-template-columns:1fr; } .ev-visuals .ev-chart, .ev-visuals .ev-chart + .ev-chart { padding:22px 0; border-left:0; } .ev-visuals .ev-chart + .ev-chart { border-top:1px solid var(--line); } .ev-heading h2 { font-size:23px; } .ev-table { min-width:640px; } }
.ev-controls-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.ev-todo-badge { flex:0 0 auto; border:1px solid var(--amber-soft); background:var(--amber-soft); color:var(--amber); border-radius:var(--pill); padding:6px 12px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.ev-todo-badge:hover { border-color:var(--amber); }
.ev-todo { margin:0 0 16px; }
.ev-todo > summary { cursor:pointer; font-size:13px; font-weight:650; color:var(--amber); }
.ev-todo-item { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,1.1fr); gap:20px; padding:10px 0; border-bottom:1px solid var(--soft); font-size:12px; }
.ev-todo-item.handled { opacity:.6; }
.ev-todo-item p { margin:3px 0 0; color:var(--muted); }
.ev-todo-scope { color:var(--muted); }
.ev-leads ul { list-style:none; margin:0 0 6px; padding:0; }
.ev-lead { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:3px 0; font-size:12px; }
.ev-lead a { color:var(--accent); overflow-wrap:anywhere; }
.ev-lead-note { color:var(--ink); }
.ev-lead small { color:var(--muted); }
.ev-lead select { font:inherit; font-size:11px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.ev-lead-status { padding:1px 7px; border-radius:var(--pill); font-size:11px; background:var(--amber-soft); color:var(--amber); }
.ev-lead-status.keep-as-assumption { background:var(--soft); color:var(--ink); }
.ev-lead-status.resolved { background:var(--accent-soft); color:var(--accent); }
.ev-lead-add > summary { cursor:pointer; color:var(--accent); font-size:12px; }
.ev-lead-add form { display:grid; gap:6px; margin-top:6px; font-size:12px; }
.ev-lead-add label { display:grid; gap:2px; color:var(--muted); }
.ev-lead-add input, .ev-lead-add select { font:inherit; font-size:12px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; color:var(--ink); }
.ev-lead-add button { justify-self:start; border:0; border-radius:var(--pill); padding:6px 14px; background:var(--accent); color:#fff; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.ev-lead-error { color:#b42318; }
.ev-param-text .ev-leads { margin-top:6px; }
.ev-ancillary .tess-table-wrap { margin-top:6px; }
.ev-cover { display:grid; grid-template-columns:62px minmax(60px,1fr) 44px; align-items:center; gap:8px; font-size:12px; font-variant-numeric:tabular-nums; }
.ev-cover span { text-align:right; }
.ev-cover i { display:block; height:8px; border-radius:3px; background:var(--soft); overflow:hidden; }
.ev-cover i { display:flex; gap:1px; }
.ev-cover b { display:block; height:100%; border-radius:3px; background:var(--ev-central); }
.ev-cover b.smart { background:#eda100; }
.ev-key { display:inline-block; width:10px; height:8px; border-radius:2px; background:var(--ev-central); vertical-align:middle; }
.ev-key.smart { background:#eda100; }
.ev-leftover td { color:var(--muted); font-size:12px; background:var(--soft); }
.ev-cover em { font-style:normal; color:var(--muted); text-align:right; }
@media(max-width:820px) { .ev-todo-item { grid-template-columns:1fr; gap:6px; } .ev-controls-head { flex-direction:column; } }
