#finance.view.active{height:auto;min-height:100%;padding:4px 0 28px}
/* Insights stay compact on the dashboard; evidence lives in a separate dialog. */
.finance-insights-card{margin-top:16px;background:radial-gradient(ellipse at 0 0,rgba(40,193,152,.045),transparent 70%),var(--panel)}
.finance-insights-card{margin-top:16px;background:radial-gradient(ellipse at 0 0,rgba(40,193,152,.045),transparent 70%),var(--panel)}
.finance-insights-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.finance-insights-heading h2{margin:5px 0 6px;font-size:22px;letter-spacing:-.4px}
.finance-insights-heading p{margin:0;font-size:13px;color:var(--muted);line-height:1.5}
.finance-insights-eyebrow{font-size:10px;font-weight:650;letter-spacing:1.5px;text-transform:uppercase;color:#63d6b5}
.finance-savings-badge{flex:none;padding:6px 10px;border:1px solid rgba(76,208,166,.17);background:rgba(76,208,166,.07);border-radius:99px;color:#7cddbf;font-size:11px}
.finance-saving-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.finance-saving-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:17px 18px;border:1px solid var(--border);border-radius:12px;background:rgba(16,30,46,.62);text-align:left;font:inherit;color:var(--text);cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.finance-saving-card:hover{border-color:rgba(85,210,177,.48);background:rgba(76,208,166,.045);transform:translateY(-2px)}
.finance-saving-card:focus-visible,.finance-insight-row:focus-visible{outline:2px solid #62d6b3;outline-offset:3px}
.finance-saving-top{display:flex;align-items:center;gap:9px;font-size:11px;color:#8ddcc5}
.finance-saving-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:rgba(75,205,166,.1);color:#79dabb}
.finance-saving-icon svg{width:17px;height:17px}
.finance-saving-arrow{margin-left:auto;color:var(--muted);font-size:17px}
.finance-saving-card>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;font-size:14px;font-weight:600;min-height:42px;overflow-wrap:anywhere}
.finance-saving-action{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;color:var(--muted);line-height:1.65;overflow-wrap:anywhere}
.finance-saving-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:13px;border-top:1px solid var(--border);color:#91d5c1;font-size:11px;line-height:1.4}
.finance-saving-bottom>b{font-weight:550}
.is-attention .finance-saving-icon{color:#f3c28d;background:rgba(243,194,141,.09)}
.is-attention .finance-saving-top{color:#e6bf93}
.is-routine .finance-saving-icon{color:#8eb3d4;background:rgba(142,179,212,.09)}
.finance-insights-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
.finance-insights-footer>div{display:flex;align-items:center;gap:14px}
.finance-insights-footer .finance-muted{font-size:10px}
.finance-insights-open,.finance-insights-refresh,.finance-insights-back{border:0;background:transparent;padding:7px 0;color:#8dc8ff;cursor:pointer;font:inherit;font-size:12px;text-align:left}
.finance-insights-open:disabled{color:var(--muted);cursor:default}
.finance-insights-refresh{color:var(--muted);font-size:11px}
.finance-insights-open:hover,.finance-insights-refresh:hover,.finance-insights-back:hover{color:var(--text)}
.finance-insights-empty{grid-column:1/-1;display:grid;gap:6px;padding:20px 0;font-size:13px}
.finance-insights-empty>span{font-size:12px;color:var(--muted)}
.finance-insights-modal[hidden],.finance-insights-modal [hidden]{display:none!important}
.finance-insights-modal{position:fixed;inset:0;z-index:1200;display:flex;justify-content:center;align-items:center;padding:28px;background:rgba(2,8,16,.76);backdrop-filter:blur(7px)}
.finance-insights-panel{width:min(830px,100%);max-height:90vh;max-height:90dvh;overflow-y:auto;padding:26px!important;border:1px solid var(--border);border-radius:17px;background:var(--panel);box-shadow:0 25px 100px rgba(0,0,0,.35);overscroll-behavior:contain}
.finance-insights-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.finance-insights-modal-heading h2{margin:0;font-size:23px;letter-spacing:-.3px}
.finance-insights-modal-heading p{font-size:12px;line-height:1.6;margin:6px 0 0}
.finance-insights-back{display:block;margin-bottom:10px;padding:0;font-size:11px}
.finance-insight-filters{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--border);margin-bottom:8px}
.finance-insight-filters button{padding:8px 11px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:8px;font:inherit;font-size:12px;cursor:pointer}
.finance-insight-filters button[aria-pressed="true"]{color:#91dfc6;background:rgba(76,208,166,.08);border-color:rgba(76,208,166,.2)}
.finance-insight-rows{display:grid;gap:0}
.finance-insight-row{display:flex;align-items:center;gap:13px;width:100%;padding:17px 4px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.finance-insight-row:last-child{border-bottom:0}
.finance-insight-row:hover{background:rgba(255,255,255,.025)}
.finance-insight-row-copy{display:grid;gap:5px;min-width:0;flex:1}
.finance-insight-row-copy>strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.finance-insight-row-copy>span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted);font-size:12px}
.finance-insight-row-kind{font-size:10px;color:#79dabb}
.is-attention .finance-insight-row-kind{color:#e6bf93}
.is-routine .finance-insight-row-kind{color:var(--muted)}
.finance-insight-row-end{display:flex;align-items:center;gap:10px;flex:none;color:var(--muted);font-size:15px}
.finance-insight-row-end>b{font-size:11px;font-weight:500;color:#91dfc6}
.finance-insight-detail-heading{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.finance-insight-detail>h3{font-size:22px;letter-spacing:-.3px;margin:14px 0 10px;line-height:1.4;overflow-wrap:anywhere}
.finance-insight-detail-summary{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 20px}
.finance-insight-next-step{display:grid;gap:7px;padding:18px 20px;background:rgba(76,208,166,.06);border:1px solid rgba(76,208,166,.16);border-radius:12px}
.finance-insight-next-step h4,.finance-insight-reason h4{font-size:13px;margin:0}
.finance-insight-next-step p,.finance-insight-reason p{margin:0;font-size:13px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}
.finance-insight-next-step>strong{color:#95dfc8;font-size:15px;margin-top:4px}
.finance-insight-next-step small{font-size:11px;color:var(--muted);line-height:1.65}
.finance-insight-reason{display:grid;gap:10px;margin-top:23px}
.finance-insight-reason>p{color:var(--muted)}
.finance-insight-detail-meta{display:flex;flex-wrap:wrap;gap:7px 16px;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.7}
.finance-insight-review{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.finance-insight-review button{background:transparent;border:1px solid var(--border);border-radius:8px;color:var(--muted);padding:8px 12px;font:inherit;font-size:11px;cursor:pointer}
.finance-insight-review button:hover{border-color:#72cbb1;color:var(--text)}
.finance-insight-review button:disabled{opacity:.5;cursor:wait}
.finance-insight-review>span{font-size:11px;color:var(--muted)}
@media(max-width:1050px){.finance-saving-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-saving-card:last-child:nth-child(odd){grid-column:1/-1}.finance-saving-card:last-child:nth-child(odd)>strong{min-height:0}}
@media(max-width:650px){.finance-insights-heading{gap:10px;align-items:flex-start}.finance-insights-heading h2{font-size:20px}.finance-insights-heading p{font-size:12px}.finance-savings-badge{font-size:10px;padding:5px 8px}.finance-saving-grid{grid-template-columns:1fr;gap:10px}.finance-saving-card{padding:14px;gap:9px}.finance-saving-card>strong{min-height:0}.finance-saving-top{font-size:10px}.finance-saving-icon{width:27px;height:27px}.finance-saving-bottom{padding-top:10px}.finance-insights-footer{align-items:flex-start;gap:10px}.finance-insights-footer>div{display:grid;gap:2px;text-align:right}.finance-insights-refresh{text-align:right}.finance-insights-modal{padding:10px}.finance-insights-panel{padding:18px!important;max-height:94vh;max-height:94dvh;border-radius:13px}.finance-insights-modal-heading h2{font-size:20px}.finance-insight-filters{gap:2px}.finance-insight-filters button{padding:7px 8px;font-size:11px}.finance-insight-row{gap:10px}.finance-insight-row-copy>strong{font-size:13px}.finance-insight-row-copy>span:last-child{font-size:11px}.finance-insight-row-end>b{display:none}.finance-insight-detail>h3{font-size:20px}.finance-insight-next-step{padding:15px}}
.finance-panel[hidden],.finance-settings-section[hidden],.finance-main-tabs button[hidden]{display:none!important}
.finance-main-tabs,.finance-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px;border-bottom:1px solid var(--border)}
.finance-main-tabs button,.finance-settings-tabs button{padding:11px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);cursor:pointer}
.finance-main-tabs button.active,.finance-settings-tabs button.active{color:var(--text);border-color:var(--blue)}
.finance-settings-section{display:block}.finance-settings-section.active{animation:finance-in .18s ease-out}@keyframes finance-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
.finance-meter-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.finance-meter-kpis article{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--border);border-radius:11px;background:var(--panel2)}
.finance-meter-kpis span{color:var(--muted);font-size:11px}.finance-meter-kpis strong{font-size:19px;font-variant-numeric:tabular-nums}
.finance-energy-bars{height:180px;display:flex;align-items:flex-end;gap:5px;overflow-x:auto;padding:6px 2px}
.finance-energy-bar{flex:1;min-width:24px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;font-size:9px;color:var(--muted)}
.finance-energy-bar i{display:block;width:min(100%,26px);min-height:2px;background:linear-gradient(180deg,var(--blue),#33c18b);border-radius:5px 5px 2px 2px}
.finance-energy-bar small{font-size:9px}.finance-status-pill{border-radius:999px;padding:5px 9px;background:rgba(255,182,110,.12);color:#ffb66e;font-size:11px}
.finance-status-pill.connected{background:rgba(32,199,122,.13);color:#62dfa3}
.finance-openai-summary{display:grid;gap:8px;margin-top:14px}.finance-document .finance-actions{flex-wrap:wrap}
.finance-header{gap:18px;align-items:flex-end}
.finance-toolbar,.finance-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.finance-toolbar input,.finance-form input,.finance-form select{min-height:40px;padding:9px 11px;color:var(--text);background:var(--panel2);border:1px solid var(--border);border-radius:9px}
.finance-toolbar input[type="month"]{color-scheme:dark;accent-color:var(--blue);min-width:190px}
.finance-form input[type="file"]{min-height:44px;padding:6px;background:var(--panel2);color:var(--muted);cursor:pointer}
.finance-form input[type="file"]::file-selector-button{min-height:30px;margin:0 10px 0 0;padding:6px 12px;border:1px solid var(--border);border-radius:7px;background:rgba(22,131,255,.14);color:#8fc5ff;font:inherit;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.finance-form input[type="file"]::file-selector-button:hover{background:rgba(22,131,255,.24);border-color:var(--blue)}
.finance-toolbar label,.finance-form label{font-size:12px;color:var(--muted)}
.finance-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}
.finance-kpi{display:flex;flex-direction:column;gap:7px}
.finance-kpi span,.finance-kpi small,.finance-status,.finance-chart-caption,.finance-key-note{color:var(--muted);font-size:12px}
.finance-kpi strong{font-size:25px;line-height:1.2}
.finance-total-kpi{margin-top:14px}.finance-kpi-primary{border-color:rgba(22,131,255,.35);background:linear-gradient(120deg,rgba(22,131,255,.11),var(--panel))}.finance-kpi-primary strong{font-size:clamp(25px,4vw,36px)}
.finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.finance-cost-grid{grid-template-columns:minmax(0,1fr)}
.finance-chart{min-height:210px;display:flex;flex-direction:column;justify-content:center;gap:13px}
.finance-chart svg{width:100%;height:auto;max-height:230px;overflow:visible}
.finance-axis{stroke:var(--border);stroke-width:1}
.finance-axis-label{fill:var(--muted);font-size:11px}
.finance-line{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.finance-series-1{stroke:#8a79ff}.finance-series-2{stroke:#20c77a}.finance-series-3{stroke:#ffb66e}
.finance-dot{fill:var(--blue);stroke:var(--panel);stroke-width:2}
.finance-dot.finance-series-1{fill:#8a79ff}.finance-dot.finance-series-2{fill:#20c77a}.finance-dot.finance-series-3{fill:#ffb66e}
.finance-legend{display:flex;gap:12px;flex-wrap:wrap}.finance-legend-item{font-size:11px;color:var(--muted)}.finance-legend-item:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--blue);margin-right:5px}.finance-legend-item.finance-series-1:before{background:#8a79ff}.finance-legend-item.finance-series-2:before{background:#20c77a}.finance-legend-item.finance-series-3:before{background:#ffb66e}
.finance-usage{margin-top:10px;color:var(--muted);font-size:12px}
.finance-chart-caption{line-height:1.5}
.finance-bar-row{display:grid;gap:5px}
.finance-bar-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.finance-bar-row strong{font-variant-numeric:tabular-nums}
.finance-bar-row small{color:var(--muted);font-size:11px}
.finance-bar-track{height:7px;background:rgba(255,255,255,.06);border-radius:99px;overflow:hidden}
.finance-bar-track i{display:block;height:100%;border-radius:99px;background:var(--blue)}
.finance-bar-track i.fixed{background:#8a79ff}.finance-bar-track i.actual,.finance-bar-track i.measured{background:var(--green)}
.finance-daily-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.finance-daily-stats>div{display:grid;gap:4px;padding:10px 11px;background:var(--panel2);border:1px solid var(--border);border-radius:9px}.finance-daily-stats small{color:var(--muted);font-size:10px}.finance-daily-stats strong{font-size:15px;font-variant-numeric:tabular-nums}.finance-daily-legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:11px}.finance-daily-legend span{display:inline-flex;align-items:center;gap:6px}.finance-daily-legend i{width:9px;height:9px;border-radius:3px;background:linear-gradient(180deg,var(--blue),#33c18b)}.finance-daily-legend span+span i{background:#ffb66e}.finance-daily-chart-scroll{overflow-x:auto;padding:8px 0 6px}.finance-daily-bars{height:250px;min-width:max-content;display:flex;align-items:stretch;gap:8px;padding:4px 2px 0}.finance-daily-bar{width:52px;min-width:52px;padding:0;border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;cursor:pointer}.finance-daily-bar span{font-size:10px;white-space:nowrap;color:var(--text);opacity:.82}.finance-daily-bar i{height:var(--bar-height);min-height:3px;width:28px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--blue),#33c18b);transition:filter .15s}.finance-daily-bar b{height:var(--pending-height);width:28px;min-height:3px;background:#ffb66e;border-radius:4px 4px 0 0}.finance-daily-bar:hover i,.finance-daily-bar:focus-visible i{filter:brightness(1.35)}.finance-daily-bar small{font-size:10px}.finance-daily-bar:focus-visible,.finance-category-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.finance-daily-bar i.outflow{height:var(--outflow-height);background:#318bff}.finance-daily-bar b.inflow{height:var(--inflow-height);background:#31c48d}.finance-daily-bar em.unknown{display:block;height:var(--unknown-height);width:28px;min-height:3px;flex:none;background:#ffb66e;border-radius:3px 3px 0 0}.finance-daily-legend .outflow i{background:#318bff}.finance-daily-legend .inflow i{background:#31c48d}.finance-daily-legend .unknown i{background:#ffb66e}
.finance-daily-bar i.outflow,.finance-daily-bar b.inflow,.finance-daily-bar em.unknown{min-height:0}
.finance-category-button{width:100%;padding:3px 0;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.finance-category-heading{display:flex;justify-content:space-between;gap:12px;font-size:13px}.finance-category-heading strong{font-variant-numeric:tabular-nums}.finance-category-button:hover .finance-category-heading>span:first-child{color:#65adff}.finance-category-button small{display:block;color:var(--muted);font-size:11px}
.finance-energy-range{display:flex;justify-content:flex-end;gap:6px;margin:8px 0}.finance-energy-range button{padding:6px 11px;border:1px solid var(--border);border-radius:7px;background:var(--panel2);color:var(--muted);cursor:pointer}.finance-energy-range button[aria-pressed="true"]{border-color:var(--blue);background:rgba(22,131,255,.16);color:var(--text)}.finance-energy-charts{align-items:stretch}.finance-energy-charts>div,.finance-power-section{min-width:0;padding:12px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.015)}.finance-energy-charts h3,.finance-power-section h3{margin:0 0 8px}.finance-energy-stats{display:grid;gap:5px;font-size:11px;color:var(--muted)}.finance-energy-stats span{display:flex;justify-content:space-between;gap:8px}.finance-energy-stats strong{color:var(--text);font-variant-numeric:tabular-nums;text-align:right}.finance-energy-scroll{overflow-x:auto;margin-top:12px}.finance-energy-bars{height:220px;min-width:max-content;display:flex;align-items:stretch;gap:7px;padding:5px 2px 0}.finance-energy-bar{width:54px;min-width:54px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;padding:0 0 2px;border:0;background:transparent;color:var(--muted);cursor:pointer}.finance-energy-bar span{font-size:10px;color:var(--text);white-space:nowrap}.finance-energy-bar i{height:var(--energy-height);min-height:3px;width:25px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,var(--blue),#30bf88);transition:filter .15s}.finance-energy-bar:hover i,.finance-energy-bar:focus-visible i{filter:brightness(1.35)}.finance-energy-bar:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}.finance-power-section{margin-top:12px}
.finance-detail-modal[hidden]{display:none}.finance-detail-modal{position:fixed;inset:0;z-index:2000;padding:24px;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center}.finance-detail-panel{width:min(620px,100%);max-height:min(82vh,760px);overflow:auto;padding:20px}.finance-detail-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.finance-detail-panel h2{margin:0;font-size:19px}.finance-detail-panel p{margin:5px 0 0}.finance-detail-close{width:34px;height:34px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);color:var(--text);font-size:24px;line-height:1;cursor:pointer}.finance-detail-rows{display:grid}.finance-detail-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 2px;border-bottom:1px solid var(--border)}.finance-detail-row>div{display:grid;gap:4px;min-width:0}.finance-detail-row>div strong{font-size:13px;overflow-wrap:anywhere}.finance-detail-row>div span{font-size:11px;color:var(--muted)}.finance-detail-row>strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.finance-actions{margin-top:12px}.finance-actions a{color:#65adff;font-size:13px;text-decoration:none}
.finance-key-note{margin:0 0 14px}.finance-notice{min-height:0;color:var(--green);font-size:13px;margin-top:12px}.finance-notice.error,.finance-warning{color:#ffb66e}
.finance-card{margin:16px 0}.finance-table-wrap{overflow-x:auto}.finance-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.finance-table th,.finance-table td{padding:12px 10px;border-bottom:1px solid var(--border);white-space:nowrap}.finance-table th{color:var(--muted);font-weight:500}.finance-tag{padding:4px 8px;border-radius:99px;font-size:11px;background:rgba(22,131,255,.13);color:#7cbaff}.finance-tag.measured{background:rgba(32,199,122,.13);color:#62dfa3}
.finance-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.finance-form h3{grid-column:1/-1;margin:0;font-size:14px}.finance-form label{display:flex;flex-direction:column;gap:6px}.finance-form label.finance-check{flex-direction:row;align-items:center;align-self:end;min-height:40px}.finance-form label.finance-check input{min-height:auto}.finance-form button{align-self:end;min-height:40px}
.finance-list{display:flex;flex-direction:column;gap:9px}.finance-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.finance-list-item>div{display:grid;gap:4px}.finance-list-item strong{font-size:13px}.finance-list-item span{font-size:11px;color:var(--muted)}.finance-list-item button{border:0;background:none;color:#65adff;font-size:12px}
.finance-empty,.finance-muted{color:var(--muted);font-size:12px}.finance-empty{padding:25px 0;text-align:center}
.finance-extract{max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:var(--panel2);border-radius:8px;font-size:11px;color:var(--muted)}
.finance-review-json{grid-column:1/-1;width:100%;color:var(--text);background:var(--panel2);border:1px solid var(--border);border-radius:8px;padding:10px;font-family:monospace}
.finance-meter-totals{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0}.finance-document{align-items:flex-start}.finance-document details{margin-top:8px}.finance-document summary{font-size:12px;color:#65adff;cursor:pointer}
@media(max-width:850px){.finance-grid{grid-template-columns:1fr}.finance-kpis{grid-template-columns:1fr}.finance-meter-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-header{align-items:flex-start;flex-direction:column}.finance-toolbar{width:100%}.finance-toolbar input{flex:1;min-width:120px}.finance-insights-list{grid-template-columns:1fr}.finance-daily-stats{grid-template-columns:1fr 1fr}.finance-detail-modal{padding:12px}.finance-detail-panel{padding:16px}}

/* Compact dashboard entry; category browsing lives in its own dialog. */
.finance-categories-card{padding:18px}
.finance-categories-title{margin-bottom:12px}
.finance-categories-title h2{margin:0;font-size:16px}
.finance-categories-title p{margin:4px 0 0;font-size:12px}
.finance-category-launch{display:flex;align-items:center;gap:16px;width:100%;min-height:68px;padding:12px 14px;border:1px solid rgba(22,131,255,.2);border-radius:11px;background:linear-gradient(100deg,rgba(22,131,255,.08),rgba(22,131,255,.025));color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.finance-category-launch:hover{border-color:rgba(22,131,255,.6);background:rgba(22,131,255,.11)}
.finance-category-launch:focus-visible,.finance-category-tile:focus-visible,.finance-category-back:focus-visible{outline:2px solid #78b8ff;outline-offset:3px}
.finance-category-launch-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid rgba(22,131,255,.2);border-radius:10px;background:rgba(22,131,255,.12);color:#7abbff;font-size:26px;line-height:1}
.finance-category-launch-summary{display:grid;gap:4px;flex:none}
.finance-category-launch-summary strong{font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums}
.finance-category-launch-summary small{color:var(--muted);font-size:11px}
.finance-category-launch-top{margin-left:8px;flex:1;min-width:0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.finance-category-launch-action{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto;color:#83beff;font-size:13px;white-space:nowrap}
.finance-category-launch-action>span{font-size:23px;line-height:1}
.finance-category-modal[hidden],#financeDetailBack[hidden],#financeDetailExtra[hidden]{display:none!important}
.finance-category-modal{position:fixed;inset:0;z-index:1990;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}
.finance-category-panel{width:min(1080px,100%);max-height:min(88vh,960px);padding:24px;overflow:auto;overscroll-behavior:contain}
.finance-category-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.finance-category-modal-header h2{margin:0;font-size:23px;letter-spacing:-.3px}
.finance-category-modal-header p{margin:6px 0 0;font-size:13px}
.finance-category-modal-header .finance-detail-close{flex:none}
.finance-category-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.finance-category-stats>div{display:grid;align-content:start;gap:6px;padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.025);min-width:0}
.finance-category-stats small{font-size:11px;color:var(--muted)}
.finance-category-stats strong{font-size:20px;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
.finance-category-stats span{font-size:11px;color:var(--muted);line-height:1.4}
.finance-category-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
.finance-category-search{flex:1;min-width:150px}
.finance-category-search input,.finance-category-sort select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--text);font:inherit;font-size:13px;color-scheme:dark;outline:none}
.finance-category-search input:focus,.finance-category-sort select:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(22,131,255,.13)}
.finance-category-search input::placeholder{color:var(--muted)}
.finance-category-sort{display:flex;align-items:center;gap:9px;flex:none;color:var(--muted);font-size:12px}
.finance-category-sort select{width:auto;min-width:170px}
.finance-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.finance-category-grid>.finance-empty{grid-column:1/-1;padding:38px 10px}
.finance-category-tile{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;padding:16px;border:1px solid var(--border);border-radius:12px;background:rgba(17,31,49,.65);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.finance-category-tile:hover{border-color:rgba(22,131,255,.55);background:rgba(22,131,255,.075);transform:translateY(-1px)}
.finance-category-tile .finance-category-heading{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;font-size:14px;font-weight:600;line-height:1.4}
.finance-category-tile .finance-category-heading>span:not(.finance-category-icon){min-width:0;overflow-wrap:anywhere}
.finance-category-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:9px;background:rgba(22,131,255,.12);color:#87c0ff;font-size:18px}
.finance-category-amount{font-size:24px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.4px;line-height:1.15;overflow-wrap:anywhere}
.finance-category-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;color:var(--muted);font-size:11px;line-height:1.5}
.finance-category-share{display:block;height:5px;min-height:5px;width:100%;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.06)}
.finance-category-share>i,.finance-category-share>b,.finance-category-share>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),#48b1ff)}
.finance-category-sources{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;color:var(--muted);font-size:10px;line-height:1.4}
.finance-category-sources>span{padding:4px 6px;border:1px solid var(--border);border-radius:5px;background:rgba(255,255,255,.02)}
.finance-detail-panel.finance-category-detail-panel{width:min(1000px,100%);max-height:min(88vh,960px);padding:24px}
.finance-category-back{display:inline-flex;align-items:center;gap:7px;padding:0 0 14px;margin:0;border:0;background:none;color:#82beff;font:inherit;font-size:13px;cursor:pointer}
.finance-category-detail-panel .finance-detail-row{padding:14px 2px}
.finance-category-detail-panel .finance-detail-row>div strong{font-size:14px}
.finance-category-detail-panel .finance-detail-row>div span{line-height:1.5}
.finance-category-facts{display:grid;gap:9px;padding:14px 16px;margin:0 0 18px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.018);font-size:12px;line-height:1.5}
.finance-category-facts>div,.finance-category-facts>p{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0}
.finance-category-facts span,.finance-category-facts small{color:var(--muted)}
.finance-category-facts strong{text-align:right;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.finance-category-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.finance-category-facts dt{color:var(--muted)}.finance-category-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.finance-category-heading>span:last-child:not(.finance-category-icon){margin-left:auto}.finance-category-heading>span:nth-child(2){flex:1}
.finance-category-entry-group h3{margin:18px 0 4px;color:var(--muted);font-size:12px;font-weight:600}
.finance-category-grid>.finance-warning{grid-column:1/-1;margin:0;font-size:12px}
body.finance-dialog-open{overflow:hidden}.finance-detail-panel{overscroll-behavior:contain}
.finance-category-detail-panel .finance-category-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:650px){.finance-category-detail-panel .finance-category-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.finance-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-category-launch-top{display:none}}
@media(max-width:650px){.finance-categories-card{padding:16px}.finance-category-launch{padding:12px;gap:11px;flex-wrap:wrap}.finance-category-launch-icon{width:36px;height:36px}.finance-category-launch-summary strong{font-size:21px}.finance-category-launch-action{font-size:12px;gap:8px}.finance-category-modal{padding:10px}.finance-category-panel,.finance-detail-panel.finance-category-detail-panel{padding:17px;max-height:92dvh;border-radius:14px}.finance-category-modal-header h2{font-size:20px}.finance-category-modal-header{margin-bottom:17px}.finance-category-stats{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.finance-category-stats>div{padding:11px}.finance-category-stats>div:last-child:nth-child(odd){grid-column:1/-1}.finance-category-stats strong{font-size:18px}.finance-category-tools{align-items:stretch;flex-direction:column;gap:10px}.finance-category-sort{justify-content:space-between}.finance-category-sort select{flex:1;max-width:230px}.finance-category-grid{grid-template-columns:1fr;gap:10px}.finance-category-tile{padding:15px}.finance-category-amount{font-size:23px}.finance-category-facts>div,.finance-category-facts>p{flex-wrap:wrap;gap:3px}.finance-category-detail-panel .finance-detail-row{align-items:flex-start}.finance-category-detail-panel .finance-detail-row>strong{padding-top:2px}}

/* Energy charts keep consumption, cost and individual devices easy to scan. */
.finance-energy-dashboard>.section-title{align-items:flex-start;gap:15px}
.finance-energy-dashboard .finance-live-label{color:var(--muted);font-size:11px;text-align:right;line-height:1.5}
.finance-energy-dashboard .finance-energy-range{gap:4px;padding:4px;margin:6px 0 16px 0;width:max-content;max-width:100%;margin-left:auto;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.025)}
.finance-energy-range button{border-color:transparent;background:transparent;min-height:32px;padding:6px 13px;font-size:12px}
.finance-energy-range button[aria-pressed="true"]{background:rgba(22,131,255,.15);border-color:rgba(22,131,255,.35)}
.finance-energy-charts{gap:16px;margin-top:0}
.finance-energy-charts>.finance-energy-card{--energy-color:#3b9bff;--energy-end:#2fc6b0;--energy-wash:rgba(59,155,255,.12);padding:17px;border-radius:13px;background:linear-gradient(150deg,rgba(17,31,49,.75),rgba(8,19,31,.4));border:1px solid var(--border)}
.finance-energy-charts>.finance-energy-card.is-gas{--energy-color:#ffad60;--energy-end:#e77b43;--energy-wash:rgba(255,173,96,.12)}
.finance-energy-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.finance-energy-card-heading h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:600;white-space:nowrap}
.finance-energy-card-heading h3>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--energy-wash);color:var(--energy-color);font-size:20px;font-weight:500}
.finance-energy-mode{display:flex;gap:3px;padding:3px;border:1px solid var(--border);border-radius:8px;background:rgba(0,0,0,.1)}
.finance-energy-mode button{min-height:29px;padding:5px 9px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
.finance-energy-mode button[aria-pressed="true"]{background:var(--energy-wash);border-color:color-mix(in srgb,var(--energy-color) 35%,transparent);color:var(--text)}
.finance-energy-mode button:focus-visible,.finance-energy-range button:focus-visible{outline:2px solid var(--energy-color,var(--blue));outline-offset:2px}
.finance-energy-card>.finance-chart{display:block;min-height:0}
.finance-energy-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 14px}
.finance-energy-summary>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px}
.finance-energy-summary>div>small{display:block;flex-basis:100%;font-size:11px;color:var(--muted);line-height:1.4}
.finance-energy-summary strong{font-size:30px;line-height:1.15;font-weight:650;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.finance-energy-summary strong small,.finance-energy-summary strong span,.finance-energy-summary>div>span{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}
.finance-energy-summary>small,.finance-energy-summary>span{max-width:45%;text-align:right;color:var(--muted);font-size:11px;line-height:1.5}
.finance-energy-chart-meta,.finance-energy-insights{display:flex;align-items:center;justify-content:flex-start;gap:7px 16px;flex-wrap:wrap;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--border);color:var(--muted);font-size:11px;line-height:1.6}
.finance-energy-chart-meta strong,.finance-energy-insights strong{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.finance-energy-chart-body,.finance-energy-plot{position:relative;min-width:0}
.finance-energy-chart-body .finance-energy-scroll{overflow-x:auto;overflow-y:visible;padding:18px 2px 1px;margin:0;scrollbar-width:thin;scrollbar-color:rgba(145,160,181,.3) transparent}
.finance-energy-chart-body .finance-energy-bars{height:238px;min-width:100%;width:max-content;gap:6px;padding:0 2px;border-bottom:1px solid rgba(145,160,181,.24);background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),rgba(145,160,181,.07) calc(25% - 1px),rgba(145,160,181,.07) 25%)}
.finance-energy-chart-body .finance-energy-bar{position:relative;flex:1;width:44px;min-width:44px;gap:7px;padding:0 0 7px;font:inherit}
.finance-energy-chart-body .finance-energy-bar>span{font-size:10px;line-height:1;color:var(--text);opacity:.8;font-variant-numeric:tabular-nums}
.finance-energy-chart-body .finance-energy-bar>i{width:23px;max-width:70%;background:linear-gradient(180deg,var(--energy-color,#3b9bff),var(--energy-end,#2fc6b0));border-radius:5px 5px 1px 1px;transition:filter .15s,box-shadow .15s,opacity .15s}
.finance-energy-chart-body .finance-energy-bar>small{font-size:10px;line-height:1;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.finance-energy-chart-body .finance-energy-bar:hover>i,.finance-energy-chart-body .finance-energy-bar:focus-visible>i,.finance-energy-chart-body .finance-energy-bar.is-selected>i{filter:brightness(1.18);box-shadow:0 0 0 2px var(--energy-wash)}
.finance-energy-chart-body .finance-energy-bar.is-selected>small,.finance-energy-chart-body .finance-energy-bar:hover>small{color:var(--energy-color,var(--blue))}
.finance-energy-chart-body .finance-energy-bar.is-selected>span{opacity:1}
.finance-energy-chart-body .finance-energy-bar.is-credit>i{background:linear-gradient(180deg,#9e91ff,#7769d8)}
.finance-energy-chart-body .finance-energy-bar:focus-visible{outline-color:var(--energy-color,var(--blue))}
.finance-energy-chart-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:11px;line-height:1.5}
.finance-energy-chart-footer strong{color:var(--text);font-size:11px;font-weight:500}
.finance-energy-tooltip[hidden],.finance-power-tooltip[hidden]{display:none!important}
.finance-energy-tooltip,.finance-power-tooltip{position:absolute;z-index:20;left:50%;bottom:48px;width:220px;max-width:calc(100% - 18px);padding:13px 14px;border:1px solid rgba(145,160,181,.28);border-radius:11px;background:rgba(8,19,32,.97);box-shadow:0 14px 35px rgba(0,0,0,.4);color:var(--text);font-size:12px;line-height:1.5;pointer-events:none;transform:translateX(-50%);backdrop-filter:blur(8px)}
.finance-energy-tooltip>strong,.finance-power-tooltip>strong{display:block;margin-bottom:7px;color:var(--energy-color,#78bcff);font-size:13px}
.finance-energy-tooltip dl,.finance-power-tooltip dl{display:grid;grid-template-columns:1fr auto;gap:5px 14px;margin:0}
.finance-energy-tooltip dt,.finance-power-tooltip dt{color:var(--muted);font-size:11px}
.finance-energy-tooltip dd,.finance-power-tooltip dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.finance-energy-tooltip>small,.finance-power-tooltip>small{display:block;margin-top:8px;color:var(--muted);font-size:10px}
.finance-energy-svg{display:block;width:100%;height:240px!important;max-height:none!important;overflow:visible}
.finance-energy-svg .finance-energy-bar-fill{fill:var(--energy-color,#3b9bff)}
.finance-energy-svg text{fill:var(--muted);font-size:10px}
.finance-power-section{padding:17px;margin-top:16px;border-radius:13px;background:rgba(255,255,255,.018)}
.finance-power-section h3{font-size:15px;margin:0 0 12px}
.finance-power-section .finance-chart{position:relative;min-height:230px}
.finance-power-section .finance-chart-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:11px}
.finance-meter-devices-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 12px}
.finance-meter-devices-heading h3{margin:0;font-size:15px;font-weight:600}
.finance-meter-devices-heading>span{font-size:11px;text-align:right}
.finance-meter-device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.finance-meter-device{display:flex;flex-direction:column;gap:15px;width:100%;min-width:0;padding:16px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(145deg,rgba(17,31,49,.8),rgba(12,25,40,.6));color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.finance-meter-device:hover{border-color:rgba(22,131,255,.5);background:rgba(22,131,255,.07)}
.finance-meter-device:focus-visible{outline:2px solid #78b8ff;outline-offset:3px}
.finance-meter-device-heading{display:flex;align-items:center;gap:8px;min-width:0}
.finance-meter-device-heading>strong,.finance-meter-device-heading>span:nth-child(2){flex:1;min-width:0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.finance-meter-device-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:8px;background:rgba(22,131,255,.11);color:#7ebaff;font-size:17px}
.finance-meter-device-heading .finance-status-pill,.finance-meter-device-status{margin-left:auto;padding:4px 6px;white-space:nowrap;font-size:9px;font-weight:500}
.finance-meter-device-power{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;min-width:0}
.finance-meter-device-power>strong{font-size:28px;line-height:1.1;font-weight:650;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.finance-meter-device-power>span{color:var(--muted);font-size:12px}
.finance-meter-device-power>small{flex-basis:100%;margin-top:2px;color:var(--muted);font-size:11px}
.finance-meter-device-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.finance-meter-device-values dl,.finance-meter-device-values>div{min-width:0;padding:10px 11px;margin:0;border:1px solid var(--border);border-radius:8px;background:rgba(0,0,0,.08)}
.finance-meter-device-values dt,.finance-meter-device-values small{color:var(--muted);font-size:10px;line-height:1.4}
.finance-meter-device-values dd,.finance-meter-device-values strong{display:block;margin:5px 0 0;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finance-meter-device footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid var(--border);color:var(--muted);font-size:10px;line-height:1.4}
.finance-meter-device footer>span:last-child{color:#75b6ff}
@media(max-width:1100px){.finance-meter-device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-energy-card-heading{align-items:flex-start;flex-direction:column;gap:11px}.finance-energy-mode{align-self:flex-end;margin-top:-3px}}
@media(max-width:850px){.finance-energy-card-heading{align-items:center;flex-direction:row}.finance-energy-mode{align-self:auto;margin-top:0}}
@media(max-width:650px){.finance-energy-dashboard>.section-title{flex-direction:column;gap:6px}.finance-energy-dashboard .finance-live-label{text-align:left}.finance-energy-charts>.finance-energy-card{padding:14px}.finance-energy-card-heading{gap:8px}.finance-energy-card-heading h3{font-size:14px}.finance-energy-mode button{padding:5px 8px;font-size:10px}.finance-energy-summary strong{font-size:27px}.finance-energy-chart-meta,.finance-energy-insights{gap:5px 13px}.finance-energy-chart-body .finance-energy-bars{height:215px}.finance-energy-chart-body .finance-energy-bar{width:39px;min-width:39px}.finance-energy-tooltip,.finance-power-tooltip{width:205px}.finance-meter-device-grid{grid-template-columns:1fr}.finance-meter-devices-heading{align-items:flex-start;flex-direction:column;gap:5px;margin-top:21px}.finance-meter-devices-heading>span{text-align:left}.finance-meter-device{padding:15px}.finance-meter-device-power>strong{font-size:27px}.finance-power-section{padding:14px}.finance-power-section .finance-chart{min-height:205px}}
