/* =====================================================================
   FULL REDESIGN · DESIGN SYSTEM (approved mockups, 18 Oct 2026)
   One look for every page: thin crumb with the workspace, title + source badge,
   KPI tiles, segmented switcher, flat cards, real tables.
   ===================================================================== */
:root { --c1: #121a21; --c2: #0f161c; --ln: #1f2a33; --ln2: #26313b; --kk: #7f8c99; --amber: #ffb347; --mint: #5ee6a0; --rose: #ff6b78; --sky: #38c6f4; }
body { background: #0d1217; }

/* page crumb + titles, on every page */
.page-crumb { margin: 0 0 10px; gap: 6px; }
.page-crumb .crumb-home { padding: 3px 9px 3px 6px; font-size: 10.5px; border-radius: 6px; background: none; border: 1px solid var(--ln2); color: var(--kk); }
.page-crumb .crumb-home svg { width: 12px; height: 12px; }
.page-crumb .sep { color: #3a4652; }
.page-crumb .here { font-size: 10.5px; letter-spacing: .14em; color: var(--fc, var(--copper)); background: none; border: none; padding: 0; }
.page-crumb .here::before { color: var(--kk); }
#flowView .page-crumb .here::before, #sldView .page-crumb .here::before { content: 'OPERATE · '; }
#swgView .page-crumb .here::before, #ldbView .page-crumb .here::before, #genView .page-crumb .here::before { content: 'ASSETS · '; }
#ranksView .page-crumb .here::before, #utilView .page-crumb .here::before, #hvacView .page-crumb .here::before, #lightView .page-crumb .here::before { content: 'CONSUME · '; }
#savingsView .page-crumb .here::before, #pfView .page-crumb .here::before { content: 'IMPROVE · '; }
.flow-title { font-family: var(--disp); font-size: 21px; font-weight: 500; letter-spacing: .05em; margin: 0 0 4px; }
.flow-hint { font-size: 12px; color: #8b98a5; margin-bottom: 14px; line-height: 1.5; text-transform: none; }
.ps-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ps-hd .flow-hint { margin-bottom: 12px; }
.pp-src { flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; padding: 4px 9px; border-radius: 5px; border: 1px solid #e69500; color: var(--amber); }
#flowView, #savingsView, #pfView, #utilView, #hvacView, #lightView, #sldView, #swgView, #ldbView, #genView, #ranksView { padding: 20px 28px 44px; }

/* plant tabs: flat chips with the plant colour */
#plantTabs { padding: 8px 28px; gap: 6px; background: #0b1015; border-bottom: 1px solid var(--ln); }
#plantTabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ln2); font-size: 11px; background: none; }
#plantTabs button::after { display: none; }
#plantTabs button.active { background: color-mix(in srgb, var(--fc) 26%, transparent); border-color: var(--fc); color: var(--text); }
#flowTabRow .mode-tab { border-radius: 8px; background: var(--c1); border: 1px solid var(--ln2); border-left: 3px solid var(--fc); }
#flowTabRow .mode-tab.active { background: color-mix(in srgb, var(--fc) 22%, var(--c1)); border-color: var(--fc); }

/* shared bits */
.pp-kp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pk { background: var(--c1); border: 1px solid var(--ln); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.pk span { display: block; font-family: var(--disp); font-size: 10px; letter-spacing: .12em; color: var(--kk); }
.pk b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk b i { font-style: normal; font-size: 11px; color: #8b98a5; }
.pk b.hi { color: var(--rose); } .pk b.md { color: var(--amber); } .pk b.ok { color: var(--mint); }
.pp-seg { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pp-seg button { cursor: pointer; font-family: var(--disp); font-size: 11.5px; letter-spacing: .07em; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--ln2); background: none; color: #c9d3dc; }
.pp-seg button:hover { border-color: var(--fc, var(--copper)); }
.pp-seg button.on { background: var(--fc, var(--copper)); border-color: var(--fc, var(--copper)); color: #10141a; }
.pp-segnote { font-size: 11px; color: var(--kk); text-transform: none; }
.rk-ins { font-family: var(--disp); font-size: 11.5px; letter-spacing: .05em; color: var(--amber); }
@media (max-width: 1100px) { .pp-kp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- HOME · PLANT PULSE ---------- */
#homeView > #pulse { display: flex; flex-direction: column; gap: 12px; margin: 18px 28px 22px; }
.hp-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-bar h2 { font-family: var(--disp); font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.hp-bar small { display: block; font-size: 11px; color: #8b98a5; letter-spacing: .06em; }
.hp-src { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-src span { font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border-radius: 5px; border: 1px solid #2b3742; color: #c9d3dc; letter-spacing: .04em; }
.hp-src .st { border-color: #e69500; color: var(--amber); } .hp-src .lv { border-color: #13a874; color: var(--mint); } .hp-src .off { color: var(--kk); }
.hp-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hp-card { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: left; color: var(--text); font-family: var(--sans); }
button.hp-card { cursor: pointer; transition: border-color .2s, transform .15s; }
button.hp-card:hover { border-color: #3a4a58; transform: translateY(-1px); }
.hp-card .k { font-family: var(--disp); font-size: 10.5px; letter-spacing: .14em; color: var(--kk); }
.hp-card .v { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.hp-card .v i { font-style: normal; font-size: 13px; color: #8b98a5; }
.hp-card .s { font-size: 11.5px; color: #9aa6b2; line-height: 1.45; text-transform: none; }
.hp-card .s.warn { color: var(--amber); }
.hp-card.warn { border-color: #5a4210; background: #1a1610; } .hp-card.warn .v { color: var(--amber); }
.hp-card.good .v { color: var(--mint); }
.hp-meter { position: relative; height: 6px; border-radius: 3px; background: var(--ln); margin-top: 4px; }
.hp-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--sky); }
.hp-meter u { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--rose); }
.hp-wh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-stack { display: flex; height: 30px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 4px 0 2px; }
.hp-stack button { border: none; height: 100%; padding: 0; cursor: pointer; color: #10141a; font-family: var(--mono); font-size: 11px; font-weight: 600; transition: filter .15s; }
.hp-stack button:hover { filter: brightness(1.2); }
.hp-leg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 12px; }
.hp-leg button { display: flex; gap: 7px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; color: #c9d3dc; background: none; border: none; padding: 2px 0; cursor: pointer; text-align: left; font-family: var(--sans); text-transform: none; }
.hp-leg i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.hp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hp-tile { background: var(--c1); border: 1px solid var(--ln); border-top: 3px solid var(--c); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; cursor: pointer; text-align: left; color: var(--text); font-family: var(--sans); transition: background .2s, transform .15s; }
.hp-tile:hover { background: color-mix(in srgb, var(--c) 10%, var(--c1)); transform: translateY(-2px); }
.hp-tile .n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.hp-tile .mw { font-family: var(--mono); font-size: 21px; font-weight: 500; }
.hp-tile .mw i { font-style: normal; font-size: 11px; color: #8b98a5; }
.hp-tile .sh { height: 4px; background: var(--ln); border-radius: 2px; overflow: hidden; }
.hp-tile .sh i { display: block; height: 100%; background: var(--c); }
.hp-tile .m { font-size: 10.5px; color: #8b98a5; display: flex; justify-content: space-between; gap: 4px; font-family: var(--mono); }
.hp-tile .m .ok { color: var(--mint); } .hp-tile .m .md { color: var(--amber); } .hp-tile .m .hi { color: var(--rose); }
.hp-row2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.hp-lst { display: flex; flex-direction: column; }
.hp-lst button { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 7px 0; border: none; border-bottom: 1px solid #18222b; background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.hp-lst button:last-child { border-bottom: none; }
.hp-lst button:hover .nm { color: var(--c); }
.hp-lst .rk { font-family: var(--mono); font-size: 11px; color: var(--kk); }
.hp-lst .nm { font-size: 12.5px; text-transform: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-lst .nm em { display: block; font-style: normal; font-size: 10.5px; color: var(--kk); }
.hp-lst .bar { height: 7px; border-radius: 4px; background: var(--ln); overflow: hidden; }
.hp-lst .bar i { display: block; height: 100%; background: var(--c); }
.hp-lst b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-align: right; }
.hp-als { display: flex; flex-direction: column; }
.hp-al { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: none; border-bottom: 1px solid #18222b; background: none; color: #c9d3dc; cursor: pointer; font-family: var(--sans); font-size: 12px; text-align: left; text-transform: none; }
.hp-al:last-child { border-bottom: none; }
.hp-al span { flex: 1; }
.hp-al b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.hp-al b.ok { color: var(--mint); } .hp-al b.md { color: var(--amber); } .hp-al b.hi { color: var(--rose); } .hp-al b.dim { color: var(--kk); }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--kk); }
.hp-dot.ok { background: var(--mint); } .hp-dot.md { background: var(--amber); } .hp-dot.hi { background: var(--rose); }
@media (max-width: 1100px) { .hp-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-tiles, .hp-leg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hp-tiles, .hp-leg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-row2 { grid-template-columns: 1fr; } #homeView > #pulse { margin: 12px 16px; } }

/* ---------- PLANT PAGE ---------- */
#feederView { padding: 18px 28px 44px; }
.pp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-family: var(--disp); font-size: 11px; letter-spacing: .08em; color: #8b98a5; margin-bottom: 10px; }
.pp-crumb i { font-style: normal; color: #3a4652; }
.pp-crumb button { background: none; border: none; color: #8b98a5; cursor: pointer; font: inherit; letter-spacing: inherit; padding: 2px 0; text-transform: none; }
.pp-crumb button:hover { color: var(--text); }
.pp-crumb button.now { color: var(--fc); }
.pp-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pp-hd h2 { font-family: var(--disp); font-size: 22px; font-weight: 500; letter-spacing: .05em; display: flex; align-items: center; gap: 10px; }
.pp-hd h2 i { width: 10px; height: 22px; border-radius: 2px; background: var(--fc); }
.pp-hd small { display: block; margin-top: 3px; font-size: 11px; color: #8b98a5; letter-spacing: .05em; }
.pp-pane { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 12px; min-width: 0; }
.pp-notes { margin-top: 14px; background: var(--c1); border: 1px solid var(--ln); border-left: 3px solid var(--fc); border-radius: 10px; padding: 12px 16px; }
.pp-notes h3 { font-family: var(--disp); font-size: 11px; letter-spacing: .14em; color: var(--kk); font-weight: 500; margin-bottom: 6px; }
.pp-notes ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #c9d3dc; text-transform: none; }
.pt-empty { padding: 30px; text-align: center; color: var(--kk); }
.pt-note { font-size: 11px; color: var(--kk); margin-top: 8px; text-transform: none; }
.pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.pt-count { font-family: var(--mono); font-size: 11px; color: var(--kk); }
.pt-filter { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--ln2); border-radius: 999px; background: var(--c2); }
.pt-filter:focus-within { border-color: var(--fc, var(--copper)); }
.pt-filter svg { width: 14px; height: 14px; fill: none; stroke: var(--kk); stroke-width: 2; stroke-linecap: round; }
.pt-filter input { width: 200px; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 12px; text-transform: none; }
.pt-leg { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--kk); text-transform: none; }
.pt-leg i { width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.pt-leg i.ok { background: var(--mint); } .pt-leg i.md { background: var(--amber); } .pt-leg i.hi { background: var(--rose); }
.pt-hint { margin-left: auto; font-size: 11px; color: #5d6a77; text-transform: none; }
.pt-wrap { overflow-x: auto; border-radius: 8px; }
table.pt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pt thead th { position: sticky; top: 0; z-index: 1; background: #16202a; font-family: var(--disp); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; color: var(--kk); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ln2); white-space: nowrap; vertical-align: bottom; }
.pt thead th i { font-style: normal; text-transform: none; letter-spacing: 0; color: #5d6a77; }
.pt thead th.sort { cursor: pointer; user-select: none; }
.pt thead th.sort:hover { color: var(--text); }
.pt thead th.on { color: var(--fc, var(--copper)); }
.pt thead th u { text-decoration: none; margin-left: 5px; font-size: 9px; opacity: .7; }
.pt th.r, .pt td.r { text-align: right; }
.pt th.c, .pt td.c { text-align: center; }
.pt th.num, .pt td.num { width: 34px; text-align: right; color: #5d6a77; font-family: var(--mono); font-size: 11px; }
.pt tbody td { padding: 9px 10px; border-bottom: 1px solid #18222b; vertical-align: middle; }
.pt tbody tr { transition: background .15s; }
.pt tbody tr td:first-child { box-shadow: inset 3px 0 0 var(--rc, transparent); }
.pt tbody tr:hover { background: #16202a; }
.pt tbody tr.drill { cursor: pointer; }
.pt tbody tr.hl { background: color-mix(in srgb, var(--fc) 18%, transparent); outline: 1px solid var(--fc); }
.pt tbody tr.off { opacity: .55; }
.pt td.m, .pt .m { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt td.nm { min-width: 220px; }
.pt td.nm b { font-weight: 600; text-transform: none; }
.pt td.nm small { display: block; font-size: 11px; color: #8b98a5; margin-top: 2px; text-transform: none; line-height: 1.4; }
.pt td.nm small.in { color: var(--fc, var(--copper)); }
.pt td.nm .ck { font-style: normal; margin-left: 8px; font-family: var(--mono); font-size: 9.5px; padding: 1px 6px; border-radius: 3px; border: 1px solid #5a4210; color: var(--amber); cursor: help; }
.pt td.sh { min-width: 150px; white-space: nowrap; }
.pt td.sh .bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--ln); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.pt td.sh .bar i { display: block; height: 100%; background: var(--rc, var(--fc)); }
.pt td.rm { font-size: 11.5px; color: #9aa6b2; max-width: 260px; text-transform: none; }
.pt td.st { text-align: center; white-space: nowrap; }
.pt .open { font-family: var(--disp); font-size: 10.5px; letter-spacing: .08em; color: var(--fc, var(--copper)); }
.pt .tg { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid #13a874; background: none; color: var(--mint); cursor: pointer; }
.pt .tg.off { border-color: #c9a227; color: #c9a227; }
.pt .tg.op { border-color: var(--ln2); color: #c9d3dc; }
.pt .chip { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.chip.ok { background: #16302a; color: var(--mint); }
.chip.md { background: #3a2a10; color: var(--amber); }
.chip.hi { background: #3a1418; color: var(--rose); }
.chip.na { color: var(--kk); }
.pt tfoot td { padding: 9px 10px; font-family: var(--disp); font-size: 11px; letter-spacing: .1em; color: var(--kk); border-top: 1px solid var(--ln2); }
.pt tfoot td.m { font-family: var(--mono); color: var(--text); letter-spacing: 0; font-size: 12.5px; }
.pt-none { text-align: center; padding: 26px !important; color: var(--kk); }
/* breakdown */
.bd { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.bd-map { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: var(--c2); }
.bd-t { position: absolute; box-sizing: border-box; border: 2px solid var(--c1); padding: 7px 9px; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; background: var(--rc); color: #14100c; font-family: var(--sans); transition: filter .15s; }
.bd-t:hover { filter: brightness(1.12); }
.bd-t.on { outline: 2px solid #fff; outline-offset: -4px; z-index: 2; }
.bd-t b { font-size: 12px; font-weight: 600; line-height: 1.2; text-transform: none; overflow: hidden; text-overflow: ellipsis; }
.bd-t em { font-style: normal; font-family: var(--mono); font-size: 11px; color: #2a1d12; }
.bd-side { background: var(--c2); border: 1px solid var(--ln); border-top: 3px solid var(--fc); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bd-side .k { font-family: var(--disp); font-size: 10px; letter-spacing: .14em; color: var(--kk); }
.bd-side h4 { font-size: 15px; font-weight: 600; text-transform: none; }
.bd-side p { font-size: 12px; color: #9aa6b2; text-transform: none; }
.bd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bd-facts div { background: var(--c1); border-radius: 6px; padding: 6px 8px; min-width: 0; }
.bd-facts span { display: block; font-family: var(--disp); font-size: 9.5px; letter-spacing: .12em; color: var(--kk); }
.bd-facts b { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.bd-facts b.ok { color: var(--mint); } .bd-facts b.md { color: var(--amber); } .bd-facts b.hi { color: var(--rose); }
.bd-side ol { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.bd-side li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: none; border-bottom: 1px solid #18222b; padding: 3px 0; }
.bd-side li b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.bd-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
@media (max-width: 1000px) { .bd { grid-template-columns: 1fr; } }

/* ---------- TOP RANKS ---------- */
.rk-pane { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rk-seg { --fc: var(--sky); }
.rk-rows { display: flex; flex-direction: column; }
.rk-r { display: grid; grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 1.4fr) 86px; gap: 12px; align-items: center; padding: 7px 4px; border: none; border-bottom: 1px solid #18222b; background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.rk-r:hover { background: #16202a; }
.rk-r:last-child { border-bottom: none; }
.rk-r .no { font-family: var(--mono); font-size: 11.5px; color: var(--kk); text-align: right; }
.rk-r .n { font-size: 13px; text-transform: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-r .n em { display: block; font-style: normal; font-size: 10.5px; color: var(--kk); overflow: hidden; text-overflow: ellipsis; }
.rk-r .b { height: 9px; background: var(--ln); border-radius: 5px; overflow: hidden; }
.rk-r .b i { display: block; height: 100%; border-radius: 5px; }
.rk-r .v { font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: right; }
.rk-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.rk-sum span { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 4px; }
.rk-sum .hi { background: #3a1418; color: var(--rose); } .rk-sum .md { background: #3a2a10; color: var(--amber); }
.rk-sum .ok { background: #16302a; color: var(--mint); } .rk-sum .lo { background: #16232c; color: #8fb4c9; }
.rk-note { font-family: var(--disp); font-size: 10.5px; letter-spacing: .08em; color: var(--kk); }
.rk-scroll { overflow-x: auto; }

/* ---------- SYSTEMS ---------- */
.sy2-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.sy2-sw { background: var(--c1); border: 1px solid var(--ln); border-top: 3px solid var(--c); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; color: var(--text); font-family: var(--sans); opacity: .7; transition: opacity .2s, background .2s; }
.sy2-sw:hover { opacity: 1; }
.sy2-sw.on { opacity: 1; background: color-mix(in srgb, var(--c) 12%, var(--c1)); border-color: var(--c); }
.sy2-sw span { font-family: var(--disp); font-size: 10.5px; letter-spacing: .12em; color: var(--kk); }
.sy2-sw b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.sy2-sw b i { font-style: normal; font-size: 12px; color: #8b98a5; }
.sy2-sw em { font-style: normal; font-size: 11px; color: #8b98a5; text-transform: none; }
.sy2-card { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.sy2-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.sy2-h h3 { font-family: var(--disp); font-size: 13px; letter-spacing: .12em; font-weight: 500; }
.sy2-h .pp-seg { margin: 0; }
.sy2-bars { display: flex; flex-direction: column; }
.sy2-b { display: grid; grid-template-columns: 200px minmax(0, 1fr) 90px 200px; gap: 12px; align-items: center; padding: 6px 4px; border: none; border-bottom: 1px solid #18222b; background: none; color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.sy2-b:hover, .sy2-b.on { background: #16202a; }
.sy2-b.on { box-shadow: inset 3px 0 0 var(--c); }
.sy2-b.none { opacity: .4; cursor: default; }
.sy2-b .n { font-size: 12.5px; text-transform: none; }
.sy2-b .t { height: 9px; background: var(--ln); border-radius: 5px; overflow: hidden; }
.sy2-b .t i { display: block; height: 100%; background: var(--c); border-radius: 5px; }
.sy2-b b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-align: right; }
.sy2-b em { font-style: normal; font-size: 11px; color: var(--kk); text-transform: none; }
.sy2-t .pl { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; text-transform: none; }
.sy2-t td.hint { min-width: 120px; }
.sy2-t tr.nc { opacity: .5; }
.sy2-t tbody tr { cursor: pointer; }
@media (max-width: 1000px) { .sy2-b { grid-template-columns: 140px minmax(0, 1fr) 80px; } .sy2-b em { display: none; } }

/* ---------- P.F. & KVA ---------- */
.pf2-k { font-family: var(--disp); font-size: 11px; letter-spacing: .08em; color: var(--kk); }
.pf2-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.pf2-st { background: var(--c1); border: 1px solid var(--ln); border-top: 3px solid var(--c); border-radius: 10px; padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; color: var(--text); font-family: var(--sans); opacity: .72; transition: opacity .2s, background .2s; }
.pf2-st:hover { opacity: 1; }
.pf2-st.on { opacity: 1; background: color-mix(in srgb, var(--c) 10%, var(--c1)); border-color: var(--c); }
.pf2-st span { font-family: var(--disp); font-size: 10.5px; letter-spacing: .12em; color: var(--kk); }
.pf2-st b { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--c); }
.pf2-st em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: #9aa6b2; }
.pf2-st .g { display: block; height: 5px; border-radius: 3px; background: var(--ln); margin-top: 4px; overflow: hidden; }
.pf2-st .g i { display: block; height: 100%; background: var(--c); }
.pf2-tricard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 12px; background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; align-items: center; }
.pf2-tri { width: 100%; height: auto; display: block; }
.pf2-tri .pt-t { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.pf2-tri .pt-s { font-family: var(--mono); font-size: 11px; fill: var(--kk); }
.pf2-explain { display: flex; flex-direction: column; gap: 8px; }
.pf2-explain .k { font-family: var(--disp); font-size: 11px; letter-spacing: .12em; color: var(--kk); }
.pf2-explain p { font-size: 12.5px; color: #c9d3dc; line-height: 1.55; text-transform: none; }
.pf2-ladder div { display: grid; grid-template-columns: 40px minmax(0, 1fr) 80px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11.5px; padding: 3px 0; }
.pf2-ladder i { height: 8px; background: var(--ln); border-radius: 4px; overflow: hidden; }
.pf2-ladder u { display: block; height: 100%; border-radius: 4px; }
.pf2-ladder b { font-weight: 500; text-align: right; }
.pf2-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pf2-c { background: var(--c1); border: 1px solid var(--ln); border-top: 3px solid var(--c); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.pf2-c span { display: block; font-family: var(--disp); font-size: 10px; letter-spacing: .12em; color: var(--kk); }
.pf2-c b { font-family: var(--mono); font-size: 19px; font-weight: 500; }
.pf2-c b i { font-style: normal; font-size: 11px; color: #8b98a5; }
.pf2-c em { display: block; font-style: normal; font-size: 11px; color: #8b98a5; text-transform: none; line-height: 1.4; }
#pfList, #pfOpp, #pfCheck { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 6px 10px 10px; margin-bottom: 14px; }
#pfOpp:empty, #pfCheck:empty { display: none; }
.pf-head { background: #16202a; border-radius: 6px; }
@media (max-width: 1100px) { .pf2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf2-tricard { grid-template-columns: 1fr; } }

/* ---------- TRANSFORMERS & LDB · heat grid ---------- */
.lh2 { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.lh2-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.lh2-h h3 { font-family: var(--disp); font-size: 14px; letter-spacing: .1em; font-weight: 500; }
.lh2-h small { display: block; font-size: 10.5px; color: var(--kk); letter-spacing: .05em; margin-top: 2px; }
.lh2-leg { display: flex; gap: 6px; flex-wrap: wrap; }
.lh2-leg span { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 4px; }
.lh2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 5px; }
.lh2-c { border: 1px solid transparent; border-radius: 7px; padding: 7px 8px; cursor: pointer; min-width: 0; text-align: left; font-family: var(--sans); box-shadow: inset 0 -3px 0 var(--fc); transition: transform .15s, border-color .15s; }
.lh2-c:hover { transform: translateY(-1px); border-color: currentColor; }
.lh2-c.sel { border-color: #fff; }
.lh2-c b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.lh2-c span { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; text-transform: none; }
.lh2-c.hi, .lh2-leg .hi { background: #5a1f26; color: #ff9aa3; }
.lh2-c.md, .lh2-leg .md { background: #4a3610; color: #ffcf80; }
.lh2-c.ok, .lh2-leg .ok { background: #173a2a; color: #8ff0bd; }
.lh2-c.lo, .lh2-leg .lo { background: #16232c; color: #8fb4c9; }
.lh2-c.na { background: var(--c2); color: var(--kk); }
.lh2-ins { font-family: var(--disp); font-size: 11px; letter-spacing: .06em; color: var(--amber); }

/* the rest of the pages pick up the same flat cards */
.gf, .tp-wrap, .tc-side, .sim-bus, .rk-card, .pfp, .notes-panel, .tc-bays, .tc-pending { background: var(--c1); border-color: var(--ln); }
#flowKpis .fk, .dc-row, .sim-tie, .tc-chip { background: var(--c1); border-color: var(--ln); }
