:root{--bg:#f4f5f7;--surface:#fff;--surface-2:#eef0f3;--text:#1c1f23;--muted:#5f6772;--border:#d9dde3;--accent:#e0661f;--accent-text:#fff;--brand-text:#12233b;--brand-db:#b4581a;--viewport:#e9ecf0;--error:#b3261e;--ok:#1e7a46;--badge-free-text:#1d4f8a;--badge-free-bg:#e3eefb;--badge-account-text:#8a4513;--badge-account-bg:#fbe9d9;--plan-floor:#e4ecf6;--plan-wall:#2f5d8f;--plan-insulation:#d99a1e;--plan-room-hover:#2f5d8f24;--plan-room-selected:#e0661f33;--plan-roof:#c9d8ea;--icon-door:#c4621a;--icon-window:#2f86c2;--icon-skylight:#b86a1f;--icon-chip:#fff;--role-external:#d4693f;--role-party:#8a72c9;--role-internal:#b9bec4;--kind-window:#4fa8e0;--kind-door:#7a4e33;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#15171a;--surface:#1d2024;--surface-2:#272b30;--text:#e8eaed;--muted:#a0a7b1;--border:#353a41;--viewport:#202328;--brand-text:#fff;--brand-db:#f2994a;--error:#f2b8b5;--ok:#7fd3a1;--badge-free-text:#9cc3f5;--badge-free-bg:#1c2a3d;--badge-account-text:#f6b97e;--badge-account-bg:#3a2614;--plan-floor:#1b2533;--plan-wall:#8fb0dd;--plan-insulation:#e9b949;--plan-room-hover:#8fb0dd2e;--plan-room-selected:#e07b3533;--plan-roof:#24364d;--icon-door:#e07b35;--icon-window:#7cc4f2;--icon-skylight:#f6b97e;--icon-chip:#17181c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#15171a;--surface:#1d2024;--surface-2:#272b30;--text:#e8eaed;--muted:#a0a7b1;--border:#353a41;--viewport:#202328;--brand-text:#fff;--brand-db:#f2994a;--error:#f2b8b5;--ok:#7fd3a1;--badge-free-text:#9cc3f5;--badge-free-bg:#1c2a3d;--badge-account-text:#f6b97e;--badge-account-bg:#3a2614;--plan-floor:#1b2533;--plan-wall:#8fb0dd;--plan-insulation:#e9b949;--plan-room-hover:#8fb0dd2e;--plan-room-selected:#e07b3533;--plan-roof:#24364d;--icon-door:#e07b35;--icon-window:#7cc4f2;--icon-skylight:#f6b97e;--icon-chip:#17181c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg)}h1,h2,h3{margin:0;line-height:1.2}button,select,input{font:inherit;color:inherit}code{background:var(--surface-2);border-radius:4px;padding:.05em .3em;font-size:.92em}.app{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);height:100dvh;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px 20px;padding:10px 16px;display:flex}.brand{letter-spacing:-.02em;color:var(--brand-text);align-items:center;gap:8px;font-family:Space Grotesk,system-ui,sans-serif;font-size:1.25rem;font-weight:700;display:flex}.brand img{border-radius:6px;display:block}.brand-db{color:var(--brand-db)}.toolbar{flex-wrap:wrap;flex:1;align-items:center;gap:8px 20px;min-width:0;display:flex}.toolbar-group{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.toolbar-group:last-child{margin-left:auto}.toggle{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:5px;font-size:.9rem;display:inline-flex}.toggle input{accent-color:var(--accent)}.button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-text);cursor:pointer;border-radius:8px;padding:6px 14px}.button.subtle{color:var(--text);border-color:var(--border);background:0 0;padding:4px 10px;font-size:.9rem}.button:hover{filter:brightness(1.05)}.button.subtle:hover{background:var(--surface-2)}.link{color:var(--accent);cursor:pointer;text-align:left;background:0 0;border:0;padding:0}.link:hover{text-decoration:underline}.small{font-size:.85rem}.muted{color:var(--muted);margin:0}.error{color:var(--error);margin:8px 16px}.workspace{grid-template-columns:minmax(0,1fr) 360px;min-height:0;display:grid}.viewport{background:var(--viewport);min-height:0;position:relative}.legend{background:color-mix(in srgb, var(--surface) 85%, transparent);border:1px solid var(--border);pointer-events:none;border-radius:8px;flex-wrap:wrap;gap:4px 12px;padding:6px 10px;font-size:.8rem;display:flex;position:absolute;bottom:12px;left:12px}.legend span{align-items:center;gap:5px;display:inline-flex}.swatch{border-radius:3px;width:11px;height:11px;display:inline-block}.swatch.role-external{background:var(--role-external)}.swatch.role-party{background:var(--role-party)}.swatch.role-internal{background:var(--role-internal)}.swatch.kind-window{background:var(--kind-window)}.swatch.kind-door{background:var(--kind-door)}.sidebar{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;min-height:0;display:flex}.tabs{border-bottom:1px solid var(--border);display:flex}.tabs button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:10px 8px}.tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--accent);font-weight:600}.sidebar-body{min-height:0;overflow-y:auto}.panel{flex-direction:column;gap:18px;padding:16px;display:flex}.panel-header{flex-direction:column;gap:4px;display:flex}.panel-header h2{font-size:1.15rem}.panel section{flex-direction:column;gap:8px;display:flex}.panel h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);align-items:center;gap:8px;font-size:.8rem;display:flex}.panel h3 .link{text-transform:none;letter-spacing:0}.panel-empty{flex-direction:column;gap:8px;padding:24px 16px;display:flex}.panel-empty p{margin:0}.field{flex-direction:column;gap:4px;display:flex}.field-label{align-items:center;gap:6px;font-size:.9rem;display:flex}.field select,.field input{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:100%;padding:7px 9px}.tag{text-transform:none;letter-spacing:0;background:var(--surface-2);color:var(--muted);border-radius:999px;padding:1px 7px;font-size:.72rem;font-weight:500}.tag-set{background:color-mix(in srgb, var(--accent) 18%, transparent);color:var(--accent)}.tag-missing{background:color-mix(in srgb, var(--error) 14%, transparent);color:var(--error)}.segmented{border:1px solid var(--border);border-radius:8px;display:flex;overflow:hidden}.segmented button{cursor:pointer;background:0 0;border:0;flex:1;padding:7px 6px}.segmented button+button{border-left:1px solid var(--border)}.segmented button.on{color:#fff;font-weight:600}.segmented.compact button{padding:4px 12px;font-size:.9rem}.segmented button.on:not([class*=role-]){background:var(--accent)}.segmented button.on.role-external{background:var(--role-external)}.segmented button.on.role-party{background:var(--role-party)}.segmented button.on.role-internal{background:#8a9099}.plain{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.stats{flex-direction:column;gap:6px;margin:0;display:flex}.stats div{justify-content:space-between;gap:12px;display:flex}.stats dt{color:var(--muted)}.stats dd{text-align:right;font-variant-numeric:tabular-nums;margin:0}.note{background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:8px;margin:0;padding:8px 10px;font-size:.85rem}.align-row{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.align-row .field-label{min-width:92px}.button:disabled{opacity:.45;cursor:default}.matches-page{grid-template-columns:minmax(260px,340px) minmax(0,1fr);align-items:start;gap:20px;width:100%;max-width:1200px;margin:0 auto;padding:20px 16px;display:grid;overflow-y:auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex}.card h2{font-size:1.1rem}.your-home{position:sticky;top:0}.matches{flex-direction:column;gap:12px;display:flex}.matches-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.match-list{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.match-body{flex-wrap:wrap;align-items:flex-start;gap:16px 20px;display:flex}.match-plan{flex:200px;max-width:300px}.match-body .factors{flex:2 320px;width:auto;min-width:0;margin-top:0}.match-header{align-items:baseline;gap:8px;display:flex}.match-score{color:var(--accent);font-size:1.8rem;font-weight:700;line-height:1}.match-summary{margin:0}.plan{width:100%;height:auto;max-height:260px}.plan-own{fill:color-mix(in srgb, var(--muted) 22%, transparent);stroke:var(--muted);stroke-width:1.5px}.plan-theirs{fill:none;stroke:var(--accent);stroke-width:2.25px;stroke-dasharray:5 3}.plan-label{fill:var(--muted)}details summary{cursor:pointer;color:var(--accent);font-size:.9rem}.factors{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;margin-top:8px;font-size:.85rem}.factors th,.factors td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:4px 6px 4px 0}.factors thead th{color:var(--muted);font-weight:500}.factors tbody th{font-weight:500}.factors .factor-match-head,.factors td:last-child{text-align:right;white-space:nowrap;padding-right:0}.factor-match{color:var(--accent);font-weight:600}.factors tr.not-counted th,.factors tr.not-counted td{color:var(--muted)}.tag-sample{color:#8a6a00;background:#d9a40038}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .tag-sample{color:#f2cf5b}}:root[data-theme=dark] .tag-sample{color:#f2cf5b}.results,.estimate{flex-direction:column;gap:8px;display:flex}.results h3,.estimate h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);align-items:center;gap:8px;font-size:.8rem;display:flex}.estimate{border-color:color-mix(in srgb, var(--accent) 45%, var(--border))}.stats.large dd{font-size:1.1rem;font-weight:600}.empty p{margin:0}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.what-next{flex-direction:column;gap:40px;width:100%;max-width:1120px;margin:0 auto;padding:40px 16px 64px;display:flex;overflow-y:auto}.what-next h1,.what-next h2,.next-option-title{font-family:Space Grotesk,system-ui,sans-serif;font-weight:700}.scan-loaded{border-radius:14px;flex-flow:wrap;align-items:center;gap:24px;padding:20px 24px}.scan-loaded-plan{box-sizing:border-box;background:var(--bg);border-radius:10px;flex-shrink:0;place-items:center;width:168px;height:112px;padding:8px;display:grid}.scan-loaded-plan .plan{max-height:96px}.scan-loaded-text{flex-direction:column;flex:280px;gap:6px;min-width:0;display:flex}.scan-loaded-text h1{overflow-wrap:anywhere;font-size:1.45rem}.scan-loaded-status{color:var(--ok);align-items:center;gap:8px;margin:0;font-size:.85rem;display:flex}.scan-loaded .link{padding:12px 4px}.next-choices{flex-direction:column;gap:24px;display:flex}.next-intro{flex-direction:column;gap:8px;display:flex}.next-intro h2{letter-spacing:-.01em;font-size:2rem}.next-intro p{max-width:640px;font-size:1.05rem;line-height:1.5}.next-options{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;display:grid}.next-option{box-sizing:border-box;border:2px solid var(--border);background:var(--surface);cursor:pointer;border-radius:14px;flex-direction:column;gap:14px;min-height:260px;padding:24px;display:flex}.next-option:has(input:checked){border-color:var(--accent);background:color-mix(in srgb, var(--accent) 7%, var(--surface))}.next-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.next-option.coming-soon{cursor:not-allowed;background:0 0;border-style:dashed}.next-option-top{justify-content:space-between;align-items:center;display:flex}.next-option-icon{width:48px;height:48px;color:var(--accent);background:var(--surface-2);border-radius:12px;place-items:center;display:grid}.next-option-dot{box-sizing:border-box;border:2px solid var(--muted);border-radius:50%;width:22px;height:22px}.next-option:has(input:checked) .next-option-dot{border:7px solid var(--accent)}.next-option-title{font-size:1.3rem}.next-option-text{color:var(--muted);line-height:1.45}.next-option-foot{flex-direction:column;align-items:flex-start;gap:6px;margin-top:auto;display:flex}.badge{border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:600}.badge-free{color:var(--badge-free-text);background:var(--badge-free-bg)}.badge-account{color:var(--badge-account-text);background:var(--badge-account-bg)}.badge-soon{color:var(--bg);background:var(--muted)}.next-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:24px;display:flex}.next-footer p{max-width:560px;line-height:1.45}.next-action{align-items:center;gap:10px;min-height:46px;padding:12px 22px;font-size:1.05rem;display:flex}.app.full{grid-template-rows:minmax(0,1fr)}.editor{flex-direction:column;min-height:0;display:flex}.editor h2,.editor h3{margin:0}.editor h2{font-family:Space Grotesk,system-ui,sans-serif;font-size:1.35rem;font-weight:700}.editor h3{font-size:1rem;font-weight:600}.editor-head{box-sizing:border-box;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px 20px;min-height:60px;padding:8px 16px;display:flex}.editor-title{align-items:center;gap:10px;min-width:0;display:flex}.editor-title .brand{font-size:1.2rem}.editor-divider{background:var(--border);width:1px;height:24px}.editor-file{text-overflow:ellipsis;white-space:nowrap;font-size:.93rem;overflow:hidden}.icon-only{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;flex-shrink:0;place-items:center;padding:0;display:grid}.icon-only:hover{color:var(--text);background:var(--surface-2)}.back-button{color:var(--accent)}.view-tabs{background:var(--bg);border-radius:10px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.view-tabs button{min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;padding:6px 14px;font-size:.93rem;display:flex}.view-tabs button.on{color:var(--accent-text);background:var(--accent)}.tab-marker{background:var(--accent);border-radius:50%;width:8px;height:8px}.view-tabs button.on .tab-marker{background:var(--accent-text)}.editor-status{flex-wrap:wrap;align-items:center;gap:12px;margin-left:auto;font-size:.93rem;display:flex}.fabric-button{align-items:center;gap:8px;min-height:40px;padding:8px 14px;display:flex}.fabric-button svg{color:var(--accent)}.fabric-button.to-do{border-color:var(--accent)}.fabric-dialog{box-sizing:border-box;width:min(820px,100vw - 32px);max-width:none;height:min(900px,100dvh - 32px);max-height:none;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:0;overflow:hidden;box-shadow:0 24px 64px #00000059}.fabric-dialog::backdrop{background:#00000080}.fabric-dialog[open]{flex-direction:column;display:flex}@media (width<=600px){.fabric-dialog{border:0;border-radius:0;width:100vw;height:100dvh;margin:0}}.fabric-head{box-sizing:border-box;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:12px 20px;min-height:64px;padding:10px 20px;display:flex}.fabric-head h1{margin:0;font-family:Space Grotesk,system-ui,sans-serif;font-size:1.4rem}.fabric-close{margin-left:auto;font-size:1.5rem;line-height:1}.fabric-main{box-sizing:border-box;flex-direction:column;flex:1;gap:16px;width:100%;max-width:820px;margin:0 auto;padding:28px 24px 40px;display:flex;overflow-y:auto}.fabric-note{color:var(--badge-free-text);background:var(--badge-free-bg);border-radius:12px;align-items:flex-start;gap:12px;margin:0;padding:14px 16px;font-size:.9rem;line-height:1.5;display:flex}.fabric-note svg{flex-shrink:0;margin-top:2px}.fabric-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:14px;padding:20px;display:flex}.fabric-card-head{align-items:center;gap:12px;display:flex}.fabric-card-head h2{margin:0;font-size:1.06rem}.fabric-card-icon{width:40px;height:40px;color:var(--accent);background:var(--surface-2);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.fabric-card-icon.warning{color:var(--badge-account-text);background:var(--badge-account-bg)}.fabric-question{flex-direction:column;gap:8px;font-size:.95rem;display:flex}.choices{flex-wrap:wrap;gap:8px;display:flex}.choice{min-height:44px;font:inherit;color:var(--text);background:var(--bg);border:1.5px solid var(--border);cursor:pointer;border-radius:10px;padding:10px 16px;font-size:.95rem}.choice:hover{border-color:color-mix(in srgb, var(--accent) 50%, var(--border))}.choice.on{background:color-mix(in srgb, var(--accent) 10%, var(--surface));border:2px solid var(--accent);padding:9.5px 15.5px}.fabric-follow-up{background:var(--bg);border-left:3px solid var(--accent);border-radius:0 10px 10px 0;flex-direction:column;gap:8px;padding:14px 16px;display:flex}.fabric-follow-up .choice{background:var(--surface)}.fabric-tip{color:var(--muted);margin:0;font-size:.82rem;line-height:1.45}.fabric-tip b{color:var(--text)}.fabric-foot{box-sizing:border-box;background:var(--surface);border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;font-size:.9rem;display:flex}.fabric-foot-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.fabric-foot-actions .button{min-height:46px;font:inherit;padding:10px 18px}.floorplan-versions{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.floorplan-versions li{border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.floorplan-versions li>span:first-child{flex-direction:column;gap:2px;display:flex}.floorplan-tidy-button{margin-left:auto}.floorplan-summary{margin:0;font-weight:500}.floorplan-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.floorplan-canvas{background:var(--bg);border:1px solid var(--border);border-radius:10px;height:min(420px,50dvh);display:flex;position:relative;overflow:hidden}.floorplan-review summary{cursor:pointer;font-weight:500}.floorplan-review ul{flex-direction:column;gap:4px;margin:8px 0 0;padding-left:20px;font-size:.9rem;display:flex}.fabric-confirm-backdrop{z-index:10;box-sizing:border-box;background:#0009;justify-content:center;align-items:center;padding:24px;display:flex;position:absolute;inset:0}.fabric-confirm{box-sizing:border-box;background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:16px;width:100%;max-width:480px;padding:28px;display:flex;box-shadow:0 24px 64px #0006}.fabric-confirm h2{font-family:Space Grotesk,system-ui,sans-serif;font-size:1.25rem}.fabric-confirm p{margin:0;line-height:1.5}.button:disabled{opacity:.5;cursor:not-allowed;filter:none}.split-button{display:flex;position:relative}.split-button>.button{min-height:40px;font:inherit;align-items:center;gap:8px;font-weight:600;display:flex}.split-main{border-radius:8px 0 0 8px;padding:8px 14px}.split-toggle{border-left-color:color-mix(in srgb, var(--accent-text) 35%, var(--accent));border-radius:0 8px 8px 0;padding:8px 10px}.split-menu{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:10px;gap:2px;width:max-content;max-width:min(320px,100vw - 32px);padding:6px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0000002e}.split-menu button{font:inherit;text-align:left;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.split-menu button>span{gap:2px;display:grid}.split-menu button svg{color:var(--accent);flex-shrink:0;margin-top:2px}.split-menu button:hover:not(:disabled),.split-menu button:focus-visible{background:var(--surface-2)}.split-menu button:disabled{opacity:.55;cursor:not-allowed}.split-label{font-weight:600}.split-status{z-index:20;background:var(--surface);border-radius:8px;max-width:min(320px,100vw - 32px);margin:0;padding:6px 10px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 4px 16px #00000026}.share-dialog{box-sizing:border-box;width:min(520px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0;box-shadow:0 16px 48px #0000004d}.share-dialog::backdrop{background:#00000080}.share-head{justify-content:space-between;align-items:center;padding:12px 12px 0 20px;display:flex}.share-head h2{margin:0;font-size:1.25rem}.share-head .icon-only{font-size:1.5rem;line-height:1}.share-steps{color:var(--muted);border-bottom:1px solid var(--border);gap:16px;margin:8px 20px 0;padding:0 0 12px;font-size:.88rem;list-style:none;display:flex}.share-steps li{align-items:center;gap:6px;display:flex}.share-steps li.on{color:var(--text);font-weight:600}.share-step-number{border:1px solid var(--border);border-radius:50%;place-items:center;width:22px;height:22px;font-size:.78rem;display:grid}.share-steps li.on .share-step-number{color:var(--accent-text);background:var(--accent);border-color:var(--accent)}.share-body{gap:14px;padding:16px 20px 20px;display:grid}.share-body h3,.share-body p{margin:0}.share-checks{gap:8px;margin:0;padding:0;list-style:none;display:grid}.share-checks li{border:1px solid var(--border);border-radius:10px;align-items:center;gap:12px;padding:12px;display:flex}.share-check-mark{border:2px solid var(--border);border-radius:50%;flex-shrink:0;place-items:center;width:22px;height:22px;display:grid}.share-checks li.ok .share-check-mark{color:var(--surface);background:var(--ok);border-color:var(--ok)}.share-check-text{flex:1;gap:2px;display:grid}.share-listing{background:var(--surface-2);border-radius:10px;gap:4px;padding:12px 14px;display:grid}.share-listing strong{font-size:1.1rem}.share-consent{cursor:pointer;align-items:flex-start;gap:10px;display:flex}.share-consent input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0;margin:2px 0 0}.share-error{color:var(--error);font-size:.9rem}.share-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.share-actions .button{min-height:40px;font:inherit;padding:8px 16px}.share-field-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end;gap:14px;display:grid}.share-body .field input{box-sizing:border-box;min-height:40px;font:inherit;color:var(--text)}.editor-body{flex:1;min-height:0;display:flex}.editor-canvas{background-color:var(--bg);background-image:linear-gradient(var(--surface-2) 1px, transparent 1px), linear-gradient(90deg, var(--surface-2) 1px, transparent 1px);background-size:32px 32px;flex:999 640px;min-width:0;min-height:560px;display:flex;position:relative}.canvas-hint,.canvas-legend,.canvas-zoom{z-index:2;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin:0;position:absolute}.canvas-hint{max-width:340px;padding:10px 14px;font-size:.85rem;line-height:1.4;top:16px;right:16px}.canvas-legend{flex-wrap:wrap;gap:14px;padding:10px 14px;font-size:.85rem;display:flex;bottom:16px;left:16px}.canvas-legend span{align-items:center;gap:6px;display:flex}.canvas-zoom{gap:4px;padding:4px;display:flex;bottom:16px;right:16px}.canvas-zoom-button{width:40px;height:40px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.canvas-zoom-button:hover:not(:disabled){background:var(--surface-2)}.canvas-zoom-button:disabled{opacity:.4;cursor:default}.canvas-zoom-level{min-width:44px;color:var(--muted);justify-content:center;align-items:center;font-size:.85rem;display:flex}.canvas-empty{margin:auto;padding:24px}.icon-door{color:var(--icon-door)}.icon-window{color:var(--icon-window)}.icon-skylight{color:var(--icon-skylight)}.item-icons{flex-wrap:wrap;gap:6px;display:flex}.item-icon{background:var(--icon-chip);border-radius:6px;place-items:center;width:26px;height:26px;display:grid}.item-icon.large{border-radius:7px;flex-shrink:0;width:30px;height:30px}.room-name{white-space:nowrap;font-size:.98rem;font-weight:600}.room-figures{color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.8rem;font-weight:500}.room-checked{color:var(--ok);align-items:center;gap:4px;font-size:.8rem;display:flex}.room-pencil{border:1px solid var(--border);width:36px;height:36px;color:var(--text);background:var(--surface);cursor:pointer;border-radius:8px;flex-shrink:0;place-items:center;padding:0;display:grid}.hovered .room-pencil,.selected .room-pencil,.room-pencil:hover{background:var(--surface-2)}.editor button:focus-visible,.editor select:focus-visible,.editor input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.overview-stage{position:absolute;top:50%;left:50%}.overview{flex-direction:column;width:max-content;display:flex}.overview-roof{background:var(--plan-roof);clip-path:polygon(50% 0,100% 100%,0 100%);height:96px;position:relative}.overview-roof span{text-align:center;font-size:.85rem;font-weight:600;position:absolute;bottom:16px;left:0;right:0}.overview-floor{background:var(--plan-floor);border:6px solid var(--plan-wall);border-top:0;border-bottom-color:color-mix(in srgb, var(--plan-wall) 45%, var(--plan-floor));flex-direction:column;gap:12px;padding:14px 16px 16px;display:flex}.overview-floor-head{justify-content:space-between;align-items:baseline;gap:24px;display:flex}.overview-floor-name{font-size:.93rem;font-weight:600}.overview-rooms{gap:8px;display:flex}.overview-room{min-width:150px;height:128px;box-shadow:inset 0 0 0 2px var(--plan-wall);border-radius:4px;position:relative}.overview-room.hovered{background:var(--plan-room-hover);box-shadow:inset 0 0 0 3px var(--plan-wall)}.overview-room.selected{background:var(--plan-room-selected);box-shadow:inset 0 0 0 3px var(--accent)}.overview-room-main{width:100%;height:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:12px 52px 12px 14px;display:flex}.overview-room .room-pencil{position:absolute;top:8px;right:8px}.overview-ground{background:repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--bg) 6px 12px);height:28px;margin:0 -24px}.zoom-canvas{touch-action:none;cursor:grab;flex:1;position:relative;overflow:hidden}.zoom-canvas:active{cursor:grabbing}.floor-stage{position:absolute;top:50%;left:50%}.floor-stage>svg{width:100%;height:100%;display:block;overflow:visible}.fp-room{fill:#0000;cursor:pointer}.fp-room.hovered{fill:var(--plan-room-hover)}.fp-room.selected{fill:var(--plan-room-selected)}.fp-walls path{fill:var(--plan-wall);pointer-events:none}.fp-cavities path{pointer-events:none}.fp-cavity.empty{fill:var(--bg)}.fp-insulation-ground{fill:color-mix(in srgb, var(--plan-insulation) 35%, var(--bg))}.fp-insulation-hatch{stroke:var(--plan-insulation);stroke-width:.014px}.legend-cavity{box-sizing:border-box;border:3px solid var(--plan-wall);border-left:0;border-right:0;width:22px;height:10px}.legend-cavity.filled{background:repeating-linear-gradient(45deg, var(--plan-insulation) 0 1.5px, color-mix(in srgb, var(--plan-insulation) 35%, var(--bg)) 1.5px 4px)}.legend-cavity.empty{background:var(--bg)}.fp-gaps line{stroke:var(--plan-wall);stroke-width:1.5px;pointer-events:none}.floor-label{border-radius:10px;align-items:flex-start;gap:4px;padding:4px;display:flex;position:absolute;transform:translate(-50%,-50%)}.floor-label.hovered{background:color-mix(in srgb, var(--surface) 70%, transparent)}.floor-label.selected{background:color-mix(in srgb, var(--surface) 80%, transparent);box-shadow:inset 0 0 0 2px var(--accent)}.floor-label-main{max-width:180px;color:var(--text);cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:6px;padding:6px 8px;display:flex}.floor-label-main .item-icons{justify-content:center}.editor-panel{box-sizing:border-box;background:var(--surface);border-left:1px solid var(--border);flex-direction:column;flex:340px;gap:20px;min-width:0;padding:20px;display:flex;overflow-y:auto}.panel-intro{flex-direction:column;gap:6px;display:flex}.panel-intro p{line-height:1.45}.panel-note{color:var(--muted);gap:10px;margin:-8px 0 0;font-size:.85rem;line-height:1.45;display:flex}.panel-note svg{flex-shrink:0;margin-top:2px}.panel-card{background:var(--bg);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.panel-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.fabric-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;display:grid}.fabric-facts div{flex-direction:column;gap:2px;display:flex}.fabric-facts dt{color:var(--muted);font-size:.8rem}.fabric-facts dd{margin:0;font-size:.93rem}.panel-rooms{flex-direction:column;gap:8px;display:flex}.panel-room-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.panel-room-list li{border:1px solid var(--border);background:var(--bg);border-radius:10px;align-items:center;gap:4px;padding-right:4px;display:flex}.panel-room-list li.hovered{background:var(--surface-2)}.panel-room{box-sizing:border-box;text-align:left;min-width:0;min-height:48px;color:var(--text);cursor:pointer;background:0 0;border:0;flex:1;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:.98rem;display:flex}span.panel-room{cursor:default}.panel-room-name{flex-direction:column;gap:2px;display:flex}.status-checked{color:var(--ok);font-size:.85rem}.panel-room-edit{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.panel-room-edit:hover{color:var(--text);background:var(--surface-2)}.back-link{align-self:flex-start;align-items:center;gap:6px;min-height:36px;font-size:.93rem;display:flex}.room-title{max-width:100%;font:inherit;text-align:left;color:var(--text);cursor:text;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;margin:-4px -8px;padding:4px 8px;display:inline-flex}.room-title svg{color:var(--muted);flex-shrink:0}.room-title:hover{background:var(--surface-2)}.room-title:hover svg{color:var(--text)}.room-title-input{box-sizing:border-box;width:calc(100% + 16px);height:40px;color:var(--text);background:var(--bg);border:1px solid var(--accent);border-radius:8px;margin:-4px -8px;padding:0 8px;font-family:Space Grotesk,system-ui,sans-serif;font-size:1.35rem;font-weight:700}.heated-field{max-width:200px}.panel-field{flex-direction:column;gap:6px;display:flex}.panel-field>span{color:var(--muted);font-size:.8rem}.panel-field input,.panel-field select{box-sizing:border-box;height:44px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:0 10px}.room-items{flex-direction:column;gap:10px;display:flex}.room-items ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.room-items li{background:var(--bg);border:1px solid var(--border);border-radius:10px;align-items:center;gap:12px;padding:8px 8px 8px 12px;display:flex}.room-item-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.room-item-text select{max-width:100%;height:36px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-top:4px;padding:0 8px;font-size:.85rem}.room-fabric,.room-heat-loss{flex-direction:column;gap:12px;display:flex}.room-heat-loss h3{margin:0 0 4px}.room-heat-loss-fields{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.room-fabric h3{margin:0 0 4px}.room-fabric p{margin:0}.room-fabric-locked{background:var(--bg);border:1px dashed var(--border);border-radius:10px;flex-direction:column;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.panel-room-status{flex-shrink:0;align-items:center;gap:8px;display:flex}.add-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.add-items .button{min-height:44px;padding:8px}.panel-edit-foot{border-top:1px solid var(--border);flex-direction:column;gap:8px;margin-top:auto;padding-top:16px;display:flex}.checked-toggle{min-height:46px;font-size:1rem}.checked-toggle.on{color:var(--ok);border-color:var(--ok);background:0 0}@media (width<=900px){.editor{overflow-y:auto}.editor-body{flex-wrap:wrap;flex:none}.editor-canvas{min-height:520px}.editor-panel{border-left:0;border-top:1px solid var(--border);overflow:visible}.editor-status{margin-left:0}.canvas-hint{max-width:none;left:16px}}@media (width<=600px){.split-menu{left:0;right:auto}.canvas-hint{display:none}.canvas-legend{top:16px;bottom:auto}}.dropzone{place-items:center;padding:16px;display:grid}.dropzone-card{background:var(--surface);border:2px dashed var(--border);border-radius:14px;flex-direction:column;align-items:flex-start;gap:12px;width:100%;max-width:440px;padding:28px;display:flex}.dropzone.dragging .dropzone-card{border-color:var(--accent)}.dropzone .error{margin:0}.code-form{gap:8px;width:100%;display:flex}.code-input{border:1px solid var(--border);background:var(--surface);letter-spacing:.25em;text-transform:uppercase;border-radius:8px;flex:1;min-width:0;padding:7px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.15rem}.code-input::placeholder{color:var(--muted);opacity:.5}.dropzone-or{align-self:stretch;align-items:center;gap:10px;display:flex}.dropzone-or:before,.dropzone-or:after{content:"";border-top:1px solid var(--border);flex:1}@media (width<=800px){.matches-page{grid-template-columns:minmax(0,1fr)}.your-home{position:static}.app{height:auto;min-height:100dvh}.toolbar{flex-basis:100%;gap:8px 16px}.workspace{grid-template-rows:60vh auto;grid-template-columns:minmax(0,1fr)}.stats div{flex-wrap:wrap}.sidebar{border-left:0;border-top:1px solid var(--border)}.toolbar-group:last-child{margin-left:0}}.share-postcode{text-transform:uppercase;max-width:10ch}.fabric-postcode input,.fabric-number input{box-sizing:border-box;max-width:12ch;min-height:40px;font:inherit}.fabric-postcode input{text-transform:uppercase}.panel-field .field-error{color:var(--error);font-size:.8rem}.page-back{grid-column:1/-1}.my-homes{max-width:720px}.my-homes-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.my-home{color:var(--text);gap:4px;text-decoration:none}.my-home:hover,.my-home:focus-visible{border-color:var(--accent)}.my-home-name{font-weight:600}.match-name{margin:0}.explore-page{box-sizing:border-box;flex-direction:column;gap:14px;width:100%;max-width:1200px;margin:0 auto;padding:20px 16px;display:flex;overflow-y:auto}.explore-filters{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end;gap:12px;display:grid}.explore-filters input,.explore-filters select{box-sizing:border-box;min-height:40px;font:inherit}.explore-home h3{flex-wrap:wrap;align-items:center;gap:8px;font-size:1rem;display:flex}.account{align-items:center;min-height:32px;margin-left:auto;display:flex}.editor-status .account{margin-left:0}.account-sign-in{white-space:nowrap}
