:root{--bg:#f4f3ef;--surface:#fcfcfb;--text:#1f1f1d;--text-muted:#5c5b57;--border:#dcdad3;--accent:#1c5cab;--warn-bg:#fdf1e3;--solar:#c97a00;--solar-text:#9a5800;--solar-bg:#fff3dc;--gutter:16px;--series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a;--chart-grid:#e6e4de;--chart-horizon:#8f8d86;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#1a1a19;--surface:#242422;--text:#ecebe6;--text-muted:#a8a69f;--border:#3a3936;--accent:#86b6ef;--warn-bg:#3a2c1d;--solar:#e09a2a;--solar-text:#f5b545;--solar-bg:#3a2c16;--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--chart-grid:#34332f;--chart-horizon:#6f6d66}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums;flex-direction:column;font-size:1rem;display:flex}.app-header{min-height:48px;padding:max(4px, env(safe-area-inset-top)) var(--gutter) 4px;border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;display:flex}.app-header h1{letter-spacing:-.01em;align-items:center;gap:8px;margin:0;font-size:1.125rem;display:flex}.app-header .logo{width:24px;height:24px;fill:var(--solar);stroke:var(--solar);stroke-width:2px;stroke-linecap:round;flex:none}@media (width<=399px){.app-header .title-long{display:none}}.layout{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.map-wrap{flex:1;min-height:160px;position:relative}.sheet{background:var(--surface);flex-direction:column;display:flex}.sheet-body{min-height:0;padding:4px var(--gutter) max(16px, env(safe-area-inset-bottom));flex:1;overflow-y:auto}.sheet-body:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sheet-toggle{cursor:grab;touch-action:none;background:0 0;border:0;flex:none;justify-content:center;align-items:center;width:100%;min-height:28px;padding:0;display:flex}.sheet-toggle .grip{background:var(--text-muted);opacity:.6;border-radius:3px;width:40px;height:5px}.sheet-toggle:focus-visible .grip{outline:2px solid var(--accent);outline-offset:4px}@media (width<=899px){.map-wrap{position:absolute;inset:0}.sheet{z-index:4;border-radius:16px 16px 0 0;height:136px;transition:height .25s;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -2px 12px #0000002e}.sheet.dragging{transition:none}.sheet[data-snap=peek] .sheet-body{overflow:hidden}.map-wrap .maplibregl-ctrl-bottom-left,.map-wrap .maplibregl-ctrl-bottom-right{bottom:var(--sheet-h,136px)}}@media (prefers-reduced-motion:reduce){.sheet{transition:none}}@media (width>=900px){.layout{flex-direction:row}.sheet{border-left:1px solid var(--border);width:460px}.sheet-toggle{display:none}}.steps{border-bottom:1px solid var(--border);flex:none;gap:2px;padding:0 8px;display:flex}.step-tab{min-width:0;min-height:48px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;flex-direction:column;flex:1;align-items:center;gap:2px;padding:4px 2px 6px;font-size:.75rem;display:flex}.step-tab .step-num{border:1.5px solid;border-radius:50%;place-items:center;width:22px;height:22px;font-weight:700;line-height:1;display:grid}.step-tab .step-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.step-tab[aria-selected=true]{border-bottom-color:var(--solar);color:var(--text);font-weight:700}.step-tab[aria-selected=true] .step-num{border-color:var(--solar);background:var(--solar);color:#1f1f1d}.step-tab[aria-disabled=true]{cursor:not-allowed;opacity:.55}.step-tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sheet h2{margin:8px 0;font-size:1.25rem;line-height:1.25}.sheet h3{margin:16px 0 6px;font-size:1rem}.sheet p{margin:0 0 10px}.muted{color:var(--text-muted)}.small{font-size:.8rem}.block{display:block}.notice{border-left:3px solid var(--accent);background:var(--bg);border-radius:4px;padding:8px 10px}.notice.warn{background:var(--warn-bg);border-left-color:#eb6834}.facade-picker{text-align:center;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 12px;display:flex}.field{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.field label,.sheet legend{font-size:.85rem;font-weight:600}.field input:not([type=range]),.field select{border:1px solid var(--border);background:var(--bg);min-height:44px;color:var(--text);font:inherit;border-radius:8px;padding:0 10px}.field input[type=range]{min-height:44px;accent-color:var(--accent)}.sheet fieldset{border:0;margin:0 0 12px;padding:0}.chips{flex-wrap:wrap;gap:6px;margin:6px 0 8px;display:flex}.chip[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--surface)}.primary{background:var(--accent);width:100%;min-height:48px;color:var(--surface);font:inherit;cursor:pointer;border:0;border-radius:999px;font-weight:700}.primary:disabled{opacity:.6}.sunpath{margin:4px -4px 8px;position:relative}.sunpath svg{touch-action:pan-y;width:100%;height:auto;display:block}.sunpath text{fill:var(--text-muted);font-size:12px}.sunpath text.sub{font-size:10px}.sunpath .grid{stroke:var(--chart-grid);stroke-width:1px}.sunpath .horizon{fill:var(--chart-horizon)}.sunpath .behind{fill:url(#hatch-behind)}.sunpath .hatch{stroke:var(--text-muted);stroke-width:1.5px;opacity:.45}.sunpath .halo{fill:none;stroke:var(--surface);stroke-width:6px;stroke-linejoin:round}.sunpath .path{fill:none;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.sunpath .path.shaded{stroke-dasharray:6 5}.sunpath .path.behind{stroke-dasharray:1 5;stroke-width:2px}.series-1{--c:var(--series-1)}.series-2{--c:var(--series-2)}.series-3{--c:var(--series-3)}.sunpath .path{stroke:var(--c)}.sunpath .hour{fill:var(--c);stroke:var(--surface);stroke-width:1.5px}.sunpath .hour-label,.sunpath .day-label{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:3px;font-size:11px}.sunpath .day-label{font-weight:600}.sunpath-tip{border:1px solid var(--border);background:var(--surface);width:220px;color:var(--text);pointer-events:none;border-radius:6px;padding:6px 8px;font-size:.78rem;position:absolute;box-shadow:0 2px 8px #00000026}.sunpath-legend{color:var(--text-muted);flex-wrap:wrap;gap:4px 14px;margin:0 0 12px;padding:0;font-size:.78rem;list-style:none;display:flex}.sunpath-legend li{align-items:center;gap:6px;display:flex}.sunpath-legend .key{width:22px;display:inline-block}.sunpath-legend .key.line{border-top:3px solid var(--text-muted);height:0}.sunpath-legend .key.series-1,.sunpath-legend .key.series-2,.sunpath-legend .key.series-3{border-top-color:var(--c)}.sunpath-legend .key.shaded{border-top-style:dashed}.sunpath-legend .key.behind{border-top-style:dotted}.sunpath-legend .key.area{border-radius:2px;height:12px}.sunpath-legend .key.area.horizon{background:var(--chart-horizon)}.sunpath-legend .key.area.behind{background:repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--text-muted) 50%, transparent) 3px 5px);border:1px solid var(--border)}.sun-hours{border-collapse:collapse;width:100%;margin-bottom:12px;font-size:.85rem}.sun-hours caption{text-align:left;margin-bottom:4px;font-weight:600}.sun-hours th,.sun-hours td{border-bottom:1px solid var(--border);text-align:right;padding:6px 4px}.sun-hours th[scope=row],.sun-hours thead th:first-child{text-align:left}.sun-hours td:nth-child(2){font-weight:700}#map{position:absolute;inset:0}.chip{border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;padding:0 14px;font-weight:600}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--surface)}.legend{left:10px;top:calc(var(--search-h) + 14px);z-index:2;border:1px solid var(--border);background:var(--bg);border-radius:8px;font-size:.75rem;position:absolute}.legend summary{min-height:32px;color:var(--text-muted);cursor:pointer;align-items:center;gap:8px;padding:4px 10px;font-weight:600;list-style:none;display:flex}.legend summary::-webkit-details-marker{display:none}.legend summary:after{content:"▸";font-size:.7rem}.legend[open] summary:after{content:"▾"}.legend-mini{gap:2px;display:flex}.legend-mini .swatch{width:8px;height:10px}.legend[open] .legend-mini{display:none}.legend ul{margin:0;padding:0 10px 8px;list-style:none}.legend li{align-items:center;gap:6px;display:flex}.swatch{border-radius:2px;width:14px;height:10px}.status{inset:auto var(--gutter) 50% var(--gutter);background:var(--surface);text-align:center;border-radius:8px;padding:12px;position:absolute}.header-actions{gap:8px;display:flex}.chip.icon{width:44px;padding:0;font-family:Georgia,Times New Roman,serif;font-size:1.15rem;font-style:italic}dialog{max-width:min(480px, calc(100vw - 2 * var(--gutter)));border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px}dialog a{color:var(--accent)}.yield{border-top:1px solid var(--border);margin:16px 0;padding-top:12px}.yield details{margin:0 0 10px}.yield summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}.yield details.values ul{margin:4px 0 0;padding-left:18px;font-size:.85rem}.yieldchart{margin:0 -4px 6px;position:relative}.yieldchart svg{touch-action:pan-y;width:100%;height:auto;display:block}.yieldchart text{fill:var(--text-muted);font-size:11px}.yieldchart .grid{stroke:var(--chart-grid)}.yieldchart .bar{fill:var(--solar)}.yieldchart .forecast .bar{fill:color-mix(in srgb, var(--solar) 45%, transparent);stroke:var(--solar);stroke-width:1.5px;stroke-dasharray:3 2}.yieldchart .incomplete .bar{fill:var(--chart-horizon)}.yieldchart .whisker{stroke:var(--text);stroke-width:1.5px}.yieldchart .flag{fill:var(--text);font-weight:700}.yieldchart .hit{fill:#0000}.actual form.entry{margin-bottom:4px}.actual .backup{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.actual ul.entries{margin:6px 0 0;padding:0;list-style:none}.actual ul.entries li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:6px 0;font-size:.85rem;display:flex}.chip.small-chip{min-height:44px;padding:0 12px;font-weight:500}.historychart{margin:0 -4px 4px;position:relative}.historychart svg{touch-action:pan-y;width:100%;height:auto;display:block}.historychart text{fill:var(--text-muted);font-size:11px}.historychart .grid{stroke:var(--chart-grid)}.historychart .band{fill:var(--series-1);opacity:.22}.historychart .central{fill:none;stroke:var(--series-1);stroke-width:1.5px;stroke-dasharray:4 4}.historychart .point{fill:var(--text);stroke:var(--surface);stroke-width:1.5px}.historychart .segment{stroke:var(--text);stroke-width:2.5px;stroke-linecap:round}.historychart .warn-ring{fill:none;stroke:#ec835a;stroke-width:2.5px}.historychart .warn-flag{fill:var(--text);font-size:13px;font-weight:700}.historychart .hit{fill:#0000}.sunpath-legend .key.band-key{background:color-mix(in srgb, var(--series-1) 22%, transparent);border-radius:2px;height:12px}.sunpath-legend .key.central-key{border-top:2px dashed var(--series-1)}.sunpath-legend .key.segment-key{border-top:3px solid var(--text)}.sunpath-legend .key.dot{border-radius:50%;width:10px;height:10px}.sunpath-legend .key.point-key{background:var(--text)}.sunpath-legend .key.warn-key{border:2.5px solid #ec835a}.dialog-sources{padding-left:18px;font-size:.85rem}.dialog-links{flex-wrap:wrap;gap:0 16px;margin:8px 0;display:flex}.dialog-links a{align-items:center;min-height:44px;font-weight:600;display:inline-flex}.dialog-actions{flex-wrap:wrap;gap:8px;margin:8px 0 12px;display:flex}.chip.danger{color:#fff;background:#b3261e;border-color:#b3261e}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}dialog.onboarding{width:min(420px, calc(100vw - 2 * var(--gutter)));padding:20px}dialog::backdrop{background:#00000073}.onboarding h2{margin:0 0 10px;font-size:1.2rem}.onboarding p{margin:0 0 12px}.onboarding .onb-count{margin-bottom:6px;font-size:.8rem}.onb-dots{justify-content:center;gap:8px;margin:16px 0;padding:0;list-style:none;display:flex}.onb-dots li{background:var(--border);border-radius:50%;width:8px;height:8px}.onb-dots li[aria-current=step]{background:var(--accent)}.onb-actions{gap:8px;display:flex}.onb-actions .primary{flex:1}.map-wrap{--search-h:44px}.search{z-index:3;max-width:480px;position:absolute;top:8px;left:10px;right:10px}.search input{width:100%;min-height:var(--search-h);border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;border-radius:999px;padding:0 14px;box-shadow:0 1px 4px #0000001f}.search input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.search-panel{border:1px solid var(--border);background:var(--surface);border-radius:12px;max-height:min(60vh,360px);margin-top:6px;overflow-y:auto;box-shadow:0 4px 16px #0000002e}.search-panel ul{margin:0;padding:4px 0;list-style:none}.search-panel li{cursor:pointer;flex-direction:column;justify-content:center;min-height:48px;padding:6px 14px;display:flex}.search-panel li[aria-selected=true],.search-panel li:hover{background:var(--bg)}.search-panel li .sub{color:var(--text-muted);font-size:.8rem}.search-message{border-bottom:1px solid var(--border);color:var(--text-muted);margin:0;padding:10px 14px;font-size:.85rem}.map-wrap .maplibregl-ctrl-top-right{top:calc(var(--search-h) + 8px)}@media (width>=600px){.search{width:min(480px,100% - 80px);right:auto}.map-wrap .maplibregl-ctrl-top-right{top:0}}.chip.block-chip{text-align:left;margin-top:8px;display:block}.summary-card{border:1px solid color-mix(in srgb, var(--solar) 45%, var(--border));background:var(--solar-bg);border-radius:14px;margin:8px 0 16px;padding:14px 16px}.summary-card .rating{align-items:center;gap:6px;margin:0 0 8px;font-weight:700;display:inline-flex}.summary-card .rating:before{content:"";background:currentColor;border-radius:50%;width:10px;height:10px}.summary-card .rating-good{color:var(--solar-text)}.summary-card .rating-fair,.summary-card .rating-poor{color:var(--text)}.summary-card .rating-poor:before{background:0 0;border:2px solid}.summary-kicker{color:var(--text-muted);margin:0;font-size:.875rem}.summary-figure{letter-spacing:-.01em;font-size:1.75rem;font-weight:800;line-height:1.15;margin:0 0 8px!important}.summary-figure .unit{font-size:1rem;font-weight:600}.summary-facts{grid-template-columns:1fr 1fr;gap:8px 16px;margin:0 0 8px;display:grid}.summary-facts dt{color:var(--text-muted);font-size:.75rem}.summary-facts dd{margin:0;font-size:1.125rem;font-weight:700}.summary-card details summary,.sheet details.advanced>summary,.sheet details.expert>summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}.summary-card details summary{min-height:40px;color:var(--text-muted);font-size:.875rem}.sheet details.advanced,.sheet details.expert{border:1px solid var(--border);border-radius:10px;margin:4px 0 14px;padding:0 12px}.sheet details.advanced[open],.sheet details.expert[open]{padding-bottom:12px}.sun-sentence{font-size:1rem;font-weight:600}.sun-bars{gap:10px;margin:8px 0 6px;padding:0;list-style:none;display:grid}.sun-bars li{grid-template-columns:auto 1fr;grid-template-areas:"label value""track track";gap:2px 8px;font-size:.875rem;display:grid}.sun-bars-label{grid-area:label;font-weight:600}.sun-bars-value{color:var(--text-muted);text-align:right;grid-area:value}.sun-bars-track{background:var(--chart-grid);border-radius:6px;grid-area:track;height:12px;position:relative}.sun-bars-possible,.sun-bars-sun{border-radius:6px;position:absolute;top:0;bottom:0;left:0}.sun-bars-possible{border:1.5px solid var(--solar);background:color-mix(in srgb, var(--solar) 18%, transparent)}.sun-bars-sun{background:var(--solar)}.skeleton{background:linear-gradient(90deg, var(--chart-grid) 0%, color-mix(in srgb, var(--chart-grid) 40%, var(--surface)) 50%, var(--chart-grid) 100%);background-size:200% 100%;border-radius:6px;animation:1.4s ease-in-out infinite shimmer}.skeleton-line{width:70%;height:1em;margin:6px 0 10px}.skeleton-figure{width:55%;height:2.2rem;margin:8px 0 12px}.skeleton-chart{aspect-ratio:480/220;width:100%;margin:8px 0 12px}.skeleton-block{width:100%;height:7rem;margin:8px 0 12px}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.skeleton{animation:none}}.ctrl-3d .ctrl-3d-button{width:29px;height:29px;font:inherit;color:#333;font-size:.75rem;font-weight:700}.ctrl-3d .ctrl-3d-button[aria-pressed=true]{background:var(--accent);color:#fff}
