@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#18283c;background:#f4f7fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6bcfa8;outline-offset:2px}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.04em}h3{font-size:17px}small{font-size:12px}a{color:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{position:sticky;top:0;align-self:flex-start;width:260px;min-width:260px;height:100vh;background:#101e2f;color:#d6e1ea;display:flex;flex-direction:column;padding:30px 16px 18px;z-index:30}.brand,.login-brand{display:flex;align-items:center;gap:11px;padding:0 12px}.brand-icon{width:38px;height:38px;border-radius:12px;background:#4de0a1;color:#0c292d;display:flex;align-items:center;justify-content:center;box-shadow:0 7px 25px #43d6a526}.brand strong,.login-brand strong{font-family:Manrope,sans-serif;font-size:21px;color:#fff;letter-spacing:-.07em}.brand strong span,.login-brand strong span{color:#5de4ae}.brand small{display:block;color:#78909f;letter-spacing:.17em;font-size:8px;font-weight:800;margin-top:1px}.side-section{font-size:10px;color:#748b9f;font-weight:800;letter-spacing:.15em;margin:56px 14px 16px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-item{width:100%;border:0;background:transparent;color:#a8b7c7;text-align:left;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:10px;font-size:13px;font-weight:700;transition:.15s}.nav-item:hover{background:#1d3147;color:#fff}.nav-item.active{background:#183c40;color:#61e3b3;box-shadow:inset 3px 0 #50dda7}.sidebar-bottom{margin-top:auto}.demo-notice{background:#192b3c;border:1px solid #2b4255;border-radius:11px;display:flex;align-items:flex-start;gap:10px;padding:14px 11px;color:#a9b9c7;font-size:11px;line-height:1.6;margin-bottom:13px}.demo-notice svg{color:#e6b979;margin-top:2px}.demo-notice strong{color:#e7e7e7}.signout{font-size:12px}.scrim{display:none}.main{flex:1;min-width:0}.topbar{background:#fff;min-height:142px;padding:32px 46px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e8edf1}.topbar h1{font-size:27px;color:#182b40;margin:7px 0 5px;font-weight:800}.topbar p{font-size:13px;color:#8191a2}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#8396a6;text-transform:uppercase}.eyebrow-dot{padding:0 4px;color:#5dbf9d}.topbar-start{display:flex;align-items:center;gap:15px}.top-actions{display:flex;align-items:center;gap:17px}.chip{border-radius:20px;display:inline-flex;align-items:center;gap:7px;padding:9px 13px;font-size:10px;font-weight:800;letter-spacing:.06em}.chip-demo{background:#fff4dc;color:#a76d1c}.avatar{width:39px;height:39px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#115a43;background:#d8f5e7;font-size:12px;font-weight:800}.page-content{padding:28px 44px 42px;max-width:1600px;margin:auto}.welcome{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(110deg,#0e303a 0%,#144d4a 56%,#217b65 100%);min-height:168px;padding:31px 35px;display:flex;align-items:center;justify-content:space-between;gap:25px;color:#fff;margin-bottom:22px}.welcome-label{color:#7de8b7;font-size:10px;font-weight:800;letter-spacing:.15em}.welcome h2{font-size:24px;margin:9px 0}.welcome p{font-size:13px;color:#c0dfd9}.welcome-glow{position:absolute;right:-120px;top:-170px;width:420px;height:420px;border:1px solid #a3f4d232;border-radius:50%;pointer-events:none}.welcome-glow:before,.welcome-glow:after{content:"";position:absolute;inset:45px;border:1px solid #a3f4d224;border-radius:50%}.welcome-glow:after{inset:90px}.btn{border:0;border-radius:10px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:800;white-space:nowrap;transition:.15s;min-height:43px}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{background:#16b67d;color:#fff;box-shadow:0 4px 10px #16b67d22}.btn-primary:hover{background:#119d6d}.btn-secondary{background:#edf2f6;color:#365166}.btn-light{position:relative;background:#fff;color:#175a4b}.btn-danger-outline{color:#c14c4c;border:1px solid #edcccc;background:#fff}.btn-full{width:100%;margin-top:10px}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:21px}.metric-card{background:#fff;border:1px solid #e6edf2;border-radius:15px;padding:21px 21px 19px;min-height:158px;box-shadow:0 5px 17px #10243806}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#7b8da0;font-size:12px;font-weight:700}.metric-icon{color:#4f88d2;background:#e9f2ff;width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:10px}.metric-card.teal .metric-icon{color:#0fa981;background:#ddf8ee}.metric-card.amber .metric-icon{color:#dba02b;background:#fff5db}.metric-card.purple .metric-icon{color:#9778dc;background:#f0eafa}.metric-value{font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.05em;font-size:29px;margin:15px 0 8px;white-space:nowrap}.unit{font-family:'DM Sans',sans-serif;color:#9caaba;font-weight:600;letter-spacing:0;font-size:13px}.metric-detail{font-size:11px;color:#97a5b2}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:20px}.panel{background:#fff;border:1px solid #e5edf2;border-radius:15px;box-shadow:0 5px 18px #10243805;min-width:0}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;padding:23px 25px 13px}.panel-header h3{margin-bottom:4px}.panel-header p{font-size:12px;color:#9ba8b4}.panel-header>svg{color:#a2b0bd}.tag{font-size:11px;color:#6e8598;background:#f1f5f8;padding:6px 10px;border-radius:7px}.bar-chart{height:220px;display:flex;align-items:stretch;gap:16px;padding:16px 30px 0;border-bottom:1px solid #edf1f4;margin:0 22px}.bar-group{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:10px}.bar-stack{height:180px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px}.bar{width:21%;min-width:6px;max-width:27px;border-radius:6px 6px 0 0;min-height:0;transition:height .2s}.bar.consumo,.dot.consumo{background:#4c86d7}.bar.injecao,.dot.injecao{background:#32c4a0}.bar.geracao,.dot.geracao{background:#efb650}.bar-month{height:23px;font-size:11px;color:#8b9baa;text-transform:capitalize}.chart-legend{display:flex;justify-content:center;gap:17px;flex-wrap:wrap;font-size:10px;color:#7e8d9c;padding:24px 12px}.chart-legend span{display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.empty-chart{height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#91a2b1;font-size:12px;text-align:center;padding:20px}.summary-panel{display:flex;flex-direction:column}.summary-list{padding:8px 25px 16px}.summary-list>div,.preview-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #edf1f4;font-size:12px}.summary-list span,.preview-line span{color:#8a9aa9}.summary-list strong,.preview-line b{font-weight:800;text-align:right}.text-link{border:0;background:transparent;color:#139c72;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:7px;padding:10px 25px 23px;text-align:left}.summary-panel .text-link{margin-top:auto}.empty-side{padding:26px 18px;color:#93a3b2;font-size:12px;line-height:1.7;text-align:center}.alert{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border-radius:12px;margin-top:20px}.alert.warning{background:#fff8e8;border:1px solid #f3e3bf;color:#805a23}.alert p{font-size:12px;line-height:1.6;margin-top:5px}.alert strong{font-size:13px}.alert .text-link{padding:0;margin-left:auto;white-space:nowrap;color:#9b711f}.bottom-note{display:flex;gap:9px;align-items:center;color:#8b9ba9;font-size:11px;line-height:1.5;margin-top:22px}.form-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.9fr);gap:20px;align-items:start}.form-panel{padding:26px}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}.section-title h3{margin-bottom:4px}.section-title p{font-size:12px;color:#94a4b3;line-height:1.5}.section-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:#169d77;background:#e3f8ee}.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:12px;font-weight:700;color:#44586b}.field input,.field select,.add-equipment input{width:100%;height:43px;border:1px solid #dce6ed;border-radius:9px;padding:0 12px;background:#fbfcfd;color:#213b50;outline:0;font-size:13px;min-width:0}.field input:focus,.field select:focus,.add-equipment input:focus{border-color:#16b67d;box-shadow:0 0 0 3px #16b67d15}.field small{font-size:10px;line-height:1.5;color:#98a7b5;min-height:12px}.required{color:#dd796a}.form-divider{height:1px;background:#edf1f4;margin:28px 0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:30px}.preview-panel{padding-bottom:15px;position:sticky;top:20px}.preview-body{padding:8px 25px 20px}.preview-highlight{background:#e9f8f2;border:1px solid #d5f0e4;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:9px;color:#2e7c64}.preview-highlight span{font-size:12px;font-weight:700}.preview-highlight strong{font-size:29px;font-family:Manrope,sans-serif;letter-spacing:-.04em;color:#155d47}.preview-alert{display:flex;align-items:flex-start;gap:8px;color:#966e28;background:#fff8e9;border-radius:8px;padding:11px;margin-top:17px;font-size:11px;line-height:1.5}.helper-card{display:flex;gap:12px;background:#e9f0f6;border-radius:13px;padding:18px;margin-top:18px;color:#58758a}.helper-card strong{font-size:12px}.helper-card p{font-size:11px;line-height:1.6;margin-top:5px}.form-error{background:#fff0ee;border:1px solid #efb5ac;color:#a33930;border-radius:9px;padding:12px;margin-top:22px;font-size:12px}.form-error[hidden]{display:none}.section-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.inline-actions{display:flex;gap:10px}.record-count{font-size:12px;color:#8195a6;font-weight:700}.table-panel{overflow:hidden}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{background:#f8fafc;color:#8496a6;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;padding:17px 17px;border-bottom:1px solid #e8edf1}td{padding:16px 17px;border-bottom:1px solid #edf1f4;color:#53697c}td strong{color:#263c4e}td small{color:#a2b0bb}.status{border-radius:20px;font-size:10px;font-weight:800;padding:6px 9px}.status-ok{background:#e4f8ec;color:#168653}.status-warn{background:#fff2d9;color:#a5761d}.status-error{background:#ffe8e6;color:#a84c44}.table-actions{display:flex;gap:5px}.icon-button{border:0;background:transparent;color:#71889c;padding:7px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:#edf4f8}.danger-icon:hover{background:#ffefee;color:#be5252}.alert-row td{font-size:11px;color:#9c742e;background:#fffaf0;white-space:normal;line-height:1.5}.alert-row svg{vertical-align:middle;margin-right:5px}.empty-table{text-align:center;color:#93a3b2;padding:48px 20px}.equipment-grid{grid-template-columns:1fr 1fr}.field-month{max-width:240px;margin-bottom:22px}.equipment-field{margin-bottom:16px}.add-equipment{display:flex;gap:8px}.add-equipment input{flex:1}.equipment-list{margin-top:24px}.equipment-name{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f4;padding:10px 0;font-size:12px;color:#486073}.equipment-name span{display:flex;align-items:center;gap:9px}.equipment-name svg{color:#73a18e}.inline-helper{margin-top:24px}.narrow{max-width:650px}.narrow .field{margin-bottom:18px}.check-field{display:flex;align-items:center;gap:10px;color:#44586b;font-size:13px;font-weight:700}.check-field input{accent-color:#16b67d;width:17px;height:17px}.danger-panel{padding:26px;margin-top:18px}.danger-panel h3{margin-bottom:10px}.danger-panel p{font-size:12px;color:#91a2af;margin-bottom:17px}.toast{position:fixed;bottom:24px;right:24px;background:#102d36;color:#fff;padding:13px 18px;border-radius:10px;box-shadow:0 12px 35px #0a203333;font-size:12px;z-index:80;opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.mobile-menu{display:none}
/* Página de entrada */
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-left{position:relative;overflow:hidden;background:radial-gradient(circle at 90% 70%,#216e62 0%,#124a47 32%,#102a38 72%);color:#fff;display:flex;flex-direction:column;padding:42px 7vw}.login-brand{padding:0;position:relative;z-index:2}.login-hero{margin:auto 0;position:relative;z-index:2;max-width:570px}.hero-pill{display:inline-flex;align-items:center;gap:9px;font-size:10px;font-weight:800;letter-spacing:.1em;color:#7de3b4;background:#1b665a70;border:1px solid #49c59844;border-radius:30px;padding:10px 14px;margin-bottom:27px}.login-hero h1{font-size:clamp(35px,4vw,58px);line-height:1.17;font-weight:800;letter-spacing:-.06em}.login-hero h1 em{color:#5ce1a8;font-style:normal}.login-hero p{max-width:480px;font-size:15px;color:#b9d6d4;line-height:1.8;margin-top:23px}.hero-benefits{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:35px;color:#d7f5e6;font-size:12px}.hero-benefits span{display:flex;align-items:center;gap:7px}.hero-benefits svg{color:#63e4b1}.login-footer{position:relative;z-index:2;color:#86b1b2;font-size:11px}.hero-orb{position:absolute;width:660px;height:660px;border-radius:50%;border:1px solid #5ef5c21c;right:-300px;bottom:-300px;box-shadow:0 0 0 70px #5ef5c207,0 0 0 145px #5ef5c207}.login-right{display:flex;align-items:center;justify-content:center;background:#f8fafb;padding:35px}.login-card{max-width:400px;width:100%}.mini-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.1em;color:#15946f;background:#dff7ea;padding:8px 11px;border-radius:7px;margin-bottom:19px}.login-card h2{font-size:35px;line-height:1.25}.login-card>p{font-size:14px;color:#8a9bab;line-height:1.7;margin:16px 0 25px}.auth-placeholder{border:1px solid #e6edf1;background:#fff;border-radius:13px;padding:19px;margin-bottom:22px}.auth-placeholder>div{display:flex;align-items:center;gap:9px;color:#4d687b;font-size:12px}.auth-placeholder svg{color:#c08b2e}.auth-placeholder p{font-size:11px;color:#91a0ac;line-height:1.7;margin-top:11px}.login-safety{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:24px;color:#92a2af;font-size:11px}.login-mobile-logo{display:none}
@media(max-width:1250px){.sidebar{width:235px;min-width:235px}.page-content{padding:26px}.topbar{padding:30px 27px}.metrics-grid{gap:12px}.metric-card{padding:18px 15px}.metric-value{font-size:25px}.content-grid{grid-template-columns:1.3fr 1fr}.form-layout{grid-template-columns:1.3fr .9fr}}
@media(max-width:1000px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid,.form-layout{grid-template-columns:1fr}.preview-panel{position:static}.equipment-grid{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr 1fr}.login-left{padding:35px}.login-hero h1{font-size:36px}}
@media(max-width:740px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .2s}.sidebar.opened{transform:translateX(0)}.scrim.visible{display:block;position:fixed;inset:0;background:#07121c88;z-index:20}.mobile-menu{display:inline-flex}.topbar{min-height:115px;padding:22px 17px}.topbar h1{font-size:22px}.topbar p{font-size:11px;line-height:1.5}.eyebrow{font-size:9px}.top-actions{gap:8px}.chip-demo{font-size:0;padding:8px}.chip-demo svg{width:17px}.avatar{width:34px;height:34px}.page-content{padding:17px 13px 32px}.welcome{padding:24px 20px;align-items:flex-start;flex-direction:column;gap:18px}.welcome h2{font-size:21px}.metrics-grid{gap:10px}.metric-card{min-height:137px;padding:15px 13px}.metric-value{font-size:22px}.metric-top{font-size:10px}.metric-icon{width:28px;height:28px}.metric-icon svg{width:16px}.unit{font-size:11px}.metric-detail{font-size:10px;line-height:1.4}.content-grid,.form-layout{gap:13px}.bar-chart{margin:0 10px;padding:15px 10px 0;gap:8px}.chart-legend{gap:10px}.panel-header{padding:20px 17px 10px}.summary-list{padding:5px 18px 16px}.form-panel{padding:18px}.fields-grid{grid-template-columns:1fr;gap:13px}.section-title p{font-size:11px}.section-actions{align-items:flex-start;flex-direction:column}.inline-actions{width:100%}.inline-actions .btn{flex:1;padding:10px 8px}.table-panel{border-radius:10px}.alert{padding:13px}.alert .text-link{display:none}.login-shell{display:block}.login-left{min-height:300px;padding:28px 22px}.login-hero{margin:45px 0 25px}.login-hero h1{font-size:30px}.login-hero p{font-size:12px;margin-top:13px}.hero-benefits,.login-footer{display:none}.hero-pill{margin-bottom:12px}.login-right{padding:35px 24px 50px}.login-card h2{font-size:27px}.login-mobile-logo{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Etapa 05 — cadastro e autenticacao Firebase */
.auth-form{display:flex;flex-direction:column;gap:14px;margin:18px 0 12px}
.auth-form .field input{background:#fff}
.auth-form .form-error{margin:0}
.btn-google{background:#fff;color:#253c4d;border:1px solid #d8e2e9;margin-top:10px;justify-content:center}
.btn-google:hover{background:#f3f7f9}
.auth-links{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:18px}
.auth-links button{background:none;border:0;color:#14846a;font-weight:700;font-size:12px;cursor:pointer;text-decoration:underline}
.fatal-load{max-width:600px;margin:12vh auto;background:#fff;border:1px solid #e4e9ed;border-radius:16px;padding:35px;display:flex;flex-direction:column;gap:16px}
.fatal-load h2{color:#253e50}.fatal-load p{font-size:14px;line-height:1.6;color:#596b7b}
.fatal-load .btn{justify-content:center}

/* EXECUCAO 10 — dashboard de decisao */
.energy-hero{background:linear-gradient(120deg,#103640,#14634f);color:white;border-radius:18px;padding:28px 30px;margin-bottom:18px;box-shadow:0 16px 36px #0c4e4320}
.energy-hero-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.energy-hero h2{font-size:26px;margin:7px 0}.energy-hero-heading p{font-size:12px;color:#c2e6d8}
.average-block{background:#ffffff12;border:1px solid #ffffff30;border-radius:14px;padding:22px}.average-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.average-title span{display:block;font-size:14px;font-weight:800}.average-title small{display:block;font-size:11px;color:#c5e6db;margin-top:6px}.average-value{font-size:clamp(32px,4vw,49px);font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.05em;margin:8px 0}.average-value .unit{color:#c6e6dd;font-size:17px}.average-foot{font-size:11px;color:#c4e6db}
.period-selector{display:flex;gap:3px;background:#082d2a99;border-radius:10px;padding:4px;flex-shrink:0}.period-selector button{border:0;border-radius:7px;padding:9px 12px;background:transparent;color:#c7e6dc;font-size:12px;font-weight:700}.period-selector button.selected{background:#fff;color:#14594b}
.dash-metrics{margin-bottom:20px}.dash-metric{min-height:140px}.dash-metric .metric-value{font-size:clamp(21px,2.1vw,29px)}.dash-metric.negative .metric-value{color:#b44d3c}
.dash-chart-panel{margin-bottom:20px}.dashboard-chart{height:258px}.dashboard-chart .bar-stack{height:215px}.dashboard-chart .bar.casa,.dot.casa{background:#27b99a}.dashboard-chart .bar-missing{height:0!important;width:0!important}.dashboard-chart .bar-group{gap:7px}.dashboard-chart .bar-month{font-size:10px}.chart-note{font-size:11px;color:#8095a5;text-align:center;padding:0 16px 18px}
.dash-details{margin-bottom:16px}.dash-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 25px 0}.dash-detail-grid>div{padding:12px;background:#f5f8fa;border-radius:9px}.dash-detail-grid span{display:block;color:#8094a4;font-size:11px;margin-bottom:8px}.dash-detail-grid strong{font-size:14px;color:#21374a}.dash-detail-grid .unit{font-size:11px}
@media(max-width:1000px){.dash-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.energy-hero{padding:20px 17px}.energy-hero-heading{align-items:flex-start;flex-direction:column}.energy-hero h2{font-size:21px}.average-title{align-items:flex-start;flex-direction:column}.dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-metric{padding:13px 10px}.dash-metric .metric-value{font-size:20px}.dash-detail-grid{padding:8px 13px 0}.dashboard-chart{overflow-x:auto}.dashboard-chart .bar-group{min-width:21px}}

/* Execução 11 — formulário simplificado e configuração secundária */
.solar-period-warning{background:#fff6df;border:1px solid #e7c67a;border-radius:12px;padding:12px 14px;line-height:1.55;color:#67450a}
.monthly-advanced{margin-top:24px;border:1px solid #d8e3e9;border-radius:12px;padding:16px 18px}
.monthly-advanced summary{cursor:pointer;font-weight:700;color:#24475a}
.monthly-advanced p{font-size:13px;color:#536a7c;margin:12px 0}
.monthly-advanced .fields-grid{margin-top:14px}

/* Execucao 12: navegacao acessivel e ajustes para telas pequenas */
.skip-link{position:fixed;z-index:1000;left:12px;top:-80px;background:#fff;color:#103c35;padding:12px 18px;border-radius:8px;box-shadow:0 4px 18px #0003;font-weight:700}
.skip-link:focus{top:12px}
.main:focus{outline:none}
button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #3dbb89;outline-offset:3px}
.table-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
@media(max-width:400px){.dash-metrics{grid-template-columns:1fr}.energy-hero{padding:17px 14px}.period-selector{width:100%}.period-selector button{flex:1}.dash-detail-grid{grid-template-columns:1fr}.topbar{padding:17px 12px}.page-content{padding:13px 9px 28px}}
@media(prefers-reduced-motion:reduce){.sidebar,.scrim{transition:none!important}}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* EXECUCAO 14 — PWA: convite nao bloqueante, instalacao e atualizacao */
.pwa-banner{position:fixed;z-index:1005;bottom:calc(18px + env(safe-area-inset-bottom,0px));right:18px;width:min(410px,calc(100vw - 24px));background:#fff;border:1px solid #d5e9df;border-radius:18px;box-shadow:0 15px 48px #0c2b2a33;padding:18px 35px 18px 15px;display:flex;gap:12px;align-items:flex-start;color:#193a3b}
.pwa-banner-logo{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#103b3a;color:#58e4aa;font-size:22px}
.pwa-banner-text{min-width:0}.pwa-banner-text strong{display:block;font-size:15px;line-height:1.4}.pwa-banner-text p{font-size:12px;line-height:1.55;color:#55706d;margin:5px 0 12px}
.pwa-banner-actions{display:flex;gap:8px;flex-wrap:wrap}.pwa-banner-actions button{border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer}
.pwa-banner-primary{background:#0f9872;color:#fff}.pwa-banner-later{background:#eef5f1;color:#2e6053}.pwa-banner-close{position:absolute;right:9px;top:7px;border:0;background:transparent;color:#54706a;font-size:23px;padding:4px 8px;line-height:1}
.pwa-menu-item{margin-bottom:8px}.pwa-login-link{background:none;border:0;color:#78e2b6;text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}
@media(max-width:740px){.pwa-banner{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);padding:15px 30px 15px 12px}.pwa-banner-logo{flex-basis:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.pwa-banner{animation:none!important}}

@media(display-mode:standalone){[data-pwa-install]{display:none!important}}

.pwa-auth-install{display:block;margin:12px auto 0;border:0;background:transparent;color:#08795c;font-size:12px;font-weight:800;text-decoration:underline;padding:8px;cursor:pointer}

/* Execucao 15 — Banco de Creditos */
.credits-page{display:grid;gap:22px}.credits-layout{align-items:start}.credit-highlight{display:grid;gap:12px}.credit-main-message{font-size:clamp(1rem,2.1vw,1.2rem);line-height:1.6;margin:0}.credit-advanced{margin:18px 0;border:1px solid var(--border, #d4dce7);border-radius:12px;padding:12px 14px}.credit-advanced summary{cursor:pointer;font-weight:700}.credit-advanced p{font-size:.85rem;line-height:1.6}.credit-advanced textarea{width:100%;padding:12px;border-radius:9px;border:1px solid #b5c5d5;background:transparent;color:inherit;font:inherit;resize:vertical}.credit-expiration .table-scroll{margin-top:12px}.credits-page .period-selector{width:max-content}.credit-dashboard-teaser .btn{margin-top:10px}@media(max-width:760px){.credits-page .credits-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.credits-page .credits-layout{grid-template-columns:1fr}.credit-advanced textarea{font-size:16px}}

/* E16: dimensionador responsivo sem poluir a visao geral */
.solar-page .solar-intro,.solar-page .solar-results{padding:22px}
.solar-page .period-selector{margin:14px 0 20px}
.solar-page .solar-layout{align-items:start}
.solar-page .solar-note,.solar-page .solar-source{font-size:.85rem;line-height:1.55;color:var(--muted,#64748b);margin-top:14px}
.solar-page .solar-big-number{font-size:clamp(2.6rem,5vw,4.2rem);font-weight:800;line-height:1.1;margin:18px 0}
.solar-page .solar-big-number span{font-size:1rem;display:block;margin-top:6px;font-weight:600}
.solar-page .solar-recommendation{font-size:1rem;line-height:1.6;margin:16px 0}
.solar-page .solar-source a{color:inherit;text-decoration:underline}
@media(max-width:700px){.solar-page .solar-intro,.solar-page .solar-results{padding:16px}.solar-page .solar-big-number{font-size:2.5rem}}

/* E17 — Energia Inteligente: cards responsivos e recomendações concisas */
.intelligence-page{display:grid;gap:20px}.intelligence-page>.panel,.intelligence-details>.panel{padding:22px}.intelligence-hero{background:linear-gradient(115deg,#0c3939,#126b58);color:#fff;border:0}.intelligence-hero.intelligence-caution{background:linear-gradient(115deg,#423b23,#765c29)}.intelligence-hero.intelligence-neutral{background:linear-gradient(115deg,#243c53,#345e70)}.intelligence-overline{font-size:11px;font-weight:800;letter-spacing:.12em;opacity:.82}.intelligence-hero h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.25;margin:10px 0}.intelligence-hero p{color:#e4f4ed;max-width:740px;line-height:1.6}.intelligence-hero-bottom{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-top:16px;color:#e4f4ed}.intelligence-confidence{background:#ffffff22;padding:7px 11px;border-radius:99px}.intelligence-summary .period-selector{margin:12px 0 20px}.intelligence-number{font-size:clamp(1.2rem,2.2vw,1.75rem)!important}.intelligence-advice-list{display:grid;gap:12px}.intelligence-advice{border:1px solid #dce8e4;border-left:4px solid #159b7a;border-radius:12px;padding:17px;background:#fafdfc}.intelligence-advice.intelligence-high{border-left-color:#d55c48;background:#fff9f7}.intelligence-advice.intelligence-medium{border-left-color:#e3aa38;background:#fffdf6}.intelligence-advice h3{font-size:1rem;margin:4px 0 6px}.intelligence-advice p{font-size:.9rem;line-height:1.55;color:#486070;margin:0 0 12px}.intelligence-priority{font-size:.72rem;font-weight:800;color:#597b76}.intelligence-advice .btn{font-size:.8rem}.intelligence-details{align-items:start}.intelligence-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #e8efed;padding:13px 0;font-size:.88rem}.intelligence-line strong{text-align:right;overflow-wrap:anywhere}.intelligence-note{font-size:.86rem;line-height:1.6;color:#516b75;margin:14px 0}.intelligence-audit ul{margin:12px 0;padding-left:22px;line-height:1.75;font-size:.88rem}.intelligence-dashboard-teaser{margin-bottom:20px}.intelligence-dashboard-teaser .btn{margin-top:10px}@media(max-width:740px){.intelligence-page>.panel,.intelligence-details>.panel{padding:16px}.intelligence-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.intelligence-line{flex-direction:column;gap:4px}.intelligence-line strong{text-align:left}}@media(max-width:400px){.intelligence-metrics{grid-template-columns:1fr}}

/* EXECUCAO 19 — Historico compacto, diagnosticos sem poluicao e mobile nativo */
.history-page,.quality-page{min-width:0}.history-page .history-panel{overflow:hidden}.history-page .history-table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0}.history-table th,.history-table td{padding:12px 11px;vertical-align:top;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #e6edf0}.history-table th{font-size:11px;color:#6b8191;background:#f5f8fa}.history-table th:nth-child(1){width:23%}.history-table th:nth-child(2),.history-table th:nth-child(3){width:19%}.history-table th:nth-child(4){width:15%}.history-table th:nth-child(5){width:24%}.history-month{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px}.history-month strong{width:100%;font-size:13px}.history-month small{color:#647a88;font-size:11px}.history-edit{border:1px solid #b8ddd0;color:#086c53;background:#effaf5;border-radius:7px;display:inline-flex;align-items:center;gap:5px;padding:6px 8px;font-weight:800;font-size:12px;cursor:pointer}.history-edit:hover{background:#d9f5e9}.history-detail{max-width:100%}.history-detail summary{color:#176e5b;font-size:12px;font-weight:750;cursor:pointer}.history-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.history-detail-grid>div{min-width:0}.history-detail-grid span{display:block;font-size:10px;color:#758999}.history-detail-grid strong{font-size:11px;overflow-wrap:anywhere}.history-cards{display:none}.history-toolbar{display:grid;grid-template-columns:1fr 1fr minmax(150px,2fr);gap:10px;margin:18px 0}.history-toolbar label{min-width:0;display:grid;gap:5px;font-size:12px;font-weight:700;color:#5e7180}.history-toolbar select,.history-toolbar input{min-width:0;width:100%;border:1px solid #d2dee4;border-radius:9px;padding:11px;background:#fff;color:#243a49;font:inherit;font-weight:500}.history-page .section-actions{flex-wrap:wrap;gap:12px}.quality-panel{padding:21px;margin:16px 0;min-width:0}.quality-panel .panel-header{margin-bottom:12px}.quality-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.quality-metrics>div{background:#f4f9f8;border:1px solid #e2eeea;border-radius:12px;padding:14px;min-width:0}.quality-metrics strong{display:block;font-size:26px;color:#1a4650}.quality-metrics span{font-size:11px;color:#607883}.quality-group{border:1px solid #e0e9e9;border-radius:11px;margin-top:10px;overflow:hidden}.quality-group>summary{padding:14px;display:flex;justify-content:space-between;gap:10px;cursor:pointer;font-size:13px;font-weight:800;list-style:revert}.quality-group>summary b{font-size:12px;border-radius:30px;background:#eaf2f0;padding:3px 9px}.quality-group-body{padding:4px 14px 14px}.quality-explanation{font-size:13px;line-height:1.55;color:#516976}.quality-issue{border-top:1px solid #e8efed;padding:14px 0}.quality-issue-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.quality-issue-heading strong{font-size:13px}.quality-kind{font-size:10px;color:#697f88;white-space:nowrap}.quality-issue p{font-size:12px;line-height:1.6;color:#506b79;margin:8px 0}.quality-issue .quality-suggestion{color:#234c50}.quality-values{background:#f4f7f8;border-radius:8px;padding:8px}.quality-issue-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-compact{font-size:12px!important;padding:9px 12px!important;min-height:38px}.btn-quiet{border:1px solid #d4e3e0;background:#fff;color:#346b63;border-radius:8px;font-weight:700}.quality-all-clear{background:#eaf9f2;color:#24684e;padding:13px;border-radius:10px;font-size:13px;margin-bottom:12px}.quality-dashboard-link{padding:18px;margin:15px 0}.quality-dashboard-link p{font-size:13px;margin:8px 0}.history-card-actions{display:flex;align-items:center;gap:10px}.history-card-actions>.btn{flex:1;justify-content:center}.history-card-actions>.history-detail{flex:1;min-width:0}.history-card-actions .history-detail summary{display:flex;justify-content:center;align-items:center;border:1px solid #bed5d3;padding:11px 7px;border-radius:8px;min-height:42px}
@media(max-width:900px){.history-table{display:none!important}.history-cards{display:grid;gap:11px;padding:12px}.history-card{border:1px solid #e0e9ed;border-radius:12px;padding:14px;min-width:0}.history-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.history-card-head strong{display:block;font-size:15px;color:#193748}.history-card-head small{display:block;font-size:11px;color:#68808b;margin-top:4px;overflow-wrap:anywhere}.history-card-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.history-card-metrics>div{background:#f5f8fa;border-radius:9px;padding:11px 9px;min-width:0}.history-card-metrics span{display:block;font-size:11px;color:#6b7e8d;margin-bottom:5px}.history-card-metrics strong{font-size:clamp(17px,4.5vw,22px);color:#1c394a;overflow-wrap:anywhere}.history-card-metrics small{font-size:10px}.history-detail-grid{grid-template-columns:1fr}.history-toolbar{grid-template-columns:1fr 1fr}.history-search{grid-column:1/-1}}
@media(max-width:400px){.history-toolbar{grid-template-columns:1fr 1fr;gap:8px}.history-card{padding:11px}.history-cards{padding:9px}.quality-panel{padding:13px}.quality-metrics>div{padding:10px 6px}.quality-metrics strong{font-size:21px}.quality-metrics span{font-size:10px}.quality-issue-heading{flex-direction:column;gap:3px}.history-card-actions{gap:6px}.history-card-actions .btn{font-size:12px;padding:9px 5px}}
@media print{.history-table{display:table!important}.history-cards{display:none!important}.history-toolbar,.history-edit,.quality-issue-actions{display:none!important}}

.history-quality-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f2faf7;border:1px solid #d9ebe4;border-radius:11px;margin:14px 0}.history-quality-strip>div{display:grid;gap:4px;min-width:0}.history-quality-strip strong{font-size:13px;color:#1b584b}.history-quality-strip span{font-size:12px;color:#57766e}.history-quality-strip .btn{flex-shrink:0}@media(max-width:600px){.history-quality-strip{align-items:flex-start;flex-direction:column}.history-quality-strip .btn{width:100%;justify-content:center}}
@media print{.sidebar,.topbar .top-actions,.section-actions button,.quality-group summary button{display:none!important}.main{margin:0!important;width:100%!important}.quality-group{break-inside:avoid}.quality-group-body{display:block!important}}

/* EXECUCAO 20 — detalhes em linha inteira, nunca dentro da ultima coluna */
.history-page .history-panel{overflow:hidden}
.history-page .history-table{table-layout:fixed;width:100%;min-width:0}
.history-page .history-expanded-row[hidden],.history-mobile-expanded[hidden]{display:none!important}
.history-expanded-row>td{padding:0!important;border-bottom:1px solid #d8e5e7!important;background:#f7fafb}
.history-expanded-content{padding:18px 22px 22px;min-width:0;width:100%;max-width:100%;overflow-wrap:break-word}
.history-expanded-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px;flex-wrap:wrap}
.history-expanded-head h3{font-size:15px;color:#153a46;margin:0 0 5px}
.history-expanded-head p{font-size:12px;color:#627d89;margin:0;overflow-wrap:anywhere}
.history-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 15px}
.cycle-detail-metric{min-width:0;border:1px solid #e1ebee;border-radius:10px;background:white;padding:12px 13px;display:flex;flex-direction:column;gap:5px}
.cycle-detail-metric>span{font-size:11px;color:#647e8c;line-height:1.3}
.cycle-detail-metric>strong{display:block;font-size:clamp(14px,1.35vw,19px);line-height:1.35;color:#153746;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cycle-detail-metric>strong .unit{font-size:.68em;color:#718894;font-weight:500;white-space:nowrap}
.cycle-detail-metric>small{font-size:11px;line-height:1.4;color:#6a818c;overflow-wrap:anywhere}
.history-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;min-height:38px;max-width:100%;background:#f4faf7;border:1px solid #d0e8df;color:#126a56;border-radius:8px;padding:8px 10px;text-align:left;font-size:12px;font-weight:800;line-height:1.3;cursor:pointer}
.history-toggle:hover,.history-toggle:focus-visible{background:#e4f6ee;outline-offset:2px}
.history-toggle-chevron{transition:transform .16s;flex-shrink:0}
.history-toggle[aria-expanded="true"] .history-toggle-chevron{transform:rotate(180deg)}
.history-main-row>td{vertical-align:middle}
.history-card-actions>.history-toggle{flex:1;justify-content:center;min-width:0}
.history-mobile-expanded{margin-top:14px;padding-top:13px;border-top:1px solid #e1e9eb;min-width:0}
.history-mobile-expanded .history-expanded-content{padding:0}
.history-mobile-expanded .history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.history-mobile-expanded .cycle-detail-metric{padding:10px}
.history-mobile-expanded .cycle-detail-metric>strong{font-size:clamp(14px,4vw,18px)}
@media(max-width:1100px) and (min-width:901px){.history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-table th,.history-table td{padding:9px 7px}}
@media(max-width:900px){.history-expanded-content{padding:12px}.history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.history-mobile-expanded .history-detail-grid{grid-template-columns:1fr}.history-card-actions>.btn,.history-card-actions>.history-toggle{font-size:12px;padding:9px 6px}}
@media print{.history-expanded-row:not([hidden]){display:table-row!important}.history-expanded-row[hidden]{display:none!important}.history-toggle{display:none!important}}

/* EXECUÇÃO 21 — cartões da Visão Geral: hierarquia, ritmo e responsividade. */
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px;align-items:stretch}
.dashboard-shortcut{position:relative;display:flex;flex-direction:column;gap:0;min-width:0;min-height:224px;padding:22px 23px 20px;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.dashboard-shortcut:hover{border-color:#b8d9ce;box-shadow:0 9px 25px #143b3210;transform:translateY(-2px)}
.dashboard-shortcut-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.dashboard-shortcut-icon{width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:#e2f7ee;color:#078c65}
.dashboard-shortcut-solar .dashboard-shortcut-icon{background:#fff4de;color:#b47b20}
.dashboard-shortcut-credits .dashboard-shortcut-icon{background:#eaf1ff;color:#4273bb}
.dashboard-shortcut-category{font-size:10px;font-weight:800;letter-spacing:.12em;color:#8091a0;white-space:nowrap}
.dashboard-shortcut-copy{flex:1;min-width:0}
.dashboard-shortcut-copy h3{font-size:clamp(16px,1.25vw,19px);line-height:1.3;letter-spacing:-.025em;color:#1b3143;margin:0 0 8px}
.dashboard-shortcut-copy p{font-size:13px;line-height:1.55;color:#62788a;max-width:34ch;margin:0 0 18px;overflow-wrap:anywhere}
.dashboard-shortcut-copy strong{color:#214b44;font-weight:800}
.dashboard-shortcut-action{align-self:flex-start;justify-content:space-between;gap:20px;min-height:42px;max-width:100%;white-space:normal;text-align:left;font-size:12px;padding:10px 14px}
.dashboard-shortcut-action svg{flex-shrink:0}
.dashboard-shortcut-intelligence{background:linear-gradient(150deg,#f6fffa 0%,#fff 65%)}
.dashboard-shortcut-intelligence .dashboard-shortcut-icon{box-shadow:0 0 0 1px #c8ebdb inset}
@media(max-width:1200px){.dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shortcut{min-height:215px}}
@media(max-width:760px){.dashboard-shortcuts{grid-template-columns:1fr;gap:12px;margin-bottom:17px}.dashboard-shortcut{min-height:0;padding:17px 18px 16px}.dashboard-shortcut-top{margin-bottom:11px}.dashboard-shortcut-copy h3{font-size:17px}.dashboard-shortcut-copy p{max-width:none;margin-bottom:15px}.dashboard-shortcut-action{width:100%;justify-content:space-between}}
@media(max-width:380px){.dashboard-shortcut{padding:15px}.dashboard-shortcut-copy p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.dashboard-shortcut{transition:none}.dashboard-shortcut:hover{transform:none}}
@media print{.dashboard-shortcut{break-inside:avoid}}

/* EXECUÇÃO 22 — hierarquia temporal, saldos oficiais e auditoria explicável. */
.dashboard-section-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:3px 0 12px}.dashboard-section-label h3{font-size:17px;color:#173d41}.dashboard-section-label p{font-size:12px;color:#657d8b}
.dashboard-credit-balance{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:21px 24px;margin-bottom:20px;background:linear-gradient(105deg,#effbf5,#f7fcff);border:1px solid #cde9dd}
.dashboard-credit-kicker{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.07em;color:#146a55;font-weight:800}.dashboard-credit-balance h3{font-size:clamp(19px,2vw,25px);color:#164638;margin:7px 0}.dashboard-credit-balance p{font-size:12px;color:#55727a;line-height:1.5}.dashboard-credit-balance .dashboard-credit-audit{color:#a0522d;font-weight:800;margin-top:5px}
.form-mini-help{font-size:12px;color:#637b88;line-height:1.5;margin:7px 0 17px}.injection-mode{margin:18px 0 12px}.injection-mode .field{max-width:600px}#injection-readings[hidden],#injection-monthly[hidden]{display:none!important}
.credit-linked-info{font-size:13px;line-height:1.55;color:#315b5d;padding:14px 17px;border-radius:12px;background:#edf9f5;border:1px solid #d7ebe3;margin-bottom:18px}
.credit-audit-panel{padding:24px;margin-bottom:22px}.credit-audit-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.credit-audit-summary>div{background:#f2f8f7;border-radius:11px;padding:16px;min-width:0}.credit-audit-summary span,.credit-audit-summary small{display:block;color:#69818b;font-size:12px}.credit-audit-summary strong{display:block;font-size:clamp(18px,2vw,26px);color:#164e48;margin:6px 0}.audit-explain,.audit-disclaimer{font-size:12px;color:#55707d;line-height:1.65;margin:14px 0}.audit-row{border-top:1px solid #e2ecec;padding:12px 0}.audit-row summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:13px}.audit-row summary strong{min-width:110px}.audit-row summary span{color:#577480;flex:1}.audit-row summary b{color:#174d43}.audit-row-detail{padding:12px 0 4px}.audit-row-detail p{font-size:12px;line-height:1.6;color:#5b7580;margin-bottom:12px}.audit-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.audit-mini-grid>div{background:#f5f8f9;border-radius:8px;padding:10px;font-size:12px;color:#607480;overflow-wrap:anywhere}.audit-mini-grid b{color:#1c4450}
@media(max-width:740px){.dashboard-credit-balance{padding:17px;align-items:stretch}.dashboard-credit-balance .btn{width:100%}.credit-audit-panel{padding:15px}.credit-audit-summary{grid-template-columns:1fr}.audit-mini-grid{grid-template-columns:1fr}.dashboard-section-label{display:block}.dashboard-section-label p{margin-top:5px}}

.audit-export{display:flex;justify-content:flex-end;margin:8px 0}.audit-disputes{margin-top:18px;border:1px solid #d7e6e3;border-radius:12px;padding:16px}.audit-disputes>summary{cursor:pointer;font-size:14px;font-weight:800;color:#225e54}.audit-disputes>p{font-size:12px;color:#667e88;line-height:1.5;margin:12px 0}.audit-disputes form{padding:8px 0}.audit-disputes textarea{width:100%;padding:12px;border:1px solid #d6e3e6;border-radius:8px;font:inherit;min-height:76px}.audit-dispute-item{border-top:1px solid #e0e9e8;padding:12px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.audit-dispute-item strong{font-size:13px}.audit-dispute-item p{font-size:12px;line-height:1.5;color:#597480;margin:6px 0}.audit-dispute-item small{color:#8c704d}@media(max-width:480px){.audit-dispute-item{flex-direction:column}.audit-disputes{padding:12px}}

/* Execução 23 — informação essencial, sem cartões redundantes */
.essential-dashboard{max-width:1320px;margin:auto}.essential-balance{padding:clamp(20px,3vw,36px);background:linear-gradient(125deg,#103b43,#0f6653);color:#fff}.essential-balance .welcome-label{color:#7df5c6}.essential-balance h2{font-size:clamp(34px,5vw,58px);margin:12px 0}.essential-balance h2 .unit{font-size:.35em;color:#b8efe0}.essential-balance p{color:#d8f6ec}.essential-movement{display:flex;gap:20px;flex-wrap:wrap;margin-top:20px}.essential-reported,.essential-caution{margin-top:12px;font-size:.88rem}.essential-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.essential-trend{overflow:hidden}.surplus-bars{display:flex;gap:8px;height:180px;align-items:end;overflow-x:auto;padding:12px 4px 0}.surplus-bar-item{min-width:30px;flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:7px}.surplus-bar{background:linear-gradient(#20bb8b,#107a67);border-radius:6px 6px 0 0;width:65%;min-height:3px}.surplus-bar-item small{font-size:10px;white-space:nowrap}.essential-average{font-size:clamp(24px,4vw,38px);font-weight:750;padding:16px 0}.essential-actions{display:flex;flex-wrap:wrap;gap:10px}.surplus-adjustments{display:grid;gap:8px}.surplus-adjust-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border:1px solid #e1e8ed;border-radius:12px}.surplus-adjust-row p{margin:4px 0 0;color:#61778a;font-size:.85rem}@media(max-width:620px){.essential-metrics{grid-template-columns:1fr}.essential-balance .energy-hero-heading{display:grid;gap:14px}.surplus-adjust-row{flex-direction:column;align-items:flex-start}}

/* E25 — Dashboard energético definitivo: informação em primeiro lugar. */
.dashboard25-page{max-width:1440px;display:grid;gap:17px}
.dashboard25-page .panel{min-width:0;overflow:hidden}
.dashboard25-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 2px 3px}
.dashboard25-intro h2{font-size:clamp(19px,2.25vw,27px);margin:4px 0 5px;color:#173d44}
.dashboard25-intro p{font-size:12px;color:#627b89;line-height:1.5}
.dashboard25-overline{font-size:10px;color:#348673;letter-spacing:.12em;font-weight:800}
.dashboard25-kpis,.dashboard25-average-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dashboard25-kpi,.dashboard25-average{background:#fff;border:1px solid #e0e9ed;border-radius:15px;padding:20px 17px;min-width:0;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 20px #15304708}
.dashboard25-kpi{border-top:3px solid #58bea7;min-height:168px}
.dashboard25-kpi-head,.dashboard25-average-title{display:flex;align-items:center;gap:9px;color:#547083;font-size:13px;font-weight:750;line-height:1.4}
.dashboard25-kpi-head svg,.dashboard25-average-title svg{color:#169c7f}
.dashboard25-kpi-value{color:#112f40;font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(22px,2.3vw,32px);letter-spacing:-.04em;line-height:1.15;overflow-wrap:anywhere}
.dashboard25-kpi-value span{font-size:12px;color:#7f94a0;letter-spacing:0;font-weight:650;white-space:nowrap}
.dashboard25-kpi p,.dashboard25-average p{color:#7a90a0;line-height:1.5;font-size:11px;margin-top:auto}
.dashboard25-averages,.dashboard25-evolution,.dashboard25-balance{padding:23px 24px}
.dashboard25-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.dashboard25-section-head h3{font-size:18px;color:#1c3547;margin:0 0 5px}
.dashboard25-section-head p{color:#7a8f9c;font-size:12px;line-height:1.55}
.dashboard25-period{display:flex;flex-shrink:0;max-width:220px}
.dashboard25-average{background:#f7faf9;border-color:#e9f0f0;box-shadow:none;padding:16px;min-height:130px}
.dashboard25-average strong{font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(18px,2vw,26px);color:#1d4250;line-height:1.3;overflow-wrap:anywhere}
.dashboard25-average strong small{font:650 11px 'DM Sans',sans-serif;color:#708694;white-space:nowrap}
.dashboard25-series{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:21px}
.dashboard25-series-button{border:1px solid #dbe7e9;background:#fff;color:#375466;border-radius:20px;font-size:12px;padding:9px 12px;display:flex;align-items:center;gap:7px;min-height:39px;line-height:1.2;font-weight:700}
.dashboard25-series-button.is-off{opacity:.53;background:#f2f4f5}
.dashboard25-series-button.is-active{border-color:#b7d8d0;background:#f3fbf7}
.dashboard25-series-dot{height:10px;width:10px;border-radius:3px;display:inline-block;flex-shrink:0}
.dashboard25-series-dot.is-casa,.dashboard25-bar.is-casa{background:#10a781}
.dashboard25-series-dot.is-rede,.dashboard25-bar.is-rede{background:#376fd1}
.dashboard25-series-dot.is-solar,.dashboard25-bar.is-solar{background:#e6a02e}
.dashboard25-series-dot.is-injetada,.dashboard25-bar.is-injetada{background:#8b65c9}
.dashboard25-plot-scroll{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.dashboard25-plot{display:grid;grid-template-columns:repeat(var(--months),minmax(0,1fr));gap:6px;width:100%;min-width:620px;min-height:230px;padding:8px 0 5px;border-bottom:1px solid #e2e9e9}
.dashboard25-month{min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:9px}
.dashboard25-bar-cluster{height:190px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}
.dashboard25-bar{display:block;height:var(--height);width:clamp(5px,14%,17px);max-width:20px;border-radius:4px 4px 0 0;transition:height .16s;min-height:2px}
.dashboard25-bar.is-missing{height:2px;background:repeating-linear-gradient(45deg,#ccd5de,#ccd5de 2px,transparent 2px,transparent 4px);opacity:.6}
.dashboard25-month-label{color:#718696;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard25-plot-note{font-size:11px;color:#8294a2;line-height:1.5;margin-top:10px}
.dashboard25-chart-empty{color:#6e8290;text-align:center;padding:35px 12px}
.dashboard25-balance{margin-top:2px;background:#fff}
.dashboard25-balance-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.dashboard25-balance-number{display:block;font-size:clamp(26px,3vw,36px);color:#126b59;letter-spacing:-.035em}
.dashboard25-balance-number .unit{font-size:13px;color:#73968c}
.dashboard25-balance-layout p{font-size:12px;color:#607b85;margin:8px 0}
.dashboard25-balance-layout small{font-size:11px;color:#8b9ba6}
.dashboard25-balance-notes{display:grid;gap:12px}
.dashboard25-balance-notes>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.5;border-bottom:1px solid #edf2f2;padding-bottom:10px}
.dashboard25-balance-notes span{color:#68828e}
.dashboard25-balance-notes strong{color:#24445a;text-align:right}
.dashboard25-balance-foot{font-size:11px;color:#7c8993;margin-top:12px;line-height:1.6}
.dashboard25-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:1150px){.dashboard25-kpis,.dashboard25-average-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.dashboard25-page{gap:13px}.dashboard25-kpis,.dashboard25-average-grid{gap:8px}.dashboard25-kpi{padding:14px 11px;min-height:155px}.dashboard25-kpi-value{font-size:clamp(19px,5vw,26px)}.dashboard25-kpi-head,.dashboard25-average-title{font-size:11px;gap:5px}.dashboard25-kpi p,.dashboard25-average p{font-size:10px}.dashboard25-averages,.dashboard25-evolution,.dashboard25-balance{padding:17px 13px}.dashboard25-section-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}.dashboard25-period{max-width:none}.dashboard25-average{padding:12px 9px;min-height:126px}.dashboard25-average strong{font-size:clamp(17px,4.3vw,22px)}.dashboard25-intro{align-items:flex-start;flex-direction:column}.dashboard25-intro .btn{width:100%}.dashboard25-series-button{font-size:11px;padding:8px 9px}.dashboard25-balance-layout{grid-template-columns:1fr}.dashboard25-balance-notes>div{flex-wrap:wrap}.dashboard25-plot{min-width:640px}.dashboard25-actions .btn{flex:1}}
@media(max-width:350px){.dashboard25-kpis,.dashboard25-average-grid{grid-template-columns:1fr}.dashboard25-kpi{min-height:115px}.dashboard25-average{min-height:105px}}
@media(prefers-reduced-motion:reduce){.dashboard25-bar{transition:none}}
@media print{.dashboard25-plot-scroll{overflow:visible}.dashboard25-plot{min-width:0}.dashboard25-series-button{display:none}.dashboard25-kpi,.dashboard25-average,.dashboard25-balance{break-inside:avoid}}
/* Exibir inicialmente os ciclos mais recentes quando o gráfico precisa rolar no celular. */
@media(max-width:760px){.dashboard25-plot-scroll{direction:rtl}.dashboard25-plot{direction:ltr}}

/* EXECUCAO 26 — Um formulario unico e compacto, datas BR independentes do navegador. */
.entry26{max-width:1050px;margin:0 auto}.entry26-card{padding:24px 28px 22px}
.entry26-heading{display:flex;align-items:center;gap:11px;margin-bottom:14px}.entry26-heading h3{font-size:16px;letter-spacing:-.025em}.entry26-heading p{font-size:11px;color:#7b90a0;margin-top:3px}
.entry26-heading .section-icon{width:34px;height:34px;border-radius:9px}.entry26-heading .section-icon svg{width:18px;height:18px}
.entry26-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:end}
.entry26-dates{grid-template-columns:repeat(3,minmax(0,1fr))}.entry26-fields .field{gap:6px}.entry26-fields .field input,.entry26-mode select{height:46px;background:#f9fbfc}
.entry26-fields .field small{display:none}.entry26-divider{height:1px;background:#e8eef0;margin:19px 0}
.entry26-mode{margin:0 0 12px}.entry26-mode .field{max-width:100%}.entry26-mode .field>span{font-size:12px;font-weight:700;color:#44586b}
.entry26-solar{margin-top:12px}.entry26-tip{font-size:11px;color:#738a98;margin-top:8px;line-height:1.5}
.entry26-advanced{margin-top:21px;padding:12px 15px}.entry26-advanced summary{font-size:12px}.entry26-advanced p{font-size:11px;line-height:1.5}
.entry26-advanced .entry26-fields{margin-top:12px}.entry26-actions{margin-top:18px}.entry26-actions .btn{min-height:45px}
.entry26-confirm{margin-top:20px;background:#eef9f4;border:1px solid #b7e5d2;border-radius:12px;padding:16px 18px;color:#173e37}
.entry26-confirm h3{font-size:15px;margin-bottom:6px}.entry26-confirm>p{font-size:12px;color:#4e7167}
.entry26-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.entry26-summary>div{background:#fff;border-radius:9px;padding:12px;display:grid;gap:6px}.entry26-summary span{font-size:11px;color:#5e7980}.entry26-summary strong{font-size:18px;color:#154c3c;overflow-wrap:anywhere}
.entry26 [hidden]{display:none!important}
@media(max-width:820px){.entry26-card{padding:18px}.entry26-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.entry26-dates .br-date-field:first-child{grid-column:1/-1}}
@media(max-width:420px){.entry26-card{padding:15px 13px}.entry26-fields{gap:11px 9px}.entry26-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.entry26 .field>span{font-size:11px}.entry26 .field input{font-size:15px;padding:0 9px}.entry26-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:7px}.entry26-actions .btn{font-size:11px;padding:10px 8px}.entry26-summary{gap:7px}.entry26-summary>div{padding:10px}.entry26-summary strong{font-size:16px}}

.entry26-solar-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}.entry26-solar-pair>.entry26-fields{grid-template-columns:1fr}.entry26-solar-pair>.entry26-solar{margin-top:0}.entry26-solar-pair>#injection-readings:not([hidden]){grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.entry26-solar-pair:has(#injection-readings:not([hidden]))>.entry26-solar{grid-column:1/-1}
@media(max-width:380px){.entry26-solar-pair{gap:9px}.entry26-solar-pair .field>span{font-size:10.5px}}

/* E27 — Sistema visual. Tema escuro é padrão, claro opcional.
   Os dados da conta não participam da preferência: armazenamento local apenas. */
:root{--theme-bg:#101c2a;--theme-surface:#192b3a;--theme-elevated:#203749;--theme-text:#f0f7fc;--theme-muted:#b0c5d3;--theme-border:#345064;--theme-input:#172b3a;--theme-focus:#60e5b8;--theme-soft:#243c4d;--theme-primary:#34d3a1;--theme-primary-ink:#062e2a;--theme-shadow:0 10px 28px #020d1a30;color-scheme:dark}
:root[data-theme="light"]{--theme-bg:#f1f5f7;--theme-surface:#fff;--theme-elevated:#f7fafb;--theme-text:#183448;--theme-muted:#526e7e;--theme-border:#d7e3e9;--theme-input:#fbfcfd;--theme-focus:#0c8064;--theme-soft:#eaf1f4;--theme-primary:#0a996f;--theme-primary-ink:#fff;--theme-shadow:0 5px 20px #142f4510;color-scheme:light}
html,body{background:var(--theme-bg);color:var(--theme-text)}
:root[data-theme="dark"] .app-shell,:root[data-theme="dark"] .main{background:var(--theme-bg)}
:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .metric-card,:root[data-theme="dark"] .form-panel,:root[data-theme="dark"] .login-right,:root[data-theme="dark"] .history-card,:root[data-theme="dark"] .quality-panel,:root[data-theme="dark"] .credit-advanced,:root[data-theme="dark"] .dashboard25-averages,:root[data-theme="dark"] .dashboard25-evolution,:root[data-theme="dark"] .dashboard25-balance{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border);box-shadow:var(--theme-shadow)}
:root[data-theme="dark"] .topbar h1,:root[data-theme="dark"] .panel h2,:root[data-theme="dark"] .panel h3,:root[data-theme="dark"] .dashboard25-intro h2,:root[data-theme="dark"] .dashboard25-section-head h3,:root[data-theme="dark"] .dashboard-section-label h3,:root[data-theme="dark"] .history-card-head strong,:root[data-theme="dark"] .history-card-metrics strong,:root[data-theme="dark"] .dashboard25-average strong,:root[data-theme="dark"] .dashboard25-balance-number,:root[data-theme="dark"] .quality-metrics strong,:root[data-theme="dark"] .field>span,:root[data-theme="dark"] .section-title h3,:root[data-theme="dark"] .solar-page h2,:root[data-theme="dark"] .solar-page h3{color:var(--theme-text)}
:root[data-theme="dark"] .topbar p,:root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .panel-header p,:root[data-theme="dark"] .section-title p,:root[data-theme="dark"] .dashboard25-intro p,:root[data-theme="dark"] .dashboard25-section-head p,:root[data-theme="dark"] .dashboard25-plot-note,:root[data-theme="dark"] .dashboard25-month-label,:root[data-theme="dark"] .dashboard25-balance p,:root[data-theme="dark"] .dashboard25-balance small,:root[data-theme="dark"] .dashboard25-average p,:root[data-theme="dark"] .bottom-note,:root[data-theme="dark"] .metric-detail,:root[data-theme="dark"] .history-card-head small,:root[data-theme="dark"] .history-detail-grid span,:root[data-theme="dark"] .quality-issue p,:root[data-theme="dark"] .quality-explanation,:root[data-theme="dark"] .solar-note,:root[data-theme="dark"] .solar-source{color:var(--theme-muted)}
:root[data-theme="dark"] .btn-secondary,:root[data-theme="dark"] .tag,:root[data-theme="dark"] .history-card-metrics>div,:root[data-theme="dark"] .quality-metrics>div,:root[data-theme="dark"] .quality-values,:root[data-theme="dark"] .quality-group>summary b,:root[data-theme="dark"] .credit-audit-summary>div,:root[data-theme="dark"] .audit-mini-grid>div,:root[data-theme="dark"] .preview-highlight,:root[data-theme="dark"] .history-table th,:root[data-theme="dark"] .dashboard25-series-button,:root[data-theme="dark"] .dashboard25-series-button.is-off,:root[data-theme="dark"] .dashboard25-series-button.is-active,:root[data-theme="dark"] .period-selector,:root[data-theme="dark"] .period-selector button,:root[data-theme="dark"] .history-edit{background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme="dark"] .period-selector button.selected,:root[data-theme="dark"] .dashboard25-series-button.is-active{background:#2e6158;color:#f0fffa;border-color:#4a9885}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .history-toolbar input,:root[data-theme="dark"] .history-toolbar select,:root[data-theme="dark"] .add-equipment input,:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#9db3c1;opacity:1}
:root[data-theme="dark"] input:focus-visible,:root[data-theme="dark"] select:focus-visible,:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible,:root[data-theme="dark"] summary:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
:root[data-theme="dark"] .history-table th,:root[data-theme="dark"] .history-table td,:root[data-theme="dark"] .history-card,:root[data-theme="dark"] .history-card-metrics>div,:root[data-theme="dark"] .history-detail-grid,:root[data-theme="dark"] .history-quality-strip,:root[data-theme="dark"] .quality-group,:root[data-theme="dark"] .quality-issue,:root[data-theme="dark"] .summary-list>div,:root[data-theme="dark"] .preview-line,:root[data-theme="dark"] .dashboard25-plot,:root[data-theme="dark"] .surplus-adjust-row,:root[data-theme="dark"] .audit-row,:root[data-theme="dark"] .audit-disputes,:root[data-theme="dark"] .audit-dispute-item,:root[data-theme="dark"] .form-divider{border-color:var(--theme-border)}
:root[data-theme="dark"] .history-table th,:root[data-theme="dark"] .history-card-metrics>div,:root[data-theme="dark"] .quality-group,:root[data-theme="dark"] .history-quality-strip,:root[data-theme="dark"] .quality-metrics>div,:root[data-theme="dark"] .credit-linked-info,:root[data-theme="dark"] .quality-all-clear,:root[data-theme="dark"] .quality-values,:root[data-theme="dark"] .audit-disputes{background:var(--theme-elevated);color:var(--theme-text)}
:root[data-theme="dark"] .history-table td,:root[data-theme="dark"] .history-table th,:root[data-theme="dark"] .history-detail-grid strong,:root[data-theme="dark"] .history-toolbar label,:root[data-theme="dark"] .history-detail summary,:root[data-theme="dark"] .history-quality-strip strong,:root[data-theme="dark"] .history-quality-strip span,:root[data-theme="dark"] .quality-issue-heading strong,:root[data-theme="dark"] .quality-issue .quality-suggestion,:root[data-theme="dark"] .quality-group>summary,:root[data-theme="dark"] .audit-row summary,:root[data-theme="dark"] .audit-row summary b,:root[data-theme="dark"] .audit-mini-grid b{color:var(--theme-text)}
:root[data-theme="dark"] .dashboard25-balance-notes>div,:root[data-theme="dark"] .dashboard25-balance-foot{border-color:var(--theme-border)}
:root[data-theme="dark"] .alert.warning,:root[data-theme="dark"] .intelligence-advice,:root[data-theme="dark"] .intelligence-advice.intelligence-high,:root[data-theme="dark"] .intelligence-advice.intelligence-medium{background:#352f24;color:#ffdeae;border-color:#685331}
:root[data-theme="dark"] .alert.warning p,:root[data-theme="dark"] .intelligence-advice p,:root[data-theme="dark"] .intelligence-note{color:#e6d3ba}
:root[data-theme="dark"] .btn-primary{background:#18bc8d;color:#052b24}
:root[data-theme="dark"] .btn-primary:hover{background:#38dbab}
:root[data-theme="dark"] .dashboard25-balance{background:var(--theme-surface)}
:root[data-theme="dark"] .entry26-confirm,:root[data-theme="dark"] .monthly-advanced,:root[data-theme="dark"] .entry26-card,:root[data-theme="dark"] .entry26-summary>div{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme="dark"] .entry26-summary>div{background:var(--theme-elevated)}
:root[data-theme="dark"] .entry26-card p,:root[data-theme="dark"] .entry26-confirm p,:root[data-theme="dark"] .entry26-summary span{color:var(--theme-muted)}
:root[data-theme="dark"] .entry26-confirm h3,:root[data-theme="dark"] .entry26-summary strong{color:var(--theme-text)}
:root[data-theme="dark"] .solar-page .solar-intro,:root[data-theme="dark"] .solar-page .solar-results,:root[data-theme="dark"] .solar-page .solar-summary,:root[data-theme="dark"] .solar-page .solar-result-card,:root[data-theme="dark"] .solar-page .solar-result{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
:root[data-theme="dark"] .solar-page .solar-big-number,:root[data-theme="dark"] .solar-page strong{color:var(--theme-text)}
:root[data-theme="dark"] .login-shell{background:var(--theme-bg)}
:root[data-theme="dark"] .login-right .login-form,:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .login-form-container{background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme="dark"] .login-right h2,:root[data-theme="dark"] .login-right h3,:root[data-theme="dark"] .login-right label{color:var(--theme-text)}
:root[data-theme="dark"] .login-right p,:root[data-theme="dark"] .login-right small{color:var(--theme-muted)}
/* Cards inteiramente coloridos. Sem barrinhas, sem minigráficos. */
.dashboard25-kpi,.dashboard25-average{--energy-bg:#116B52;--energy-text:#fff;--energy-muted:#E2FFF4;--energy-line:#FFFFFF30;background:var(--energy-bg)!important;border:1px solid var(--energy-line)!important;border-radius:16px;color:var(--energy-text)!important;box-shadow:0 10px 24px #00000016}
.dashboard25-kpi[data-energy="casa"],.dashboard25-average[data-energy="casa"]{--energy-bg:#116B52;--energy-muted:#D4F8EA}
.dashboard25-kpi[data-energy="rede"],.dashboard25-average[data-energy="rede"]{--energy-bg:#2155A1;--energy-muted:#D7E7FF}
.dashboard25-kpi[data-energy="solar"],.dashboard25-average[data-energy="solar"]{--energy-bg:#946015;--energy-muted:#FFF0D0}
.dashboard25-kpi[data-energy="injetada"],.dashboard25-average[data-energy="injetada"]{--energy-bg:#126F80;--energy-muted:#D7F6FB}
.dashboard25-average{filter:saturate(.84);box-shadow:none;min-height:126px}
.dashboard25-kpi-head,.dashboard25-average-title,.dashboard25-kpi-head svg,.dashboard25-average-title svg,.dashboard25-kpi-value,.dashboard25-average strong{color:var(--energy-text)!important}
.dashboard25-kpi-value span,.dashboard25-average strong small,.dashboard25-kpi p,.dashboard25-average p{color:var(--energy-muted)!important}
.dashboard25-kpi-head,.dashboard25-average-title{font-size:13px}
.dashboard25-kpi-value{font-size:clamp(23px,2.25vw,34px)}
.dashboard25-kpi{min-height:156px;gap:13px;padding:20px}
.dashboard25-average{padding:16px;gap:8px}
:root[data-theme="light"] .dashboard25-kpi[data-energy="casa"],:root[data-theme="light"] .dashboard25-average[data-energy="casa"]{--energy-bg:#DDF5E9;--energy-text:#125B42;--energy-muted:#23674F;--energy-line:#B5E2CD}
:root[data-theme="light"] .dashboard25-kpi[data-energy="rede"],:root[data-theme="light"] .dashboard25-average[data-energy="rede"]{--energy-bg:#DFEAFF;--energy-text:#1B4E95;--energy-muted:#315B93;--energy-line:#C4D9FF}
:root[data-theme="light"] .dashboard25-kpi[data-energy="solar"],:root[data-theme="light"] .dashboard25-average[data-energy="solar"]{--energy-bg:#FFF0CD;--energy-text:#87580C;--energy-muted:#855C1E;--energy-line:#F3D79B}
:root[data-theme="light"] .dashboard25-kpi[data-energy="injetada"],:root[data-theme="light"] .dashboard25-average[data-energy="injetada"]{--energy-bg:#D8F3F5;--energy-text:#126B79;--energy-muted:#276F79;--energy-line:#AEE3E9}
/* Os demais painéis claros continuam neutros, sem criar ruído visual. */
:root[data-theme="light"] .topbar,:root[data-theme="light"] .panel{background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme="light"] .dashboard25-kpi,:root[data-theme="light"] .dashboard25-average{box-shadow:0 4px 18px #0b36420c}
/* Alternância no rodapé do menu, antes da instalação do aplicativo. */
.theme27-toggle{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #3a5664;border-radius:11px;background:#192e3e;color:#eaf7f4;text-align:left;min-height:45px;padding:10px 13px;margin-bottom:13px;font-size:13px;font-weight:750}
.theme27-toggle:hover{background:#264353;border-color:#5b897e}
.theme27-toggle-icon{display:flex;color:#6be4b8}
.theme27-toggle-current{margin-left:auto;font-size:11px;font-weight:800;color:#aee5d1;background:#284b4c;padding:5px 9px;border-radius:7px}
.theme27-toggle:focus-visible,.theme27-login-toggle:focus-visible{outline:3px solid #67e9b8;outline-offset:2px}
.theme27-login-toggle{background:transparent;border:0;color:inherit;text-decoration:underline;padding:2px 4px;font:inherit;cursor:pointer}
:root[data-theme="dark"] .sidebar{background:#0c1724}
:root[data-theme="light"] .sidebar{background:#102338}
/* Consistência de contraste em links, mensagens e estado de erro */
:root[data-theme="dark"] a:not(.btn),:root[data-theme="dark"] .text-link{color:#80e4cb}
:root[data-theme="dark"] .brand,:root[data-theme="dark"] .login-brand{color:#fff}
:root[data-theme="dark"] .form-error,:root[data-theme="dark"] .error-message{background:#512c35;color:#ffe2e2;border-color:#9e5664}
:root[data-theme="dark"] .toast{background:#20394b;color:#fff;border-color:#537182}
:root[data-theme="dark"] .dashboard25-series-button.is-off{opacity:.72}
:root[data-theme="dark"] .dashboard25-bar.is-missing{background:repeating-linear-gradient(45deg,#708a9a,#708a9a 2px,transparent 2px,transparent 4px)}
:root[data-theme="dark"] .dashboard25-balance-number .unit{color:#acdccc}
:root[data-theme="dark"] .unit{color:#b3c9d5}
:root[data-theme="dark"] .dashboard25-balance-notes strong,:root[data-theme="dark"] .dashboard25-balance-notes span{color:var(--theme-text)}
@media(max-width:760px){.theme27-toggle{margin-bottom:9px}.dashboard25-kpi{min-height:145px;padding:15px}.dashboard25-average{padding:13px}.dashboard25-kpi-head,.dashboard25-average-title{font-size:12px}}
@media(max-width:400px){.dashboard25-kpi-value{font-size:clamp(19px,6vw,26px)}.dashboard25-average strong{font-size:clamp(16px,5vw,22px)}.dashboard25-kpi{padding:13px;gap:10px}}
@media print{:root[data-theme="dark"]{color-scheme:light}:root[data-theme="dark"] body,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .topbar{background:#fff!important;color:#172b3c!important}.theme27-toggle{display:none!important}}
/* E27: gráfico usa as mesmas quatro identidades visuais dos cards. */
.dashboard25-series-dot.is-casa,.dashboard25-bar.is-casa{background:#116B52}
.dashboard25-series-dot.is-rede,.dashboard25-bar.is-rede{background:#2155A1}
.dashboard25-series-dot.is-solar,.dashboard25-bar.is-solar{background:#DCA03C}
.dashboard25-series-dot.is-injetada,.dashboard25-bar.is-injetada{background:#126F80}
:root[data-theme="dark"] .auth-placeholder,:root[data-theme="dark"] .mini-tag,:root[data-theme="dark"] .login-card{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme="dark"] .auth-placeholder>div,:root[data-theme="dark"] .auth-placeholder p,:root[data-theme="dark"] .login-safety{color:var(--theme-muted)}
:root[data-theme="dark"] .dashboard25-overline{color:#65e2b5}
:root[data-theme="dark"] .form-mini-help,:root[data-theme="dark"] .field small,:root[data-theme="dark"] .history-toolbar label,:root[data-theme="dark"] .quality-kind{color:var(--theme-muted)}

.theme27-auth-top{display:flex;justify-content:flex-end;margin-bottom:12px}.theme27-auth-top .theme27-login-toggle{font-size:12px;color:var(--theme-muted)}:root[data-theme="dark"] .theme27-auth-top .theme27-login-toggle{color:#a4e9d4}

/* E28 — Dimensionador compacto, com a resposta antes dos controles. */
.solar28-page{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.9fr);gap:16px;align-items:start}
.solar28-page>.panel{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text);box-shadow:var(--theme-shadow)}
.solar28-overview{padding:25px 27px;grid-column:1}
.solar28-answer{padding:25px 27px;grid-column:2;grid-row:1 / span 2}
.solar28-settings{padding:22px 27px;grid-column:1}
.solar28-topline,.solar28-answer-head,.solar28-settings-title{display:flex;justify-content:space-between;align-items:start;gap:15px}
.solar28-topline h2,.solar28-answer h2{font-size:clamp(18px,2vw,23px);letter-spacing:-.04em;line-height:1.25;color:var(--theme-text);margin-top:7px}
.solar28-kicker{color:var(--theme-primary);font-size:10px;font-weight:800;letter-spacing:.14em}
.solar28-topline .period-selector{flex-shrink:0;margin:0}
.solar28-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.solar28-number{display:flex;flex-direction:column;gap:12px;border-radius:13px;padding:19px;min-width:0}
.solar28-consumption{background:#116B52;color:#fff}
.solar28-generation{background:#946015;color:#fff}
.solar28-number span{font-size:12px;color:#f2f9f5;font-weight:700}
.solar28-number strong{font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(19px,2.1vw,27px);font-weight:800;line-height:1.2;letter-spacing:-.04em;overflow-wrap:anywhere}
.solar28-coverage{margin-top:16px;font-size:11px;color:var(--theme-muted);line-height:1.5}
.solar28-answer-icon{display:grid;place-items:center;background:var(--theme-soft);color:var(--theme-primary);border-radius:13px;width:44px;height:44px;flex-shrink:0}
.solar28-big{font-family:Manrope,'DM Sans',sans-serif;font-weight:800;font-size:clamp(52px,5vw,78px);letter-spacing:-.06em;line-height:1.05;margin:22px 0 12px;color:var(--theme-text)}
.solar28-big span{display:block;font-size:15px;font-weight:700;letter-spacing:0;margin-top:8px;color:var(--theme-muted)}
.solar28-summary{font-size:14px;line-height:1.6;color:var(--theme-text)}
.solar28-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0 14px}
.solar28-details>div{display:flex;flex-direction:column;justify-content:space-between;gap:9px;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:11px;padding:13px 10px;min-width:0}
.solar28-details span{font-size:10px;line-height:1.4;color:var(--theme-muted)}
.solar28-details strong{font-size:14px;overflow-wrap:anywhere;color:var(--theme-text)}
.solar28-disclaimer{font-size:11px;line-height:1.65;color:var(--theme-muted);margin-top:20px}
.solar28-alert{font-size:12px;line-height:1.6;color:#f0b968;margin-top:12px}
.solar28-settings-title h3{font-size:17px;color:var(--theme-text)}
.solar28-settings-title p{font-size:12px;color:var(--theme-muted);margin-top:5px}
.solar28-settings-title>svg{color:var(--theme-muted)}
.solar28-main-fields{display:flex;gap:12px;align-items:end;margin-top:18px}
.solar28-main-fields>.field{flex:1;min-width:0}
.solar28-main-fields>.btn{flex-shrink:0;min-height:43px}
.solar28-advanced{border-top:1px solid var(--theme-border);margin-top:22px;padding-top:18px}
.solar28-advanced>summary{cursor:pointer;color:var(--theme-primary);font-weight:800;font-size:12px;list-style-position:inside}
.solar28-advanced-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.solar28-advanced-note{color:var(--theme-muted);font-size:11px;line-height:1.65;margin-top:16px}
.solar28-sources{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px;font-size:11px;color:var(--theme-muted)}
.solar28-sources a{color:var(--theme-primary);text-underline-offset:3px}
.solar28-page .field input,.solar28-page .field select,.unit28-page .field input{background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-border)}
.unit28-page>.panel,.account28-page>.panel{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
.unit28-only .bottom-note{display:none}
.account28-note{font-size:12px;line-height:1.6;color:var(--theme-muted);margin-top:15px}
.account28-privacy{display:inline-flex;margin-top:18px;color:var(--theme-primary);font-size:13px;font-weight:700;text-underline-offset:4px}
.account28-menu{margin-bottom:2px}
@media(max-width:1120px){.solar28-page{grid-template-columns:1fr}.solar28-overview,.solar28-answer,.solar28-settings{grid-column:1;grid-row:auto}.solar28-answer{display:block}.solar28-big{margin:15px 0}}
@media(max-width:740px){.solar28-page{gap:12px}.solar28-overview,.solar28-answer,.solar28-settings{padding:19px 16px}.solar28-topline{flex-direction:column;align-items:stretch}.solar28-topline .period-selector{width:max-content}.solar28-number{padding:14px 11px}.solar28-number strong{font-size:clamp(17px,5vw,24px)}.solar28-number span{font-size:11px}.solar28-numbers{gap:9px;margin-top:16px}.solar28-details{gap:6px}.solar28-details>div{padding:10px 8px}.solar28-details strong{font-size:12px}.solar28-main-fields{align-items:stretch;flex-direction:column}.solar28-main-fields>.field,.solar28-main-fields>.btn{width:100%}.solar28-advanced-fields{grid-template-columns:1fr}}
@media(max-width:360px){.solar28-number strong{font-size:17px}.solar28-details{grid-template-columns:1fr 1fr}.solar28-details>div:last-child{grid-column:1/-1}}


/* Execução 30 — um diagnóstico prioritário na Visão geral */
.diagnosis30-card{--d30-bg:#163f51;--d30-accent:#7de2bf;--d30-line:rgba(255,255,255,.18);background:var(--d30-bg);color:#f8fcff;border:1px solid var(--d30-line);border-radius:20px;padding:clamp(18px,2.5vw,30px);box-shadow:0 10px 30px rgba(0,0,0,.11);min-width:0;overflow-wrap:anywhere;}
.diagnosis30-no-solar{--d30-bg:#163c51;--d30-accent:#ffd17e}
.diagnosis30-accumulating,.diagnosis30-balanced{--d30-bg:#155342;--d30-accent:#a8efc9}
.diagnosis30-depleting,.diagnosis30-buffered{--d30-bg:#664918;--d30-accent:#ffdc9b}
.diagnosis30-empty,.diagnosis30-expiry-risk{--d30-bg:#713d41;--d30-accent:#ffd3ca}
.diagnosis30-insufficient{--d30-bg:#294354;--d30-accent:#d5e8f1}
.diagnosis30-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.diagnosis30-kicker{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.075em;color:var(--d30-accent)}
.diagnosis30-dot{width:8px;height:8px;border-radius:50%;background:var(--d30-accent);box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.diagnosis30-period{display:inline-flex;flex-shrink:0;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:3px;gap:2px}
.diagnosis30-period button{color:#e4f2f4;background:transparent;border:0;border-radius:7px;padding:8px 11px;font-weight:700;font-size:12px;cursor:pointer}
.diagnosis30-period button.selected{color:#10283b;background:#effff8}
.diagnosis30-card h3{font-family:Manrope,'DM Sans',sans-serif;color:#fff;font-size:clamp(21px,2.8vw,30px);line-height:1.22;letter-spacing:-.035em;margin:17px 0 8px}
.diagnosis30-description{color:#e3eef3;font-size:14px;line-height:1.55;max-width:780px;margin:0}
.diagnosis30-answer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:19px 0 0;padding:16px 18px;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.15);border-radius:14px}
.diagnosis30-answer>div:first-child{display:flex;flex-direction:column;min-width:0;gap:4px}
.diagnosis30-answer-label{font-size:11px;color:#d5e8ed}
.diagnosis30-answer strong{font-size:clamp(24px,4.4vw,37px);font-weight:850;letter-spacing:-.045em;color:#fff;line-height:1.16}
.diagnosis30-answer small{font-size:11px;color:#d6e7ed;line-height:1.5}
.diagnosis30-countdown{border-left:1px solid rgba(255,255,255,.24);padding-left:18px;display:flex;align-items:center;gap:9px;flex-shrink:0}
.diagnosis30-countdown strong{font-size:33px;line-height:1;color:#fff}
.diagnosis30-countdown span{font-size:10px;line-height:1.4;color:#e3eef2}
.diagnosis30-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.diagnosis30-facts>div{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border-radius:10px;background:rgba(255,255,255,.075);min-width:0}
.diagnosis30-facts span{color:#d1e2e9;font-size:11px}
.diagnosis30-facts strong{color:#fff;font-size:16px;overflow-wrap:anywhere}
.diagnosis30-note{margin:12px 0 0;font-size:12px;color:#fff0cc;line-height:1.5}
.diagnosis30-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:17px}
.diagnosis30-primary{background:#f4fff9!important;color:#173f37!important;border:1px solid #f4fff9!important;font-weight:800!important;min-height:43px}
.diagnosis30-primary:hover{background:#dcf9eb!important}
.diagnosis30-secondary{border:0;background:none;color:#f4fffa;text-decoration:underline;text-underline-offset:4px;cursor:pointer;font-size:13px;font-weight:700;padding:8px 0}
.diagnosis30-disclaimer{font-size:10px;color:#c5dbe4;line-height:1.5;margin:15px 0 0}
.diagnosis30-card button:focus-visible{outline:3px solid #fff;outline-offset:3px}
html[data-theme="light"] .diagnosis30-card{box-shadow:0 8px 25px rgba(17,48,68,.09)}
@media(max-width:600px){.diagnosis30-card{padding:17px 15px;border-radius:16px}.diagnosis30-top{align-items:flex-start}.diagnosis30-card h3{margin-top:14px}.diagnosis30-answer{padding:14px 12px;align-items:flex-start}.diagnosis30-countdown{padding-left:10px}.diagnosis30-countdown strong{font-size:25px}.diagnosis30-facts strong{font-size:14px}.diagnosis30-actions{flex-direction:column;align-items:stretch;gap:5px}.diagnosis30-primary{width:100%;justify-content:center}.diagnosis30-secondary{text-align:center}.diagnosis30-answer strong{font-size:clamp(21px,6vw,29px)}}
@media(max-width:350px){.diagnosis30-answer{flex-wrap:wrap}.diagnosis30-countdown{border-left:0;padding-left:0}.diagnosis30-facts{grid-template-columns:1fr}}


/* EXECUÇÃO 31 — Formulário de leitura da fatura compacto e diagnóstico móvel */
.entry26{max-width:940px;margin:0 auto;width:100%;min-width:0}
.entry26-card{padding:clamp(16px,2.1vw,30px)!important;min-width:0;border-radius:19px}
.entry31-title{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.entry31-symbol{background:var(--theme-soft);color:var(--theme-primary);border-radius:13px;min-width:44px;height:44px;display:grid;place-items:center}
.entry31-overline{color:var(--theme-primary);font-size:10px;font-weight:850;letter-spacing:.1em}
.entry31-title h2{font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(19px,2.3vw,24px);line-height:1.2;margin:4px 0;color:var(--theme-text)}
.entry31-title p{color:var(--theme-muted);font-size:12px;line-height:1.4;margin:2px 0}
.entry31-group{padding:16px 0;border-top:1px solid var(--theme-border);min-width:0}
.entry31-group-head{display:flex;align-items:center;gap:9px;margin:0 0 12px}
.entry31-group-head h3{font-size:14px;font-weight:800;color:var(--theme-text);letter-spacing:-.015em;margin:0}
.entry31-step{background:var(--theme-soft);color:var(--theme-primary);font-size:10px;font-weight:850;width:25px;height:25px;border-radius:8px;display:grid;place-items:center}
.entry26 .field{min-width:0;gap:5px}
.entry26 .field>span{font-size:12px;font-weight:700;line-height:1.3;color:var(--theme-text)}
.entry26 .field input,.entry26 .field select,.entry31-mode-head select{background:var(--theme-input);border:1px solid var(--theme-border);color:var(--theme-text);border-radius:10px;min-height:43px;height:43px;font-size:14px;padding:8px 12px;max-width:100%;width:100%}
.entry26 .field input:focus-visible,.entry31-mode-head select:focus-visible{outline:2px solid var(--theme-focus);outline-offset:1px}
.entry26-fields{gap:11px 13px}
.entry26-dates{grid-template-columns:repeat(3,minmax(0,1fr))}
.entry31-consumption{grid-template-columns:repeat(2,minmax(0,1fr))}
.entry31-solar-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end}
.entry31-solar-row>.entry31-injection,.entry31-solar-row>.entry31-generation{min-width:0}
.entry31-injection{display:grid;gap:9px}
.entry31-mode-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.entry31-mode-head label{font-size:12px;font-weight:800;color:var(--theme-text)}
.entry31-mode-head select{width:auto;min-height:36px;height:36px;padding:5px 9px;font-size:11px;font-weight:750;flex:0 1 auto;cursor:pointer;border-color:var(--theme-focus)}
.entry31-solar-row #injection-readings{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.entry31-generation.entry26-fields{grid-template-columns:1fr}
.entry31-solar-row #injection-monthly[hidden],.entry31-solar-row #injection-readings[hidden]{display:none!important}
.entry26-advanced{margin-top:4px!important;margin-bottom:10px;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:11px;padding:11px 13px}
.entry26-advanced>summary{font-size:12px;font-weight:750;color:var(--theme-muted);cursor:pointer}
.entry26-advanced[open]>summary{color:var(--theme-primary)}
.entry26-actions{margin-top:13px;display:flex;gap:11px;justify-content:flex-end}
.entry26-actions .btn{min-height:44px;font-size:13px}
.entry26-confirm{background:var(--theme-elevated)!important;color:var(--theme-text)!important;border-color:var(--theme-focus)!important}
.entry26-confirm h3,.entry26-confirm strong{color:var(--theme-text)}
.entry26-confirm>p,.entry26-summary span{color:var(--theme-muted)!important}
.entry26-summary>div{background:var(--theme-surface)}
.entry31-version{font-size:10px;letter-spacing:.035em;color:#9ab4c5;padding:0 12px 8px}
.entry31-header-version{color:var(--theme-muted);font-size:10px;white-space:nowrap}
/* Não deixar regras antigas de cards/grids esconderem o diagnóstico no telefone. */
.entry31-diagnosis-slot{display:block!important;min-width:0;width:100%;grid-column:1/-1;visibility:visible!important;opacity:1!important}
.entry31-diagnosis-slot>.diagnosis30-card{display:block!important;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:740px){
 .entry26{padding-left:12px!important;padding-right:12px!important}
 .entry26-card{padding:16px 14px!important}
 .entry31-title{margin-bottom:15px}
 .entry31-group{padding:13px 0}
 .entry26-dates{grid-template-columns:repeat(2,minmax(0,1fr))}
 .entry26-dates .br-date-field:first-child{grid-column:1/-1}
 .entry31-solar-row{grid-template-columns:1fr;gap:10px}
 .entry31-mode-head{flex-wrap:nowrap}
 .entry31-mode-head select{max-width:60%;flex-shrink:1}
 .entry26 .field>span{font-size:11px}
 .entry31-diagnosis-slot{margin:0;width:100%;min-width:0}
 .entry31-diagnosis-slot .diagnosis30-card{margin:0!important}
 .entry31-diagnosis-slot .diagnosis30-answer{min-width:0}
}
@media(max-width:390px){.entry31-mode-head{align-items:stretch;flex-direction:column;gap:6px}.entry31-mode-head select{max-width:100%;width:100%}.entry31-title p{font-size:11px}.entry31-solar-row #injection-readings{grid-template-columns:1fr}.entry26-actions .btn{font-size:12px}}
/* Atualização do PWA: diálogo central real, sem invadir cartões ou cortar ações. */
.pwa-banner-backdrop{position:fixed;z-index:1099;inset:0;background:rgba(4,13,24,.73);display:flex;justify-content:center;align-items:center;padding:clamp(12px,3vw,26px);padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
.pwa-banner.pwa-banner-update{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;width:min(440px,100%)!important;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;box-shadow:0 22px 68px rgba(0,0,0,.34);border-radius:18px}
.pwa-banner-update .pwa-banner-actions{gap:10px}
.pwa-banner-update .pwa-banner-actions button{min-height:39px}
@media(max-width:740px){.pwa-banner.pwa-banner-update{width:min(440px,100%)!important;padding:19px 34px 19px 15px!important}.pwa-banner-backdrop{padding-left:14px;padding-right:14px}}

/* E31: campo mensal ocupa toda a largura, inclusive abaixo de 740px. */
.entry31-injection #injection-monthly{grid-template-columns:minmax(0,1fr)}


/* E32: fechamento responsivo, toque, legibilidade e acessibilidade. */
.entry26-card{width:100%;max-width:100%;min-width:0}
.entry26-card input,.entry26-card select{min-width:0;max-width:100%;box-sizing:border-box}
.entry31-group{scroll-margin-top:20px}
.entry31-diagnosis-slot{contain:layout style;}
.diagnosis30-card{overflow-wrap:anywhere}
.dashboard25-page>.dashboard25-section,.dashboard25-page>.panel,.dashboard25-page>.entry31-diagnosis-slot{min-width:0}
.pwa-banner-backdrop{overscroll-behavior:contain}
.pwa-banner.pwa-banner-update:focus-visible{outline:3px solid #73e5ba;outline-offset:3px}
.pwa-banner-update .pwa-banner-primary,.pwa-banner-update .pwa-banner-later{min-height:44px}
@media(max-width:480px){
 .entry26-card{padding:15px 12px!important}
 .entry31-title{gap:10px}
 .entry31-group-head{margin-bottom:10px}
 .entry26-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .entry26-actions .btn{width:100%;justify-content:center;min-height:46px}
 .entry31-injection #injection-readings{grid-template-columns:minmax(0,1fr)}
 .entry31-diagnosis-slot .diagnosis30-card{width:100%;overflow-wrap:anywhere}
 .pwa-banner-backdrop{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
}
@media(prefers-reduced-motion:reduce){.pwa-banner-backdrop *,.entry26-card *{scroll-behavior:auto!important;transition-duration:0.01ms!important}}

/* EXECUÇÃO 33 — hierarquia e densidade informacional do dashboard. */
.dashboard33-page{gap:14px!important}
.dashboard33-page .dashboard25-intro{padding:0 1px;gap:12px}
.dashboard33-page .dashboard25-intro h2{margin:1px 0 2px;font-size:clamp(18px,2vw,23px)}
.dashboard33-page .dashboard25-intro p{font-size:11px}
.dashboard33-page .dashboard25-overline{font-size:9px}
.dashboard33-page .dashboard25-kpis{gap:10px}
.dashboard33-page .dashboard25-kpi{min-height:0!important;padding:14px 13px!important;gap:11px!important;justify-content:flex-start;border-radius:14px}
.dashboard33-page .dashboard25-kpi-head{font-size:12px;line-height:1.2;gap:6px;min-height:22px}
.dashboard33-page .dashboard25-kpi-head svg{width:17px;height:17px;flex-shrink:0}
.dashboard33-page .dashboard25-kpi-value{font-size:clamp(19px,2.1vw,30px);line-height:1.18;letter-spacing:-.045em}
.dashboard33-page .dashboard25-kpi-value span{font-size:11px}
.dashboard33-page .dashboard25-kpi p{display:none}
.dashboard33-method{margin-top:9px;color:var(--theme-muted);font-size:11px;line-height:1.5}
.dashboard33-method summary{cursor:pointer;width:max-content;max-width:100%;color:var(--theme-muted);font-size:11px}
.dashboard33-method p{margin:8px 0 0}.dashboard33-method ul{margin:6px 0 0;padding-left:18px}
.dashboard33-balance-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:13px;min-width:0}
.dashboard33-balance-strip>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.dashboard33-balance-strip span{font-size:12px;color:var(--theme-muted)}
.dashboard33-balance-strip strong{font-size:clamp(18px,2.3vw,23px);color:var(--theme-text);white-space:nowrap}
.dashboard33-balance-strip strong .unit{font-size:11px;font-weight:600}
.dashboard33-balance-strip a{color:var(--theme-primary);font-size:11px;font-weight:750;display:flex;align-items:center;gap:5px;white-space:nowrap}
.dashboard33-period-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:36px;color:var(--theme-muted);font-size:12px}
.dashboard33-period-row .dashboard25-period{width:188px;margin:0;flex-shrink:0}
.dashboard33-page .diagnosis33-compact{padding:17px 20px;border-radius:16px}
.dashboard33-page .diagnosis33-compact h3{font-size:clamp(19px,2.1vw,25px);margin:9px 0 5px;line-height:1.24}
.diagnosis33-summary{font-size:12px;line-height:1.45;color:#e5f1f1;margin:0}
.diagnosis33-facts{display:flex;align-items:center;gap:9px 22px;flex-wrap:wrap;margin:12px 0 0;color:#d8e8ec;font-size:12px}
.diagnosis33-facts strong{color:#fff;font-size:13px}
.diagnosis33-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;flex-wrap:wrap}
.diagnosis33-bottom .diagnosis30-primary{min-height:38px;padding:9px 15px;font-size:12px}
.diagnosis33-more{font-size:11px;color:#e1e8ed;flex:1;min-width:140px}
.diagnosis33-more summary{cursor:pointer;text-align:right;text-decoration:underline;text-underline-offset:3px}
.diagnosis33-more p{margin:8px 0 0;line-height:1.45}
.dashboard33-page .dashboard25-evolution{padding:17px 18px}
.dashboard33-page .dashboard25-section-head{margin-bottom:11px}
.dashboard33-page .dashboard25-section-head h3{font-size:17px}
.dashboard33-page .dashboard25-series{margin-bottom:12px;gap:6px}
.dashboard33-page .dashboard25-series-button{min-height:34px;padding:7px 9px;font-size:11px}
.dashboard33-page .dashboard25-plot-scroll{margin-bottom:0}
.dashboard33-averages{padding:0!important;overflow:hidden}
.dashboard33-averages>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:15px 18px;list-style:none}
.dashboard33-averages>summary::-webkit-details-marker{display:none}
.dashboard33-averages>summary::after{content:'⌄';font-size:19px;color:var(--theme-muted)}
.dashboard33-averages[open]>summary::after{content:'⌃'}
.dashboard33-averages>summary strong{font-size:16px;color:var(--theme-text)}
.dashboard33-averages>summary span{font-size:11px;color:var(--theme-muted);margin-left:auto}
.dashboard33-average-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;padding:0 18px 12px}
.dashboard33-average-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--theme-border);min-width:0}
.dashboard33-average-line>span{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--theme-muted);min-width:0}
.dashboard33-average-line strong{font-size:15px;color:var(--theme-text);text-align:right;white-space:nowrap}
.dashboard33-average-line small{font-size:10px;font-weight:600}
.dashboard33-averages>.dashboard33-method{padding:0 18px 14px;margin:0}
.dashboard33-page .dashboard25-balance{padding:17px 18px}
.dashboard33-page .dashboard25-balance .dashboard25-section-head{margin-bottom:12px}
.dashboard33-page .dashboard25-balance-number{font-size:clamp(22px,2.6vw,31px)}
@media(max-width:760px){
 .dashboard33-page{gap:12px!important}
 .dashboard33-page .dashboard25-intro{flex-direction:row;align-items:center}
 .dashboard33-page .dashboard25-intro .btn{width:auto;min-height:39px;padding:8px 12px;font-size:12px;white-space:nowrap}
 .dashboard33-page .dashboard25-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .dashboard33-page .dashboard25-kpi{padding:11px 10px!important;gap:7px!important;min-height:0!important}
 .dashboard33-page .dashboard25-kpi-head{font-size:11px;min-height:30px;align-items:flex-start}
 .dashboard33-page .dashboard25-kpi-head svg{width:16px;height:16px}
 .dashboard33-page .dashboard25-kpi-value{font-size:clamp(18px,5.1vw,28px)}
 .dashboard33-page .dashboard25-kpi-value span{font-size:10px}
 .dashboard33-page .diagnosis33-compact{padding:14px 15px}
 .dashboard33-page .diagnosis33-compact h3{font-size:clamp(18px,5vw,23px)}
 .dashboard33-page .dashboard25-evolution{padding:14px 12px}
 .dashboard33-page .dashboard25-balance{padding:14px 12px}
 .dashboard33-average-grid{grid-template-columns:1fr;padding:0 15px 10px}
 .dashboard33-balance-strip{padding:10px 12px}
 .dashboard33-balance-strip>div{gap:3px 9px}
 .dashboard33-balance-strip span{font-size:10px}
 .dashboard33-balance-strip strong{font-size:18px}
 .dashboard33-balance-strip a{font-size:10px}
 .diagnosis33-bottom{align-items:stretch}
 .diagnosis33-bottom .diagnosis30-primary{width:auto;min-width:0}
 .diagnosis33-more summary{text-align:left}
}
@media(max-width:350px){
 .dashboard33-page .dashboard25-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .dashboard33-page .dashboard25-kpi{padding:10px 8px!important}
 .dashboard33-page .dashboard25-kpi-head{font-size:10px}
 .dashboard33-page .dashboard25-kpi-value{font-size:17px}
 .dashboard33-page .dashboard25-intro .btn{padding:8px 9px;font-size:11px}
 .dashboard33-balance-strip{flex-wrap:wrap}
}


/* E33/E34 R3: saldo de créditos calculado, com fonte e competência explícitas. */
.dashboard33-balance-quick{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface);color:var(--theme-text)!important;text-decoration:none!important;min-width:0}
.dashboard33-balance-quick>span:first-child{font-size:12px;font-weight:700;color:var(--theme-muted)}
.dashboard33-balance-quick strong{font-size:clamp(17px,2.4vw,22px);font-variant-numeric:tabular-nums;color:var(--theme-primary)}
.dashboard33-balance-arrow{margin-left:auto;color:var(--theme-muted)}
.dashboard33-balance-quick:focus-visible{outline:3px solid var(--theme-focus);outline-offset:2px}
.dashboard33-period-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;color:var(--theme-muted)}
.dashboard33-period-bar .dashboard25-period{max-width:205px}
.dashboard33-period-bar .dashboard25-period button{min-height:36px;padding:7px 12px}
.dashboard33-page #dashboard33-balance-detail{scroll-margin-top:20px}
@media(max-width:760px){.dashboard33-balance-quick{padding:9px 12px}.dashboard33-period-bar{justify-content:space-between}}

/* Compactação do cabeçalho apenas na Visão geral. */
body:has(.dashboard33-page) .topbar{padding-top:13px;padding-bottom:13px}
body:has(.dashboard33-page) .topbar p{font-size:12px;line-height:1.3;margin-top:2px}
body:has(.dashboard33-page) .topbar h1{font-size:clamp(23px,2.6vw,31px)}
@media(max-width:760px){body:has(.dashboard33-page) .topbar{padding-top:10px;padding-bottom:10px}body:has(.dashboard33-page) .topbar .eyebrow{font-size:9px}body:has(.dashboard33-page) .topbar h1{font-size:25px}body:has(.dashboard33-page) .topbar p{font-size:11px}}
/* E33 — saldo resumido antecipado, mantendo a conciliação completa abaixo. */
.dashboard33-balance-quick{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 15px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface);color:var(--theme-text)!important;text-decoration:none!important}
.dashboard33-balance-quick>span:first-child{font-size:12px;font-weight:650;color:var(--theme-muted)}
.dashboard33-balance-quick strong{font-size:clamp(17px,2.3vw,22px);font-variant-numeric:tabular-nums;color:var(--theme-primary);white-space:nowrap}
.dashboard33-balance-quick .unit{font-size:11px;font-weight:600}
.dashboard33-balance-arrow{margin-left:auto;color:var(--theme-primary);font-size:16px}
.dashboard33-balance-quick:focus-visible{outline:3px solid var(--theme-focus);outline-offset:2px}
@media(max-width:400px){.dashboard33-balance-quick{padding:10px 12px}.dashboard33-balance-quick>span:first-child{font-size:11px}.dashboard33-balance-quick strong{font-size:17px}}

/* E34 — aviso antifraude compacto, responsivo e sem bloquear a interface. */
.security34-footer{margin:22px 0 8px;padding:12px 14px;border:1px solid var(--theme-border,#345064);border-radius:12px;background:var(--theme-surface,#192b3a);color:var(--theme-muted,#b0c5d3);font-size:11px;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.security34-line{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px;color:var(--theme-text,#f0f7fc)}
.security34-line svg{flex:none;color:var(--theme-primary,#55bb96)}
.security34-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:5px}
.security34-links a{color:var(--theme-primary,#55bb96);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.login-right>.security34-footer{margin:10px clamp(12px,3vw,35px) 20px;max-width:480px}
.diagnosis34-action .diagnosis34-scenario{font-size:11px;line-height:1.4;margin:6px 0;color:inherit;opacity:.92}
.diagnosis34-lead-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:9px 0;font-size:12px}
.diagnosis34-lead-label select{min-height:36px;padding:6px 10px;border-radius:8px;border:1px solid #b7c6cc;background:#fff;color:#183448;font:inherit}
.diagnosis34-action .diagnosis33-more[open]{flex-basis:100%}
@media(max-width:760px){.security34-footer{margin:15px 0 4px;padding:10px 11px;font-size:10.5px}.login-right>.security34-footer{margin:8px 14px 16px}.diagnosis34-action .diagnosis33-more[open]{min-width:100%}}
/* E34: o rodapé do login deve ficar ABAIXO do formulário, nunca em coluna lateral. */
.login-right{flex-direction:column}
.login-right>.security34-footer{width:100%;max-width:400px;margin:16px 0 0}


/* E34 R2 — ultimo ciclo e media mensal visiveis simultaneamente, sem novos cards. */
.dashboard33-page .dashboard25-kpi{gap:7px!important}
.dashboard34-mean{border-top:1px solid var(--energy-line,rgba(255,255,255,.26));padding-top:8px;margin-top:2px;display:flex;flex-direction:column;gap:3px;min-width:0;color:var(--energy-text)}
.dashboard34-mean-label{font-size:10px;font-weight:700;color:var(--energy-muted);line-height:1.25}
.dashboard34-mean-number{font-size:clamp(14px,1.55vw,19px);font-weight:800;line-height:1.22;letter-spacing:-.02em;white-space:normal;overflow-wrap:anywhere;color:var(--energy-text);font-variant-numeric:tabular-nums}
.dashboard34-mean-number small{font-size:10px;font-weight:600;color:var(--energy-muted);white-space:nowrap}
.dashboard34-mean-number.is-empty{opacity:.65}
.dashboard34-averages-info{padding:11px 16px!important}
.dashboard34-averages-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.dashboard34-averages-heading strong{font-size:13px;color:var(--theme-text)}
.dashboard34-averages-heading span{font-size:11px;color:var(--theme-muted)}
.dashboard34-averages-info .dashboard33-method{margin-top:5px}
@media(max-width:760px){
 .dashboard33-page .dashboard25-kpi{padding:11px 10px!important;gap:6px!important}
 .dashboard34-mean{padding-top:6px}
 .dashboard34-mean-number{font-size:clamp(13px,3.9vw,17px)}
 .dashboard34-mean-number small{font-size:9px}
 .dashboard34-averages-info{padding:9px 12px!important}
 .dashboard34-averages-heading span{font-size:10px}
}
@media(max-width:350px){.dashboard34-mean-number{font-size:13px}.dashboard34-mean-label{font-size:9px}.dashboard34-mean-number small{font-size:9px}}

/* E34 R3: nomenclatura de créditos sem confundir saldo estimado com saldo oficial. */
.dashboard33-balance-quick .dashboard34-r3-balance-label{font-size:12px;font-weight:750;color:var(--theme-muted);flex-shrink:0}
.dashboard33-balance-quick .dashboard34-r3-balance-hint{font-size:11px;line-height:1.35;color:var(--theme-muted);font-weight:500;min-width:0}
.dashboard33-balance-quick .dashboard33-balance-arrow{flex-shrink:0}
@media(max-width:760px){
 .dashboard33-balance-quick{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 9px;align-items:center}
 .dashboard33-balance-quick .dashboard34-r3-balance-label{grid-column:1;font-size:12px}
 .dashboard33-balance-quick strong{grid-column:2;grid-row:1}
 .dashboard33-balance-quick .dashboard34-r3-balance-hint{grid-column:1 / 3;grid-row:2;font-size:10px}
 .dashboard33-balance-quick .dashboard33-balance-arrow{grid-column:3;grid-row:1 / 3}
}
@media(max-width:360px){.dashboard33-balance-quick{grid-template-columns:1fr auto}.dashboard33-balance-quick .dashboard34-r3-balance-label{grid-column:1}.dashboard33-balance-quick strong{grid-column:1;grid-row:2}.dashboard33-balance-quick .dashboard34-r3-balance-hint{grid-column:1;grid-row:3}.dashboard33-balance-quick .dashboard33-balance-arrow{grid-column:2;grid-row:1 / 4}}

/* Execução 35 — descoberta de faturas, sem ampliar os cards principais. */
.bill-recovery35{margin:12px 0 18px;padding:15px 16px;border:1px solid var(--theme-border,rgba(125,148,160,.28));background:var(--theme-elevated,rgba(125,148,160,.07));border-radius:14px;min-width:0;}
.bill-recovery35-title{display:flex;align-items:center;gap:9px;margin-bottom:7px;color:var(--theme-text,#eaf1f3);font-size:.94rem}
.bill-recovery35-title svg{flex-shrink:0}
.bill-recovery35 p{font-size:.87rem;line-height:1.55;margin:3px 0 12px;opacity:.94}
.bill-recovery35-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.bill-recovery35-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;max-width:100%;white-space:normal;text-align:center}
.bill-recovery35 small{display:block;margin-top:10px;font-size:.74rem;line-height:1.45;opacity:.78;overflow-wrap:anywhere}
#distributor-other35[hidden]{display:none!important}
@media(max-width:520px){.bill-recovery35{padding:13px}.bill-recovery35-actions{flex-direction:column;align-items:stretch}.bill-recovery35-actions .btn{width:100%}}

/* E36: central de notificacoes responsiva */
.notification36-grid{display:grid;grid-template-columns:1fr;gap:14px;max-width:820px}
.notification36-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--border,rgba(130,140,150,.22))}
.notification36-setting label{flex:1;cursor:pointer}
.notification36-setting input[type=checkbox]{width:20px;height:20px;flex:none}
.notification36-help{font-size:.86rem;opacity:.8;line-height:1.5}
.notification36-history{display:grid;gap:9px;margin-top:10px}
.notification36-event{padding:12px;border:1px solid var(--border,rgba(130,140,150,.22));border-radius:10px}
.notification36-event small{display:block;opacity:.7;margin-top:4px}
.notification36-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:540px){.notification36-actions>*{width:100%}}

/* R15: a consulta é ajuda secundária, nunca interrompe o formulário. */
.bill-recovery15-compact{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;margin:14px 0 8px;font-size:.85rem;line-height:1.4}
.bill-recovery15-compact>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bill-recovery15-compact svg{width:16px;height:16px;flex-shrink:0}
.bill-recovery15-action{display:inline-flex;align-items:center;flex-shrink:0;background:transparent;border:0;color:var(--theme-accent,#4ed8ae);font:inherit;font-weight:700;text-decoration:none;cursor:pointer;padding:5px}
@media(max-width:650px){.bill-recovery15-compact{align-items:flex-start;flex-direction:column;gap:3px}.bill-recovery15-action{padding-left:0}}

.energy-trend15{padding:15px 18px;margin:10px 0 15px}
.energy-trend15 strong{display:flex;align-items:center;gap:8px}
.energy-trend15 p{margin:7px 0;line-height:1.55}
.energy-trend15 small{opacity:.8}

/* E42: consistent dashboard visual hierarchy and accessible contrast */
.dashboard33-balance-quick{display:flex!important;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;background:linear-gradient(115deg,#075c58,#107c78)!important;color:#fff!important;border:1px solid #3ab7a8!important;padding:1.3rem 1.45rem!important;border-radius:1.15rem!important;box-shadow:0 10px 30px rgba(0,0,0,.17)}
.dashboard33-balance-quick .dashboard34-r3-balance-label{flex-basis:100%;font-size:.93rem!important;color:#e5fffa!important;font-weight:650}
.dashboard33-balance-quick strong{font-size:clamp(2.3rem,8vw,4.2rem)!important;line-height:1.1!important;color:white!important;letter-spacing:-.035em}
.dashboard33-balance-quick .dashboard34-r3-balance-hint{flex-basis:100%;font-size:.85rem!important;color:#e2f7f3!important}
.dashboard33-balance-quick .dashboard33-balance-arrow{margin-left:auto;color:white!important}
/* Historical detail cards must remain legible in both themes */
.cycle-details .detail-card,.cycle-detail .detail-card,.history-detail-card,.cycle-details article{color:var(--text-primary,#f5f8fa)}
[data-theme="dark"] .history-detail-card,[data-theme="dark"] .cycle-details article{background:#203746!important;color:#f4f8fb!important}
[data-theme="dark"] .history-detail-card *,[data-theme="dark"] .cycle-details article *{color:inherit}
/* Compact typography for notification settings */
.notifications-page .field,.notifications-page label{line-height:1.45}
@media(max-width:700px){.dashboard33-balance-quick{padding:1.1rem!important}.dashboard33-balance-quick strong{font-size:2.65rem!important}}

/* E43: contraste explícito nos detalhes de ciclos para temas claro e escuro. */
.history-expanded-content .cycle-detail-metric{background:#f5fafb;color:#123543;border:1px solid #c6d8df}
.history-expanded-content .cycle-detail-metric>span{color:#355869;font-weight:650}
.history-expanded-content .cycle-detail-metric>strong{color:#0b2938}
.history-expanded-content .cycle-detail-metric>strong .unit,.history-expanded-content .cycle-detail-metric>small{color:#456473}
[data-theme="dark"] .history-expanded-content .cycle-detail-metric,html.dark .history-expanded-content .cycle-detail-metric,body.dark .history-expanded-content .cycle-detail-metric{background:#203746;border-color:#456373;color:#f0f7fa}
[data-theme="dark"] .history-expanded-content .cycle-detail-metric>span,[data-theme="dark"] .history-expanded-content .cycle-detail-metric>small,[data-theme="dark"] .history-expanded-content .cycle-detail-metric .unit,html.dark .history-expanded-content .cycle-detail-metric>span,html.dark .history-expanded-content .cycle-detail-metric>small,html.dark .history-expanded-content .cycle-detail-metric .unit{color:#c5dbe6}
[data-theme="dark"] .history-expanded-content .cycle-detail-metric>strong,html.dark .history-expanded-content .cycle-detail-metric>strong,body.dark .history-expanded-content .cycle-detail-metric>strong{color:#ffffff}
[data-theme="dark"] .history-expanded-head h3,[data-theme="dark"] .history-expanded-head p{color:#e5f0f5}
/* E43 final: root selector matches the actual theme implementation. */
:root[data-theme="dark"] .history-expanded-content .cycle-detail-metric{background:#203746!important;border-color:#456373!important;color:#f0f7fa!important}
:root[data-theme="dark"] .history-expanded-content .cycle-detail-metric>span,:root[data-theme="dark"] .history-expanded-content .cycle-detail-metric>small,:root[data-theme="dark"] .history-expanded-content .cycle-detail-metric .unit{color:#c5dbe6!important}
:root[data-theme="dark"] .history-expanded-content .cycle-detail-metric>strong{color:#fff!important}
:root[data-theme="dark"] .history-expanded-head h3,:root[data-theme="dark"] .history-expanded-head p{color:#e5f0f5!important}

/* E44: usina na unidade e produtividade legível em qualquer tela */
.solar44-choice{padding:1rem;border:1px solid var(--border, #64748b);border-radius:14px;display:grid;gap:.65rem;margin:1rem 0}.solar44-choice .check-field{margin:0}.solar44-cycle-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:16px 0}.solar44-cycle{border:1px solid var(--border, #64748b);border-radius:14px;padding:16px;background:var(--surface,rgba(127,127,127,.08));min-width:0}.solar44-cycle h4{margin:0 0 12px;font-size:1.08rem}.solar44-cycle div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:8px 0;flex-wrap:wrap}.solar44-cycle span{opacity:.85}.solar44-cycle strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}@media(max-width:480px){.solar44-cycle-list{grid-template-columns:1fr}}

/* E48: numeros concretos, comparacao climatica com procedencia explicita. */
.solar48-panel .solar28-settings-title{margin-bottom:12px}
.solar48-cycle-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr))}
.solar48-cycle{display:flex;flex-direction:column;gap:8px}
.solar48-cycle h4{margin-bottom:0}
.solar48-period{font-size:.82rem;color:var(--theme-muted);margin:0 0 5px}
.solar48-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.solar48-cycle .solar48-metric{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:6px;padding:14px 7px;background:var(--theme-card,rgba(127,127,127,.08));border:1px solid var(--border,#64748b);border-radius:11px;margin:0;min-width:0}
.solar48-metric>span{font-size:.8rem;color:var(--theme-muted)}
.solar48-metric>strong{font-size:clamp(1.05rem,2.5vw,1.65rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}
.solar48-metric small{font-size:.65em;font-weight:500}
.solar48-status{font-weight:700;font-size:.89rem;margin:5px 0;line-height:1.5}
.solar48-within,.solar48-above{color:var(--theme-text)}
.solar48-below{color:var(--theme-warning,#f4b562)}
.solar48-unavailable{color:var(--theme-muted)}
.solar48-source,.solar48-steps{font-size:.8rem;color:var(--theme-muted);margin:3px 0;line-height:1.5}
.solar48-method{margin-top:14px;font-size:.84rem;line-height:1.6}
.solar48-method summary{cursor:pointer;color:var(--theme-muted);font-weight:600}
.solar48-method p{margin:8px 0}
@media(max-width:480px){.solar48-cycle-list{grid-template-columns:1fr}.solar48-metric>strong{font-size:clamp(1.1rem,5.2vw,1.5rem)}}

/* ==========================================================
 * E49 — HUMAN-CENTERED DASHBOARD & HISTORY (mobile-first)
 * Regra: numero principal domina; explicacoes ficam recolhiveis.
 * ========================================================== */
.dashboard33-page .dashboard25-kpis{gap:clamp(9px,1.3vw,15px)}
.dashboard33-page .dashboard25-kpi.e49-kpi{min-width:0;min-height:175px!important;display:flex;align-items:center;justify-content:center;gap:10px!important;padding:clamp(12px,1.6vw,22px)!important;text-align:center;border-radius:18px!important}
.dashboard33-page .e49-kpi .dashboard25-kpi-head{justify-content:center;align-items:center;min-height:0;gap:8px;font-size:clamp(12px,1.25vw,15px);text-align:center;font-weight:800}
.dashboard33-page .e49-kpi .dashboard25-kpi-head svg{flex:none;width:19px;height:19px}
.dashboard33-page .e49-kpi .dashboard25-kpi-value{display:block;width:100%;font-size:clamp(27px,3.3vw,48px)!important;line-height:1.08;letter-spacing:-.045em;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:normal;white-space:nowrap}
.dashboard33-page .e49-kpi .dashboard25-kpi-value span{display:block;margin-top:7px;font-size:clamp(11px,1.1vw,14px);font-weight:650;letter-spacing:0}
.e49-kpi-average{width:100%;margin-top:auto;font-size:11px;color:var(--energy-muted);text-align:center}
.e49-kpi-average summary{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:11px;font-weight:650;padding:4px 6px;list-style:none}
.e49-kpi-average summary::before{content:'▸';font-size:11px}
.e49-kpi-average[open] summary::before{content:'▾'}
.e49-kpi-average .dashboard34-mean{border-top:1px solid var(--energy-line);margin-top:7px;padding-top:8px;align-items:center}
.e49-kpi-average .dashboard34-mean-number{font-size:clamp(14px,1.7vw,19px)}
.e49-value-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.e49-value-grid .dashboard33-balance-quick,.e49-value-grid .e49-economy-future{min-width:0;min-height:176px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:18px 14px!important;border-radius:17px!important}
.e49-value-grid .dashboard33-balance-quick .dashboard34-r3-balance-label{flex-basis:auto;text-align:center;font-size:clamp(12px,1.2vw,15px)!important}
.e49-value-grid .dashboard33-balance-quick strong{font-size:clamp(30px,3.5vw,49px)!important;line-height:1.05;white-space:nowrap;letter-spacing:-.05em}
.e49-value-grid .dashboard33-balance-quick strong .unit{display:block;font-size:.3em!important;margin-top:8px;letter-spacing:0}
.e49-value-grid .dashboard33-balance-quick .dashboard34-r3-balance-hint{flex-basis:auto;text-align:center;font-size:11px!important;line-height:1.4}
.e49-value-grid .dashboard33-balance-quick .dashboard33-balance-arrow{margin:0;font-size:16px}
.e49-economy-future{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text)}
.e49-economy-future>span{font-size:clamp(12px,1.2vw,15px);font-weight:750}
.e49-economy-future>strong{font-size:clamp(32px,3.5vw,49px);font-weight:850;line-height:1.1}
.e49-economy-future>strong small{font-size:.32em;font-weight:700}
.e49-economy-future>small{font-size:11px;line-height:1.4;color:var(--theme-muted);max-width:30ch}
/* Historico: 2 indicadores de energia principais, independente dos detalhes. */
.history-card .e49-history-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 7px}
.history-card .e49-history-primary .e49-history-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:132px;padding:13px 8px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-elevated);text-align:center;gap:6px}
.e49-history-metric>span{font-size:clamp(11px,1.4vw,14px);line-height:1.3;font-weight:750;color:var(--theme-text)}
.e49-history-metric>strong{font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(25px,3vw,39px);font-weight:850;letter-spacing:-.045em;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--theme-text)}
.e49-history-metric>small{font-size:11px;color:var(--theme-muted)}
.e49-history-comparison{font-size:12px;line-height:1.5;color:var(--theme-muted);text-align:center;margin:6px 0 12px}
.e49-history-cycle-tag{border:1px solid var(--theme-border);border-radius:20px;padding:5px 9px;color:var(--theme-muted);font-size:11px;font-weight:750}
.history-expanded-content .cycle-detail-metric{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:116px}
.history-expanded-content .cycle-detail-metric>strong{font-size:clamp(21px,2.4vw,29px);font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
.history-expanded-content .cycle-detail-metric>strong .unit{font-size:.55em}
.history-expanded-content .cycle-detail-metric>span{font-size:12px;line-height:1.35}
/* Grafico: apenas duas series, selecao direta e texto interpretativo. */
.e49-evolution .dashboard25-section-head p{font-size:12px;color:var(--theme-muted)}
.e49-evolution .dashboard25-series{gap:8px}
.e49-evolution .dashboard25-series-button{border-color:var(--theme-border);background:var(--theme-elevated);color:var(--theme-text)}
.e49-evolution .dashboard25-series-button.is-active{outline:1px solid var(--theme-primary)}
.e49-chart-plot{align-items:end;min-height:206px;min-width:max(100%,calc(var(--months)*96px));padding-bottom:5px}
.e49-chart-month{min-width:0;display:flex;align-items:stretch}
.e49-chart-select{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px;width:100%;padding:8px 2px 6px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--theme-muted);cursor:pointer;font:inherit}
.e49-chart-select .dashboard25-bar-cluster{height:163px;gap:4px}
.e49-chart-select .dashboard25-bar{width:clamp(8px,30%,24px);max-width:24px}
.e49-chart-select .dashboard25-bar.is-missing{height:2px}
.e49-chart-select small{font-size:10px;white-space:nowrap}
.e49-chart-select.is-selected{background:var(--theme-elevated);border-color:var(--theme-border)}
.e49-chart-select.is-selected small{font-weight:850;color:var(--theme-text)}
.e49-chart-select:focus-visible{outline:3px solid var(--theme-focus);outline-offset:2px}
.e49-chart-insight{padding:12px 14px;margin:14px 0 5px;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:12px;color:var(--theme-text)}
.e49-chart-insight strong{display:block;font-size:13px;line-height:1.5;font-weight:800}
.e49-chart-insight p{font-size:12px;margin:7px 0;line-height:1.5}
.e49-chart-insight small{display:block;font-size:10px;color:var(--theme-muted);line-height:1.4}
/* Lançamento: ajuda padronizada, menor, somente após os dois campos. */
.e49-entry-help{margin:7px 0 0;font-size:11px;line-height:1.55;color:var(--theme-muted)}
.e49-entry-help summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:750;padding:6px 2px;list-style:none}
.e49-entry-help summary::before{content:'▸'}
.e49-entry-help[open] summary::before{content:'▾'}
.e49-entry-help-body{margin-top:6px;padding:10px 12px;background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:10px}
.e49-entry-help-body p{font-size:11px;line-height:1.55;margin:6px 0;color:var(--theme-muted)}
.e49-entry-help-body strong{color:var(--theme-text)}
/* Inteligencia regional: fonte em 1 linha; detalhes tecnicos recolhiveis. */
.e49-region-summary{padding:4px 0}
.e49-region-value{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:10px 0}
.e49-region-value strong{font-size:clamp(26px,3vw,38px);font-variant-numeric:tabular-nums;color:var(--theme-text)}
.e49-region-value span{font-size:12px;color:var(--theme-muted)}
.e49-region-source{font-size:11px;line-height:1.5;color:var(--theme-muted);margin:10px 0 0}
.e49-region-method{margin-top:10px;font-size:11px;color:var(--theme-muted)}
.e49-region-method summary{cursor:pointer;font-weight:750}
.e49-region-method p{font-size:11px;line-height:1.55;margin:9px 0}
@media(max-width:760px){
 .dashboard33-page .dashboard25-kpi.e49-kpi{min-height:165px!important;padding:12px 8px!important}
 .dashboard33-page .e49-kpi .dashboard25-kpi-value{font-size:clamp(25px,6.7vw,36px)!important}
 .dashboard33-page .e49-kpi .dashboard25-kpi-head{font-size:12px}
 .e49-value-grid{gap:9px}
 .e49-value-grid .dashboard33-balance-quick,.e49-value-grid .e49-economy-future{min-height:169px;padding:14px 9px!important}
 .e49-value-grid .dashboard33-balance-quick strong{font-size:clamp(27px,7vw,39px)!important}
 .history-card .e49-history-primary .e49-history-metric{min-height:130px}
 .e49-history-metric>strong{font-size:clamp(25px,7vw,35px)}
}
@media(max-width:390px){
 .dashboard33-page .dashboard25-kpi.e49-kpi{min-height:152px!important;padding:11px 6px!important}
 .dashboard33-page .e49-kpi .dashboard25-kpi-value{font-size:clamp(23px,6.1vw,27px)!important}
 .dashboard33-page .e49-kpi .dashboard25-kpi-head{font-size:11px}
 .e49-value-grid .dashboard33-balance-quick strong{font-size:clamp(24px,6.8vw,31px)!important}
 .history-card .e49-history-primary .e49-history-metric{padding:11px 5px;min-height:119px}
 .e49-history-metric>strong{font-size:clamp(23px,6.5vw,29px)}
 .e49-chart-plot{min-width:590px}
}
@media(prefers-reduced-motion:reduce){.e49-chart-select .dashboard25-bar{transition:none}}
/* Nota de medias ocupa uma linha, sem card vazio. */
.dashboard33-page .e49-average-method{display:block!important;padding:0!important;min-height:0!important;border:1px solid var(--theme-border);border-radius:12px;overflow:hidden;background:var(--theme-surface)}
.e49-average-method>summary{padding:11px 14px;cursor:pointer;color:var(--theme-muted);font-size:11px;font-weight:750;list-style:none}
.e49-average-method>summary::before{content:'▸';margin-right:6px}
.e49-average-method[open]>summary::before{content:'▾'}
.e49-average-method-content{padding:0 14px 12px;color:var(--theme-muted);font-size:11px;line-height:1.55}
.e49-average-method-content p,.e49-average-method-content li{font-size:11px;line-height:1.5;margin:5px 0}

/* E50 — ANEEL TARIFF INTELLIGENCE (read-only, sem valores inventados) */
.e50-tariff-card{margin-top:1rem}
.e50-tariff-card .panel-header{margin-bottom:.8rem}
.e50-tariff-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.e50-tariff-prices>div{display:flex;flex-direction:column;gap:.35rem;padding:1rem;border:1px solid var(--border,rgba(130,155,175,.25));border-radius:12px;text-align:center;min-width:0}
.e50-tariff-prices span{font-size:.8rem;color:var(--text-muted,#91a1b2)}
.e50-tariff-prices strong{font-size:clamp(1.05rem,2vw,1.55rem);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.e50-tariff-prices small{font-size:.75rem}
.e50-tariff-card p,.e50-history-tariff p{font-size:.84rem;line-height:1.55}
.e50-tariff-warning{margin-top:.8rem;color:var(--text-muted,#91a1b2)}
.e50-tariff-method,.e50-history-tariff{font-size:.83rem;margin-top:.8rem;border-top:1px solid var(--border,rgba(130,155,175,.25));padding-top:.7rem}
.e50-tariff-method summary,.e50-history-tariff summary{cursor:pointer;font-weight:600}
.e50-tariff-unavailable{padding:.7rem;border-radius:8px;border:1px dashed var(--border,rgba(130,155,175,.25))}
.e50-history-tariff-row{display:flex;justify-content:space-between;gap:.6rem;padding:.4rem 0;border-bottom:1px solid var(--border,rgba(130,155,175,.15))}
.e50-history-tariff-row strong{font-variant-numeric:tabular-nums;text-align:right}
.e50-history-tariff small{display:block;margin-top:.5rem;opacity:.8}
@media(max-width:580px){.e50-tariff-prices{grid-template-columns:1fr}.e50-tariff-prices>div{padding:.75rem}.e50-history-tariff-row{flex-direction:column;gap:.15rem}.e50-history-tariff-row strong{text-align:left}}

/* E51 — SOLAR SAVINGS & COUNTERFACTUAL BILLING. Financeiro claro, não promocional. */
.e51-economy-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.45rem;min-height:165px}
.e51-economy-card>strong{font-size:clamp(1.45rem,3.2vw,2.3rem);line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.e51-economy-card>small{max-width:34ch;line-height:1.5}
.e51-card-link{background:none;border:0;color:var(--accent,#42c9bc);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:.45rem;min-height:42px}
.e51-card-link:focus-visible,.e51-history summary:focus-visible,.e51-financial-entry summary:focus-visible{outline:3px solid var(--accent,#42c9bc);outline-offset:3px;border-radius:4px}
.e51-dashboard-summary{display:grid;gap:.7rem}
.e51-dashboard-summary>p{margin:0;line-height:1.55}
.e51-dashboard-summary details,.e51-history,.e51-financial-entry{border:1px solid var(--border,rgba(130,150,170,.24));border-radius:12px;background:var(--surface-2,rgba(128,146,166,.07));padding:.8rem 1rem;margin:.6rem 0}
.e51-dashboard-summary summary,.e51-history>summary,.e51-financial-entry>summary{cursor:pointer;font-weight:650;line-height:1.5}
.e51-history-content{display:grid;gap:.65rem;padding-top:.7rem}
.e51-history-content>p{margin:.1rem 0;line-height:1.55}
.e51-history-content details{padding:.55rem .7rem;border-radius:9px;border:1px solid var(--border,rgba(130,150,170,.24))}
.e51-history-content details>p{margin:.65rem 0}
.e51-financial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.e51-financial-grid>div{display:grid;gap:.3rem;padding:.7rem;border:1px solid var(--border,rgba(130,150,170,.24));border-radius:10px;min-width:0}
.e51-financial-grid span{font-size:.83rem;line-height:1.35;opacity:.83}
.e51-financial-grid strong{font-size:clamp(1rem,2.5vw,1.25rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.e51-financial-entry{margin:1rem 0}
.e51-financial-entry>p{line-height:1.55;margin:.7rem 0}
.e51-financial-entry .entry26-fields{margin:.75rem 0}
.e51-field-help{font-size:.88rem;opacity:.9}
@media(max-width:620px){.e51-financial-grid{grid-template-columns:1fr}.e51-economy-card>strong{font-size:clamp(1.5rem,8vw,2.1rem)}.e51-history,.e51-financial-entry{padding:.7rem}}

/* E52 — SOLAR INVESTMENT & INFLATION LEDGER */
.e52-page{max-width:1100px}.e52-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.e52-summary-grid>div{display:flex;flex-direction:column;gap:.4rem;border:1px solid var(--border,rgba(128,128,128,.25));border-radius:12px;padding:1rem;min-width:0}.e52-summary-grid strong{font-size:clamp(1.2rem,3vw,1.9rem);overflow-wrap:anywhere}.e52-summary-grid small,.e52-method-note{opacity:.8;line-height:1.5}.e52-ledger-list{display:grid;gap:.7rem;margin-top:1rem}.e52-ledger-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border,rgba(128,128,128,.25));padding:.85rem 0}.e52-ledger-row>div{min-width:0}.e52-ledger-row strong{display:block;overflow-wrap:anywhere}.e52-ledger-row small{display:block;opacity:.75;margin-top:.35rem}.e52-ledger-row p{margin:.4rem 0 0}.e52-method{margin-bottom:1rem}.e52-method summary{cursor:pointer}.e52-dashboard-shortcut{margin-top:1rem}@media(max-width:600px){.e52-summary-grid{grid-template-columns:1fr}.e52-ledger-row{flex-direction:column}.e52-ledger-row button{align-self:flex-start}}

/* E53 — SOLAR PAYBACK ENGINE */
.e53-page{max-width:1100px}.e53-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.e53-result{display:flex;flex-direction:column;gap:.6rem;padding:1.15rem;border:1px solid var(--border,rgba(128,128,128,.3));border-radius:14px;min-width:0}.e53-result>span{font-size:.85rem;font-weight:700;opacity:.85}.e53-result>strong{font-size:clamp(1.05rem,2.6vw,1.45rem);overflow-wrap:anywhere}.e53-result small,.e53-note{line-height:1.6;opacity:.8}.e53-method summary{cursor:pointer;font-weight:700}.e53-dashboard-shortcut{margin-top:1rem}@media(max-width:650px){.e53-grid{grid-template-columns:1fr}}

/* E54 R3 — UI HOTFIX: médias 12m sempre visíveis; moeda sem quebra; detalhes sem duplicidade. */
.dashboard33-page .e49-kpi .e54-kpi-average-visible{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:4px;width:100%;margin-top:auto;padding:9px 3px 2px;
 border-top:1px solid rgba(255,255,255,.18);text-align:center;min-width:0;
}
.dashboard33-page .e54-average-caption{font-size:clamp(10px,1vw,12px);font-weight:700;line-height:1.3;color:inherit;opacity:.82}
.dashboard33-page .e54-kpi-average-visible .dashboard34-mean-number{
 display:block;max-width:100%;font-size:clamp(14px,1.6vw,19px)!important;
 font-weight:800;line-height:1.25;letter-spacing:-.015em;color:inherit;overflow-wrap:anywhere;
}
.dashboard33-page .e54-kpi-average-visible .dashboard34-mean-number small{font-size:.7em;font-weight:600;white-space:nowrap}
.e49-value-grid .e49-economy-future>strong.e54-money-value{
 display:block;max-width:100%;width:100%;min-width:0;
 font-size:clamp(22px,2.2vw,32px)!important;
 font-weight:850;line-height:1.15;letter-spacing:-.04em;
 white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums;
}
.e49-value-grid .e49-economy-future>strong.e54-money-value.e54-money-large{font-size:clamp(20px,1.9vw,27px)!important}
.e49-value-grid .e49-economy-future>strong.e54-money-value.e54-money-million{font-size:clamp(17px,1.7vw,23px)!important}
@media(max-width:760px){
 .dashboard33-page .e54-kpi-average-visible .dashboard34-mean-number{font-size:clamp(13px,3.5vw,16px)!important}
 .e49-value-grid .e49-economy-future>strong.e54-money-value{font-size:clamp(19px,5.0vw,24px)!important}
 .e49-value-grid .e49-economy-future>strong.e54-money-value.e54-money-large{font-size:clamp(17px,4.4vw,21px)!important}
 .e49-value-grid .e49-economy-future>strong.e54-money-value.e54-money-million{font-size:clamp(14px,3.8vw,18px)!important}
}
@media(max-width:390px){
 .e49-value-grid .e49-economy-future>strong.e54-money-value.e54-money-million{font-size:14px!important}
 .dashboard33-page .e49-kpi .e54-kpi-average-visible{padding-top:7px}
}

/* E54 R4 — Retorno solar: leitura executiva, gráfico acessível e cenários transparentes. */
.e54r4-page{display:grid;gap:14px;max-width:1050px;margin-inline:auto}
.e54r4-page>.panel{margin:0}
.e54r4-hero{padding:clamp(16px,3.5vw,28px)!important;background:linear-gradient(140deg,rgba(26,124,104,.23),rgba(34,64,86,.1) 65%,transparent)!important;border:1px solid rgba(71,192,155,.34)!important}
.e54r4-hero-top,.e54r4-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.e54r4-hero h2{font-size:clamp(21px,4vw,30px);letter-spacing:-.025em;line-height:1.15;margin:7px 0 0}
.e54r4-status{display:inline-flex;align-items:center;min-height:32px;border-radius:99px;padding:6px 11px;font-size:12px;font-weight:800;line-height:1.25;max-width:100%;white-space:normal}
.e54r4-status.is-recovered{background:rgba(39,174,124,.19);color:#64dfac;border:1px solid rgba(72,220,157,.35)}
.e54r4-status.is-progress{background:rgba(226,174,73,.15);color:#eac07a;border:1px solid rgba(226,174,73,.35)}
.e54r4-hero-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:25px 0 18px}
.e54r4-hero-money>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.e54r4-hero-money span{font-size:13px;opacity:.82;font-weight:650}
.e54r4-hero-money strong{font-size:clamp(20px,3.3vw,34px);letter-spacing:-.045em;line-height:1.18;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.e54r4-hero-money .e54r4-saving{color:#6fe0b4}
.e54r4-progress-head{display:flex;gap:9px;align-items:baseline;margin:0 0 7px}
.e54r4-progress-head strong{font-size:clamp(25px,4vw,38px);letter-spacing:-.04em}
.e54r4-progress-head span{font-size:13px;opacity:.82}
.e54r4-progress-track{height:12px;border-radius:30px;background:rgba(132,155,169,.25);overflow:hidden}
.e54r4-progress-track>span{display:block;height:100%;border-radius:30px;background:linear-gradient(90deg,#34a889,#71e2b5)}
.e54r4-hero-conclusion{font-size:clamp(14px,2vw,17px);line-height:1.55;font-weight:650;margin:17px 0 6px}
.e54r4-source,.e54r4-chart-foot,.e54r4-muted{font-size:12px;line-height:1.55;opacity:.79;margin:8px 0 0}
.e54r4-chart-panel{padding:clamp(14px,2.8vw,24px)!important}
.e54r4-section-head h3{font-size:clamp(18px,3vw,23px);margin:5px 0 0;line-height:1.2}
.e54r4-toggle{display:flex;align-items:center;gap:3px;border:1px solid var(--theme-border,rgba(142,164,179,.28));border-radius:12px;padding:4px;background:rgba(114,133,150,.1)}
.e54r4-toggle button{background:transparent;color:inherit;border:0;border-radius:9px;padding:9px 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.e54r4-toggle button.active{background:rgba(72,190,157,.2);color:#6fe0b4}
.e54r4-toggle button:disabled{opacity:.4;cursor:not-allowed}
.e54r4-toggle button:focus-visible{outline:2px solid #62d9b3;outline-offset:2px}
.e54r4-legend{display:flex;flex-wrap:wrap;gap:15px;margin:19px 0 4px;font-size:12px;font-weight:650}
.e54r4-legend span{display:inline-flex;align-items:center;gap:7px}
.e54r4-legend i{width:20px;height:4px;border-radius:3px;display:inline-block;background:#e5b45c}
.e54r4-legend i.save{background:#57d5a3}.e54r4-legend i.future{background:repeating-linear-gradient(90deg,#57d5a3 0 4px,transparent 4px 7px)}
.e54r4-chart-wrap{width:100%;overflow:hidden}
.e54r4-chart-wrap svg{display:block;width:100%;height:auto;min-height:185px;max-height:380px;overflow:visible}
.e54r4-chart-grid line{stroke:rgba(132,158,171,.24);stroke-width:1}
.e54r4-chart-grid text,.e54r4-chart-axis text{fill:currentColor;opacity:.65;font-size:11px;font-family:inherit}
.e54r4-line-invest,.e54r4-line-save,.e54r4-line-future{fill:none;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.e54r4-line-invest{stroke:#e5b45c}.e54r4-line-save{stroke:#57d5a3}.e54r4-line-future{stroke:#57d5a3;stroke-dasharray:8 9;opacity:.72}
.e54r4-chart-cross{fill:#57d5a3;stroke:var(--theme-surface,#1c2935);stroke-width:3}
.e54r4-minis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.e54r4-mini{display:flex;flex-direction:column;gap:7px;min-width:0;padding:17px;border-radius:16px;background:var(--theme-surface,rgba(100,128,150,.1));border:1px solid var(--theme-border,rgba(132,160,180,.24))}
.e54r4-mini span{font-size:12px;opacity:.78;font-weight:700}
.e54r4-mini strong{font-size:clamp(17px,2.6vw,25px);font-weight:800;letter-spacing:-.025em;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.e54r4-mini small{font-size:11px;opacity:.72;line-height:1.5}
.e54r4-explain{padding:clamp(16px,2.5vw,22px)!important}
.e54r4-explain>p,.e54r4-advanced p{font-size:13px;line-height:1.65;margin:12px 0}
.e54r4-explain>.btn{margin:6px 0 12px}
.e54r4-advanced{border-top:1px solid var(--theme-border,rgba(132,160,180,.25));margin-top:12px;padding-top:13px}
.e54r4-advanced summary{cursor:pointer;font-weight:750;padding:6px 0}
.e54r4-advanced details{margin:14px 0}
.e54r4-table-scroll{overflow-x:auto;max-height:380px;overflow-y:auto}
.e54r4-table-scroll table{border-collapse:collapse;min-width:570px;width:100%;font-size:12px}
.e54r4-table-scroll th,.e54r4-table-scroll td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--theme-border,rgba(130,155,180,.2))}
@media(max-width:600px){.e54r4-hero-top{flex-direction:column;gap:10px}.e54r4-hero-money{gap:10px}.e54r4-hero-money strong{font-size:clamp(17px,4.5vw,24px)}.e54r4-minis{gap:8px}.e54r4-mini{padding:12px 10px}.e54r4-mini strong{font-size:clamp(15px,4vw,20px)}.e54r4-section-head{gap:11px}.e54r4-toggle button{padding:8px 11px}}
@media(max-width:340px){.e54r4-hero-money{grid-template-columns:1fr}.e54r4-minis{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.e54r4-progress-track>span{transition:none}}

/* E54 R5 — Importacao minimalista em lote, responsiva e acessivel */
.import55-panel{margin:14px 0 20px;padding:clamp(15px,3vw,26px);border:1px solid rgba(36,205,155,.35);background:linear-gradient(130deg,rgba(21,174,138,.09),transparent 60%),var(--surface,#1c3040)}
.import55-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.import55-header h3{font-size:clamp(1.2rem,3.5vw,1.55rem);margin:5px 0 8px}.import55-header p{max-width:63ch;line-height:1.5;color:var(--text-muted,#c3d0dd)}.import55-kicker{color:#59dab5;font-weight:750;font-size:.72rem;letter-spacing:.13em}
.import55-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.import55-upload{cursor:pointer}.import55-guide{border:1px solid rgba(135,163,184,.28);border-radius:13px;margin:12px 0;background:rgba(20,41,57,.16)}.import55-guide>summary{padding:15px 16px;cursor:pointer;font-weight:750;line-height:1.45}.import55-guide-body{padding:0 17px 17px;line-height:1.6}.import55-guide-body ol{padding-left:23px}.import55-guide-body li{margin:9px 0}.import55-guide-body button{margin:10px 0}.import55-prompt{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:270px;overflow:auto;border:1px solid rgba(125,157,177,.3);border-radius:10px;padding:12px;font-size:.76rem;line-height:1.55;background:rgba(0,0,0,.16);user-select:text}.import55-preview{margin-top:15px;border-top:1px solid rgba(142,166,181,.3);padding-top:16px}.import55-scroll{overflow:auto;max-height:360px;border-radius:10px;border:1px solid rgba(140,167,181,.25)}.import55-scroll table{width:100%;font-size:.8rem;border-collapse:collapse;min-width:650px}.import55-scroll th,.import55-scroll td{text-align:left;padding:9px;border-bottom:1px solid rgba(140,167,181,.14)}.import55-warning{color:#e9b66a}.import55-note,.import55-message{line-height:1.5}.import55-consent{display:flex;gap:9px;align-items:flex-start;margin:16px 0;line-height:1.4}.import55-consent input{margin-top:5px;accent-color:#19ba8e}.import55-preview button{margin-right:8px;margin-bottom:8px}.import55-generation-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:10px}.import55-generation-list label{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px;border:1px solid rgba(150,165,178,.3);border-radius:10px}.import55-generation-list label span{display:grid}.import55-generation-list small{opacity:.77;font-size:.75rem}.import55-generation-list input{min-width:0;max-width:108px;width:100%;border:1px solid rgba(153,173,190,.5);background:rgba(80,102,123,.15);color:inherit;border-radius:8px;padding:8px}.import55-pending{margin-top:15px}.import55-pending>p,.import55-pending>form{padding:0 15px 15px}
@media(max-width:480px){.import55-actions{display:grid;grid-template-columns:1fr}.import55-actions>.btn,.import55-upload{width:100%;text-align:center;justify-content:center}.import55-generation-list{grid-template-columns:1fr;padding:4px}}

/* E58 — ação principal primeiro: atalhos textuais discretos e navegação acessível. */
.e58-import-link{appearance:none;display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:fit-content;max-width:100%;min-height:44px;margin:0 0 7px;padding:5px 3px;border:0;border-radius:6px;background:transparent;color:var(--theme-text);font:inherit;font-size:clamp(12px,2.8vw,14px);font-weight:600;line-height:1.4;text-align:left;text-decoration:none;cursor:pointer;}
.e58-import-link span{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.e58-import-link:hover{color:var(--theme-focus,#1bb99c);}
.e58-import-link:focus-visible{outline:2px solid var(--theme-focus,#1bb99c);outline-offset:3px;}
.e58-import-link svg{width:16px;height:16px;flex:none;}
.history-page>.e58-import-link{margin:0 0 8px;}
.entry26-card>.e58-import-link{margin:0 0 2px;}
.entry58-reference-guide{margin:5px 0 20px;}
#importacao55{scroll-margin-top:18px;}
#importacao55:focus{outline:2px solid rgba(40,195,158,.65);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important;}}

/* E54 R8 — quatro passos claros, prompt completo opcional e leitura mobile */
.import55-quick-guide{border:1px solid rgba(93,198,170,.34);border-radius:14px;padding:clamp(14px,3vw,22px);margin:16px 0;background:linear-gradient(125deg,rgba(35,164,131,.09),rgba(21,41,56,.06))}
.import55-quick-guide h4{font-size:clamp(1.05rem,2.8vw,1.3rem);margin:0 0 14px;line-height:1.4}
.import55-quick-guide ol{padding-left:1.6rem;margin:0 0 16px}.import55-quick-guide li{padding-left:.15rem;margin:0 0 13px;line-height:1.55;font-size:clamp(.93rem,2.4vw,1.04rem)}
.import55-quick-guide code{overflow-wrap:anywhere;word-break:break-word;font-size:.89em}
.import55-partial-note,.import55-privacy{border-radius:10px;padding:12px 14px;line-height:1.55;margin:12px 0}
.import55-partial-note{background:rgba(35,171,131,.13);border:1px solid rgba(49,185,144,.27)}
.import55-privacy{background:rgba(124,147,169,.09);border:1px solid rgba(132,153,175,.24)}
.import55-guide-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.import55-guide-buttons .btn{display:inline-flex;align-items:center;justify-content:center;min-height:45px;text-decoration:none}
.import55-prompt-details{margin-top:12px}.import55-prompt-details .import55-prompt{margin:0 12px 12px;max-height:330px;font-size:.8rem;white-space:pre-wrap}
@media(max-width:540px){.import55-guide-buttons{display:grid;grid-template-columns:1fr}.import55-guide-buttons .btn{width:100%}.import55-quick-guide{padding:14px}.import55-quick-guide li{line-height:1.5}}

/* E55 — universal smart import: accessible preview and report */
.e55-dialog{border:2px solid var(--border, #64748b);border-radius:16px;margin:16px 0;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.e55-dialog .import55-scroll{max-height:320px;overflow:auto;margin:12px 0}
.e55-dialog table{width:100%;border-collapse:collapse;font-size:.85rem}
.e55-dialog th,.e55-dialog td{padding:8px;border-bottom:1px solid rgba(127,127,127,.25);text-align:left}
.e55-dialog input[type=checkbox]{min-width:20px;min-height:20px}
.e55-dialog .btn{margin:6px 6px 6px 0}
@media(max-width:640px){.e55-dialog{padding:12px}.e55-dialog .import55-scroll{overflow-x:auto}.e55-dialog table{min-width:520px}}

.e55-raw-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.e55-raw-metrics span{font-size:.78rem;padding:6px 8px;border-radius:8px;background:rgba(127,127,127,.09)}

.e55-backdrop{position:fixed;inset:0;background:rgba(6,16,29,.72);z-index:998}
.e55-dialog{position:fixed;z-index:999;top:50%;left:50%;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 24px));max-height:min(88vh,900px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface,#fff);color:inherit;box-shadow:0 25px 80px #0008}
.e55-dialog h4{font-size:1.2rem;margin-bottom:12px}.e55-dialog p{line-height:1.5;margin:8px 0}.e55-dialog .import55-warning{margin:12px 0;padding:12px;border-radius:10px}

/* E55 R2 — Solar data completeness. Cards E49 mantidos em ordem e dimensoes. */
.e55r2-guide-banner{border:1px solid #d6a443;margin-block:1rem;padding:1rem}
.e55r2-guide-content p{margin:.65rem 0;line-height:1.5}
.e55r2-guide-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}
.e55r2-guide-backdrop{position:fixed;inset:0;z-index:2500;background:rgba(0,0,0,.64);display:flex;align-items:center;justify-content:center;padding:1rem;overflow:auto}
.e55r2-guide-modal{background:var(--surface,#1b3040);color:var(--text,#f4f7f9);border:1px solid #d6a443;border-radius:1.1rem;padding:1.35rem;max-width:570px;width:100%;max-height:85vh;overflow:auto;box-shadow:0 16px 60px #0008}
.e55r2-history-hint{margin:.8rem 0;padding:.85rem;border-radius:.75rem;border:1px solid #d6a443;line-height:1.5}
.e55r2-history-hint .btn{margin:.45rem 0 0;display:block}
.e55r2-entry-period{padding:.85rem;border-radius:.75rem;border:1px solid #d6a443;line-height:1.5}
.e55r2-completion{padding:1.15rem;margin:1rem 0}
.e55r2-completion-list{display:grid;gap:.8rem;margin-top:1rem}
.e55r2-generation-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,190px) auto;gap:.75rem;align-items:end;padding:.9rem;border:1px solid var(--border,#466);border-radius:.8rem}
.e55r2-generation-form p{margin:.3rem 0}.e55r2-generation-form small{opacity:.8}
.e55r2-generation-error{grid-column:1/-1;color:#ffbdbd;margin:0}.e55r2-period-missing{color:#e9b45a}
@media(max-width:720px){.e55r2-generation-form{grid-template-columns:1fr}.e55r2-generation-form .btn{width:100%}.e55r2-guide-actions .btn{flex:1 1 100%}}

/* E55 R3 — first access: sem alterar a hierarquia dos cards existentes */
.e55r3-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px 16px;background:var(--bg,#0c1424);color:var(--text,#f3f6fb)}
.e55r3-panel{width:min(100%,560px);padding:clamp(22px,5vw,40px);background:var(--surface,#172237);border:1px solid var(--border,#35445a);border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.15)}
.e55r3-brand{display:flex;align-items:center;gap:10px;font-size:1.1rem;margin-bottom:28px;color:var(--text,#f3f6fb)}
.e55r3-eyebrow{font-size:.74rem;font-weight:800;letter-spacing:.08em;color:var(--accent,#56d7a6)}
.e55r3-panel h1{font-size:clamp(1.45rem,4vw,2rem);margin:12px 0}.e55r3-panel>p{line-height:1.6}
.e55r3-options{border:0;padding:0;margin:25px 0 12px;min-width:0}.e55r3-options legend{font-size:1.05rem;font-weight:800;margin-bottom:12px}
.e55r3-option{display:flex;align-items:flex-start;gap:13px;border:1px solid var(--border,#35445a);border-radius:13px;padding:16px;margin:10px 0;cursor:pointer;background:transparent}
.e55r3-option:has(input:checked){border-color:var(--accent,#56d7a6);outline:2px solid color-mix(in srgb,var(--accent,#56d7a6) 35%,transparent)}
.e55r3-option input{margin-top:4px;flex-shrink:0;accent-color:var(--accent,#56d7a6);width:18px;height:18px}.e55r3-option span{display:grid;gap:5px}.e55r3-option strong{font-size:1rem}.e55r3-option small{font-size:.86rem;line-height:1.5;opacity:.85}
.e55r3-note{font-size:.85rem;line-height:1.5;opacity:.9}.e55r3-error{color:#e74c3c;font-weight:700;margin:12px 0}.e55r3-continue{width:100%;margin-top:15px;justify-content:center}.e55r3-logout{margin-top:14px;width:100%;justify-content:center}.e55r3-shell .security34-footer{width:min(100%,650px)}
@media(max-width:540px){.e55r3-shell{padding:14px 10px}.e55r3-panel{border-radius:16px}.e55r3-option{padding:14px 12px}}

/* E55 R4 — confirmacao curta, sem tabelas tecnicas para o usuario. */
.e55-r4-success{width:min(360px,calc(100vw - 32px));max-height:initial;text-align:center;padding:26px 20px 20px}
.e55-r4-success h4{font-size:1.12rem;line-height:1.4;margin:0 0 20px}
.e55-r4-success .btn{min-width:112px;margin:0}

/* E57: guia contextual da fatura, seguro para telas estreitas e tema claro/escuro. */
.entry57-guide{margin:0 0 18px;border:1px solid var(--border,#435567);border-radius:14px;overflow:hidden;background:var(--surface,#1a2e3d)}
.entry57-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-weight:750;font-size:1rem;line-height:1.4;padding:15px 16px;min-height:52px;list-style-position:inside}
.entry57-guide>summary span{font-weight:500;font-size:.8rem;color:var(--text-muted,#a1b8c6);white-space:normal;text-align:right}
.entry57-guide[open]>summary{border-bottom:1px solid var(--border,#435567)}
.entry57-guide-content{display:grid;gap:12px;padding:14px 16px 16px}
.entry57-guide-disclaimer{margin:0;line-height:1.6;font-size:.89rem;color:var(--text-muted,#a1b8c6)}
.entry57-guide-step{padding:12px;border:1px solid var(--border,#435567);border-radius:12px;min-width:0}
.entry57-guide-step>b{display:block;margin-bottom:6px;font-size:.98rem}
.entry57-guide-step>p{margin:6px 0 11px;font-size:.89rem;line-height:1.6}
.entry57-fatura-snippet{display:flex;flex-wrap:wrap;align-items:start;column-gap:14px;row-gap:8px;border-radius:9px;padding:12px;background:var(--bg,#10202c);border:1px dashed var(--border,#567);font-size:.87rem}
.entry57-fatura-snippet small{flex:1 1 100%;font-size:.72rem;letter-spacing:.045em;font-weight:700;opacity:.8}
.entry57-fatura-snippet span{min-width:0;overflow-wrap:anywhere}
.entry57-field-tip{display:block;line-height:1.5;margin-top:7px;font-size:.83rem;opacity:.88}
.entry57-consumption-preview{margin-top:9px;padding:10px 13px;border:1px solid rgba(34,175,144,.42);border-radius:10px;line-height:1.4;font-weight:650;background:rgba(30,174,140,.07)}
.entry57-pending{margin:12px 0 0;padding:12px;border-radius:10px;border:1px solid #d6a443;line-height:1.5}
@media(max-width:540px){.entry57-guide>summary{padding:13px 12px;align-items:flex-start;flex-direction:column}.entry57-guide-content{padding:12px}.entry57-guide-step{padding:10px}.entry57-fatura-snippet{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.entry57-guide-disclaimer,.entry57-guide-step>p{font-size:.85rem}}

/* E59 — panorama compacto dos creditos: leitura prioritaria no celular. */
.credit59-panel{display:block;}
.credit59-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;}
.credit59-heading h3{margin:3px 0;font-size:clamp(18px,4vw,24px);}
.credit59-icon{color:var(--theme-muted,#a9bdc6);}
.credit59-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.credit59-kpis>div{min-width:0;padding:13px 10px;background:var(--theme-card,#253545);border:1px solid rgba(166,196,210,.24);border-radius:12px;}
.credit59-kpis span{display:block;font-size:12px;line-height:1.45;color:var(--theme-muted,#a9bdc6);margin-bottom:7px;}
.credit59-kpis strong{font-size:clamp(14px,2.4vw,19px);line-height:1.3;overflow-wrap:anywhere;}
.credit59-expiry{margin:14px 0;padding:11px;border-left:3px solid #f0ad4e;background:rgba(240,173,78,.09);border-radius:5px;line-height:1.5;}
.credit59-disclaimer{font-size:12px;line-height:1.5;color:var(--theme-muted,#a9bdc6);margin:12px 0;}
.credit59-outlook{font-size:clamp(15px,3vw,18px);}
.credit59-projection-table{overflow-x:auto;max-height:350px;overflow-y:auto;margin:12px 0;}
.credit59-projection-table table{width:100%;border-collapse:collapse;}
.credit59-projection-table td,.credit59-projection-table th{padding:9px 10px;text-align:left;border-bottom:1px solid rgba(154,175,186,.23);}
@media(max-width:540px){.credit59-kpis{grid-template-columns:1fr;gap:7px;}.credit59-kpis>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;}.credit59-kpis span{margin:0;}.credit59-kpis strong{text-align:right;}}
/* E60 — mesmo visual para históricos de 3, 6 e 12 ciclos. */
.credit60-panel .credit60-confidence{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:-1px 0 13px;padding:6px 11px;background:rgba(39,163,143,.11);border:1px solid rgba(72,197,170,.26);border-radius:9px;font-size:clamp(11px,2.4vw,13px);line-height:1.4;}
.credit60-confidence strong{color:var(--theme-text,#f4f8fb);font-weight:750;}
.credit60-confidence span{color:var(--theme-muted,#a9bdc6);}
.credit60-panel .credit59-kpis>div{min-width:0;min-height:66px;}
.credit60-panel .credit59-kpis strong{font-variant-numeric:tabular-nums;}
.credit60-progress-hint{font-size:12px;line-height:1.5;color:var(--theme-muted,#b7cbd1);margin:8px 0 12px;}
.credit60-pending{margin:8px 0 13px;padding:9px 12px;border:1px solid rgba(166,196,210,.23);border-radius:10px;}
.credit60-pending summary{cursor:pointer;font-size:13px;font-weight:700;min-height:26px;}
.credit60-pending ul{padding-left:20px;margin:8px 0;font-size:12px;line-height:1.6;}
.diagnosis60-confidence{font-size:12px;font-weight:700;line-height:1.4;color:inherit;opacity:.94;margin:9px 0 0;}
@media(max-width:540px){.credit60-panel .credit59-kpis>div{min-height:0;padding:12px;}.credit60-panel .credit59-kpis span{font-size:12px;flex:1 1 43%;}.credit60-panel .credit59-kpis strong{font-size:clamp(14px,3.7vw,18px);max-width:57%;text-align:right;}}


/* E63: escolha simples do periodo de geracao; leia sem rolagem horizontal. */
.e63-generation-mode{display:grid;gap:6px}
.e63-generation-mode select{width:100%;min-height:44px;padding:8px 10px;border-radius:9px;background:var(--theme-elevated);color:var(--theme-text);border:1px solid var(--theme-border)}
.e55r2-generation-form{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(130px,170px) auto}
.e55r2-generation-form select{width:100%;min-height:44px;padding:8px;border-radius:8px;background:var(--theme-elevated);color:var(--theme-text);border:1px solid var(--theme-border)}
@media(max-width:1050px){.e55r2-generation-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.e55r2-generation-form{grid-template-columns:minmax(0,1fr)}}

.e63-dashboard-note{margin:0 0 12px;padding:10px 13px;border:1px solid var(--theme-border);border-radius:10px;font-size:.86rem;line-height:1.5;color:var(--theme-text);background:var(--theme-elevated)}

/* E64: cards independentes por fonte, sem misturar injeção da conta e geração do inversor. */
.entry64-card{width:100%;min-width:0;padding:clamp(16px,3vw,28px);margin:0 0 20px;border:1px solid var(--theme-border,var(--border));border-radius:18px;background:var(--theme-elevated,var(--surface));box-sizing:border-box;box-shadow:0 6px 22px rgba(0,0,0,.06)}
.entry64-card-heading{display:flex;align-items:center;gap:15px;margin-bottom:18px;text-align:left}
.entry64-card-heading h3{font-size:clamp(1.1rem,2vw,1.4rem);margin:3px 0 5px;line-height:1.25}
.entry64-card-heading p{margin:0;line-height:1.5;opacity:.85}
.entry64-card-icon{flex:0 0 44px;height:44px;display:grid;place-items:center;border-radius:13px;font-weight:800;background:rgba(21,185,137,.13);color:var(--theme-text,var(--text))}
.entry64-eyebrow{font-size:.7rem;letter-spacing:.1em;font-weight:800;opacity:.8}
.entry64-card-section{padding:16px 0;border-top:1px solid var(--theme-border,var(--border))}
.entry64-card-section h4{font-size:1rem;margin:0 0 12px;font-weight:750}
.entry64-card .entry26-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:14px;align-items:start}
.entry64-card .field,.entry64-card input,.entry64-card select{min-width:0;max-width:100%}
.entry64-card .entry31-injection{width:100%;max-width:none}
.entry64-solar-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;align-items:end}
.entry64-solar-fields .entry57-field-tip{grid-column:1/-1}
.entry64-solar #e55r2-entry-period{margin-top:14px}
.e64-import-dialog{position:fixed;z-index:10002;top:50%;left:50%;transform:translate(-50%,-50%);width:min(92vw,480px);max-height:85vh;overflow:auto;box-sizing:border-box;padding:clamp(24px,4vw,38px);border-radius:20px;text-align:center;background:#172c3b;color:#f8fafc;border:1px solid #406477;box-shadow:0 22px 70px rgba(0,0,0,.48)}
.e64-import-dialog h4{font-size:clamp(1.3rem,3vw,1.7rem);line-height:1.3;color:#fff;margin:12px 0}
.e64-import-dialog p{font-size:1rem;line-height:1.55;color:#e5eef3;margin:8px 0 12px}
.e64-import-dialog strong{color:#fff}
.e64-import-dialog .e64-import-breakdown{font-size:.88rem;color:#c6d7e2}
.e64-import-check{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#18b98b;color:#062f29;font-size:1.8rem;font-weight:800}
.e64-import-dialog .btn{display:block;width:100%;margin:20px auto 0;min-height:46px;color:#062c25}
@media(max-width:640px){.entry64-card{padding:16px;border-radius:14px}.entry64-card-heading{align-items:flex-start;gap:10px}.entry64-card-icon{flex-basis:38px;height:38px}.entry64-card .entry26-fields,.entry64-solar-fields{grid-template-columns:minmax(0,1fr)}.e64-import-dialog{padding:24px 20px}}

/* V64: o mesmo historico em cards acessiveis no desktop e no mobile. */
.history-page .history-panel .history-table{display:none!important}
.history-page .history-panel .history-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px;padding:18px}
.history-page .history-panel .history-card{min-width:0;margin:0;border:1px solid var(--theme-border,#375168);border-radius:16px;padding:18px;background:var(--theme-elevated,#1b3344);box-shadow:0 5px 20px rgba(0,0,0,.08)}
.history-page .history-card .history-card-head strong{color:var(--theme-text,#eaf4ff);font-size:1.1rem}
.history-page .history-card .history-card-actions{display:flex;gap:10px;flex-wrap:wrap}
.history-page .history-card .history-card-actions button{min-height:42px}
.history-page .history-card .history-mobile-expanded{width:100%}
.e64-priority{padding:22px;margin:0 0 20px;border-left:4px solid #18b98b}
.e64-priority h3{margin:8px 0;font-size:clamp(1.1rem,2vw,1.5rem)}
.e64-priority p{line-height:1.6;max-width:82ch}
.e64-priority button{margin-top:8px}
.e55r2-guide-banner .e55r2-guide-content{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.e55r2-guide-banner .e55r2-guide-content p{margin:0;max-width:70ch}
@media(max-width:720px){.history-page .history-panel .history-cards{grid-template-columns:minmax(0,1fr);padding:0}.history-page .history-panel .history-card{margin-bottom:12px}}

/* E65: revisao explicita de conflito, legivel e responsiva. */
.e65-correction-review{margin:18px 0;padding:clamp(14px,3vw,24px);background:var(--theme-elevated,#1c3344);border:2px solid #35bca3;border-radius:16px;color:var(--theme-text,#fff)}
.e65-correction-review h4{margin:0 0 12px;font-size:1.23rem}
.e65-correction-review p{max-width:75ch;line-height:1.55}
.e65-correction-review form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:12px;margin-top:14px}
.e65-conflict-month{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--theme-border,#547083);border-radius:12px;line-height:1.5;min-width:0}
.e65-conflict-heading{display:flex;align-items:center;gap:10px;font-size:1.08rem;margin-bottom:4px}
.e65-conflict-heading input{width:20px;height:20px;accent-color:#18b98b}
.e65-conflict-month small{overflow-wrap:anywhere;font-size:.84rem;opacity:.94}
.e65-correction-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.e65-correction-actions button{min-height:44px}
@media(max-width:620px){.e65-correction-actions{flex-direction:column}.e65-correction-actions button{width:100%}}


/* E66 — iOS standalone: zoom de foco ocorre com controles menores que 16px.
   Nao bloquear gestos de ampliacao; preservar tamanho de letra e largura natural. */
html.ios-pwa66{-webkit-text-size-adjust:100%;width:100%;max-width:100%;overflow-x:clip}
html.ios-pwa66 body,html.ios-pwa66 #app{width:100%;max-width:100%;min-width:0;overflow-x:clip}
@media(max-width:740px){
 html.ios-pwa66 .app-shell,html.ios-pwa66 .main,html.ios-pwa66 .page-content{width:100%;max-width:100%;min-width:0}
 html.ios-pwa66 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
 html.ios-pwa66 select,html.ios-pwa66 textarea,
 html.ios-pwa66 .entry26 .field input,html.ios-pwa66 .history-toolbar input,
 html.ios-pwa66 .history-toolbar select{font-size:16px!important}
 html.ios-pwa66 .entry64-card,html.ios-pwa66 .gen66-panel,html.ios-pwa66 .history-panel{min-width:0;max-width:100%}
}
/* E66 — entrada solar em lote, visivel no historico, sem dados da concessionaria. */
.gen66-panel{padding:clamp(16px,2.7vw,25px);margin:14px 0 22px;border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);border-radius:16px}
.gen66-head{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:16px}
.gen66-head h3{font-size:clamp(18px,2.3vw,23px);line-height:1.3;margin:4px 0 8px}
.gen66-head p,.gen66-help{color:var(--theme-muted);font-size:13px;line-height:1.6}
.gen66-kicker{font-size:11px;letter-spacing:.09em;font-weight:800;color:var(--theme-primary)}
.gen66-head svg{flex-shrink:0;color:var(--theme-primary)}
.gen66-items{display:grid;gap:11px}
.gen66-item{display:grid;grid-template-columns:minmax(120px,1.2fr) minmax(130px,1fr) minmax(170px,1fr);align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-elevated)}
.gen66-item-period{display:grid;gap:5px;min-width:0}
.gen66-item-period strong{font-size:14px}
.gen66-item-period small{font-size:12px;color:var(--theme-muted);overflow-wrap:anywhere}
.gen66-item .field{min-width:0;gap:6px}
.gen66-item .field>span{font-size:12px;color:var(--theme-muted)}
.gen66-item .field input,.gen66-item .field select{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:16px;background:var(--theme-input);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:10px;padding:8px 11px}
.gen66-help{margin:14px 0 0}
.gen66-actions{display:flex;justify-content:flex-end;margin:16px 0 0}
.gen66-actions button{min-height:45px}
.gen66-status{padding:11px 13px;border-radius:10px;border:1px solid var(--theme-border);background:var(--theme-elevated);margin-top:13px;font-size:13px;color:var(--theme-text)}
@media(max-width:720px){
 .gen66-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .gen66-item-period{grid-column:1/-1}
 .gen66-actions button{width:100%}
}
@media(max-width:360px){.gen66-item{grid-template-columns:minmax(0,1fr)}.gen66-item-period{grid-column:auto}}


/* E69 — Meu Carro Elétrico: PWA responsiva, controles iPhone >= 16px. */
.ev69-page{display:grid;gap:18px;max-width:1280px;min-width:0}
.ev69-intro,.ev69-form-panel,.ev69-card,.ev69-empty{padding:clamp(15px,2.5vw,26px);min-width:0}
.ev69-intro strong{display:block;font-size:15px;margin-bottom:7px}
.ev69-intro p,.ev69-form-panel>p,.ev69-footnote{font-size:13px;line-height:1.6;color:var(--theme-muted)}
.ev69-form-panel h2{font-size:clamp(18px,2.4vw,23px);margin:0 0 8px}
.ev69-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:17px 0}
.ev69-fields .field{min-width:0}
.ev69-fields input,.ev69-fields select{width:100%;min-width:0;max-width:100%;min-height:46px;padding:9px 12px;border-radius:10px;font-size:16px;background:var(--theme-input);color:var(--theme-text);border:1px solid var(--theme-border)}
.ev69-fields select{overflow:hidden;text-overflow:ellipsis}
.ev69-advanced,.ev69-disclaimer{margin-top:15px;border-top:1px solid var(--theme-border);padding-top:12px}
.ev69-advanced summary,.ev69-disclaimer summary{cursor:pointer;font-size:13px;font-weight:700;line-height:1.5}
.ev69-advanced>p,.ev69-disclaimer p{font-size:12px;line-height:1.6;color:var(--theme-muted);margin:10px 0}
.ev69-buttons,.ev69-card-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.ev69-buttons button{min-height:44px}
.ev69-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.ev69-metric{border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-elevated);padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.ev69-metric small,.ev69-facts small,.ev69-card-head small{color:var(--theme-muted);font-size:12px}
.ev69-metric strong{font-size:clamp(17px,2.4vw,24px);font-weight:750;overflow-wrap:anywhere}
.ev69-list{display:grid;gap:13px}
.ev69-card-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap}
.ev69-card-head h3{font-size:17px;margin:5px 0}
.ev69-card-head p{font-size:13px;color:var(--theme-muted)}
.ev69-card-actions{margin:0}
.ev69-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px}
.ev69-facts>div{background:var(--theme-elevated);border-radius:10px;padding:13px;display:grid;gap:7px;min-width:0}
.ev69-facts strong{font-size:clamp(13px,1.7vw,16px);overflow-wrap:anywhere}
.ev69-result{font-size:13px;line-height:1.6;margin:13px 0;color:var(--theme-text)}
.ev69-error{font-size:13px;color:var(--theme-danger,#ff9393);margin:14px 0}
.ev69-footnote{margin:0 0 14px}
@media(max-width:760px){
 .ev69-fields{grid-template-columns:minmax(0,1fr)}
 .ev69-summary,.ev69-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .ev69-card-head{display:block}
 .ev69-card-actions{margin-top:12px}
}
@media(max-width:390px){
 .ev69-summary,.ev69-facts{grid-template-columns:minmax(0,1fr)}
 .ev69-buttons button{width:100%}
}


/* E70 — credito solar e carro: comparacao responsiva, sem indicadores ambíguos */
.ev70-panel{padding:clamp(16px,2.6vw,26px);display:grid;gap:15px;min-width:0;max-width:100%;overflow-wrap:break-word}
.ev70-header h2{font-size:clamp(19px,2.6vw,24px);margin:5px 0 8px}
.ev70-header p,.ev70-footnote,.ev70-sizing p,.ev70-method p,.ev70-message{font-size:13px;line-height:1.65;color:var(--theme-muted)}
.ev70-overline{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--theme-primary)}
.ev70-metrics,.ev70-projection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ev70-projection{grid-template-columns:repeat(3,minmax(0,1fr))}
.ev70-metrics>div,.ev70-projection>div{background:var(--theme-elevated);border:1px solid var(--theme-border);padding:13px;border-radius:12px;display:grid;gap:7px;min-width:0}
.ev70-metrics small,.ev70-projection small{font-size:12px;color:var(--theme-muted);line-height:1.45}
.ev70-metrics strong,.ev70-projection strong{font-size:clamp(15px,1.8vw,20px);font-weight:760;overflow-wrap:anywhere}
.ev70-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ev70-options .field{min-width:0}
.ev70-options select{width:100%;min-width:0;max-width:100%;min-height:48px;font-size:16px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-input);color:var(--theme-text)}
.ev70-scroll{max-width:100%;overflow-x:auto;border-radius:10px;border:1px solid var(--theme-border)}
.ev70-compare{border-collapse:collapse;width:100%;min-width:430px;font-size:13px}
.ev70-compare th,.ev70-compare td{text-align:left;padding:11px;border-bottom:1px solid var(--theme-border)}
.ev70-compare th{font-weight:750;color:var(--theme-muted);background:var(--theme-elevated)}
.ev70-sizing,.ev70-message{background:var(--theme-elevated);padding:15px;border-radius:12px}
.ev70-sizing h3{font-size:16px;margin:0 0 7px}
.ev70-method{border-top:1px solid var(--theme-border);padding-top:13px}
.ev70-method summary{cursor:pointer;font-size:13px;font-weight:750}
@media(max-width:760px){.ev70-options{grid-template-columns:minmax(0,1fr)}.ev70-projection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.ev70-metrics,.ev70-projection{grid-template-columns:minmax(0,1fr)}}


/* E70-R1: tarifa residencial da unidade herdada em cartões automotivos. */
.ev69-tariff-status{border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-elevated);padding:12px;margin:12px 0;font-size:13px;line-height:1.5;color:var(--theme-muted)}
.ev69-tariff-help{padding:16px;display:grid;gap:12px}
.ev69-tariff-help strong{font-size:15px}
.ev69-tariff-help p{font-size:13px;line-height:1.5;color:var(--theme-muted)}
.ev69-tariff-help button{justify-self:start;min-height:44px}

/* E70-R3 — simulador de compra integrado e efemero */
.ev70r3-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ev70r3-tabs button{text-align:left;display:grid;gap:8px;padding:19px;border-radius:15px;border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);min-width:0}
.ev70r3-tabs button.active{border:2px solid var(--theme-primary);padding:18px}
.ev70r3-tabs strong{font-size:17px}.ev70r3-tabs small{font-size:12px;line-height:1.6;color:var(--theme-muted)}
.ev70r3-form-panel,.ev70r3-result{padding:clamp(16px,2.5vw,27px);display:grid;gap:15px;min-width:0}
.ev70r3-form-panel h2{font-size:clamp(20px,2.4vw,25px)}
.ev70r3-form-panel>p,.ev70r3-result>p,.ev70r3-note{font-size:13px;line-height:1.65;color:var(--theme-muted)}
.ev70r3-eyebrow{font-size:11px;letter-spacing:.08em;color:var(--theme-primary);font-weight:800}
.ev70r3-fields,.ev70r3-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0}
.ev70r3-fields select,.ev70r3-fields input,.ev70r3-phev input{width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-input);color:var(--theme-text);padding:9px 12px;font-size:16px}
.ev70r3-phev{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:var(--theme-elevated);border-radius:12px;padding:16px;margin:12px 0}
.ev70r3-phev[hidden]{display:none}.ev70r3-phev h3,.ev70r3-phev p{grid-column:1/-1}
.ev70r3-method{border-top:1px solid var(--theme-border);padding-top:13px;margin:12px 0}
.ev70r3-method summary{cursor:pointer;font-size:13px;font-weight:700}
.ev70r3-method p{font-size:12px;line-height:1.6;color:var(--theme-muted);margin:9px 0}
.ev70r3-numbers>div{background:var(--theme-elevated);border:1px solid var(--theme-border);border-radius:12px;padding:15px;display:grid;gap:8px;min-width:0}
.ev70r3-numbers small{font-size:12px;line-height:1.5;color:var(--theme-muted)}
.ev70r3-numbers strong{overflow-wrap:anywhere;font-size:clamp(17px,2vw,24px)}
.ev70r3-highlight{background:var(--theme-elevated);padding:16px;border:1px solid var(--theme-primary);border-radius:13px}
.ev70r3-highlight>span{color:var(--theme-primary);font-weight:800}
.ev70r3-highlight .ev70r3-numbers>div{border:0}
.ev70r3-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ev70r3-actions button{min-height:46px}
.ev70r3-solar{border-top:1px solid var(--theme-border);display:grid;gap:12px;padding-top:20px}
.ev70r3-solar h3{font-size:17px}.ev70r3-solar p{font-size:12px;line-height:1.6;color:var(--theme-muted)}
@media(max-width:680px){.ev70r3-tabs,.ev70r3-fields,.ev70r3-numbers,.ev70r3-phev{grid-template-columns:minmax(0,1fr)}.ev70r3-actions button{width:100%}}

/* E70-R5 — consistent compact KPI tiles in saved cars and purchase simulations */
.ev69-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0;align-items:stretch}
.ev69-mini-card{background:rgba(132,163,190,.10);border:1px solid rgba(139,164,186,.25);padding:14px 12px;border-radius:14px;min-width:0;display:flex;flex-direction:column;gap:8px}
.ev69-mini-card small{font-size:.79rem;line-height:1.4;color:var(--text-muted,#b0becc);overflow-wrap:anywhere}
.ev69-mini-card strong{font-size:clamp(1.16rem,3vw,1.5rem);letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
.ev69-mini-card.ev69-mini-positive strong,.ev69-mini-card.ev69-mini-annual strong{color:var(--success,#64d9ab)}
.ev69-mini-card.ev69-mini-annual{grid-column:1/-1;border-color:rgba(99,226,170,.48)}
.ev69-mini-card.ev69-mini-annual strong{font-size:clamp(1.45rem,4vw,2rem)}
.ev70r5-result-grid{margin-top:22px}
.ev70r3-result .ev69-mini-card,.ev69-card .ev69-mini-card{box-sizing:border-box}
@media(max-width:350px){.ev69-mini-grid{grid-template-columns:1fr}.ev69-mini-card.ev69-mini-annual{grid-column:1}}

/* V71-R2 — investimento e retorno no mesmo fluxo, responsivo */
.e71r2-page{max-width:1100px;margin-inline:auto;display:grid;gap:16px;min-width:0}
.e71r2-page>.e71r2-payback-inner{width:100%;max-width:100%;min-width:0}
.e71r2-page .e71r2-investment-accordion,.e71r2-page .e71r2-faq{min-width:0;margin:0;padding:0!important;overflow:hidden}
.e71r2-investment-accordion>summary,.e71r2-faq>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:clamp(16px,3vw,23px);font-size:clamp(16px,2.2vw,20px);font-weight:800;line-height:1.3;color:var(--theme-text)}
.e71r2-investment-accordion>summary::-webkit-details-marker,.e71r2-faq>summary::-webkit-details-marker{display:none}
.e71r2-investment-accordion>summary small{display:block;color:var(--theme-muted);font-weight:500;font-size:12px;line-height:1.5;margin-top:5px}
.e71r2-investment-accordion>summary:focus-visible,.e71r2-faq>summary:focus-visible{outline:3px solid var(--theme-focus);outline-offset:-4px;border-radius:12px}
.e71r2-chevron{color:var(--theme-primary);font-size:25px;line-height:1;flex:none;transition:transform .15s ease}
.e71r2-investment-accordion[open]>summary .e71r2-chevron,.e71r2-faq[open]>summary .e71r2-chevron{transform:rotate(180deg)}
.e71r2-investment-inner{padding:0 clamp(12px,2.8vw,23px) clamp(12px,2.8vw,23px);display:grid;gap:13px;min-width:0}
.e71r2-investment-inner>.panel{margin:0}
.e71r2-page .e71r2-investment-inner .e52-summary-grid>div{background:var(--theme-elevated);border-color:var(--theme-border)}
.e71r2-setup{padding:clamp(18px,3vw,28px)!important;border-color:var(--theme-primary)!important}
.e71r2-setup h2{font-size:clamp(20px,3.5vw,28px);margin:9px 0}
.e71r2-setup p,.e71r2-faq-body p{line-height:1.6;font-size:14px;color:var(--theme-muted)}
.e71r2-setup button{margin-top:12px}
.e71r2-faq-body{padding:0 clamp(16px,3vw,23px) clamp(16px,3vw,23px)}
.e71r2-faq-body p:first-child{margin-top:0}
.e71r2-dashboard-shortcut .e71r2-dashboard-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.e71r2-dashboard-summary>div{min-width:0;padding:13px;border:1px solid var(--theme-border);background:var(--theme-elevated);border-radius:13px;display:grid;gap:8px}
.e71r2-dashboard-summary small{font-size:12px;color:var(--theme-muted)}
.e71r2-dashboard-summary strong{font-size:clamp(17px,2.7vw,23px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:600px){.e71r2-page{gap:12px}.e71r2-investment-inner{padding:0 10px 12px}.e71r2-dashboard-shortcut .e71r2-dashboard-summary{gap:8px}.e71r2-dashboard-summary>div{padding:11px 9px}.e71r2-dashboard-summary strong{font-size:clamp(15px,4vw,19px)}.e71r2-investment-inner .e52-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.e71r2-investment-inner .e52-summary-grid>div{padding:10px}.e71r2-investment-inner .e52-summary-grid strong{font-size:clamp(15px,4vw,20px)}}
@media(max-width:360px){.e71r2-dashboard-shortcut .e71r2-dashboard-summary,.e71r2-investment-inner .e52-summary-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.e71r2-chevron{transition:none}}

/* V71-R3 — gestão de créditos mobile-first */
.e71r3-page{max-width:1100px;margin-inline:auto;display:grid;gap:14px;min-width:0}.e71r3-page>.panel{margin:0}
.e71r3-section-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.e71r3-section-head h2,.e71r3-section-head h3{margin:6px 0 0;line-height:1.2}
.e71r3-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:17px 0}.e71r3-tile{display:grid;gap:8px;min-width:0;padding:clamp(12px,2.2vw,18px);border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-elevated)}
.e71r3-tile span{font-size:12px;color:var(--theme-muted);font-weight:700}.e71r3-tile strong{font-size:clamp(18px,3vw,28px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.e71r3-tile small,.e71r3-muted{color:var(--theme-muted);font-size:12px;line-height:1.55}
.e71r3-action{margin-top:12px;min-height:44px}.e71r3-expiry-list{display:grid;gap:8px;margin-top:15px}.e71r3-expiry-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;border:1px solid var(--theme-border);padding:12px;border-radius:12px}.e71r3-expiry-list small{grid-column:1/-1;color:var(--theme-muted)}.e71r3-expiry-list span{font-weight:700;font-variant-numeric:tabular-nums}
.e71r3-adjust{padding:0!important;overflow:hidden}.e71r3-adjust>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(16px,2.7vw,22px);cursor:pointer;list-style:none}.e71r3-adjust>summary::-webkit-details-marker{display:none}.e71r3-adjust>summary strong{display:block;font-size:clamp(16px,2.3vw,20px)}.e71r3-adjust>summary small{display:block;margin-top:5px;color:var(--theme-muted);font-size:12px;line-height:1.5}.e71r3-adjust>summary:focus-visible{outline:3px solid var(--theme-focus);outline-offset:-3px}.e71r3-adjust[open]>summary>span:last-child{transform:rotate(180deg)}
.e71r3-adjust-inner{display:grid;gap:13px;min-width:0;padding:0 clamp(12px,2.7vw,20px) clamp(12px,2.7vw,20px)}.e71r3-adjust-inner>.panel{margin:0}.e71r3-foot-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:600px){.e71r3-page{gap:11px}.e71r3-tiles{gap:8px}.e71r3-tile{padding:11px 9px}.e71r3-tile strong{font-size:clamp(16px,4vw,22px)}.e71r3-foot-actions .btn{flex:1 1 100%}}@media(max-width:350px){.e71r3-tiles{grid-template-columns:minmax(0,1fr)}}

/* V72-R1 — tokens e estrutura de navegação, sem alterar o conteúdo dos painéis */
:root{
  --module-accent:#36bf92;--module-accent-soft:rgba(54,191,146,.14);
  --card-surface:var(--theme-surface);--card-border:var(--theme-border);
  --text-muted:var(--theme-muted);
  --status-success:#28bb8d;--status-warning:#e8aa50;--status-danger:#e7797a;
}
:root[data-module72="lancamentos"]{--module-accent:#57b4e7;--module-accent-soft:rgba(87,180,231,.16)}
:root[data-module72="historico"]{--module-accent:#9aa8f8;--module-accent-soft:rgba(154,168,248,.15)}
:root[data-module72="creditos71"],:root[data-module72="ajustes"]{--module-accent:#4dcfc9;--module-accent-soft:rgba(77,207,201,.15)}
:root[data-module72="solar"]{--module-accent:#e4b45e;--module-accent-soft:rgba(228,180,94,.15)}
:root[data-module72="investimento52"],:root[data-module72="retorno53"]{--module-accent:#b79af6;--module-accent-soft:rgba(183,154,246,.15)}
:root[data-module72="veiculos69"]{--module-accent:#99a9fc;--module-accent-soft:rgba(153,169,252,.15)}
:root[data-module72="config"]{--module-accent:#77c1c2;--module-accent-soft:rgba(119,193,194,.15)}
:root[data-module72="notificacoes"]{--module-accent:#e59dab;--module-accent-soft:rgba(229,157,171,.15)}
:root[data-theme="light"][data-module72="lancamentos"]{--module-accent:#17628b}
:root[data-theme="light"][data-module72="historico"]{--module-accent:#4a50a2}
:root[data-theme="light"][data-module72="creditos71"]{--module-accent:#086f73}
:root[data-theme="light"][data-module72="solar"]{--module-accent:#946119}
:root[data-theme="light"][data-module72="investimento52"]{--module-accent:#65409e}
:root[data-theme="light"][data-module72="veiculos69"]{--module-accent:#4c54a5}
:root[data-theme="light"][data-module72="config"]{--module-accent:#286c6e}
:root[data-theme="light"][data-module72="notificacoes"]{--module-accent:#97506b}
.sidebar{padding-bottom:max(12px,env(safe-area-inset-bottom));min-height:0}
.sidebar .brand{flex:0 0 auto}
.sidebar .menu72-scroll{display:block;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:12px 3px 16px 0;scrollbar-width:thin;scrollbar-color:#486577 transparent}
.sidebar .menu72-group{display:flex;flex-direction:column;gap:3px}
.sidebar .menu72-group+.menu72-group{margin-top:16px}
.sidebar .menu72-group-title{margin:0 10px 6px;font-size:10px;letter-spacing:.11em;color:#9db1c5}
.sidebar .menu72-group .nav-item{min-height:44px;padding:10px 12px;line-height:1.3}
.sidebar .menu72-group .nav-item span{overflow-wrap:anywhere}
.sidebar .menu72-group .nav-item.active{box-shadow:inset 3px 0 var(--module-accent);color:#eafff8}
.sidebar .menu72-bottom{flex:0 0 auto;margin-top:0;padding-top:10px;border-top:1px solid #345064}
.sidebar .menu72-bottom .theme27-toggle{margin-bottom:7px;min-height:44px}
.sidebar .menu72-bottom .nav-item{min-height:44px}
.sidebar .menu72-bottom .entry31-version{display:block;margin-bottom:6px}
.main .topbar{border-bottom:2px solid var(--module-accent)}
.main .topbar .eyebrow-dot{color:var(--module-accent)}
@media(max-width:740px){
 .sidebar{height:100dvh;max-height:100dvh;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));}
}
@media(max-height:640px){.sidebar{padding-top:12px}.sidebar .menu72-group+.menu72-group{margin-top:9px}.sidebar .menu72-scroll{padding-top:7px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.sidebar .menu72-group .nav-item{transition:none}}

/* V72-R2 — Ajuda contextual progressiva. Informação de segurança segue visível. */
.context-help72{margin-top:12px;max-width:680px;font-size:12px;line-height:1.55;color:var(--theme-text);border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-soft)}
.context-help72>summary{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;list-style:none;font-size:12px;font-weight:750;color:var(--theme-text)}
.context-help72>summary::-webkit-details-marker,.inline-help72>summary::-webkit-details-marker,.ev72r2-more>summary::-webkit-details-marker{display:none}
.context-help72>summary svg{color:var(--module-accent)}
.context-help72-chevron{margin-left:auto;font-size:15px;transition:transform .15s}
.context-help72[open] .context-help72-chevron{transform:rotate(180deg)}
.context-help72-body{padding:2px 13px 12px}
.context-help72-body strong{display:block;margin-bottom:5px}
.context-help72-body p{font-size:12px;line-height:1.65;margin:5px 0;color:var(--theme-text)}
.context-help72-body .context-help72-note{color:var(--theme-muted)}
.inline-help72{position:relative;display:inline-block;vertical-align:middle;margin-left:4px;line-height:1}
.inline-help72>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-soft);color:var(--theme-text);cursor:pointer}
.inline-help72[open]>summary{border-color:var(--module-accent)}
.inline-help72>p{position:absolute;top:calc(100% + 7px);left:0;z-index:12;min-width:220px;max-width:min(310px,calc(100vw - 40px));padding:12px;background:var(--theme-elevated);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:10px;box-shadow:0 10px 25px #0003;font:500 12px/1.55 'DM Sans',sans-serif;text-align:left;letter-spacing:normal}
.entry64-card-section,.entry64-card-heading,.section-title{position:relative}
.ev72r2-more{margin-top:9px}
.ev72r2-more>summary{cursor:pointer;font-size:12px;font-weight:750;color:var(--theme-text)}
.ev72r2-more>p{margin-top:9px;font-size:12px;line-height:1.7;color:var(--theme-muted)}
.context-help72 summary:focus-visible,.inline-help72 summary:focus-visible,.ev72r2-more summary:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
@media(max-width:740px){.context-help72{max-width:100%}.inline-help72>p{left:auto;right:-8px;max-width:min(300px,calc(100vw - 38px))}}
@media(prefers-reduced-motion:reduce){.context-help72-chevron{transition:none}}

/* V73-R3: optional electric/hybrid usage slider; primary form stays compact. */
.ev73r3-mix{margin:1rem 0;padding:1rem;border:1px solid var(--border-color,rgba(145,165,186,.35));border-radius:14px}
.ev73r3-mix input[type="range"],#ev69-phev-share{display:block;width:100%;accent-color:#19c997;margin:.65rem 0}
.ev73r3-mix output,#ev69-phev-share-label{font-weight:700}

/* V75: migration invitation, non-blocking and theme-aware */
.domain75-panel{margin:16px auto;padding:clamp(16px,4vw,24px);max-width:920px;width:100%;box-sizing:border-box;border:1px solid #42a889;border-radius:14px;overflow-wrap:anywhere}.domain75-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.domain75-panel h3{margin:4px 0 12px;font-size:1.25rem}.domain75-panel small{font-weight:700;letter-spacing:.07em}.domain75-panel p,.domain75-panel li{line-height:1.55}.domain75-panel ol{padding-left:1.4rem}.domain75-panel .btn{min-height:44px;white-space:normal;text-align:center;text-decoration:none;margin:6px 0}.domain75-dismiss{border:0;background:transparent;color:inherit;font-size:1.6rem;cursor:pointer}.domain75-caption{font-size:.85rem;opacity:.85}.login-right .domain75-panel{max-width:540px}
@media(max-width:600px){.domain75-panel .btn{width:100%;justify-content:center}.domain75-panel{margin:12px auto}}
