[hidden]{display:none!important}.portal{min-height:calc(100vh - 180px);padding:46px 0 65px;max-width:1050px}.panel{background:#10271e;border:1px solid #325244;border-radius:15px;padding:26px;margin-bottom:20px}.login{max-width:460px;margin:25px auto}.portal h1{font-size:clamp(30px,4vw,48px);margin-bottom:12px}.portal h2{font-size:23px;letter-spacing:-.025em;margin-bottom:14px}.portal p,.hint{color:#b4c7b9;font-size:14px}.login form{margin:22px 0}.portal label{display:block;font-weight:650;font-size:13px;margin:12px 0 6px}.portal input:not([type=checkbox]),.portal select{width:100%;color:#e9f4eb;background:#081913;border:1px solid #426253;border-radius:8px;padding:11px 12px;font:inherit;font-size:15px;min-height:44px}.portal input:focus,.portal select:focus{outline:2px solid #8ce829;outline-offset:2px}.portal .button{border:0;cursor:pointer;padding:12px 20px;margin-top:16px}.login .button{width:100%}.secondary{background:#10271e;border:1px solid #426253;color:#e1f0e3;border-radius:8px;padding:9px 14px;cursor:pointer;font-size:14px}.secondary:hover{border-color:#8ce829}.back{color:#c4d8cb;font-size:14px;margin-left:auto}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.check{display:flex!important;align-items:center;gap:8px}.check input{accent-color:#8ce829}.form-actions{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.hint{margin-top:12px}.items{display:grid;gap:10px;margin-top:14px}.item{background:#0c2119;border:1px solid #325244;border-radius:10px;padding:17px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.item strong{display:block;font-size:17px}.item p{overflow-wrap:anywhere}.item .status{font-size:12px;color:#9bdc6e}.item .off{color:#f0bd8d}.list-heading{margin-top:25px}#message{max-width:100%;border:1px solid #486b54;background:#143122;border-radius:8px;padding:12px 16px;margin:15px 0;color:#e1f1e2;overflow-wrap:anywhere}#message.error{border-color:#a85b51;background:#38201e}button:disabled{opacity:.5;cursor:wait}footer{padding:20px 0;font-size:13px;color:#a6bcb0}@media(max-width:650px){.portal{width:calc(100% - 30px);padding-top:24px}.fields{grid-template-columns:1fr}.panel{padding:19px}.workspace-heading{align-items:flex-start}.nav{min-height:70px}.nav .brand img{width:96px}}
/* Dashboard de acompanhamento EVSafe */
.ev-dashboard{min-width:0;border:1px solid #325244;border-radius:18px;padding:25px;background:radial-gradient(ellipse at top right,#193924 0,transparent 55%),#0b2019;box-shadow:0 12px 35px #0002;margin-bottom:16px}.ev-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.ev-kicker{color:var(--green);letter-spacing:.14em;font-size:10px;font-weight:800}.ev-top h3{font-size:clamp(22px,3vw,32px);letter-spacing:-.035em;line-height:1.2;margin:5px 0}.ev-muted{color:#a6bcb0}.ev-badge{display:inline-block;border:1px solid #426253;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:650;color:#d3e2d7;background:#142a20}.ev-badge.good,.ev-tag.good{color:#a9ee74;border-color:#568a3d;background:#1d3824}.ev-badge.warn,.ev-tag.warn{color:#ffd38a;border-color:#846837;background:#362c19}.ev-dashboard .ev-updated{font-size:12px;color:#a5bcae;margin:12px 0}.ev-dashboard .ev-notice{background:#362c19;color:#ffd38a;border:1px solid #846837;border-radius:8px;padding:10px;margin:12px 0}.ev-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.ev-metric{min-width:0;background:#10291f;border:1px solid #365344;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:5px}.ev-label{color:#b2cab9;font-size:12px;font-weight:650}.ev-metric strong{font-size:clamp(20px,2.8vw,29px);color:#f1f9f1;line-height:1.15;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ev-metric small,.ev-line small{color:#b4c7b9;font-size:12px;display:block}.ev-meter{height:7px;border-radius:9px;background:#294234;overflow:hidden;margin-top:6px}.ev-meter div{height:100%;background:#8ce829;border-radius:9px}.ev-meter .danger{background:#f07d6d}.ev-system{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.ev-lists{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ev-list{min-width:0;background:#0e251c;border:1px solid #325244;border-radius:12px;padding:16px}.ev-list h4{margin:0 0 12px;font-size:16px;letter-spacing:-.02em}.ev-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid #36534480;flex-wrap:wrap}.ev-line strong{font-size:14px;overflow-wrap:anywhere}.ev-tag{font-size:11px;padding:3px 7px;border:1px solid #426253;border-radius:6px;color:#c0d5c7}.ev-all{margin-top:12px}.ev-all .ev-line{padding:10px 0}@media(max-width:750px){.ev-dashboard{padding:16px}.ev-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ev-metric{padding:12px}.ev-lists{grid-template-columns:1fr}.ev-list{padding:12px}.ev-metric strong{font-size:22px}.ev-dashboard .ev-updated{font-size:11px}}@media(max-width:360px){.ev-metrics{grid-template-columns:1fr}}

/* V5 — Painel dos moradores inspirado no Home Assistant */
.client-view .header{position:relative;background:#0b1213;border-color:#ffffff14}.client-view .header .wrap{width:calc(100% - 32px);max-width:none;min-height:54px;gap:14px}.client-view .header .brand img{width:74px}.client-view .header .secondary{padding:5px 12px}.client-view .portal{width:100%;max-width:none;padding:0;min-height:calc(100vh - 54px)}.client-view .workspace-heading{padding:8px 20px;margin:0;background:#0d1718;border-bottom:1px solid #ffffff16}.client-view .workspace-heading .eyebrow,.client-view #list-heading{display:none}.client-view .workspace-heading h1{font-size:16px;letter-spacing:0;margin:0;font-weight:600}.client-view .workspace-heading p{font-size:11px;color:#9caeaa}.client-view .workspace-heading .secondary{font-size:12px;padding:5px 12px}.client-view #buildings{margin:0;gap:0}.client-view #message{margin:8px 16px}.client-view #empty{padding:20px}.client-view footer{display:none}.ha-dashboard{color:#e9e9e9;min-width:0;min-height:calc(100vh - 112px);position:relative;isolation:isolate;padding:12px 16px 14px;background:#101919;line-height:1.4;font-family:Arial,'Segoe UI',sans-serif}.ha-dashboard::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(#11171983,#11171983),url('assets/dashboard-bg.webp') center center/cover no-repeat}.ha-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px;padding:0 3px}.ha-top h3{font-size:16px;font-weight:600;letter-spacing:0}.ha-top p{font-size:11px;color:#c4cdca}.ha-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ha-meta small{font-size:10px;color:#c1cdc7}.ha-badge{font-size:11px;font-weight:bold;padding:4px 9px;background:#142b20;border:1px solid #477242;border-radius:20px;color:#b3e69f}.ha-badge.warn,.ha-notice{color:#ffd18a;background:#352a1b;border:1px solid #916a32}.ha-notice{padding:10px;border-radius:8px;margin-bottom:10px}.ha-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.05fr) minmax(0,1fr);gap:12px;align-items:start}.ha-left,.ha-right{display:grid;gap:6px;min-width:0}.ha-middle{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start;min-width:0}.ha-card{min-width:0;background:#1c1c1cee;border:1px solid #ffffff1e;border-radius:9px;padding:13px 14px;box-shadow:0 1px 2px #0003}.ha-card h4{font-size:clamp(12px,1.14vw,19px);font-weight:500;line-height:1.3;letter-spacing:-.025em;margin:0 0 12px;overflow-wrap:anywhere}.ha-condo-logo{padding:3px;background:#1b1c1c;border-radius:7px;overflow:hidden;min-height:90px;display:grid;place-items:center}.ha-condo-logo img{width:100%;height:auto;border-radius:4px}.ha-condo-logo h3{font-size:clamp(20px,2vw,32px);padding:15px;text-align:center}.ha-brand-caption{font-size:10px;letter-spacing:.2em;padding-top:16px;color:#b9d4bd}.ha-empty{font-size:clamp(10px,.85vw,13px)!important;font-style:italic;color:#e0e0e0!important;margin-top:4px;line-height:1.5}.ha-charger{display:grid;grid-template-columns:19px 1fr auto;gap:9px;align-items:center;padding:8px 0;min-height:38px}.ha-power{color:#879191;font-size:20px;font-weight:700;line-height:1}.ha-power.on{color:#ffc400}.ha-charger-name{min-width:0}.ha-charger-name strong{font-size:clamp(11px,.86vw,14px);font-weight:600;display:block;overflow-wrap:anywhere}.ha-charger-name small{font-size:10px;color:#b3b3b3;display:block}.ha-state{font-size:10px;border:1px solid #5e6666;border-radius:20px;padding:2px 7px;color:#bdbdbd;white-space:nowrap}.ha-state.on{background:#063b4b;border-color:#20a8d4;color:#8ce5ff}.ha-state.unknown{color:#ffd18a}.ha-list-line{padding:9px 0;border-top:1px solid #ffffff12}.ha-list-line strong,.ha-list-line small{display:block;font-size:13px;overflow-wrap:anywhere}.ha-list-line small{font-size:11px;color:#c8ccca;margin-top:5px}.ha-energy{display:flex;align-items:center;gap:8px;padding:6px 10px;text-align:center;background:#1c1c1cb0}.ha-energy-icon{color:#64a9d5;font-size:16px}.ha-energy div{flex:1;font-size:12px;color:#d3d3d3;font-weight:bold}.ha-energy strong{display:block;font-size:14px;line-height:1.3;font-variant-numeric:tabular-nums}.ha-gauge{text-align:center;padding:10px 12px}.ha-gauge-body{position:relative;width:min(80%,225px);margin:0 auto}.ha-gauge svg{display:block;width:100%;height:auto}.ha-gauge-value{position:absolute;left:0;right:0;bottom:20%;font-size:clamp(24px,2.4vw,40px);font-weight:400;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.ha-gauge p{font-size:12px;color:#ddd}.ha-counter h4{font-weight:700;font-size:clamp(12px,1.04vw,16px);margin-bottom:8px}.ha-big{font-size:clamp(21px,1.65vw,30px);font-weight:700;display:block;margin-bottom:9px}.ha-system h4{margin-bottom:10px}.ha-system-line{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:36px;font-size:clamp(10px,.8vw,13px);line-height:1.35}.ha-system-line strong{text-align:right;font-size:inherit;font-weight:600;white-space:nowrap}.ha-sys-icon{font-size:16px;color:#69a9d2}.ha-good{color:#8ce6a3}.ha-warn{color:#ffc36f}.ha-foot{font-size:10px!important;color:#c1cbc7!important;text-align:center;margin-top:18px}.ha-dashboard:has(.ha-grid){display:flex;flex-direction:column}.ha-dashboard .ha-foot{margin-top:auto;padding-top:16px}
@media(min-width:1001px){.ha-dashboard{min-height:max(680px,calc(100vh - 110px))}.ha-grid{flex:1}}
@media(max-width:1000px){.ha-grid{grid-template-columns:1fr 1fr;gap:10px}.ha-left{grid-column:1;grid-row:1 / span 2}.ha-middle{grid-column:2;grid-row:1;grid-template-columns:1fr;gap:8px}.ha-right{grid-column:2;grid-row:2}.ha-card h4{font-size:16px}.ha-dashboard::before{background-size:cover;background-position:center top}.ha-charger-name strong,.ha-system-line{font-size:12px}.ha-empty{font-size:12px!important}}
@media(max-width:600px){.ha-dashboard{padding:10px;min-height:calc(100vh - 100px)}.ha-dashboard::before{background-size:auto 100%;background-position:center}.ha-grid{display:flex;flex-direction:column;gap:10px}.ha-left,.ha-middle,.ha-right{display:contents}.ha-condo-logo{order:0;width:100%;max-width:360px;align-self:center}.ha-middle>.ha-card{order:1;width:100%}.ha-right>.ha-card{order:2;width:100%}.ha-chargers{order:3;width:100%}.ha-card{padding:12px}.ha-condo-logo{padding:3px}.ha-gauge-body{width:175px}.ha-gauge-value{font-size:32px}.ha-meta{gap:5px}.ha-top{margin-bottom:12px}.client-view .workspace-heading{padding:8px 12px}.client-view .header .wrap{width:calc(100% - 24px)}.ha-foot{padding-bottom:8px}}
