:root{--bg:#f4f5f6;--panel:#fff;--ink:#1f2328;--muted:#646b73;--line:#e1e4e8;--soft:#f3f4f6;--accent:#c2410c;--accent-soft:#fff1e8;--warn:#b45309;--bad:#b42318}*{box-sizing:border-box}[hidden]{display:none!important}html,body{background:var(--bg);height:100%;color:var(--ink);margin:0;font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{grid-template-columns:390px 1fr;height:100vh;display:grid}.panel{background:var(--panel);border-right:1px solid var(--line);flex-direction:column;min-height:0;display:flex}.top{border-bottom:1px solid var(--line);padding:18px 20px 14px}.top h1{margin:0 0 14px;font-size:17px}.steps{margin:0;padding:0;list-style:none;display:flex;position:relative}.steps li{flex:1;position:relative}.steps li+li:before{content:"";background:var(--line);height:2px;position:absolute;top:13px;left:calc(16px - 50%);right:calc(50% + 16px)}.steps li:has(.done)+li:before{background:var(--accent)}.steps button{width:100%;font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:center;gap:5px;padding:0;font-size:11.5px;display:flex}.steps b{border:2px solid var(--line);width:28px;height:28px;color:var(--muted);background:#fff;border-radius:50%;place-items:center;font-size:12.5px;display:grid}.steps .done b{border-color:var(--accent);background:var(--accent);color:#fff;font-size:0}.steps .done b:after{content:"✓";font-size:13px}.steps [aria-current]{color:var(--ink);font-weight:600}.steps [aria-current] b{border-color:var(--accent);color:var(--accent)}.steps button:hover b{border-color:var(--accent)}.steps .warned b{border-color:var(--bad);background:var(--bad);color:#fff;font-size:0}.steps .warned b:after{content:"!";font-size:15px;font-weight:700}.scroll{flex:1;padding:18px 20px 12px;overflow-y:auto}.count{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);margin:0 0 2px;font-size:12px;font-weight:600}.step h2{margin:0 0 4px;font-size:21px}.lead{color:var(--muted);margin:0 0 16px}.sub{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:18px 0 10px;font-size:12px}.note{color:var(--muted);margin:10px 0;font-size:12.5px}.seg{gap:6px;display:flex}.seg button{border:1px solid var(--line);background:var(--soft);font:inherit;cursor:pointer;color:var(--ink);border-radius:8px;flex:1;padding:9px 6px}.seg button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.note:empty{display:none}.choices{flex-direction:column;gap:8px;display:flex}.choice{border:1px solid var(--line);border-radius:12px;overflow:hidden}.choice-head{width:100%;font:inherit;color:var(--ink);text-align:left;cursor:pointer;background:#fff;border:0;align-items:center;gap:12px;padding:9px 14px;display:flex}.choice-head:hover{background:var(--soft)}.choice-text{flex-direction:column;flex:1;display:flex}.choice-label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:11.5px}.choice-value{font-size:14.5px}.choice-icon{color:var(--accent);flex:none;display:flex}.choice-icon svg{width:44px;height:26px}.chev{fill:none;width:18px;height:18px;stroke:var(--muted);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .15s}.choice-head[aria-expanded=true] .chev{stroke:var(--accent);transform:rotate(180deg)}.choice-head[aria-expanded=true] .choice-label{color:var(--accent);font-weight:600}.choice{transition:background .25s,border-color .25s}.choice.open{background:#fbfbfa;border-color:#ecc9b3}.choice.open .choice-head{background:0 0}.choice-body{grid-template-rows:0fr;transition:grid-template-rows .28s;display:grid}.choice.open .choice-body{grid-template-rows:1fr}.choice-opts{flex-direction:column;min-height:0;padding:0 12px;overflow:hidden}.choice-opts>:first-child{margin-top:2px}.choice-opts>:last-child{margin-bottom:12px}.choice-opts button{text-align:left;border:1.5px solid var(--line);background:#fff;border-radius:10px;flex:none;align-items:center;gap:12px;padding:9px 12px;transition:background .2s,border-color .2s,transform .1s;display:flex}.choice-opts button:hover{border-color:#c5cad1}.choice-opts button:active{transform:scale(.98)}.choice-opts button:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}.choice-opts button[aria-pressed=true]{background:var(--accent-soft);color:var(--ink);border-color:var(--accent)}.choice-note{color:var(--muted);margin:0 2px;font-size:12.5px}.choice-opts button[aria-pressed=true]:after{content:"";background:var(--accent) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");border-radius:50%;flex:none;width:20px;height:20px;margin-left:auto;animation:.3s cubic-bezier(.3,1.6,.5,1) pop}.choice-opts button.picked{animation:.3s pick}.choice-head.changed .choice-value,.choice-head.changed .choice-icon{animation:.35s swap}@keyframes pop{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes pick{0%{transform:scale(1)}35%{transform:scale(.97)}to{transform:scale(1)}}@keyframes swap{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.choice-body,.choice,.chev,.choice-opts button{transition:none}.choice-opts button.picked,.choice-opts button[aria-pressed=true]:after,.choice-head.changed .choice-value,.choice-head.changed .choice-icon{animation:none}}.choice-opts button>svg{flex:none;width:54px;height:32px}.choice-opts button>span{flex-direction:column;display:flex}.choice-opts strong{font-size:13.5px}.choice-opts small{color:var(--muted);font-size:12px}.choices svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linejoin:round}.choices svg .fill{fill:#e5e8ec}.choices svg .dim{fill:#9aa1a9;stroke:none}.choices svg rect{fill:#fff}.choices svg .thin{stroke-width:1.3px}.choice-icon svg .fill,.choice-opts button[aria-pressed=true] svg .fill{fill:#fcd9c2}.choice-opts button[aria-pressed=true] svg{color:var(--accent)}.frame-card{border:1px solid var(--line);border-radius:12px;overflow:hidden}.frame-head{align-items:center;gap:12px;padding:9px 14px;display:flex}.frame-check{background:var(--accent) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");border-radius:50%;flex:none;width:20px;height:20px}.frame-note{border-top:1px solid var(--line);background:var(--accent-soft);color:var(--muted);margin:0;padding:10px 14px 12px;font-size:12.5px}.frame-note strong{color:var(--ink)}.range{grid-template-columns:1fr auto;gap:2px 8px;margin-bottom:12px;display:grid}.range output{font-variant-numeric:tabular-nums;font-weight:600}.range input{width:100%;accent-color:var(--accent);grid-column:1/-1}.color-row{margin-bottom:14px}.color-row .lbl{justify-content:space-between;margin-bottom:6px;display:flex}.color-row .lbl span:last-child{color:var(--muted)}.swatches{grid-template-columns:repeat(8,1fr);gap:6px;display:grid}.swatch{aspect-ratio:1;cursor:pointer;border:1px solid #0003;border-radius:6px;padding:0}.swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.check{cursor:pointer;align-items:center;gap:8px;margin-bottom:12px;display:flex}.check input{accent-color:var(--accent);flex:none;width:16px;height:16px;margin:0}.op-card{border:1px solid var(--line);background:var(--soft);border-radius:10px;margin-bottom:10px;padding:10px 12px;transition:border-color .15s,background-color .15s,box-shadow .15s}.op-card.hover{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}.op-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.tag{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:9px;margin-left:4px;padding:0 6px;font-size:11.5px;font-weight:600;display:inline-block}.op-head .remove{border:1px solid var(--line);font:inherit;cursor:pointer;color:var(--muted);background:#fff;border-radius:6px;padding:5px 10px;font-size:12.5px;line-height:1}.op-head .remove:hover{border-color:var(--bad);color:var(--bad)}.op-row{gap:8px;margin-bottom:8px;display:flex}.op-row select{border:1px solid var(--line);min-width:0;font:inherit;background:#fff;border-radius:6px;flex:1;padding:6px}.op-row select[data-f=wall]{flex:0 0 36%}.op-card .range{margin-bottom:0}.warn{color:var(--warn);margin:6px 0 0;font-size:12.5px}.warn:empty{display:none}.lt-add{border:1px dashed #cdd2d8;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;min-height:58px;margin-bottom:10px;padding:10px 12px;display:flex}.lt-add small{color:var(--muted);font-size:12px}.lt-card .seg{margin-bottom:12px}.lt-card .range{margin-bottom:10px}.lt-card .note{margin:4px 0 0}.lt-card.warned{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}.add{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.review-actions{border-top:1px solid var(--line);background:var(--panel);margin:4px -20px -12px;padding:12px 20px;position:sticky;bottom:-12px}.bad{color:var(--bad);font-weight:600}.sum-group{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;padding:10px 14px}.sum-head{justify-content:space-between;align-items:baseline;display:flex}.sum-head h3{margin:0;font-size:14px}.sum-group ul{color:var(--muted);margin:6px 0 0;padding-left:18px}.link{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.link:hover{text-decoration:underline}.btn{white-space:nowrap;border:1px solid var(--line);font:inherit;cursor:pointer;color:var(--ink);background:#fff;border-radius:8px;padding:10px 14px}.btn:hover{background:var(--soft)}.btn:disabled{opacity:.45;cursor:default;background:#fff}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;flex:1;font-weight:600}.btn.primary:hover{background:#a8380a}.bar{border-top:1px solid var(--line);background:var(--panel);gap:8px;padding:14px 20px;display:flex}.actions{gap:8px;display:flex}.stage{min-width:0;min-height:0;position:relative}#viewport{position:absolute;inset:0}#viewport canvas{touch-action:none;width:100%;height:100%;display:block}.views{background:#ffffffeb;border-radius:10px;gap:2px;padding:4px;display:flex;position:absolute;top:14px;left:14px;box-shadow:0 1px 4px #00000026}.views button{font:inherit;cursor:pointer;color:var(--ink);background:0 0;border:0;border-radius:7px;padding:7px 11px}.views button:hover{background:var(--soft)}.views button[aria-pressed=true]{background:var(--ink);color:#fff}#plan{background:#fbfbf8;position:absolute;inset:0}.brand{pointer-events:none;background:#ffffffeb;border-radius:10px;height:64px;padding:6px 10px;position:absolute;top:14px;right:14px;box-shadow:0 1px 4px #00000026}#plan:not([hidden])~.brand{display:none}#callouts{pointer-events:none;position:absolute;inset:0;overflow:hidden}.callout{border:1.5px solid var(--bad);max-width:270px;color:var(--bad);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b42318'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z'/%3E%3C/svg%3E") 10px 9px/16px no-repeat;border-radius:8px;padding:8px 10px 8px 32px;font-size:13px;font-weight:600;line-height:1.35;position:absolute;box-shadow:0 4px 14px #0000002e}.callout:after{content:"";top:100%;left:var(--arrow,50%);border:8px solid #0000;border-top-color:var(--bad);margin-left:-8px;position:absolute}.callout.below:after{border-top-color:#0000;border-bottom-color:var(--bad);top:auto;bottom:100%}#plan svg{width:100%;height:100%;display:block}.dims{color:#fff;font-variant-numeric:tabular-nums;background:#1f2328d9;border-radius:8px;max-width:calc(100% - 330px);padding:7px 12px;position:absolute;bottom:14px;left:14px}.hint{background:#fffc;border-radius:6px;padding:5px 9px;font-size:12px;position:absolute;bottom:14px;right:14px}.loader{z-index:20;background:var(--bg);place-items:center;transition:opacity .35s;display:grid;position:fixed;inset:0}.loader.done{opacity:0;pointer-events:none}.loader-card{text-align:center;width:min(320px,100vw - 32px)}.loader-logo{margin:0 auto;display:block}.loader-text{margin:14px 0 12px;font-size:16px;font-weight:600}.loader-bar{background:var(--line);border-radius:999px;height:8px;overflow:hidden}.loader-fill{border-radius:inherit;background:var(--accent);width:0;height:100%;animation:5s cubic-bezier(.15,.7,.3,1) forwards loader-fill}@keyframes loader-fill{to{width:90%}}.loader-error{color:var(--bad);margin:14px 0 0;display:none}.loader.failed .loader-error{display:block}.loader.failed .loader-fill{background:var(--bad);animation-play-state:paused}.toast{background:var(--ink);color:#fff;opacity:0;pointer-events:none;z-index:10;border-radius:8px;padding:9px 14px;transition:opacity .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast.show{opacity:1}dialog{border:0;border-radius:14px;width:min(460px,100vw - 32px);padding:0;box-shadow:0 20px 60px #0000004d}dialog::backdrop{background:#00000073}.dlg{padding:22px}.dlg h3{margin:0 0 6px;font-size:18px}.dlg p{color:var(--muted);margin:0 0 16px}.dlg label{margin-bottom:10px;display:block}.dlg input{border:1px solid var(--line);width:100%;font:inherit;border-radius:6px;margin-top:4px;padding:8px;display:block}.dlg .actions{justify-content:flex-end;margin-top:16px}#print-sheet{display:none}@media print{@page{size:letter landscape;margin:.4in}body>:not(#print-sheet){display:none!important}#print-sheet{display:block}#print-sheet svg{width:10.2in;height:7.7in;display:block}}@media (width<=860px){.app{flex-direction:column;height:auto;display:flex}.stage{z-index:2;flex:none;order:-1;height:42vh;position:sticky;top:0}.panel{border-right:0}.top{padding:14px 16px 12px}.top h1{display:none}.scroll{padding:16px;overflow:visible}.bar{padding:12px 16px;position:sticky;bottom:0}.review-actions{bottom:var(--bar-height,0px);margin:4px -16px -16px;padding:12px 16px}.hint{display:none}.dims{max-width:calc(100% - 28px)}.callout{background-position:8px 7px;max-width:210px;padding:6px 8px 6px 28px;font-size:12px}.views button{padding:6px 8px}.brand{height:40px;padding:4px 6px}}@media (width<=420px){.steps span{display:none}.steps [aria-current] span{display:block}.views button{padding:6px}}@media (width<=350px){.brand{display:none}}
