/* ============================================================
   REDESIGN 18 Oct 2026 - workspaces nav, plant pulse, plant modes, electrical path,
   site energy flow, data checks, TCC + what-if, top ranks, transformer heat grid,
   generator fleet, and the table-header alignment fix.
   ============================================================ */

/* ---------- TABLE HEADERS: every header sits exactly over its column ----------
   Rows carry a 4px (equipment) / 3px (P.F.) left border and a 1px frame; the header now
   carries the same, so the grid columns line up to the pixel. Column minimums were
   shrunk so the table fits the page instead of running past its right edge. */
.eq-head, .eq-row {
  gap: 16px;
  grid-template-columns: minmax(220px, 2.1fr) minmax(150px, 1.7fr) 78px minmax(150px, 1.2fr) 104px minmax(150px, 1.6fr);
}
.eq-head { border-left: 4px solid transparent; border-right: 1px solid transparent; padding: 12px 20px; line-height: 1.35; align-items: end; }
.eq-head > span { min-width: 0; overflow-wrap: anywhere; }
.eq-head > span:first-child { padding-left: 62px; }          /* past the share ring, over the names */
.eq-head .c, .eq-run, .eq-kwh { text-align: center; }
.eq-load { align-items: center; }
.pf-head { border-left: 3px solid transparent; align-items: end; line-height: 1.35; }
.pf-head > span { min-width: 0; }
.pf-head span:nth-child(3) { text-align: left; }
.pf-head span:nth-child(5), .pf-save { text-align: right; }
@media (max-width: 1100px) {
  .eq-head, .eq-row { grid-template-columns: minmax(190px, 2fr) minmax(120px, 1.4fr) 64px minmax(130px, 1.2fr) 90px minmax(120px, 1.3fr); gap: 12px; }
  .eq-head > span:first-child { padding-left: 0; }
}

/* ---------- NAV: four workspaces + find & source ---------- */
#flowTabRow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 0; padding: 14px 28px 0; }
#flowTabRow .ws { display: flex; flex-direction: column; gap: 6px; padding: 0 16px; border-left: 1px solid var(--border); }
#flowTabRow .ws:first-child { padding-left: 0; border-left: none; }
.ws-label { font-family: var(--disp); font-size: 10px; letter-spacing: .22em; color: var(--text-dim); transition: color .2s; }
.ws.on .ws-label { color: var(--text); }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#flowTabRow .mode-tab { padding: 8px 14px 8px 10px; font-size: 12px; gap: 8px; }
#flowTabRow .mode-tab svg { width: 16px; height: 16px; }
.mode-tab.active { color: var(--text); border-color: var(--fc);
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 34%, var(--panel)), color-mix(in srgb, var(--fc) 10%, #141922)); }
.ws-tools { margin-left: auto; position: relative; }
.ws-search { display: flex; align-items: center; gap: 8px; padding: 7px 12px; min-width: 260px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.ws-search:focus-within { border-color: var(--copper); }
.ws-search svg { width: 15px; height: 15px; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; flex: none; }
.ws-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 12px; text-transform: none; }
#wsResults { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(560px, 92vw); max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); padding: 6px; }
#wsResults.open { display: block; }
#wsResults button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 9px 12px; border: none; border-left: 3px solid var(--fc); border-radius: 6px;
  background: none; color: var(--text); cursor: pointer; font-family: var(--sans); }
