:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#233d36;background:#f5f6f0;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:360px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d5ded2;color:#244b3e;background:#fff;padding:8px 12px;border-radius:6px;font-size:12px;font-weight:550}button:hover{background:#eef4ea;border-color:#9eb69d}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6b9b66;outline-offset:3px}input,select{width:100%;border:1px solid #d8e0d7;color:#263d35;border-radius:6px;background:#fff;padding:8px 10px;min-width:0}input:focus,select:focus{border-color:#6b9b66}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#53675c;font-weight:500}input[type=number]{font-variant-numeric:tabular-nums}h1,h2,h3,p{margin:0}h1{font-size:19px;font-weight:600;letter-spacing:-.5px}h2{font-size:18px;font-weight:600}h3{font-size:13px;font-weight:600}.app-shell{margin:auto;padding:0 24px}.topbar{height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe5d9}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#183e32;font-size:15px;font-weight:750;letter-spacing:-.4px}.brand-light{font-weight:450}.brand-mark{width:29px;height:29px;border-radius:8px;background:#204e3f;color:#eef2cb;display:inline-flex;align-items:center;justify-content:center;font-size:21px;font-weight:500;position:relative}.brand-mark span{position:absolute;font-size:12px;right:3px;top:1px}.local-badge{font-size:10px;color:#687c6b;display:flex;align-items:center;gap:7px}.local-badge i{width:6px;height:6px;background:#6c9464;border-radius:50%}.scenario-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0}.scenario-bar>label{min-width:180px;flex:1;max-width:440px;gap:2px;font-size:9px}.scenario-name{padding:2px 0;font-size:14px;font-weight:550;background:none;border-color:transparent;border-radius:0}.scenario-name:hover,.scenario-name:focus{border-bottom-color:#a0b192}.scenario-actions{display:flex;align-items:center;gap:8px}.tariff-switch{flex-direction:row;align-items:center;gap:10px;white-space:nowrap;font-size:11px}.tariff-switch select{width:132px;font-size:11px;padding:7px;margin-right:8px}.panel{background:#fff;border:1px solid #e0e6dc;border-radius:10px;min-width:0}.timeline-panel{padding:16px 14px 10px}.timeline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px}.timeline-toolbar p{color:#839077;font-size:10px;margin-top:5px}.timeline-tools{display:flex;gap:5px;flex-wrap:wrap}.timeline-tools button[aria-pressed=true]{background:#e4ecd9;color:#3b6039;border-color:#cfddc3}.timeline-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:15px 8px 0;color:#76846a;font-size:10px}.timeline-legend span{display:flex;align-items:center;gap:5px}.timeline-legend i{width:7px;height:7px;border-radius:50%}.energy-timeline{display:block;width:100%;height:max(600px,calc(100dvh - 240px));touch-action:none;-webkit-user-select:none;user-select:none}.plot-background{fill:#fbfcf8;cursor:crosshair}.timeline-grid line{stroke:#e3e9de;stroke-dasharray:3 4;pointer-events:none}.timeline-grid text,.timeline-tick{fill:#809073;font-size:11px;pointer-events:none}.axis-title{fill:#7d8f6c;font-size:10px;font-weight:650;letter-spacing:.8px;pointer-events:none}.zero-line{stroke:#c1ceb9;pointer-events:none}.inspection-line{stroke:#a5b79c;stroke-dasharray:3 3;pointer-events:none}.result-line,.profile-fill,.profile-line,.soc-line{pointer-events:none}.profile-fill{fill:currentColor;fill-opacity:.09}.profile-line{fill:none;stroke:currentColor;stroke-width:2}.profile-hit{fill:transparent}.profile-point{fill:#fff;stroke:currentColor;stroke-width:2;pointer-events:none}.profile-handle{cursor:grab;outline:none}.profile-handle:focus .profile-point,.profile-handle:hover .profile-point{fill:currentColor;stroke-width:3}.profile-handle:focus-visible .profile-point{stroke:#233d36}.soc-line{fill:none;stroke:#438572;stroke-width:2}.lane-background{fill:#f0f3e9;stroke:#e0e7d8;cursor:crosshair}.lane-background-label{fill:#9aa98d;font-size:11px;pointer-events:none}.timeline-window{cursor:grab;outline:none}.window-body{fill:#dce8f6;stroke:#8eabc8}.tariff .window-body{fill:#efe5d1;stroke:#c6ae77}.timeline-window:focus .window-body,.timeline-window:hover .window-body{stroke:#386c70;stroke-width:2}.timeline-window.inactive{opacity:.5}.window-label{fill:#4a636f;font-size:11px;pointer-events:none}.tariff .window-label{fill:#806b42}.window-handle{fill:#8eabc8;fill-opacity:.65;cursor:ew-resize}.tariff .window-handle{fill:#b6a075}.window-preview{fill:#8cbaa4;fill-opacity:.4;stroke:#438572;pointer-events:none}.timeline-hint{margin:3px 8px 0;color:#8b967e;font-size:10px;line-height:1.7}.timeline-repairs{display:flex;flex-wrap:wrap;gap:6px}.timeline-repairs:not(:empty){margin-top:10px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.metric{border:1px solid #e0e6dc;border-radius:8px;background:#fff;padding:12px 16px;min-width:0}.metric>span{font-size:10px;color:#8c977e}.metric strong{display:block;font-weight:550;font-size:23px;letter-spacing:-.6px;margin:5px 0}.metric small{font-size:10px;font-weight:450;letter-spacing:0;color:#88967f}.metric p{font-size:10px;color:#8a9582}.metric.revenue{background:#e8efdf;border-color:#d7e3c8}.metric.revenue strong{color:#3b5f37}.static-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;margin:12px 0}details>summary{cursor:pointer;padding:14px 17px;color:#42613a;font-size:12px;font-weight:600}details>summary span{color:#929e85;font-size:10px;margin-left:12px;font-weight:400}details[open]>summary{border-bottom:1px solid #e6ecdf}.details-content{padding:18px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin:16px 0}.field-grid:first-child{margin-top:0}.equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.input-unit{display:flex;align-items:center;position:relative}.input-unit input{padding-right:38px;font-size:12px}.input-unit>span{position:absolute;right:10px;font-size:10px;color:#8b9687;pointer-events:none}.number-field{font-size:11px}.field-error{color:#995e44;font-size:11px;line-height:1.5}input[aria-invalid=true]{border-color:#c2876a}.field-note{font-size:10px;line-height:1.7;color:#8a9482;margin-top:12px}.mode-editor>label{font-size:11px}.preset-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.parameter-popover{position:fixed;margin:0;width:350px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;color:#233d36;background:#fff;border:1px solid #b8cdb0;border-radius:12px;box-shadow:0 12px 60px #19342335}.parameter-popover::backdrop{background:#24403112}.popover-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.popover-heading button{padding:2px 9px;font-size:22px;background:none;border:0}.popover-time{margin:5px 0 16px;font-size:13px;color:#6a885b}.parameter-popover>label{margin:14px 0}.parameter-popover .mode-editor{margin:16px 0}.popover-done{display:block;margin-top:16px;width:100%;background:#28523f;border-color:#28523f;color:#fff}.popover-done:hover{background:#1c3e2e;color:#fff}.point-nudges{display:flex;gap:8px;margin-bottom:14px}.danger{color:#b5745c}.route-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:14px 0}.route{padding:12px;border-radius:7px;background:#f8faf5;display:flex;flex-direction:column;gap:8px}.route>span:first-child{font-size:10px;display:flex;align-items:center;gap:5px;color:#6e7c63}.route i{height:6px;width:6px;border-radius:50%;flex-shrink:0}.route strong{font-size:19px;font-weight:500;color:#47613d}.route small{font-size:10px;color:#8f9c82;font-weight:400}.route>span:last-child{font-size:10px;color:#97a18c}.route-chart{height:260px;margin:20px 0}.chart-caption{font-size:11px;color:#7c8b70}.balance-strip{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 0;border-top:1px solid #e7ecdf;border-bottom:1px solid #e7ecdf}.balance-strip span{font-size:10px;color:#92a084;display:flex;flex-direction:column;gap:6px}.balance-strip strong{color:#667e57;font-weight:500;font-size:11px}.notice,.validation{padding:12px 16px;margin-bottom:12px;border:1px solid #cbdcbd;background:#edf4e6;border-radius:8px;color:#49693e;font-size:12px;line-height:1.7}.notice{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;white-space:pre-line;overflow-wrap:anywhere}.notice button{padding:3px 7px;flex-shrink:0}.notice.error,.validation{background:#fff3ec;border-color:#e6c6b6;color:#995e44}.validation ul{padding-left:18px;margin:6px 0 0;max-height:100px;overflow:auto;overflow-wrap:anywhere}footer{display:flex;align-items:center;justify-content:space-between;padding:20px 0;color:#9da58f;font-size:9px}@media(max-width:1000px){.app-shell{padding:0 14px}.equipment-grid{grid-template-columns:1fr 1fr}.route-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.timeline-toolbar{align-items:flex-start;flex-direction:column}.timeline-tools{gap:4px}.timeline-tools button{padding:7px 8px;font-size:11px}.scenario-bar{flex-wrap:wrap;gap:8px}.scenario-actions{flex-wrap:wrap;gap:6px}.static-settings{grid-template-columns:minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric strong{font-size:21px}.timeline-panel{padding:12px 3px}.timeline-legend{gap:8px 16px;font-size:9px}.axis-title{font-size:9px;letter-spacing:0}.local-badge{font-size:0}.timeline-grid text{font-size:10px}.route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}details>summary span{display:block;margin:5px 0 0 15px}footer{flex-direction:column;align-items:flex-start;gap:8px}}
