*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}body{margin:0;background:#0a1220;color:#eaf0fa;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.shell{display:flex;min-height:100vh}.sidebar{width:240px;flex:0 0 240px;background:#0c1728;border-right:1px solid #1e3044;padding:26px 15px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 46px;font-size:19px;letter-spacing:-.6px}.brand small{display:block;font-size:9px;letter-spacing:1.7px;font-weight:700;color:#6e849b;margin-top:4px}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(145deg,#2eddb3,#178cb3);color:#09243b;font-size:28px;font-weight:900}.section-title{padding:0 15px;margin-bottom:14px;font-size:10px;font-weight:800;letter-spacing:1.6px;color:#5c748e}.nav{display:flex;gap:13px;align-items:center;padding:13px;border-radius:9px;color:#a2b3c8;text-decoration:none;margin:2px 0;font-weight:600}.nav span{font-size:20px;width:23px;text-align:center}.nav.active{background:#1a3348;color:#70e5c6}.nav.disabled{opacity:.43;cursor:default}.nav em{margin-left:auto;font-style:normal;font-size:10px}.sidebar-foot{margin-top:auto;padding:18px 13px 4px;border-top:1px solid #20344a;color:#b5c5d3;font-size:12px}.sidebar-foot small{display:block;color:#71879b;margin-top:6px}.status-dot{display:inline-block;background:#24c69e;width:7px;height:7px;border-radius:50%;margin-right:7px}.main{min-width:0;flex:1;max-width:1650px;padding:0 38px 25px}.topbar{height:75px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1e3043}.crumb{font-size:13px;color:#9cafc1}.crumb span{padding:0 9px;color:#546579}.top-actions,.toolbar,.planner-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pill{font-size:11px;font-weight:750;letter-spacing:.3px;padding:8px 12px;border:1px solid;border-radius:50px}.pill.neutral{color:#7db8e4;border-color:#2a4763;background:#122338}.pill.safety{color:#ecc67c;border-color:#55422b;background:#30271b}.heading{display:flex;justify-content:space-between;gap:20px;align-items:end;padding:31px 0 24px}.eyebrow{color:#45cfad;font-size:10px;letter-spacing:2px;font-weight:800}h1{font-size:32px;letter-spacing:-1.1px;margin:9px 0 6px}h2{font-size:17px;letter-spacing:-.4px;margin:0}p{margin:5px 0 0;color:#889db1;line-height:1.55}.btn{border:1px solid transparent;border-radius:8px;padding:10px 14px;font-weight:650;font-size:12px;white-space:nowrap}.btn.subtle{background:#15263b;color:#c6d8e8}.btn.outline{background:transparent;border-color:#34516a;color:#bcd0e2}.btn.primary{background:#27cfab;color:#06261e;font-weight:800}.btn:hover{filter:brightness(1.15)}input[type=date]{background:#122236;border:1px solid #34516a;border-radius:8px;color:#dbe9f5;padding:9px;color-scheme:dark}.notice{background:#122c38;border:1px solid #24525a;color:#b4e8df;border-radius:11px;padding:13px 17px;display:flex;gap:12px;align-items:flex-start;margin-bottom:19px}.notice>span{font-size:21px;color:#5bdac2}.notice strong{font-size:13px}.notice p{font-size:12px;color:#8ebbb9;margin-top:4px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.stat,.panel{border:1px solid #22364a;background:#101e30;border-radius:12px}.stat{padding:19px 21px;min-width:0}.stat-label{display:block;color:#7790a7;font-size:10px;letter-spacing:1px;font-weight:800}.stat-value{font-size:28px;font-weight:800;letter-spacing:-1px;margin:12px 0 4px}.stat small{font-size:12px;color:#7f98ac}.panel{margin-bottom:19px;overflow:hidden}.panel-heading{padding:22px 23px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.panel-heading p{font-size:12px}.dim{font-size:12px;font-weight:500;color:#718ca5;margin-left:6px}.legend{display:flex;gap:18px;align-items:center;padding-top:6px;color:#91a7ba;font-size:11px}.swatch{display:inline-block;height:9px;width:9px;border-radius:3px;margin-right:5px}.swatch.low{background:#3ed9b3}.swatch.mid{background:#529cce}.swatch.high{background:#f0a46b}.chart{height:181px;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));align-items:end;gap:6px;padding:20px 25px 0;background:repeating-linear-gradient(to top,transparent,transparent 44px,#26394b 45px,#26394b 46px);background-size:calc(100% - 50px) 100%;background-position:25px 0;background-repeat:no-repeat}.chart-bar{height:var(--height);min-height:3px;border-radius:4px 4px 0 0;background:#529cce;position:relative}.chart-bar.low{background:#3ed9b3}.chart-bar.high{background:#f0a46b}.chart-bar.missing{height:2px!important;background:#2b4056}.chart-bar:hover{filter:brightness(1.25)}.chart-bar:hover:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#263b50;color:white;border-radius:6px;padding:6px 8px;white-space:nowrap;z-index:3;font-size:11px}.chart-axis{display:flex;justify-content:space-between;padding:12px 25px 16px;color:#7d92a6;font-size:11px}.planner-heading{padding-bottom:20px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:840px}thead{background:#142538}th{color:#7990a8;font-size:10px;letter-spacing:1px;text-align:center;padding:13px 15px}th.time-col,td.time-col{text-align:left;padding-left:24px}td{border-top:1px solid #203347;padding:8px 15px;text-align:center;color:#c2d1de;font-size:12px}tr:hover{background:#172b3e}tr.current{background:#203b50}tr.manual td:first-child{border-left:3px solid #31d2aa;padding-left:21px}.time-main{font-size:13px;font-weight:750;color:#dce7f4}.price-main{font-weight:750;font-variant-numeric:tabular-nums}.price-tag{display:inline-block;border-radius:5px;padding:4px 8px;font-size:10px;min-width:78px}.price-tag.low{background:#133e3a;color:#65e7be}.price-tag.mid{background:#1d354b;color:#87bce5}.price-tag.high{background:#473126;color:#f3b284}.price-tag.none{background:#243447;color:#849ab0}.mode-select{width:95px;background:#162b3d;color:#9db1c5;border:1px solid #2b4156;border-radius:7px;padding:8px 9px;font-size:12px;cursor:pointer}.mode-select.on{color:#66e8bf;border-color:#2d896f;background:#143b34}.mode-select.off{color:#f0b18e;border-color:#805443;background:#352a28}.table-bottom{display:flex;justify-content:space-between;gap:10px;padding:15px 23px;font-size:11px;color:#839ab0}.key{display:flex;align-items:center;gap:8px}.marker{width:8px;height:8px;display:inline-block;border-radius:2px}.marker.manual{background:#31d2aa}.marker.current{background:#547eaa}footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#8298ae;font-size:12px;padding:8px 0 20px}#status.error{color:#ffad91}#status.ok{color:#63dcb8}#dirtyMark{color:#164c3e}@media(max-width:1100px){.sidebar{width:190px;flex-basis:190px}.main{padding:0 20px 20px}.heading{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.shell{display:block}.sidebar{width:auto;height:auto;display:block;padding:12px 16px}.brand{padding:0}.sidebar .nav,.sidebar .section-title,.sidebar-foot{display:none}.main{padding:0 12px}.topbar{height:auto;padding:15px 0;gap:12px;flex-wrap:wrap}.heading{padding:20px 0}.stats{gap:8px}.stat{padding:14px}.stat-value{font-size:24px}.panel-heading{flex-wrap:wrap;padding:17px}.legend{gap:9px}.chart{gap:3px;padding:15px 15px 0}.chart-axis{padding:12px 15px}.table-bottom{flex-direction:column}.key{flex-wrap:wrap}}

/* EnergyPilot planner: Aan/Uit checkboxes; neither checked means Auto. */
#rows .mode-checks{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}
#rows .mode-check{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#a1b5c8;cursor:pointer;user-select:none}
#rows .mode-check input{width:15px;height:15px;margin:0;cursor:pointer;accent-color:#2fd0ae}
#rows .mode-check-off input{accent-color:#efa276}
#rows .mode-check:has(input:checked){color:#eaf4f8;font-weight:750}
#rows .mode-check:has(input:disabled){opacity:.45;cursor:not-allowed}
#rows .mode-check input:disabled{cursor:not-allowed}
@media(max-width:950px){#rows .mode-checks{gap:6px}#rows .mode-check{font-size:10px}}

/* ENERGY_PILOT_AUTOPLAN_V03 */
.autoplan-panel .panel-heading { align-items: center; }
.autoplan-panel details { border-top:1px solid #24394c; padding:13px 23px; }
.autoplan-panel summary { cursor:pointer; color:#a7c3d7; font-weight:600; }
.autoplan-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:13px; margin-top:16px; }
.autoplan-fields label { display:flex; flex-direction:column; gap:7px; color:#90a8bc; font-size:11px; }
.autoplan-fields input { width:100%; background:#162b3d; border:1px solid #31536a; color:#e6eef7; border-radius:6px; padding:8px; min-width:0; }
.autoplan-fields .autoplan-checkbox { flex-direction:row; align-items:center; }
.autoplan-fields .autoplan-checkbox input { width:16px; }
.autoplan-settings-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:15px; }
.autoplan-output { padding:13px 23px 18px; color:#b2c7d8; font-size:12px; }
.autoplan-output strong { color:#69dfbf; }
.autoplan-output ul { margin:9px 0 0; padding-left:20px; line-height:1.8; }