#wsResults button + button { margin-top: 2px; }
#wsResults button:hover { background: var(--panel-alt); }
#wsResults b { font-size: 13px; font-weight: 600; text-transform: none; }
#wsResults span { grid-column: 1; font-size: 11px; color: var(--text-dim); text-transform: none; }
#wsResults em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.ws-none { padding: 14px; color: var(--text-dim); font-size: 12px; text-transform: none; }
.ws-src { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-src .src { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.ws-src .src.study { border-color: color-mix(in srgb, var(--copper) 60%, var(--border)); color: var(--copper); }
.ws-src .src.live.ok { border-color: var(--good); color: var(--good); }
.ws-src .src.live.bad, .ws-src .src.live.stale { border-color: var(--crit); color: var(--crit); }
.ws-src .src.off { color: var(--text-dim); }
@media (max-width: 1250px) { .ws-tools { margin-left: 0; padding-left: 0 !important; border-left: none !important; flex-basis: 100%; } .ws-tools .ws-tabs { flex-wrap: nowrap; } .ws-search { flex: 1; } }

/* ---------- shared segmented control ---------- */
.seg-modes { display: inline-flex; gap: 0; margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--panel); }
#feederView .seg-modes { margin: 0 28px 16px; }
.seg-modes button { border: none; background: none; color: var(--text-muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; font-family: var(--disp); font-size: 12px; letter-spacing: .08em; transition: background .2s, color .2s; }
.seg-modes button:hover { color: var(--text); }
.seg-modes button.on { background: var(--fc, var(--copper)); color: #10141a; }
.tc-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tc-seg button { border: none; background: none; color: var(--text-muted); padding: 6px 12px; cursor: pointer; font-family: var(--mono); font-size: 11px; }
.tc-seg button + button { border-left: 1px solid var(--border); }
.tc-seg button.on { background: var(--copper); color: #10141a; font-weight: 600; }
.pu-go { border: 1px solid var(--border); background: none; color: var(--text-muted); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-family: var(--disp); font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.pu-go:hover { color: var(--text); border-color: var(--copper); }

/* ---------- HOME · PLANT PULSE ---------- */
#pulse { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr 1fr; gap: 14px; margin: 22px 28px 6px; }
.pu-card { background: linear-gradient(160deg, var(--panel), #141922); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pu-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pu-h h3 { font-family: var(--disp); font-size: 13px; letter-spacing: .12em; font-weight: 500; }
.pu-txt { font-size: 12px; line-height: 1.5; color: var(--text-muted); text-transform: none; margin-top: auto; }
.pu-txt b { color: var(--text); font-weight: 600; }
.pu-txt b.bad { color: var(--crit); } .pu-txt b.ok { color: var(--good); }
.pu-fleet { position: relative; height: 54px; margin: 30px 0 22px; border-radius: 6px; background: var(--panel-alt); }
.pu-seg { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--bg); background: color-mix(in srgb, #2f82d6 calc(30% + 0%), var(--panel-alt)); display: flex; flex-direction: column; justify-content: center; padding-left: 8px; overflow: hidden; font-style: normal; }
.pu-seg:nth-child(n+3) { background: color-mix(in srgb, #d08a3a 32%, var(--panel-alt)); }
.pu-seg b { font-family: var(--disp); font-size: 12px; font-weight: 500; }
.pu-seg em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-muted); }
.pu-mark { position: absolute; top: -8px; bottom: -8px; width: 0; }
.pu-mark i { position: absolute; top: 0; bottom: 0; left: -1px; border-left: 2px solid; }
.pu-mark b { position: absolute; font-family: var(--mono); font-size: 10px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.pu-mark.scada i { border-color: var(--good); } .pu-mark.scada b { color: var(--good); top: -16px; transform: translateX(-100%); padding-right: 4px; }
.pu-mark.study i { border-color: var(--copper); border-left-style: dashed; } .pu-mark.study b { color: var(--copper); top: -16px; transform: none; padding-left: 4px; }
.pu-mark.n1 i { border-color: var(--crit); } .pu-mark.n1 b { color: var(--crit); bottom: -18px; transform: translateX(-50%); }
.pu-bus { display: flex; flex-direction: column; gap: 6px; }
.pu-bt { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pu-bt b { font-family: var(--disp); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.pu-bt span { font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-transform: none; }
.pu-track { position: relative; height: 12px; border-radius: 6px; background: var(--panel-alt); }
.pu-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--good); }
.pu-track i.md { background: var(--warn); } .pu-track i.hi { background: var(--crit); }
.pu-track em { position: absolute; right: 6px; top: -1px; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #10141a; mix-blend-mode: normal; }
.pu-w { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-left: 3px solid var(--good); background: none; border-radius: 8px; padding: 6px 10px; color: var(--text); cursor: pointer; text-align: left; }
.pu-w:hover { background: var(--panel-alt); }
.pu-w b { font-family: var(--mono); font-size: 16px; min-width: 22px; text-align: center; }
.pu-w span { font-size: 11.5px; color: var(--text-muted); text-transform: none; line-height: 1.35; }
.pu-w.md { border-left-color: var(--warn); } .pu-w.md b { color: var(--warn); }
.pu-w.bad { border-left-color: var(--crit); } .pu-w.bad b { color: var(--crit); }
.pu-w.ok b { color: var(--good); }
.pu-w.off { border-left-color: var(--text-dim); } .pu-w.off b { color: var(--text-dim); }
.pu-load { display: grid; grid-template-columns: 20px 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; border: none; border-left: 3px solid var(--fc); background: color-mix(in srgb, var(--fc) 7%, transparent); padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--text); text-align: left; }
.pu-load:hover { background: color-mix(in srgb, var(--fc) 16%, transparent); }
.pu-load .n { grid-row: 1 / span 2; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.pu-load b { font-size: 12.5px; font-weight: 600; text-transform: none; min-width: 0; overflow-wrap: anywhere; }
.pu-load em { grid-column: 2; font-style: normal; font-size: 10.5px; color: var(--text-dim); text-transform: none; }
.pu-load i { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
@media (max-width: 1250px) { #pulse { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { #pulse { grid-template-columns: 1fr; margin: 14px 16px 4px; } }

/* ---------- PLANT · BREAKDOWN treemap ---------- */
#plantBreak, #plantPath { margin: 0 28px 28px; }
.tm-head { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; text-transform: none; }
.tm { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--border); }
.tm-t { position: absolute; box-sizing: border-box; border: 2px solid var(--bg); padding: 8px 9px; overflow: hidden; text-align: left; cursor: default;
  background: color-mix(in srgb, var(--rc) 55%, #10141a); color: #fff; display: flex; flex-direction: column; gap: 3px; transition: filter .15s; font-family: var(--sans); }
.tm-t.drill { cursor: pointer; }
.tm-t:hover { filter: brightness(1.18); z-index: 2; }
.tm-t b { font-size: 12.5px; font-weight: 600; line-height: 1.25; text-transform: none; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.tm-t em { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: .9; text-transform: none; }

/* ---------- PLANT · ELECTRICAL PATH ---------- */
.tp-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.tp-kpis { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); text-transform: none; }
.tp-kpis b { font-family: var(--mono); font-size: 15px; color: var(--text); margin-right: 4px; }
.tp-kpis .md b { color: var(--warn); }
.tp-scroll { overflow-x: auto; padding-bottom: 6px; }
.tp-svg { display: block; height: auto; font-family: var(--sans); }
.tp-cable { fill: none; stroke: var(--fc); stroke-width: 2; opacity: .75; }
.tp-cable.tie { stroke: #c9a227; stroke-dasharray: 6 4; }
.tp-cable.loose { stroke-dasharray: 2 4; opacity: .55; }
.tp-out { font-family: var(--mono); font-size: 9.5px; fill: var(--text-dim); }
.tp-box { fill: var(--panel-alt); stroke: var(--border); }
.tp-node { cursor: pointer; }
.tp-node:hover .tp-box { stroke: var(--fc); fill: color-mix(in srgb, var(--fc) 12%, var(--panel-alt)); }
.tp-node.feed .tp-box, .tp-node.swg .tp-box { fill: color-mix(in srgb, var(--fc) 18%, var(--panel-alt)); stroke: var(--fc); }
.tp-node.feed { cursor: default; }
.tp-node.rmu .tp-box { stroke: color-mix(in srgb, var(--fc) 55%, var(--border)); }
.tp-node.grp .tp-box { stroke-dasharray: 4 3; }
.tp-node.tie .tp-box { fill: color-mix(in srgb, #c9a227 12%, var(--panel-alt)); stroke: #c9a227; stroke-dasharray: 5 3; }
.tp-feed { fill: var(--fc); }
.tp-rmu { fill: none; stroke: var(--fc); stroke-width: 1.6; }
.tp-rmu-x { stroke: var(--fc); stroke-width: 1.6; }
.tp-sym { fill: none; stroke: var(--text-muted); stroke-width: 1.5; }
.tp-node.tr.md .tp-sym { stroke: var(--warn); } .tp-node.tr.hi .tp-sym { stroke: var(--crit); }
.tp-kind { font-family: var(--disp); font-size: 9px; letter-spacing: .14em; fill: var(--text-dim); }
.tp-name { font-size: 12px; font-weight: 600; fill: var(--text); }
.tp-meta { font-family: var(--mono); font-size: 10.5px; fill: var(--text-muted); }
.tp-tag { font-family: var(--mono); font-size: 10px; fill: #c9a227; }
.tp-bar-t { fill: var(--bg); }
.tp-bar.ok { fill: var(--good); } .tp-bar.md { fill: var(--warn); } .tp-bar.hi { fill: var(--crit); } .tp-bar.na { fill: var(--border); }
.tp-pct { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.tp-pct.ok { fill: var(--good); } .tp-pct.md { fill: var(--warn); } .tp-pct.hi { fill: var(--crit); } .tp-pct.na { fill: var(--text-dim); }
.tp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 11px; color: var(--text-dim); text-transform: none; line-height: 1.5; }
.tp-legend .lg { display: inline-block; width: 18px; height: 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg.ok { background: var(--good); } .lg.md { background: var(--warn); } .lg.hi { background: var(--crit); } .lg.tie { background: none; border-top: 2px dashed #c9a227; height: 0; }
.tp-empty { padding: 26px; text-align: center; color: var(--text-dim); }

/* ---------- ENERGY FLOW · site level ---------- */
#flowKpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
#flowKpis:empty { display: none; }
#flowKpis .fk { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#flowKpis span { font-family: var(--disp); font-size: 10.5px; letter-spacing: .14em; color: var(--text-dim); }
#flowKpis b { font-family: var(--mono); font-size: 20px; font-weight: 600; }
#flowKpis em { font-style: normal; font-size: 11px; color: var(--text-muted); text-transform: none; }
#flowTools:has(#flowExpandBtn[style*="none"]) { display: none; }
.fs-col { font-family: var(--disp); font-size: 12px; letter-spacing: .18em; fill: var(--text-dim); }
.fs-name, .fs-pname, .fs-tname { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--text); }
.fs-pname { font-size: 12px; }
.fs-tname { fill: #c9a227; font-family: var(--disp); letter-spacing: .1em; font-weight: 500; }
.fs-val { font-family: var(--mono); font-size: 10.5px; fill: var(--text-muted); }
.fs-sub { font-family: var(--mono); font-size: 10px; fill: var(--text-dim); }
.fs-arrow { fill: none; stroke: #f0d27a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fs-item { cursor: pointer; transition: opacity .2s; }
.fs-band { transition: fill-opacity .2s; }
#flowSvg:has(.fs-item:hover) .fs-item:not(:hover) { opacity: .32; }
.fs-item:hover .fs-band { fill-opacity: .85; }
@media (max-width: 900px) { #flowKpis { grid-template-columns: 1fr 1fr; } }

/* ---------- DATA CHECKS ---------- */
#flowChecks:empty { display: none; }
#flowChecks { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.dc-head h3 { font-family: var(--disp); font-size: 15px; letter-spacing: .12em; font-weight: 500; }
.dc-head p { font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; text-transform: none; }
.dc-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dc-sum span { font-size: 12px; color: var(--text-muted); text-transform: none; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.dc-sum b { font-family: var(--mono); color: var(--warn); margin-right: 4px; }
.dc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.dc-row { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--fc); border-radius: 8px; color: var(--text); cursor: pointer; }
.dc-row:hover { background: var(--panel-alt); }
.dc-where { font-size: 10.5px; color: var(--text-dim); text-transform: none; }
.dc-row b { font-size: 13px; text-transform: none; }
.dc-row em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--warn); text-transform: none; }
.dc-nulls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dc-nulls span { font-size: 11px; color: var(--text-muted); text-transform: none; border-left: 3px solid var(--fc); padding: 4px 10px; background: var(--panel); border-radius: 4px; }
.dc-nulls b { color: var(--text); font-weight: 600; }

/* ---------- SINGLE LINE · TCC ---------- */
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tc-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 12px; border: 1px solid var(--border); border-left: 3px solid var(--fc); border-radius: 8px; background: var(--panel); color: var(--text-muted); cursor: pointer; font-family: var(--sans); font-size: 12px; text-transform: none; }
.tc-chip i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--text-dim); }
.tc-chip.has i { color: var(--good); }
.tc-chip.on { background: color-mix(in srgb, var(--fc) 22%, var(--panel)); color: var(--text); border-color: var(--fc); }
.tc-pending { background: var(--panel); border: 1px dashed var(--border); border-radius: 12px; padding: 20px 22px; color: var(--text-muted); font-size: 12.5px; line-height: 1.6; text-transform: none; }
.tc-pending b { color: var(--text); font-family: var(--disp); letter-spacing: .08em; font-weight: 500; font-size: 13px; }
.tc-pending p { margin-top: 6px; }
.tc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tc-facts span { font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }
.tc-facts span b { font-family: var(--mono); font-size: 11.5px; color: var(--text); letter-spacing: 0; }
.tc-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.tc-src { font-family: var(--mono); font-size: 11px; color: var(--text-dim); text-transform: none; }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.tc-plot { background: #0d1117; border: 1px solid var(--border); border-radius: 12px; padding: 10px; overflow-x: auto; }
.tc-svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--mono); }
.tc-g { stroke: #1d2531; stroke-width: 1; } .tc-g.maj { stroke: #2c3746; }
.tc-ax { font-size: 10.5px; fill: #8592a3; }
.tc-axt { font-family: var(--disp); font-size: 10px; letter-spacing: .14em; fill: #6c7889; }
.tc-stage { fill: none; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .9; }
.tc-pick { stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.tc-all { fill: none; stroke: #f5f7f9; stroke-width: 2.6; }
.tc-stl { font-size: 10.5px; font-weight: 600; }
.tc-load { stroke: var(--good); stroke-width: 1.6; stroke-dasharray: 6 4; }
.tc-live { stroke: #3fb6c9; stroke-width: 2; }
.tc-flc { stroke: #c9a227; stroke-width: 1.3; stroke-dasharray: 3 3; }
.tc-inrush { fill: #c9a227; }
.tc-lab { font-size: 10px; font-weight: 600; }
.tc-lab.load { fill: var(--good); } .tc-lab.live { fill: #3fb6c9; } .tc-lab.flc, .tc-lab.inr { fill: #c9a227; }
.tc-side { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.tc-side h4 { font-family: var(--disp); font-size: 12px; letter-spacing: .14em; font-weight: 500; margin-bottom: 10px; }
.tc-checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tc-checks li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 12px; border-left: 3px solid var(--border); background: var(--panel-alt); border-radius: 6px; }
.tc-checks li b { font-family: var(--disp); font-size: 11px; letter-spacing: .08em; font-weight: 500; }
.tc-checks li span { font-size: 11.5px; color: var(--text-muted); text-transform: none; line-height: 1.45; }
.tc-checks li.ok { border-left-color: var(--good); } .tc-checks li.ok b { color: var(--good); }
.tc-checks li.bad { border-left-color: var(--crit); } .tc-checks li.bad b { color: var(--crit); }
.tc-checks li.info { border-left-color: #3fb6c9; }
.tc-checks li.pend { border-left-color: var(--text-dim); border-left-style: dashed; } .tc-checks li.pend b { color: var(--text-dim); }
.tc-tablewrap { overflow-x: auto; margin-top: 14px; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tc-table th { text-align: left; font-family: var(--disp); font-size: 10px; letter-spacing: .12em; font-weight: 500; color: var(--text-dim); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tc-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; text-transform: none; white-space: nowrap; }
.tc-table td small { color: var(--text-dim); margin-left: 4px; }
.tc-table td i { color: var(--text-dim); font-style: normal; }
.tc-table .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tc-table tr.has td { color: var(--text); }
.tc-table .ok { color: var(--good); } .tc-table .pend { color: var(--warn); }
.tc-bays { margin-top: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.tc-bays summary { cursor: pointer; font-family: var(--disp); font-size: 11.5px; letter-spacing: .1em; color: var(--text-muted); }
@media (max-width: 1100px) { .tc-grid { grid-template-columns: 1fr; } }

/* ---------- SINGLE LINE · WHAT-IF ---------- */
.sim-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.sim-reset { border: 1px solid var(--border); background: var(--panel); color: var(--text-muted); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: var(--mono); font-size: 11px; }
.sim-reset:hover { color: var(--text); border-color: var(--copper); }
.sim-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.sim-bus { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sim-gens { display: flex; gap: 10px; justify-content: center; }
.sim-gen { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-alt); color: var(--text); cursor: pointer; transition: transform .15s, border-color .2s; }
.sim-gen:hover { transform: translateY(-2px); }
.sim-gen svg { width: 34px; height: 34px; fill: none; stroke-width: 2.2; }
.sim-gen.on { border-color: var(--good); } .sim-gen.on svg { stroke: var(--good); }
.sim-gen.off { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, var(--panel-alt)); } .sim-gen.off svg { stroke: var(--crit); }
.sim-gen b { font-family: var(--disp); font-size: 13px; font-weight: 500; }
.sim-gen i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-muted); }
.sim-gen.off i { color: var(--crit); }
.sim-bar { border-top: 5px solid #8aa9c9; padding-top: 6px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sim-bar span { font-family: var(--disp); font-size: 12px; letter-spacing: .08em; }
.sim-bar em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-transform: none; }
.sim-feeders { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-f { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-left: 3px solid var(--fc); background: color-mix(in srgb, var(--fc) 10%, var(--panel-alt)); border-radius: 5px; font-size: 11.5px; text-transform: none; }
.sim-f b { font-family: var(--mono); font-size: 11px; color: var(--text-muted); font-weight: 500; }
.sim-f i { font-style: normal; font-family: var(--disp); font-size: 9px; letter-spacing: .1em; color: var(--good); }
.sim-f.shed { opacity: .55; text-decoration: line-through; background: color-mix(in srgb, var(--crit) 14%, var(--panel-alt)); }
.sim-f.shed i { color: var(--crit); text-decoration: none; }
.sim-tie { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.sim-tie i { width: 46px; height: 14px; border-radius: 3px; background: var(--crit); }
.sim-tie.open i { background: var(--good); }
.sim-tie b { font-family: var(--disp); font-size: 11px; letter-spacing: .1em; font-weight: 500; }
.sim-tie span { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--crit); }
.sim-tie.open span { color: var(--good); }
.sim-tie em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-muted); text-align: center; }
.sim-verdicts { display: grid; gap: 8px; margin-top: 14px; }
.sim-v { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--good); background: var(--panel); }
.sim-v b { font-family: var(--disp); font-size: 13px; letter-spacing: .08em; font-weight: 500; color: var(--good); }
.sim-v span { font-size: 12px; color: var(--text-muted); text-transform: none; line-height: 1.45; }
.sim-v.bad { border-left-color: var(--crit); } .sim-v.bad b { color: var(--crit); }
.sim-note { margin-top: 10px; font-size: 11px; color: var(--text-dim); text-transform: none; line-height: 1.5; }
@media (max-width: 900px) { .sim-row { grid-template-columns: 1fr; } .sim-tie { flex-direction: row; justify-content: center; flex-wrap: wrap; } }

/* ---------- TOP RANKS ---------- */
#ranksView { display: none; padding: 22px 28px 40px; }
.rk-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.rk-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.rk-h h3 { font-family: var(--disp); font-size: 14px; letter-spacing: .12em; font-weight: 500; }
.rk-h p { font-size: 12px; color: var(--text-muted); text-transform: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rk-h p b { color: var(--text); font-family: var(--mono); }
.rk-h .tc-seg { margin-left: auto; }
.rk-k { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.rk-k.hi { color: var(--crit); } .rk-k.md { color: var(--warn); } .rk-k.ok { color: var(--good); }
.rk-scroll { overflow-x: auto; }
.pa-svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--mono); }
.pa-g { stroke: var(--border); stroke-dasharray: 2 4; }
.pa-ax { font-size: 10px; fill: var(--text-dim); }
.pa-80 { stroke: var(--warn); stroke-dasharray: 6 4; }
.pa-80t { font-size: 10px; fill: var(--warn); font-family: var(--disp); letter-spacing: .1em; }
.pa-bar { cursor: pointer; }
.pa-bar:hover rect { filter: brightness(1.2); }
.pa-v { font-size: 11px; font-weight: 600; fill: var(--text); }
.pa-l { font-family: var(--sans); font-size: 11.5px; fill: var(--text-muted); }
.pa-c { font-size: 10px; fill: var(--text-dim); }
.pa-line { fill: none; stroke: #f0d27a; stroke-width: 2; }
.pa-dot { fill: #f0d27a; }
.rk-trs { display: flex; flex-direction: column; }
.rk-tr { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(90px, .8fr) 70px 90px minmax(200px, 2.2fr); gap: 14px; align-items: center; padding: 8px 12px; border: none; border-left: 3px solid var(--fc); border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.rk-tr:hover { background: var(--panel-alt); }
.rk-tr.head { cursor: default; border-left-color: transparent; font-family: var(--disp); font-size: 10px; letter-spacing: .12em; color: var(--text-dim); }
.rk-tr.head:hover { background: none; }
.rk-tr b { font-size: 12.5px; font-weight: 600; text-transform: none; min-width: 0; overflow-wrap: anywhere; }
.rk-tr span { font-size: 11.5px; color: var(--text-muted); text-transform: none; }
.rk-tr .m { font-family: var(--mono); text-align: right; }
.rk-tr.head span:nth-child(3), .rk-tr.head span:nth-child(4) { text-align: right; }
.rk-bar { position: relative; height: 14px; border-radius: 7px; background: var(--panel-alt); }
.rk-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.rk-bar i.ok { background: var(--good); } .rk-bar i.md { background: var(--warn); } .rk-bar i.hi { background: var(--crit); }
.rk-bar u { position: absolute; top: -3px; bottom: -3px; border-left: 1px dashed var(--text-dim); }
.rk-bar em { position: absolute; right: -2px; top: 50%; transform: translate(100%, -50%); padding-left: 8px; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.rk-tr .rk-bar { margin-right: 44px; }
.rk-bar em.ok { color: var(--good); } .rk-bar em.md { color: var(--warn); } .rk-bar em.hi { color: var(--crit); }
.rk-loads { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.rk-ld { display: grid; grid-template-columns: 28px minmax(0, 1fr) 76px; grid-template-rows: auto auto auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: none; border-left: 3px solid var(--fc); border-radius: 6px; background: color-mix(in srgb, var(--fc) 6%, transparent); color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.rk-ld:hover { background: color-mix(in srgb, var(--fc) 15%, transparent); }
.rk-ld .n { grid-row: 1 / span 3; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.rk-ld b { font-size: 13px; font-weight: 600; text-transform: none; }
.rk-ld .p { grid-column: 2; font-size: 10.5px; color: var(--text-dim); text-transform: none; }
.rk-lb { grid-column: 2; height: 5px; border-radius: 3px; background: var(--panel-alt); overflow: hidden; }
.rk-lb i { display: block; height: 100%; background: var(--fc); }
.rk-ld em { grid-column: 3; grid-row: 1 / span 3; text-align: right; font-style: normal; font-family: var(--mono); font-size: 13px; font-weight: 600; }
@media (max-width: 900px) { .rk-loads { grid-template-columns: 1fr; } .rk-tr { grid-template-columns: minmax(140px, 1.4fr) 70px minmax(120px, 2fr); } .rk-tr > span:nth-of-type(1), .rk-tr > span:nth-of-type(2) { display: none; } }

/* ---------- TRANSFORMERS & LDB · heat grid ---------- */
.lh { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }
.lh-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.lh-h h3 { font-family: var(--disp); font-size: 14px; letter-spacing: .12em; font-weight: 500; margin-right: 6px; }
.lh-k { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.lh-k.hi { color: var(--crit); } .lh-k.md { color: var(--warn); } .lh-k.ok { color: var(--good); }
.lh-note { font-size: 11px; color: var(--text-dim); text-transform: none; }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lh-g { border-left: 3px solid var(--fc); padding-left: 10px; min-width: 0; }
.lh-gh { font-family: var(--disp); font-size: 12px; letter-spacing: .08em; margin-bottom: 6px; display: flex; justify-content: space-between; }
.lh-gh em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.lh-ts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.lh-t { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; text-align: left; padding: 7px 9px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--panel-alt); color: var(--text); cursor: pointer; font-family: var(--sans); }
.lh-t b { grid-column: 1 / span 2; font-size: 11.5px; font-weight: 600; text-transform: none; line-height: 1.25; overflow-wrap: anywhere; }
.lh-t span { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.lh-t em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; }
.lh-t i { position: absolute; left: 0; bottom: 0; height: 4px; }
.lh-t.ok i { background: var(--good); } .lh-t.ok em { color: var(--good); }
.lh-t.md { background: color-mix(in srgb, var(--warn) 12%, var(--panel-alt)); } .lh-t.md i { background: var(--warn); } .lh-t.md em { color: var(--warn); }
.lh-t.hi { background: color-mix(in srgb, var(--crit) 15%, var(--panel-alt)); } .lh-t.hi i { background: var(--crit); } .lh-t.hi em { color: var(--crit); }
.lh-t:hover { border-color: var(--fc); }
.lh-t.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.ldb-anchor { scroll-margin-top: 12px; }

/* ---------- GENERATORS · fleet ---------- */
.gf { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px 16px; margin-bottom: 20px; }
.gf-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gf-h h3 { font-family: var(--disp); font-size: 14px; letter-spacing: .12em; font-weight: 500; }
.gf-bar { position: relative; height: 64px; margin: 34px 0 30px; border-radius: 8px; background: var(--panel-alt); }
.gf-seg { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--bg); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-left: 10px; background: color-mix(in srgb, #2f82d6 18%, var(--panel-alt)); }
.gf-seg:nth-child(n+3) { background: color-mix(in srgb, #d08a3a 18%, var(--panel-alt)); }
.gf-seg i { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, #2f82d6 45%, transparent); }
.gf-seg:nth-child(n+3) i { background: color-mix(in srgb, #d08a3a 45%, transparent); }
.gf-seg b, .gf-seg em { position: relative; }
.gf-seg b { font-family: var(--disp); font-size: 14px; font-weight: 500; }
.gf-seg em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.gf-mk { position: absolute; top: -10px; bottom: -10px; width: 0; }
.gf-mk i { position: absolute; top: 0; bottom: 0; left: -1px; border-left: 2px solid; }
.gf-mk b { position: absolute; font-family: var(--mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.gf-mk.n1 i { border-color: var(--crit); } .gf-mk.n1 b { color: var(--crit); bottom: -18px; transform: translateX(-50%); }
.gf-mk.scada i { border-color: var(--good); } .gf-mk.scada b { color: var(--good); top: -18px; transform: translateX(-100%); padding-right: 4px; }
.gf-mk.study i { border-color: var(--copper); border-left-style: dashed; } .gf-mk.study b { color: var(--copper); top: -18px; padding-left: 4px; }
.gf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gf-card { border: 1px solid var(--border); border-top: 3px solid var(--good); border-radius: 10px; padding: 10px 12px; background: var(--panel-alt); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gf-card.bad { border-top-color: var(--crit); }
.gf-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gf-ch b { font-family: var(--disp); font-size: 16px; font-weight: 500; }
.gf-ch span { font-family: var(--disp); font-size: 10px; letter-spacing: .1em; color: var(--text-dim); }
.gf-big { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.gf-big i { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.gf-sub { font-size: 11px; color: var(--text-dim); text-transform: none; }
.gf-trip { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.gf-trip span { font-family: var(--disp); font-size: 10px; letter-spacing: .12em; color: var(--text-dim); }
.gf-trip b { font-family: var(--mono); font-size: 13px; }
.gf-trip em { font-style: normal; font-family: var(--mono); font-size: 11px; }
.gf-trip em.ok { color: var(--good); } .gf-trip em.bad { color: var(--crit); }
.gf-note { margin-top: 10px; font-size: 11px; color: var(--text-dim); text-transform: none; }
@media (max-width: 1000px) { .gf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-legbg { fill: rgba(13, 17, 23, .88); stroke: #2c3746; }
.tc-leg { font-size: 10.5px; font-weight: 600; fill: #c9d2dd; }

/* ---------- header: the longer subtitle drops under the name on narrower screens ---------- */
@media (max-width: 1300px) and (min-width: 821px) {
  header h1 { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .hd-sub { flex-basis: 100%; padding-left: 46px; font-size: 13px; }
  .hd-sub::before { display: none; }
}
/* bus balance %: readable on the filled and the empty part of the track */
.pu-track em { color: var(--text); text-shadow: 0 0 3px #000, 0 0 2px #000; }

/* ---------- P.F. & KVA: kVA by plant + layout that never stacks into one tall column ---------- */
@media (max-width: 1100px) and (min-width: 901px) { .pf-hero2 { grid-template-columns: 1.2fr 1fr; } }
.pf-tri { max-height: 280px; }
.pfp { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 26px; }
.pfp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.pfp-h h3 { font-family: var(--disp); font-size: 12.5px; letter-spacing: .12em; font-weight: 500; margin-right: auto; }
.pfp-k { font-size: 11px; color: var(--text-muted); text-transform: none; display: inline-flex; align-items: center; gap: 6px; }
.pfp-k i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.pfp-k i.unc, .pfp-t i.unc { background: #8f3b2c; } .pfp-k i.now, .pfp-t i.now { background: #c99a3a; } .pfp-k i.best, .pfp-t i.best { background: var(--good); }
.pfp-rows { display: flex; flex-direction: column; }
.pfp-r { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(200px, 2fr) minmax(210px, 1fr); gap: 14px; align-items: center; padding: 8px 10px; border: none; border-left: 3px solid var(--fc); border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.pfp-r:hover { background: var(--panel-alt); }
.pfp-n { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pfp-n b { font-size: 12.5px; font-weight: 600; text-transform: none; }
.pfp-n em { font-style: normal; font-size: 10.5px; color: var(--text-dim); text-transform: none; }
.pfp-t { position: relative; height: 16px; border-radius: 4px; background: var(--panel-alt); overflow: hidden; }
.pfp-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pfp-t i.now { top: 3px; bottom: 3px; } .pfp-t i.best { top: 6px; bottom: 6px; }
.pfp-v { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.pfp-v b { color: var(--text); }
.pfp-v i { font-style: normal; color: var(--text-dim); font-size: 10.5px; }
@media (max-width: 900px) { .pfp-r { grid-template-columns: 1fr; gap: 6px; } .pfp-v { text-align: left; } }

/* ---------- P.F. & KVA: kVA by plant + layout that never stacks into one tall column ---------- */
@media (max-width: 1100px) and (min-width: 901px) { .pf-hero2 { grid-template-columns: 1.2fr 1fr; } }
.pf-tri { max-height: 280px; }
.pfp { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 26px; }
.pfp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.pfp-h h3 { font-family: var(--disp); font-size: 12.5px; letter-spacing: .12em; font-weight: 500; margin-right: auto; }
.pfp-k { font-size: 11px; color: var(--text-muted); text-transform: none; display: inline-flex; align-items: center; gap: 6px; }
.pfp-k i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.pfp-k i.unc, .pfp-t i.unc { background: #8f3b2c; } .pfp-k i.now, .pfp-t i.now { background: #c99a3a; } .pfp-k i.best, .pfp-t i.best { background: var(--good); }
.pfp-rows { display: flex; flex-direction: column; }
.pfp-r { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(200px, 2fr) minmax(210px, 1fr); gap: 14px; align-items: center; padding: 8px 10px; border: none; border-left: 3px solid var(--fc); border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.pfp-r:hover { background: var(--panel-alt); }
.pfp-n { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pfp-n b { font-size: 12.5px; font-weight: 600; text-transform: none; }
.pfp-n em { font-style: normal; font-size: 10.5px; color: var(--text-dim); text-transform: none; }
.pfp-t { position: relative; height: 16px; border-radius: 4px; background: var(--panel-alt); overflow: hidden; }
.pfp-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pfp-t i.now { top: 3px; bottom: 3px; } .pfp-t i.best { top: 6px; bottom: 6px; }
.pfp-v { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.pfp-v b { color: var(--text); }
.pfp-v i { font-style: normal; color: var(--text-dim); font-size: 10.5px; }
@media (max-width: 900px) { .pfp-r { grid-template-columns: 1fr; gap: 6px; } .pfp-v { text-align: left; } }

/* 28 Nov: text inside the bus and plant boxes of Load flow: normal text colour, a little softer */
.fs-in, .fs-pname.fs-in, .fs-val.fs-in, .fs-sub.fs-in, .fs-name.fs-in { fill: var(--text) !important; opacity: .82; }
