.energy-pilot{--pilot-accent:#197fba;--pilot-soft:#eaf5fb;color:var(--text);min-width:0}
.energy-pilot [hidden]{display:none!important}
.energy-pilot-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;background:var(--panel);border:1px solid var(--border);border-top:4px solid var(--pilot-accent);border-radius:18px}
.energy-pilot-banner h2{font-size:25px;margin:10px 0 8px;color:var(--text)}
.energy-pilot-banner p{margin:0;max-width:670px;color:var(--muted);font-size:13px;line-height:1.65}
.energy-pilot-chip{display:inline-flex;align-items:center;width:max-content;max-width:100%;border:1px solid var(--border);border-radius:999px;background:var(--soft);padding:4px 9px;font-size:11px;font-weight:700;color:var(--muted);white-space:normal}
.energy-pilot-chip.shadow{background:var(--pilot-soft);border-color:#9fcbe4;color:#135b85}
.energy-pilot-safety{flex:0 0 auto;display:grid;gap:6px;padding:15px 18px;border:1px solid var(--border);border-radius:12px;background:var(--soft)}
.energy-pilot-safety strong{font-size:15px}.energy-pilot-safety span{font-size:11px;color:var(--muted)}
.energy-pilot-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0 14px}
.energy-pilot-toolbar>label{display:grid;gap:7px;flex:1 1 280px;max-width:450px;font-size:12px;font-weight:600}
.energy-pilot-toolbar>span{font-size:12px;color:var(--muted);padding-bottom:10px}
.energy-pilot input:not([type="checkbox"]),.energy-pilot select{display:block;width:100%;min-width:0;min-height:42px;border:1px solid var(--border);border-radius:9px;padding:10px 11px;background:var(--panel);color:var(--text);font:inherit}
.energy-pilot input:focus-visible,.energy-pilot select:focus-visible,.energy-pilot button:focus-visible,.energy-pilot summary:focus-visible{outline:2px solid #2684ff;outline-offset:3px}
.energy-pilot-layout{display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:20px;align-items:start}
.energy-pilot-list{display:grid;gap:9px;min-width:0}
.energy-pilot-installation{display:grid;gap:7px;padding:15px;text-align:left;font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:12px;cursor:pointer;min-width:0}
.energy-pilot-installation:hover,.energy-pilot-installation.selected{border-color:var(--pilot-accent);background:var(--pilot-soft)}
.energy-pilot-installation.selected{box-shadow:inset 3px 0 var(--pilot-accent)}
.energy-pilot-installation>span{font-size:12px;overflow-wrap:anywhere}.energy-pilot-installation small{font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.energy-pilot-card-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.energy-pilot-card-head strong{font-size:14px;line-height:1.4}
.energy-pilot-workspace{min-width:0}.energy-pilot-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:20px;margin-bottom:16px;min-width:0}
.energy-pilot-section-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}.energy-pilot-section-head h2{font-size:22px;margin:0 0 5px;overflow-wrap:anywhere}.energy-pilot-section-head h3{font-size:17px;margin:0 0 5px}
.energy-pilot-muted{color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0}
.energy-pilot-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.energy-pilot-form-grid label{display:grid;gap:7px;font-size:12px;font-weight:600;align-content:start}.energy-pilot-form-grid label small{font-size:11px;line-height:1.5;color:var(--muted);font-weight:400}
.energy-pilot-form-grid .energy-pilot-checkbox{display:flex;align-items:start;gap:10px;padding-top:24px}.energy-pilot-checkbox input{width:19px;height:19px;margin:0;flex:none;accent-color:var(--pilot-accent)}.energy-pilot-checkbox span{line-height:1.5}.energy-pilot-checkbox small{display:block;margin-top:6px}
.energy-pilot-mode-help,.energy-pilot-source-note{padding:12px 14px;background:var(--soft);border:1px solid var(--border);border-radius:10px;font-size:12px;line-height:1.65;color:var(--muted)}
.energy-pilot-advanced{margin:15px 0}.energy-pilot summary{padding:8px 0;cursor:pointer;font-size:12px;font-weight:600;line-height:1.5}.energy-pilot-advanced .energy-pilot-form-grid{margin-top:12px}
.energy-pilot-controls{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0 10px}.energy-pilot .btn{font-size:12px;white-space:normal;line-height:1.4}.energy-pilot .btn:disabled{opacity:.5;cursor:not-allowed}
.energy-pilot-message{font-size:12px;color:var(--text);line-height:1.6;overflow-wrap:anywhere}.energy-pilot-message[data-error="true"],.energy-pilot-connection{color:#b43b46;font-size:12px;line-height:1.6}.energy-pilot-connection:empty{display:none}
.energy-pilot-locked{padding:11px 12px;border:1px dashed var(--border);border-radius:9px;color:var(--muted);font-size:12px;margin-top:12px}
.energy-pilot-empty{padding:24px 20px;border:1px dashed var(--border);border-radius:12px;background:var(--soft);font-size:13px;color:var(--muted);line-height:1.65}.energy-pilot-empty strong{color:var(--text)}.energy-pilot-empty p{margin:7px 0}
.energy-pilot-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.energy-pilot-totals>div{border:1px solid var(--border);background:var(--soft);border-radius:10px;padding:12px;min-width:0}.energy-pilot-totals span{display:block;font-size:11px;color:var(--muted);line-height:1.5}.energy-pilot-totals strong{display:block;margin-top:8px;font-size:19px;overflow-wrap:anywhere}
.energy-pilot-table-wrap{max-width:100%;overflow:auto}.energy-pilot-slots{width:100%;border-collapse:collapse;font-size:11px;table-layout:auto}.energy-pilot-slots th{font-size:11px;text-align:left;color:var(--muted);background:var(--soft);padding:10px 8px;border-bottom:1px solid var(--border)}.energy-pilot-slots td{padding:11px 8px;border-bottom:1px solid var(--border);vertical-align:top;line-height:1.5}.energy-pilot-slots td:nth-child(2){min-width:140px;max-width:250px}.energy-pilot-slots small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:4px}.energy-pilot-slots strong{font-weight:600}
.energy-pilot-assumptions{margin-top:17px;font-size:12px;line-height:1.65;color:var(--muted)}.energy-pilot-assumptions ul,.energy-pilot-empty ul{padding-left:18px}.energy-pilot-log ol{list-style:none;padding:0;margin:12px 0 0}.energy-pilot-log li{display:grid;gap:5px;border-top:1px solid var(--border);padding:11px 0;font-size:12px;line-height:1.5}.energy-pilot-log li span,.energy-pilot-log li small{font-size:11px;color:var(--muted)}
html[data-mhb-color="dark"] .energy-pilot{--pilot-soft:#18354b;--pilot-accent:#6fb9e4}html[data-mhb-color="dark"] .energy-pilot-chip.shadow{border-color:#427b9e;color:#a4dcff}html[data-mhb-color="dark"] .energy-pilot-message[data-error="true"],html[data-mhb-color="dark"] .energy-pilot-connection{color:#ffacb8}
@media(max-width:1100px){.energy-pilot-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}.energy-pilot-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.energy-pilot-card{padding:16px}.energy-pilot-banner{align-items:start;gap:15px}.energy-pilot-safety{max-width:250px}}
@media(max-width:800px){.energy-pilot-layout{grid-template-columns:1fr}.energy-pilot-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px;overflow:auto;padding:3px}.energy-pilot-banner{display:block;padding:18px}.energy-pilot-safety{margin-top:15px;max-width:none}.energy-pilot-banner h2{font-size:22px}.energy-pilot-toolbar>label{max-width:none}.energy-pilot-slots thead{display:none}.energy-pilot-slots,.energy-pilot-slots tbody{display:block;width:100%}.energy-pilot-slots tr{display:block;border:1px solid var(--border);border-radius:10px;padding:8px 11px;margin-bottom:10px;background:var(--soft)}.energy-pilot-slots td{display:grid;grid-template-columns:76px minmax(0,1fr);gap:0 10px;padding:6px 0;border:0;max-width:none!important;min-width:0!important;overflow-wrap:anywhere}.energy-pilot-slots td::before{content:attr(data-label);font-weight:600;color:var(--muted);grid-row:1/span 3}.energy-pilot-slots td small{grid-column:2}.energy-pilot-slots td strong,.energy-pilot-slots td span{grid-column:2}.energy-pilot-table-wrap{overflow:visible}}
@media(max-width:500px){.energy-pilot-list,.energy-pilot-form-grid{grid-template-columns:1fr}.energy-pilot-list{max-height:290px}.energy-pilot-form-grid .energy-pilot-checkbox{padding-top:0}.energy-pilot-card{padding:13px}.energy-pilot-section-head{flex-wrap:wrap}.energy-pilot-totals>div{padding:10px}.energy-pilot-totals strong{font-size:17px}.energy-pilot-controls .btn{flex:1 1 150px}.energy-pilot-toolbar{gap:6px}}
