/* ANX Nexora Energy Hub V1.9.1 - Battery Bank ONLY UI.
   Intentionally does not touch dashboard/weather/topology styles. */
.anx-bank-card{margin:14px 4px 4px;padding:16px;border:1px solid #265b7f;border-radius:20px;background:linear-gradient(155deg,#081a2bd9,#07131fe8);box-shadow:inset 0 0 0 1px #65bfff12,0 12px 34px #0005;color:#eaf5ff}
.anx-bank-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.anx-bank-heading{display:flex;align-items:flex-start;gap:11px;min-width:0}.anx-bank-rack-icon{width:48px;height:42px;flex:0 0 48px;border:1px solid #36df8a;border-radius:10px;background:#071d18;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:6px;box-shadow:0 0 18px #34e88b22}.anx-bank-rack-icon i{display:block;border:1px solid #53ec9b;border-radius:3px;background:linear-gradient(180deg,#55ed9d 0 14%,#24b96c 14% 86%,#12683f 86%);box-shadow:inset 0 0 4px #86ffc2aa}.anx-bank-kicker{display:block;color:#4ee58c;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.anx-bank-head h3{margin:4px 0 2px;font-size:20px;line-height:1.25}.anx-bank-head small,.anx-bank-note{color:#8fa8c3;font-size:10px;line-height:1.4}.anx-bank-mode{flex:0 0 auto;padding:5px 10px;border-radius:999px;border:1px solid currentColor;font-size:10px;font-weight:800}.anx-bank-mode.is-charge{color:#4ee58c}.anx-bank-mode.is-discharge{color:#57b7ff}.anx-bank-mode.is-idle{color:#8fa8c3}
.anx-bank-summary{display:grid;grid-template-columns:116px 1fr;gap:15px;align-items:center;margin:14px 0}.anx-bank-soc{--bank-soc:0;width:108px;height:108px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#38e887 calc(var(--bank-soc)*1%),#17364a 0);box-shadow:0 0 26px #31e78a2f}.anx-bank-soc>div{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;align-content:center;background:#071625;border:1px solid #28506d}.anx-bank-soc b{font-size:22px;line-height:1}.anx-bank-soc span{font-size:9px;color:#8fa8c3;margin-top:5px}.anx-bank-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.anx-bank-stats>div{padding:9px;border-radius:12px;background:#081522;border:1px solid #1d3c56;min-width:0}.anx-bank-stats span{display:block;color:#7f99b4;font-size:9px}.anx-bank-stats b{display:block;margin-top:3px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.anx-bank-pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:10px;padding:13px;border-radius:16px;background:#06101bd4;border:1px solid #183b54}.anx-bank-card.is-compact .anx-bank-pack-grid{grid-template-columns:repeat(5,minmax(84px,1fr))}.anx-bank-pack{display:grid;place-items:center;gap:4px;min-width:0;padding:9px 4px;border-radius:12px;background:#0a1826;border:1px solid #1d4057}.anx-pack-module{position:relative;width:68px;height:42px;border:2px solid #63798b;border-radius:6px;padding:5px 6px;background:linear-gradient(180deg,#182834,#0d171f);box-shadow:0 0 16px #38e88724,inset 0 0 0 1px #ffffff0a}.anx-pack-module:before,.anx-pack-module:after{content:"";position:absolute;top:-4px;width:9px;height:4px;border-radius:2px 2px 0 0;background:#8193a0}.anx-pack-module:before{left:10px}.anx-pack-module:after{right:10px}.anx-pack-terminal{position:absolute;inset:2px 4px auto auto;width:4px;height:4px;border-radius:50%;background:#4df096;box-shadow:0 0 5px #4df096}.anx-pack-cells{height:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.anx-pack-cells i{display:block;border-radius:2px;background:linear-gradient(180deg,#55f29b,#1cad62);box-shadow:inset 0 0 4px #b6ffd7aa,0 0 5px #31df7d44}.anx-bank-pack b{font-size:11px}.anx-bank-pack>span:last-child{font-size:9px;color:#8da5bc;text-align:center;white-space:nowrap}.anx-bank-note{display:block;margin-top:9px}
#anxBatteryBankDialog{width:min(620px,calc(100vw - 24px));border:1px solid #2b6389;border-radius:18px;padding:0;background:#08131f;color:#edf7ff;box-shadow:0 25px 80px #000c}#anxBatteryBankDialog::backdrop{background:#02070dbb;backdrop-filter:blur(5px)}.anx-bank-form{padding:18px}.anx-bank-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.anx-bank-dialog-head h2{margin:0 0 4px}.anx-bank-dialog-head p{margin:0;color:#8ea7c1;font-size:11px;line-height:1.45}.anx-bank-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.anx-bank-form label{display:grid;gap:5px;color:#9eb2c7;font-size:11px}.anx-bank-form input{width:100%}.anx-bank-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 14px}.anx-bank-preview>div{padding:10px;border-radius:12px;background:#071b2b;border:1px solid #204964}.anx-bank-preview span{display:block;color:#819bb4;font-size:9px}.anx-bank-preview b{display:block;margin-top:3px;font-size:14px}
@media(max-width:760px){.anx-bank-card{margin:10px 0 2px;padding:11px;border-radius:16px}.anx-bank-heading{gap:8px}.anx-bank-rack-icon{width:36px;height:34px;flex-basis:36px;padding:5px}.anx-bank-head h3{font-size:15px}.anx-bank-head small{font-size:9px}.anx-bank-summary{grid-template-columns:82px 1fr;gap:9px}.anx-bank-soc{width:78px;height:78px}.anx-bank-soc>div{width:58px;height:58px}.anx-bank-soc b{font-size:16px}.anx-bank-soc span{font-size:7px}.anx-bank-stats{grid-template-columns:1fr 1fr;gap:6px}.anx-bank-stats>div{padding:7px}.anx-bank-stats b{font-size:11px}.anx-bank-pack-grid,.anx-bank-card.is-compact .anx-bank-pack-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:8px}.anx-bank-pack{padding:6px 1px}.anx-pack-module{width:38px;height:25px;border-width:1px;padding:3px 4px;gap:1px}.anx-pack-module:before,.anx-pack-module:after{top:-3px;width:5px;height:3px}.anx-pack-module:before{left:6px}.anx-pack-module:after{right:6px}.anx-pack-cells{gap:1px}.anx-bank-pack b{font-size:9px}.anx-bank-pack>span:last-child{font-size:7px}.anx-bank-note{font-size:8px}.anx-bank-form-grid{grid-template-columns:1fr}.anx-bank-preview{grid-template-columns:1fr}.anx-bank-mode{font-size:8px;padding:4px 7px}}
@media(max-width:390px){.anx-bank-card.is-compact .anx-bank-pack-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.anx-pack-module{width:34px;height:23px}.anx-bank-pack>span:last-child{font-size:6.5px}}
