:root{--bg: #fafafa;--panel: #ffffff;--ink: #0a0a0a;--muted: #6b6b6b;--line: #e5e5e5;--line-strong: #d4d4d4;--floor: #ffffff;--wall: #0a0a0a;--item: #f4f4f5;--item-line: #27272a;--green: #16a34a;--amber: #d97706;--red: #dc2626;--blue: #2563eb;--radius: 8px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0a0a0a;--panel: #111111;--ink: #ededed;--muted: #8f8f8f;--line: #262626;--line-strong: #3a3a3a;--floor: #161616;--wall: #ededed;--item: #232326;--item-line: #d4d4d8;--green: #22c55e;--amber: #f59e0b;--red: #f87171;--blue: #60a5fa;color-scheme:dark}}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0}body{background:var(--bg);color:var(--ink);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}kbd{font:12px ui-monospace,monospace;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:4px;padding:0 4px}a{color:inherit}.small{font-size:12px}.muted{color:var(--muted)}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--panel);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:baseline;gap:12px;min-width:0}.logo{font-weight:700;font-size:17px;letter-spacing:-.02em}.tagline{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;align-items:center;gap:10px}.layout{display:grid;grid-template-columns:340px 1fr;gap:0;min-height:calc(100vh - 110px)}.side{border-right:1px solid var(--line);background:var(--panel);padding:12px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;max-height:calc(100vh - 57px);position:sticky;top:57px}.stage{padding:16px 20px;display:flex;flex-direction:column;gap:12px;min-width:0}.card{border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:10px}.card h2{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0;font-weight:600}.row{display:flex;gap:8px}.row>*{flex:1;min-width:0}.field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.field.inline{flex-direction:row;align-items:center;gap:6px}.field input,.field select{border:1px solid var(--line-strong);border-radius:6px;padding:6px 8px;background:var(--panel);color:var(--ink);min-width:0;width:100%}.field.inline select{width:auto}.field input:focus,.field select:focus{outline:2px solid var(--ink);outline-offset:-1px}.btn{border:1px solid var(--ink);background:var(--ink);color:var(--bg);border-radius:6px;padding:6px 12px;cursor:pointer;font-weight:500}.btn:hover{opacity:.88}.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}.btn.small{padding:4px 10px;font-size:12px;align-self:flex-start}.btn.danger{background:transparent;color:var(--red);border-color:var(--line-strong)}.btn:disabled{opacity:.4;cursor:default}.door{border-top:1px dashed var(--line);padding-top:8px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.door .head{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600}.door .x{border:none;background:none;color:var(--muted);cursor:pointer;padding:0 2px}.results,.placed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:420px;overflow-y:auto}.results li button,.placed li{width:100%;text-align:left;border:1px solid transparent;background:none;border-radius:6px;padding:6px 8px;cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.results li button:hover,.placed li:hover{background:var(--bg);border-color:var(--line)}.results .name,.placed .name{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .meta,.placed .meta{color:var(--muted);font-size:12px;white-space:nowrap}.placed li.selected{border-color:var(--ink)}.placed li.bad .name{color:var(--red)}details summary{cursor:pointer;font-size:13px;color:var(--muted)}details[open] summary{margin-bottom:6px}.custom{display:flex;flex-direction:column;gap:8px}.verdict{border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px;background:var(--panel);display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.verdict .big{font-size:20px;font-weight:700;letter-spacing:-.02em}.verdict.ok .big{color:var(--green)}.verdict.fail .big{color:var(--red)}.verdict .detail{color:var(--muted)}.selection{border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px;background:var(--panel);display:flex;gap:10px;align-items:center;flex-wrap:wrap}.selection .title{font-weight:600;margin-right:auto}.plan-wrap{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:8px}svg.plan{width:100%;height:auto;max-height:calc(100vh - 290px);display:block;touch-action:none;user-select:none}.plan .floor{fill:var(--floor)}.plan .walk{image-rendering:pixelated}.plan .walls{fill:none;stroke:var(--wall);stroke-width:40}.plan .opening{stroke:var(--panel);stroke-width:60}.plan .swing{fill:none;stroke:var(--muted);stroke-width:10;stroke-dasharray:36 28}.plan .door-label{font-size:120px;fill:var(--muted);text-anchor:middle;dominant-baseline:middle}.plan .zone{fill:var(--green);fill-opacity:.06;stroke:var(--green);stroke-width:8;stroke-dasharray:28 20}.plan .zone.bad{fill:var(--red);stroke:var(--red)}.plan .item{cursor:grab}.plan .item:active{cursor:grabbing}.plan .item rect{fill:var(--item);stroke:var(--item-line);stroke-width:14}.plan .item.raised rect{fill-opacity:.55;stroke-dasharray:40 24}.plan .item.stacked rect{fill:var(--panel);stroke-dasharray:28 16;filter:drop-shadow(0 6px 4px rgb(0 0 0 / .18))}.plan .item.bad rect{stroke:var(--red)}.plan .item.selected rect{stroke:var(--blue);stroke-width:26}.plan .item .front{stroke:var(--item-line);stroke-width:18;stroke-linecap:round;opacity:.5}.plan .item .label{fill:var(--ink);text-anchor:middle;dominant-baseline:middle;pointer-events:none}.plan .gap{fill:none;stroke:var(--blue);stroke-width:14}.plan .sunpatch{fill:#f59e0b;fill-opacity:.32;stroke:#d97706;stroke-width:8;stroke-opacity:.6}.plan .window{stroke:var(--panel);stroke-width:44}.plan .window-pane{stroke:var(--blue);stroke-width:12}.plan .compass{stroke:var(--ink);stroke-width:16;marker-end:none}.plan .compass-label{font-size:110px;font-weight:700;fill:var(--ink);text-anchor:middle;dominant-baseline:middle}.plan .sunray{stroke:#d97706;stroke-width:14;stroke-dasharray:30 20}.plan .sunray-label{font-size:120px;fill:#d97706;text-anchor:middle;dominant-baseline:middle}.plan .gap.bad,.plan .gap-label.bad{stroke:var(--red);fill:var(--red)}.plan .gap.bad{fill:none}.plan .gap-label{fill:var(--blue);font-size:120px;font-weight:600;text-anchor:middle}.findings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.findings li{border:1px solid var(--line);border-radius:6px;padding:6px 10px;background:var(--panel);cursor:pointer;display:flex;gap:8px}.findings li .mark{font-weight:700}.findings li.fail .mark{color:var(--red)}.findings li.warn .mark{color:var(--amber)}.legend{color:var(--muted);display:flex;gap:6px 16px;align-items:center;flex-wrap:wrap;margin:0}.legend .key{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.sw{display:inline-block;width:12px;height:12px;border-radius:3px}.sw.green{background:color-mix(in srgb,var(--green) 30%,transparent)}.sw.red{background:color-mix(in srgb,var(--red) 45%,transparent)}.sw.zone{border:1.5px dashed var(--green)}.foot{padding:12px 20px;border-top:1px solid var(--line)}@media(max-width:860px){.layout{grid-template-columns:1fr}.stage{order:-1;padding:12px}.side{position:static;max-height:none;border-right:none;border-top:1px solid var(--line)}.tagline{display:none}svg.plan{max-height:none}.top{padding:10px 12px;flex-wrap:wrap}.top-actions{gap:6px}.field.inline{font-size:0;gap:0}.field.inline select{font-size:14px}}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips:empty{display:none}.chip{border:1px solid var(--line-strong);background:var(--panel);border-radius:999px;padding:3px 10px;font-size:12px;cursor:pointer;white-space:nowrap}.chip:hover{border-color:var(--ink)}.chip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}.chip .n{color:var(--muted);margin-left:4px}.chip.on .n{color:inherit;opacity:.7}.chips.sub .chip{font-size:11.5px;padding:2px 9px}.results .sub{display:block;color:var(--muted);font-size:11.5px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results li button{align-items:center}.results .text{min-width:0;display:flex;flex-direction:column}.viewbar{display:flex;align-items:center;gap:12px}.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:7px;padding:2px;background:var(--panel)}.seg button{border:none;background:none;padding:4px 14px;border-radius:5px;cursor:pointer;font-weight:500;color:var(--muted)}.seg button.on{background:var(--ink);color:var(--bg)}.view3d{padding:0;overflow:hidden;height:calc(100vh - 290px);min-height:380px;position:relative}.view3d-canvas{display:block;width:100%;height:100%;touch-action:none}@media(max-width:860px){.view3d{height:70vh;min-height:320px}}.row-buttons{display:flex;gap:8px;flex-wrap:wrap}.time-label{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:4px}.field input[type=range]{padding:0;border:none;accent-color:var(--ink)}.sw.sun{background:color-mix(in srgb,#f59e0b 40%,transparent)}.light-summary{border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;background:var(--panel);display:flex;flex-direction:column;gap:4px}.light-summary .head{font-weight:600}.light-summary ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px}.light-summary li .lux{font-variant-numeric:tabular-nums;font-weight:600}.light-summary li.low .lux{color:var(--red)}.light-summary li.mid .lux{color:var(--amber)}.light-summary li.ok .lux{color:var(--green)}.sw.lux-dim{background:#1e1b4b;opacity:.6}.sw.lux-mid{background:#fde68a}.sw.lux-hi{background:#f59e0b}.plan .lux{image-rendering:auto}.plan .item.lamp circle.body{fill:#fef3c7;stroke:#b45309;stroke-width:14}.plan .item.lamp.raised circle.body{stroke-dasharray:30 18;fill-opacity:.8}.plan .item.lamp.selected circle.body{stroke:var(--blue);stroke-width:24}.plan .reading{font-size:110px;font-weight:700;text-anchor:middle;paint-order:stroke;stroke:var(--panel);stroke-width:24px}.plan .reading.low{fill:var(--red)}.plan .reading.mid{fill:var(--amber)}.plan .reading.ok{fill:var(--green)}.selection select{border:1px solid var(--line-strong);border-radius:6px;padding:4px 6px;background:var(--panel);max-width:320px}.selection .lm{color:var(--muted);font-size:12px}
