.flow-lines path{opacity:.25}.flow-lines .flow-active{opacity:1;stroke-dasharray:7 9;animation:live-flow 1.5s linear infinite}.flow-lines .flow-reverse{animation-direction:reverse}@keyframes live-flow{to{stroke-dashoffset:-32}}.offline:before{background:#a9bac8}.equipment-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.equipment h3{overflow-wrap:anywhere;min-height:32px}.equipment-top{grid-template-columns:38% 1fr}.detail-link{display:block;background:#e8f4ff;padding:12px;border-radius:10px;margin:15px 0;text-align:center}.modal button:disabled{opacity:.5;cursor:not-allowed;margin-bottom:12px}.modal dl{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;font-size:13px}.modal dd{margin:0;overflow-wrap:anywhere}.forecast .days{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:35px;gap:12px}.forecast .day{font-size:13px}.forecast .day img{width:65px;height:65px;margin:15px auto}.forecast .day small{display:block;font-size:11px;color:#6b839c;margin-top:10px}.forecast-pv .pv-bars{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;max-width:320px;margin:auto;height:180px;padding-top:0}.power-card #history-note{font-size:10px;line-height:1.4;margin:5px 0 0}.weather-now .weather-temp strong{font-size:51px}.equipment strong{font-size:23px}.equipment small{overflow-wrap:anywhere}.chart-summary{font-variant-numeric:tabular-nums}.modal{max-height:90vh;overflow:auto}#live-status{color:#286990}@media(max-width:1250px){.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.forecast .days{gap:5px}.forecast .day{font-size:11px}.forecast .day img{width:45px;height:45px}.equipment strong{font-size:20px}.node-battery small{white-space:normal;max-width:105px}.weather-now .weather-temp strong{font-size:48px}}@media(prefers-reduced-motion:reduce){.flow-lines .flow-active{animation:none}}
.flow-inverter-layout .energy-node{flex-direction:column;text-align:center;gap:4px;width:86px}
.flow-inverter-layout .node-pv{left:0;top:calc(50% - 28.5px);bottom:auto}
.flow-inverter-layout .node-home{right:0;left:auto;top:calc(50% - 28.5px)}
.flow-inverter-layout .node-grid{left:calc(70% - 43px);right:auto;top:0}
.flow-inverter-layout .node-battery{left:calc(70% - 43px);top:auto;bottom:0}
.flow-inverter{position:absolute;left:30%;top:23%;width:24%;height:63%;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;color:#193652;cursor:pointer}
.flow-inverter img{width:100%;height:78%;object-fit:contain;mix-blend-mode:multiply}
.flow-inverter strong{font-size:18px;margin-top:6px;white-space:nowrap}
@media(max-width:760px){.flow-inverter-layout .energy-node{width:66px}.flow-inverter-layout .node-pv,.flow-inverter-layout .node-home{top:calc(50% - 24.5px)}.flow-inverter-layout .node-grid,.flow-inverter-layout .node-battery{left:calc(70% - 33px)}.flow-inverter-layout .energy-node strong,.flow-inverter strong{font-size:14px}.flow-inverter-layout .energy-node small{font-size:9px;white-space:normal}.flow-inverter-layout .node-icon{width:44px;height:44px}.flow-inverter-layout .node-icon img{width:36px;height:36px}}
.flow-inverter-layout .node-icon{border:0;border-radius:0;background:none;width:96px;height:96px}
.flow-inverter-layout .node-icon img{width:96px;height:96px}
.flow-inverter-layout .node-pv,.flow-inverter-layout .node-home{width:100px;top:calc(50% - 48px)}
.flow-inverter-layout .node-grid,.flow-inverter-layout .node-battery{left:calc(70% - 45px);width:auto;flex-direction:row;text-align:left;gap:8px}
.flow-inverter-layout .node-grid{top:-12px}.flow-inverter-layout .node-battery{bottom:-12px}
.flow-inverter-layout .node-grid .node-icon,.flow-inverter-layout .node-grid img,.flow-inverter-layout .node-battery .node-icon,.flow-inverter-layout .node-battery img{width:90px;height:90px}
.flow-inverter-layout .flow-inverter{left:28%;top:22%;height:64%}
.flow-inverter-layout .flow-lines .particle-track{stroke-width:2;stroke-dasharray:none;opacity:.16;animation:none;fill:none}
.flow-inverter-layout .flow-lines .particle-track.energized{opacity:.32}
.particle-stream circle{filter:drop-shadow(0 0 3px currentColor)}
.flow-junction{stroke:#fff;stroke-width:1}
@media(min-width:1251px){.middle-grid{height:375px}.flow-scene{height:306px}}
@media(max-width:760px){.flow-inverter-layout{height:330px}.flow-inverter-layout .node-icon,.flow-inverter-layout .node-icon img{width:64px;height:64px}.flow-inverter-layout .node-pv,.flow-inverter-layout .node-home{width:66px;top:calc(50% - 32px)}.flow-inverter-layout .node-grid,.flow-inverter-layout .node-battery{left:calc(72% - 35px);width:70px;flex-direction:column;text-align:center;gap:1px}.flow-inverter-layout .node-grid .node-icon,.flow-inverter-layout .node-grid img,.flow-inverter-layout .node-battery .node-icon,.flow-inverter-layout .node-battery img{width:64px;height:64px}.flow-inverter-layout .node-grid{top:-6px}.flow-inverter-layout .node-battery{bottom:-5px}.flow-inverter-layout .flow-inverter{top:28%;height:48%}}
.flow-inverter-layout .node-pv{left:-10px}
.flow-inverter-layout .node-home{right:-10px}
.flow-inverter-layout .node-grid{top:-20px}
.flow-inverter-layout .node-battery{bottom:-3px}
@media(max-width:760px){.flow-inverter-layout .node-pv{left:-5px}.flow-inverter-layout .node-home{right:-5px}.flow-inverter-layout .node-grid{top:-12px}.flow-inverter-layout .node-battery{bottom:2px}}
.flow-inverter-layout .node-pv small,.flow-inverter-layout .node-home small,.flow-inverter-layout .node-battery small:first-of-type{display:none}
.flow-inverter-layout .node-battery>span:last-child{min-width:88px}
.flow-inverter-layout .node-battery small:last-child{margin-top:7px}
.flow-inverter-layout .node-battery small:last-child{position:absolute;left:0;top:-18px;width:90px;margin:0;text-align:center;line-height:18px}
@media(max-width:760px){.flow-inverter-layout .node-battery small:last-child{width:64px;left:3px;top:-18px}}
.flow-inverter-layout .node-pv>span:last-child,.flow-inverter-layout .node-home>span:last-child{transform:translateY(-8px)}
.flow-inverter-layout .flow-inverter strong{transform:translateY(-8px)}
.flow-inverter-layout .node-battery{gap:1px}
.flow-inverter-layout .node-battery>span:last-child>strong{position:relative;left:-5px}
.topbar .clock{display:grid;gap:4px;min-width:145px}.topbar .clock small,.topbar .clock strong{font-size:21px;line-height:1.2;font-weight:650;letter-spacing:0;margin:0;font-variant-numeric:tabular-nums}
.header-system{display:grid;gap:5px;white-space:nowrap;font-size:14px}.header-system small{font-size:10px;color:#7a92a8}.header-system #live-status[data-online=true]{color:#28946b}.header-system #live-status[data-online=false]{color:#aa7a2e}
.header-icon-button{position:relative;display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#fff;border:1px solid #e0edf6;border-radius:13px;color:#4887b5;cursor:pointer;padding:9px}.header-icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.header-icon-button[data-connected=false]{color:#b68b5a}#alerts-count{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;border-radius:12px;padding:2px 4px;background:#ed746b;color:white;border:2px solid #f5faff;font-size:10px;font-weight:700;text-align:center}
.header-alert-dialog{position:fixed;inset:82px 24px auto auto;margin:0;width:min(390px,calc(100vw - 28px));max-height:75vh;overflow:auto;border:1px solid #daeaf5;border-radius:18px;background:#fff;color:#173b59;padding:20px;box-shadow:0 15px 60px #28577525}.header-alert-dialog::backdrop{background:#16354c20}.alerts-heading{display:flex;align-items:center;justify-content:space-between}.alerts-heading h2{font-size:19px;margin:0}.header-alert-dialog button{font:inherit;cursor:pointer}.alerts-heading button{border:0;background:#f0f7fd;color:#44799e;border-radius:9px;width:30px;height:30px;font-size:23px}.alerts-note,#system-alert-list>p{font-size:12px;color:#7b92a6;line-height:1.6}#alerts-read{background:#eaf5ff;border:1px solid #d7e9f6;border-radius:9px;color:#247cb8;padding:9px 12px;font-size:12px}.system-message{display:grid;gap:7px;background:#fff;border:0;border-bottom:1px solid #e6eff6;padding:15px 8px;width:100%;text-align:left;color:#375b77;font-size:13px;line-height:1.5}.system-message.unread{background:#f0f8ff;border-left:3px solid #1682ff}.system-message small{font-size:10px;color:#859bad}
@media(max-width:760px){.topbar{height:auto;min-height:100px;display:flex;flex-wrap:wrap;padding:15px 0;gap:12px}.topbar .header-system{margin-right:auto;font-size:12px;white-space:normal}.topbar .clock{padding-left:0;border:0;min-width:0;gap:3px}.topbar .clock small,.topbar .clock strong{font-size:16px}.header-icon-button{width:36px;height:36px;padding:7px}.header-alert-dialog{top:75px;right:14px}.header-system small{font-size:9px}}
.card.forecast-pv .pv-bars{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:12px}
.power-card .chart-svg text{font:11px "Segoe UI",sans-serif;fill:#7188a0}
.flow-inverter-layout .flow-inverter strong{position:absolute;margin:0;transform:none;text-align:left;pointer-events:none}
.energy-tube .flow-lines .tube-rim{stroke:#b9d1e0;stroke-width:10;opacity:.4;fill:none}
.energy-tube .flow-lines .tube-body{stroke:#f0f7fb;stroke-width:8;opacity:1;fill:none}
.energy-tube .flow-lines .tube-shine{stroke:#fff;stroke-width:6;opacity:.85;fill:none}
.energy-tube .flow-lines .tube-body.energized{stroke:var(--tube-color);opacity:.13}
.energy-tube .flow-lines .particle-track{stroke-width:5;opacity:.04}
.energy-tube .flow-lines .particle-track.energized{opacity:.1}
.energy-tube .particle-stream ellipse{filter:none}
.energy-tube .flow-junction{display:none}
.equipment-grid .home-equipment-card{position:relative;display:flex;flex-direction:column;height:100%}
.equipment-grid .home-equipment-card>.online{position:absolute;top:13px;left:16px;font-size:12px;line-height:16px}
.equipment-grid .home-equipment-card .equipment-top{grid-template-columns:34% minmax(0,1fr);gap:12px;padding:40px 16px 16px;min-height:220px;flex:1}
.equipment-grid .home-equipment-card .equipment-top>img{height:130px;align-self:center}
.equipment-grid .home-equipment-card h3{font-size:14px;line-height:1.4;margin:0 0 12px;min-height:0}
.equipment-readings{display:grid;gap:8px;font-variant-numeric:tabular-nums}
.equipment-reading{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.equipment-reading>span{color:#607d95;margin-right:7px}
.equipment-reading>b{font-size:14px;font-weight:600;color:#193b59}
.equipment-grid .home-equipment-card .equipment-bottom{margin-top:auto}
.power-card #history-note{display:none}
@media(max-width:440px){.equipment-grid .home-equipment-card .equipment-top{grid-template-columns:1fr;gap:8px;padding:38px 12px 14px}.equipment-grid .home-equipment-card .equipment-top>img{height:95px}.equipment-grid .home-equipment-card h3{font-size:13px}.equipment-reading,.equipment-reading>b{font-size:13px}}
.power-card .legend{font-size:12px;color:#52718d;gap:12px}
.power-card .chart-summary{align-self:stretch;align-content:center;justify-items:center;gap:7px;padding:5px 10px 5px 16px}
.power-card .chart-stat{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:9px;width:100%;max-width:200px;min-height:44px;font-size:11px;line-height:1.2}
.power-card .chart-stat img{width:44px;height:44px;object-fit:contain}
.power-card .chart-stat>div{min-width:0;text-align:left;white-space:nowrap}
.power-card .chart-stat strong{display:block;font-size:20px;line-height:1.2;margin-top:3px}
@media(min-width:761px){
 .power-card .chart-body{height:210px;align-items:stretch}
 .power-card .chart-summary{height:100%;grid-template-rows:repeat(4,minmax(0,1fr));align-content:stretch;gap:0;padding:0 10px 0 16px;transform:none;overflow:hidden}
 .power-card .chart-stat{min-height:0}
 /* patru valori + linia de autoconsum trebuie să încapă în înălțimea graficului */
 .power-card .chart-body{height:228px}
 .power-card .chart-stat{grid-template-columns:40px minmax(0,1fr);gap:8px;line-height:1.15}
 .power-card .chart-stat img{width:40px;height:40px}
 .power-card .chart-stat strong{font-size:18px;line-height:1.15;margin-top:2px}
 .power-card .chart-stat .energy-self-consumption{font-size:11px;line-height:1.2;margin-top:1px}
 .power-card .chart-stat .energy-self-consumption.discreet{font-size:10px}
}
@media(max-width:760px){.power-card .chart-summary{padding:16px 0 4px;gap:16px}.power-card .chart-stat{grid-template-columns:48px minmax(0,1fr);gap:8px}.power-card .chart-stat img{width:48px;height:48px}.power-card .chart-stat strong{font-size:18px}}

.equipment-tile{margin-top:17px}.home-custom .equipment-tile{margin-top:0}@media(min-width:1750px){.equipment-tile{margin-top:20px}}
