@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f3f5f1;--paper:#fff;--ink:#173239;--muted:#7b8d90;--green:#249c86;--green2:#70c1a0;--navy:#13333e;--orange:#e6a53c;--border:#e7ebe6;--shadow:0 10px 40px rgba(19,50,57,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.52}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #f2b855;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3,.metric-value,.brand-name{font-family:Manrope,'Segoe UI',sans-serif}h2{font-size:19px;line-height:1.4;letter-spacing:-.6px}small{font-size:11px;font-weight:600;color:var(--muted)}.masthead{display:flex;justify-content:space-between;align-items:center;min-height:74px;background:var(--paper);border-bottom:1px solid var(--border);padding:12px clamp(20px,4vw,66px)}.brand{display:flex;align-items:center;gap:9px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;font-size:25px;border-radius:11px;background:#123641;color:#ffd276}.brand-name{font-size:26px;font-weight:800;letter-spacing:-1.3px}.brand-dot{color:var(--green)}.brand-sub{border-left:1px solid #d6e0db;margin-left:9px;padding-left:16px;color:#98aaa9;font-size:10px;font-weight:800;letter-spacing:1.7px}.mast-actions{display:flex;align-items:center;gap:18px}.pill{display:inline-flex;align-items:center;gap:8px;border-radius:50px;background:#eaf7ef;color:#28836b;font-size:11px;font-weight:800;padding:7px 11px;white-space:nowrap}.pill.dark{background:#eef5f2;color:#4d8d83}.pulse{height:7px;width:7px;border-radius:50%;background:#2ba98a;box-shadow:0 0 0 4px #d2f0e3}.button{border-radius:10px;border:1px solid #cfdbd7;background:#fff;font-size:12px;font-weight:800;padding:10px 14px;color:#315660;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px);background:#f3fbf7}.button.textonly{border:0;color:#6d8c87;background:transparent;width:100%;padding:14px 0}.hero{background:#12333e;color:#fff;position:relative;overflow:hidden;min-height:300px;padding:48px clamp(20px,4vw,66px);display:flex;align-items:center;justify-content:space-between}.hero::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 80% 90%,rgba(72,156,133,.15),transparent 40%);pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:700px}.eyebrow{color:#b8d7cd;font-size:10px;letter-spacing:2.2px;font-weight:800;display:flex;align-items:center;gap:12px;margin-bottom:18px}.eyeline{display:inline-block;width:26px;height:1px;background:#e8be67}.hero h1{font-size:clamp(32px,3.25vw,52px);font-weight:800;letter-spacing:-2.3px;line-height:1.13}.hero h1 em{font-style:normal;color:#f0c76c}.hero p{color:#c7d8d6;max-width:570px;font-size:14px;line-height:1.75;margin:19px 0 25px}.hero-tags{display:flex;flex-wrap:wrap;gap:17px;color:#bdd7cd;font-size:11px}.hero-tags span{border-right:1px solid #41636a;padding-right:17px}.hero-tags span:last-child{border:0}.hero-art{height:240px;min-width:370px;position:absolute;right:6%;bottom:0}.hero-art svg{position:absolute;bottom:-19px;right:0;width:455px;height:auto;z-index:2;filter:drop-shadow(0 15px 15px #001e24aa)}.sun-disc{position:absolute;width:88px;height:88px;border-radius:50%;background:#ffcf72;left:150px;top:15px;box-shadow:0 0 35px #f1b75177}.sun-halo{position:absolute;width:320px;height:320px;border-radius:50%;left:40px;top:-66px;border:1px solid #8b9e8e30;box-shadow:0 0 0 40px #85a6950a,0 0 0 90px #85a69507}.workspace{display:grid;grid-template-columns:335px minmax(0,1fr);align-items:start;max-width:1650px;margin:auto;gap:24px;padding:25px clamp(20px,3vw,50px) 45px}.sidebar{background:#fff;border-radius:17px;box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden}.sidebar-title{display:flex;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--border)}.smallcaps,.step-count,.overline{letter-spacing:1.5px;font-size:10px;font-weight:800;color:#87a4a0}.step-count{color:#91aaa6}.input-section{padding:22px 23px 24px;border-bottom:1px solid var(--border)}.input-section.last{border-bottom:0}.section-head{display:flex;align-items:center;gap:11px;margin-bottom:21px}.step-bubble{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;border-radius:10px;background:#e6f4ec;color:#198e77;font-weight:800}.section-head h2{font-size:15px}.section-head p{font-size:11px;color:#94a5a5;margin-top:3px}.field{display:block;margin-bottom:15px}.field>span:first-child{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;font-weight:800;color:#516b70;margin-bottom:7px}.field select,.field input[type=number]{display:block;width:100%;height:43px;border-radius:9px;border:1px solid #dce7e4;background:#fafcfa;padding:0 12px;color:#244953;font-size:13px;font-weight:700;outline:none}.field select:focus,.field input:focus{border-color:#2fa48b}.field-addon{position:relative}.field-addon span{position:absolute;right:13px;top:12px;color:#97aaa6;font-size:11px;font-weight:800}.field-addon input{padding-right:55px!important}.row-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:-5px;margin-bottom:17px}.micro-action{border:0;background:#f0f8f2;color:#438b7a;border-radius:7px;padding:8px;font-size:10px;font-weight:700}.micro-action:hover{background:#e4f3e8}.month-details,.cash-detail{border:1px solid #e3eae6;border-radius:10px;background:#fbfdfa;overflow:hidden;margin-bottom:13px}.month-details summary,.cash-detail summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;cursor:pointer;font-size:11px;font-weight:800;color:#526b6d}.month-details summary::-webkit-details-marker,.cash-detail summary::-webkit-details-marker{display:none}.month-details summary span,.cash-detail summary span{font-size:10px;color:#9baa9f;font-weight:700}.month-details[open] summary,.cash-detail[open] summary{border-bottom:1px solid #e8eeea}.month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}.month-grid label{font-size:10px;color:#738c8b;font-weight:800}.month-grid input{width:100%;min-width:0;border:1px solid #dbe7e3;border-radius:6px;height:30px;padding:3px 5px;color:var(--ink);background:#fff;font-size:11px}.data-note{display:flex;gap:8px;color:#809490;font-size:10px;line-height:1.55;padding:10px;background:#f6f9f5;border-radius:9px}.info-dot{display:grid;place-items:center;flex:none;background:#d6ece5;color:#288e7b;border-radius:50%;height:16px;width:16px;font-weight:900}.slider-field{margin-bottom:22px}.slider-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:9px}.slider-label label{font-size:11px;color:#536d6e;font-weight:800}.slider-label strong{font-size:12px;color:#258f7d}.slider-field input[type=range]{display:block;width:100%;height:5px;margin:10px 0;accent-color:#279f85;cursor:pointer}.range-ends{display:flex;justify-content:space-between;color:#a3b1ac;font-size:10px}.capacity-note{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;margin:11px 0 0;background:#ecf7ee;border-radius:8px;padding:10px}.capacity-note strong{color:#1c8778;font-size:13px}.capacity-note span{font-size:10px;color:#78968e}.quick-angle{display:flex;gap:6px;margin-top:8px}.quick-angle button{flex:1;border:1px solid #e4eee8;border-radius:7px;background:#f9fcf8;color:#76918a;font-size:10px;padding:6px}.quick-angle button:hover{background:#eaf7ed}.small-summary{border:1px solid #e5eee9;border-radius:10px;padding:4px 11px;margin:4px 0 5px}.small-summary div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #edf2ef;font-size:11px}.small-summary div:last-child{border:0}.small-summary span{color:#8c9d99}.small-summary strong{color:#3e6764}.results{min-width:0;display:flex;flex-direction:column;gap:19px}.status{border-radius:10px;padding:13px 16px;background:#e9f5ed;border:1px solid #cde4d7;color:#328471;font-size:12px;font-weight:700;display:flex;align-items:center;gap:9px}.status.error{background:#fff2e8;border-color:#ffdbbd;color:#a55a29}.status.ready{display:none}.status-spinner{width:13px;height:13px;border:2px solid #b7d8cb;border-top-color:#258e79;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.metric{background:#fff;border-radius:14px;border:1px solid var(--border);padding:18px 19px;min-height:137px;box-shadow:var(--shadow)}.metric.featured{background:#e8f4ec;border-color:#d7e9df}.metric-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#718d8e;font-size:11px;font-weight:800}.metric-icon{display:grid;place-items:center;border-radius:8px;background:#eef6f2;width:25px;height:25px;color:#32917c;font-size:17px}.metric-value{font-size:clamp(19px,1.8vw,29px);font-weight:800;letter-spacing:-1.1px;margin:16px 0 4px;white-space:nowrap}.metric.featured .metric-value{color:#16866f}.metric p{font-size:10px;color:#95aaa7}.visual-panel{border:1px solid var(--border);border-radius:15px;background:var(--paper);padding:22px 24px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.panel-heading h2{font-size:18px;margin-top:5px}.panel-heading p{color:#93a5a2;font-size:11px;margin-top:5px;line-height:1.6}.segmented{display:flex;background:#f2f6f3;border:1px solid #e7efea;padding:4px;border-radius:9px;white-space:nowrap}.segmented button{border:0;background:transparent;font-size:11px;color:#8ba29c;font-weight:800;padding:8px 12px;border-radius:7px}.segmented button.active{background:#fff;color:#227c70;box-shadow:0 2px 9px #123c3114}.chart-key{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:19px 0 7px;color:#82958f;font-size:10px;font-weight:700}.chart-key span,.diagram-footer span{display:inline-flex;gap:7px;align-items:center}.swatch{height:9px;width:9px;border-radius:3px;display:inline-block}.c-load{background:#e0a350}.c-pv{background:#299d8a}.c-use{background:#2b9889}.c-export{background:#8dc8a0}.c-grid{background:#d7e5e0}.c-annual{background:#b5c8bf}.c-balance{background:#319c85}.svg-chart{height:266px;position:relative}.svg-chart.medium{height:253px}.svg-chart svg{width:100%;height:100%;overflow:visible}.axis-label{font:11px 'DM Sans',sans-serif;fill:#98aaa6}.chart-grid{stroke:#eaf0eb;stroke-width:1}.chart-val{font:700 11px 'DM Sans',sans-serif;fill:#496e68}.under-chart{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}.under-chart div{font-size:11px;color:#859e94;padding-right:13px;border-right:1px solid #e4ece7}.under-chart div strong{color:#315b56}.split-panels{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);gap:18px}.money-rows{margin-top:17px}.money-rows div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #f0f3f0;font-size:11px;color:#8a9d99}.money-rows strong{color:#315456;font-size:12px;text-align:right}.insight{margin-top:16px;background:#e9f5ed;color:#367c69;padding:12px;font-size:11px;border-radius:9px;line-height:1.55}.flow-panel{overflow:hidden}.system-svg{width:100%;height:auto;min-height:230px;margin:15px 0 0;display:block;overflow:visible}.diagram-label,.diagram-strong,.diagram-sub,.diagram-small,.diagram-note,.diagram-line-label{text-anchor:middle;font-family:'DM Sans',sans-serif;fill:#234b50}.diagram-label{font-weight:800;font-size:12px}.diagram-strong{font-weight:800;font-size:12px}.diagram-sub{font-size:10px;fill:#688b8b}.diagram-small{font-size:10px;font-weight:800}.diagram-note{font-size:10px;font-weight:800;fill:#377e71}.diagram-line-label{font-size:9px;font-weight:800;fill:#8b9d99}.power-path{stroke-width:5;stroke-linecap:round;stroke-dasharray:9 13;animation:flow 2s linear infinite}.pv-power{stroke:#e1a23e}.grid-power{stroke:#76a7b7;animation-direction:alternate}.home-power{stroke:#299d8a}.sun-icon{transform-origin:74px 48px;animation:sunshine 12s ease-in-out infinite}@keyframes sunshine{50%{opacity:.55}}@keyframes flow{to{stroke-dashoffset:-44}}.diagram-footer{display:flex;gap:15px;flex-wrap:wrap;align-items:center;color:#879e98;font-size:10px}.diagram-footer .note{flex:1;min-width:270px;justify-content:flex-end;text-align:right;line-height:1.55}.financial-panel .chart-key{margin-bottom:0}.cash-detail{margin:16px 0 0}.cash-detail summary{padding:13px 15px}.table-scroller{max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:940px;font-size:11px}th,td{text-align:right;padding:9px 10px;border-bottom:1px solid #eaf0ec;white-space:nowrap}th{background:#f7faf7;color:#718984;font-size:10px;position:sticky;top:0}td{color:#496d69}tr:nth-child(even) td{background:#fcfdfa}.assumptions{padding:11px 5px 0}.assumptions h2{font-size:15px;margin:4px 0 15px}.assumptions-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.assumptions-grid p,.disclaimer{color:#829790;font-size:11px;line-height:1.85}.assumptions-grid strong,.disclaimer strong{color:#58766f}.disclaimer{border-top:1px solid #dae5dd;margin-top:15px;padding-top:15px}.site-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#a2b0ab;font-size:11px;padding:0 2px 10px}
@media(max-width:1240px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:15px;padding:20px}.metric{padding:15px 12px}.metric-value{font-size:20px}.split-panels{grid-template-columns:1fr}.hero-art{opacity:.65;right:-6%}}
@media(max-width:990px){.workspace{display:block;padding:15px}.sidebar{margin-bottom:17px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:35px 23px}.hero-art{right:-12%}.sidebar-title{padding:14px 18px}.input-section{padding:17px 18px}.input-section:nth-child(2),.input-section:nth-child(3),.input-section:nth-child(4){display:inline-block;width:100%;vertical-align:top}.input-section:nth-child(2){width:36%}.input-section:nth-child(3){width:33%}.input-section:nth-child(4){width:30%}}
@media(max-width:710px){.masthead{padding:12px 16px}.brand-sub,.mast-actions .pill{display:none}.hero{min-height:320px}.hero-art{opacity:.24;right:-45%;bottom:-20px}.hero h1{font-size:37px}.hero p{font-size:13px}.hero-tags{gap:7px}.hero-tags span{padding-right:7px;font-size:10px}.workspace{padding:12px}.input-section:nth-child(2),.input-section:nth-child(3),.input-section:nth-child(4){display:block;width:100%}.metrics{gap:9px}.metric{min-height:120px}.metric-value{font-size:19px}.visual-panel{padding:17px 14px}.panel-heading{flex-wrap:wrap}.panel-heading h2{font-size:16px}.svg-chart{height:220px}.svg-chart.medium{height:205px}.assumptions-grid{grid-template-columns:1fr}.diagram-footer .note{text-align:left;justify-content:flex-start}.system-svg{min-width:580px}.flow-panel{overflow-x:auto}.site-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
@media print{.masthead .mast-actions,.sidebar,.row-buttons,.financial-panel .button,.cash-detail,.hero-art{display:none!important}.masthead{padding:8px 20px}.hero{min-height:0;padding:18px 30px;print-color-adjust:exact}.hero p{margin:5px 0}.hero-tags{display:none}.workspace{display:block;padding:12px}.metrics{grid-template-columns:repeat(4,1fr)}.metric{min-height:105px}.results{gap:10px}.visual-panel{break-inside:avoid;padding:10px}.system-svg{max-height:220px}.assumptions{break-inside:avoid}.svg-chart{height:170px!important}.flow-panel{break-inside:avoid}.money-panel{break-inside:avoid}.split-panels{grid-template-columns:1fr 1fr}}

/* v2.1: direct per-month billing, city-only selector and separate true-scale daily plots */
.monthly-input-header{display:flex;justify-content:space-between;gap:9px;align-items:flex-start;margin:0 0 12px}
.monthly-input-header strong{display:block;font-size:12px;color:#34565b}
.monthly-input-header span{display:block;margin-top:4px;font-size:10px;color:#849a94;line-height:1.5}
.unit-chip{flex:none;align-self:flex-start;background:#e8f5ed;border-radius:7px;padding:6px 8px;font-weight:800!important;color:#29836f!important;margin:0!important}
.monthly-always-visible{border:1px solid #e3eae6;background:#fbfdfa;border-radius:10px;margin:0 0 8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}
.monthly-always-visible label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#627d7a}
.monthly-always-visible label span{font-weight:800}
.monthly-always-visible label.summer-month span{color:#be8b32}
.monthly-always-visible input{font-size:12px;height:37px;font-weight:700;padding:5px 6px}
.monthly-always-visible input:focus{border-color:#2a9e85;background:#f8fffb;outline:2px solid #d6f1e8}
.sample-hint{font-size:10px;color:#849894;margin:7px 1px 10px;line-height:1.5}
.usage-summary{border:1px solid #deece5;background:#f0f8f2;border-radius:10px;padding:5px 11px;margin:12px 0}
.usage-summary>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:11px;border-bottom:1px solid #daeae2}
.usage-summary>div:last-child{border-bottom:0}
.usage-summary span{color:#667f7a}.usage-summary strong{color:#177b68;font-size:11px;text-align:right}
.chart-panel .chart-key{margin-bottom:6px}
.chart-section-divider{height:1px;background:#e7eee9;margin:24px 0 18px}
.mini-panel-heading{margin-bottom:11px}
.mini-panel-heading h3{font-size:16px;letter-spacing:-.4px;color:var(--ink)}
.mini-panel-heading p{font-size:11px;color:#849995;margin-top:3px}
.swatch.c-weekday{background:#269a6a}.swatch.c-weekend{background:#c46635}
.peak-point-label{font-size:10px;fill:#50776b;font-weight:800}
.under-chart .load-delta{background:#e9f6ed;border-radius:8px;padding:5px 9px;color:#1e8b72!important}
.under-chart .load-delta strong{color:#127359}
@media(max-width:710px){.monthly-always-visible{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-section-divider{margin:18px 0 13px}}
@media print{.chart-section-divider{margin:8px 0}.monthly-always-visible{padding:6px}}

.orientation-preview-panel{margin-top:14px;padding:12px;border:1px solid #e2ece5;border-radius:12px;background:linear-gradient(180deg,#fbfdfc,#f3f8f5)}
.orientation-preview-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-end;margin-bottom:10px}
.orientation-preview-head strong{font-size:11px;color:#34575a}
.orientation-preview-head span{font-size:10px;color:#839891;text-align:right;line-height:1.45}
.orientation-preview{min-height:214px}
.orientation-preview svg{display:block;width:100%;height:214px;overflow:visible}
.orientation-card{fill:#fff;stroke:#e3ece6;stroke-width:1.2}
.orientation-caption{font:700 10px "DM Sans",sans-serif;fill:#839790}
.orientation-title{font:800 11px "DM Sans",sans-serif;fill:#2d5559}
.orientation-dir{font:700 10px "DM Sans",sans-serif;fill:#6d8884}
.orientation-em{font:800 10px "DM Sans",sans-serif;fill:#1d826d}
.orientation-muted{font:700 9px "DM Sans",sans-serif;fill:#8ea29d}
.orientation-arc{fill:none;stroke:#cfded8;stroke-width:2}
.orientation-base{fill:none;stroke:#d5e5df;stroke-width:3;stroke-linecap:round}
.orientation-array{fill:none;stroke:#2b9986;stroke-width:4;stroke-linecap:round}
.orientation-arrow{fill:none;stroke:#d39b42;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.orientation-roof{fill:#e9f4ef;stroke:#c7ded2;stroke-width:1.4}
.orientation-house{fill:#fff8ea;stroke:#e6dcc8;stroke-width:1.2}
.orientation-module{fill:#113f54;stroke:#9fd0d8;stroke-width:1.2}
.orientation-ring{fill:#f8fbf9;stroke:#dfeae4;stroke-width:1.2}
.orientation-grid{stroke:#edf3ef;stroke-width:1}
@media(max-width:710px){.orientation-preview-head{flex-direction:column;align-items:flex-start}.orientation-preview-head span{text-align:left}.orientation-preview svg{height:226px}.orientation-preview{min-height:226px}}

/* v2.4: customer-facing solar self-use/export summary */
.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.energy-kpi .metric-value{font-size:clamp(18px,1.7vw,27px)}
.energy-kpi-track{width:100%;height:5px;border-radius:9px;background:#e7f0eb;margin-top:12px;overflow:hidden}
.energy-kpi-track span{display:block;height:100%;border-radius:9px;transition:width .25s ease;width:0}
.self-kpi .energy-kpi-track span{background:#269a87}
.export-kpi .energy-kpi-track span{background:#db9d42}
@media(max-width:990px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:710px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v2.6: bilingual UI, Arabic right-to-left mode */
.language-toggle{display:inline-flex;gap:4px;padding:4px;background:#eaf2ee;border:1px solid #dae9e0;border-radius:10px;align-items:center}
.language-toggle button{border:0;background:transparent;cursor:pointer;border-radius:7px;padding:8px 12px;color:#557770;font-weight:800;font-size:12px;font-family:inherit}
.language-toggle button.active{background:white;color:#187d69;box-shadow:0 2px 7px #173b2b19}
.language-toggle button:focus-visible{outline:3px solid #60b69b;outline-offset:2px}
html[dir="rtl"] body{font-family:Tahoma,Arial,"Segoe UI",sans-serif}
html[dir="rtl"] .workspace,html[dir="rtl"] .hero,html[dir="rtl"] .masthead{direction:rtl}
html[dir="rtl"] .sidebar,html[dir="rtl"] .results,html[dir="rtl"] .panel-heading,html[dir="rtl"] .input-section,html[dir="rtl"] .visual-panel,html[dir="rtl"] .assumptions{text-align:right}
html[dir="rtl"] .hero-art{right:auto;left:0}
html[dir="rtl"] .hero-copy{position:relative;z-index:1}
html[dir="rtl"] .hero h1{letter-spacing:0;line-height:1.45}
html[dir="rtl"] .hero p{line-height:1.85}
html[dir="rtl"] .hero-tags,html[dir="rtl"] .hero-copy{text-align:right}
html[dir="rtl"] .mast-actions{direction:rtl}
html[dir="rtl"] .language-toggle{direction:ltr}
html[dir="rtl"] input[type=number]{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}
html[dir="rtl"] .monthly-always-visible label,html[dir="rtl"] .monthly-always-visible span{text-align:right}
html[dir="rtl"] .chart-key{direction:rtl}
html[dir="rtl"] .svg-chart,html[dir="rtl"] .orientation-preview,html[dir="rtl"] .system-svg{direction:ltr}
html[dir="rtl"] .svg-chart svg,html[dir="rtl"] .orientation-preview svg,html[dir="rtl"] .system-svg{font-family:Tahoma,Arial,sans-serif}
html[dir="rtl"] .diagram-label,html[dir="rtl"] .diagram-strong,html[dir="rtl"] .diagram-sub,html[dir="rtl"] .diagram-small,html[dir="rtl"] .diagram-note,html[dir="rtl"] .diagram-line-label,html[dir="rtl"] .axis-label,html[dir="rtl"] .peak-point-label,html[dir="rtl"] .orientation-title,html[dir="rtl"] .orientation-caption,html[dir="rtl"] .orientation-em,html[dir="rtl"] .orientation-muted{font-family:Tahoma,Arial,sans-serif;letter-spacing:0}
html[dir="rtl"] .money-rows strong,html[dir="rtl"] .usage-summary strong{text-align:left}
html[dir="rtl"] .under-chart div{padding-right:0;padding-left:13px;border-right:0;border-left:1px solid #e4ece7}
html[dir="rtl"] .metric-value{letter-spacing:0;white-space:normal;overflow-wrap:anywhere}
html[dir="rtl"] .metric-top{line-height:1.5}
html[dir="rtl"] .chart-panel .panel-heading{flex-direction:row}
html[dir="rtl"] .orientation-preview-head span{text-align:left}
html[dir="rtl"] .diagram-footer .note{text-align:right;justify-content:flex-start}
html[dir="rtl"] .table-scroller{direction:rtl}
html[dir="rtl"] th,html[dir="rtl"] td{text-align:right}
html[dir="rtl"] .site-footer{direction:rtl}
html[dir="rtl"] .flow-panel{overflow-x:auto}
html[dir="rtl"] .system-svg{min-width:760px}
@media(max-width:710px){.masthead{gap:9px}.mast-actions{gap:6px}.language-toggle button{padding:7px 9px}.language-toggle{gap:1px}html[dir="rtl"] .hero-art{left:-40%;right:auto}html[dir="rtl"] .chart-panel .panel-heading{flex-wrap:wrap}html[dir="rtl"] .system-svg{min-width:760px}}
@media print{.language-toggle{display:none!important}}


/* v2.7 — move all design sliders above the economic results */
.design-panel{padding:21px 24px 18px;isolation:isolate}
.design-panel-heading{margin-bottom:16px;align-items:center}
.design-panel-heading h2{font-size:20px;margin-top:4px}
.design-panel-heading p{margin-top:5px}
.design-panel-heading #resetBtn{width:auto;flex:0 0 auto;border:1px solid #d7e9de;background:#f4fbf6;border-radius:9px;color:#258f76;padding:9px 12px;white-space:nowrap;margin:0}
.design-panel-body{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,.95fr);align-items:start;gap:17px}
.design-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.design-control{min-width:0;background:#f9fbf9;border:1px solid #e5ede7;border-radius:11px;padding:15px 12px 12px}
.design-control .slider-field{margin:0}
.design-control .slider-label{flex-wrap:wrap;gap:4px 9px;align-items:center}
.design-control .slider-label strong{font-size:12px}
.design-control .capacity-note{margin-top:10px;padding:8px 9px}
.design-control .capacity-note span{line-height:1.45}
.design-control input[type=range]{margin:11px 0 9px}
.design-visual-column{display:flex;flex-direction:column;min-width:0;gap:9px}
.design-visual-column .orientation-preview-panel{margin:0;padding:10px}
.design-visual-column .orientation-preview-head{margin-bottom:4px;align-items:flex-start;flex-direction:column;gap:4px}
.design-visual-column .orientation-preview-head span{text-align:start}
.design-visual-column .orientation-preview{min-height:0}
.design-visual-column .orientation-preview svg{height:auto;max-height:210px;min-height:0}
.design-visual-column .small-summary{margin:0;padding:0 10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.design-visual-column .small-summary div{display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;padding:7px 3px;border:0}
.design-visual-column .small-summary div+div{border-inline-start:1px solid #e1ece5}
.design-visual-column .small-summary span{line-height:1.35;font-size:9px}
.design-visual-column .small-summary strong{font-size:10px}
#metricSavings{font-size:clamp(16px,1.55vw,23px);white-space:normal;line-height:1.25;overflow-wrap:break-word}
html[dir="rtl"] .design-panel,html[dir="rtl"] .design-control,html[dir="rtl"] .design-panel-heading{text-align:right}
html[dir="rtl"] .design-panel-body{direction:rtl}
html[dir="rtl"] .design-visual-column .orientation-preview-head span{text-align:right}
@media(max-width:1370px){.design-panel-body{grid-template-columns:minmax(0,1fr)}.design-visual-column{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center}.design-visual-column .small-summary{display:flex;flex-direction:column;align-items:stretch}.design-visual-column .small-summary div{align-items:flex-start;text-align:start;padding:8px 3px}.design-visual-column .small-summary div+div{border-inline-start:0;border-top:1px solid #e1ece5}.design-visual-column .orientation-preview svg{max-height:200px}}
@media(max-width:710px){.design-panel{padding:16px 13px}.design-panel-heading{align-items:flex-start;gap:10px}.design-panel-heading h2{font-size:17px}.design-panel-heading #resetBtn{white-space:normal;max-width:135px;font-size:11px;padding:8px}.design-control-grid{grid-template-columns:1fr;gap:9px}.design-control{padding:13px 12px}.design-visual-column{display:flex}.design-visual-column .small-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.design-visual-column .small-summary div{align-items:center;text-align:center}.design-visual-column .small-summary div+div{border-top:0;border-inline-start:1px solid #e1ece5}.design-visual-column .orientation-preview-panel{width:100%}.design-visual-column .orientation-preview svg{max-height:none;height:auto}}
@media print{.design-panel{display:none!important}}
@media(min-width:711px) and (max-width:990px){.sidebar .input-section:nth-child(2){display:block;width:100%}.sidebar .monthly-always-visible{grid-template-columns:repeat(6,minmax(0,1fr))}}
