:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#25382f;background:#f4f2ed;font-synthesis:none;--green: #245e4e;--ink: #263c32;--line: #dcded6;--paper: #f8f8f3;--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:12px;padding:11px 17px;font-weight:600;font-size:13px;transition:background .15s,transform .15s}button:active{transform:scale(.98)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #69b5ff;outline-offset:3px}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--green)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.primary{background:var(--green);color:#fff}.secondary{background:#eef0e8;color:var(--ink);box-shadow:inset 0 0 0 1px #d4d9ce}.icon-button{background:transparent;color:var(--ink);white-space:nowrap}.wide{width:100%}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}#viewport{position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse at 35% 40%,#f7f7ef,#e5e2d8)}#viewport canvas{width:100%;height:100%;display:block;touch-action:none}#overlay{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}#overlay button,#overlay input,#overlay a,#overlay aside,#overlay dialog{pointer-events:auto}.topbar{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(32px,env(safe-area-inset-left));right:max(32px,env(safe-area-inset-right));display:flex;align-items:center;gap:16px;height:44px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:21px;line-height:1.1;font-weight:750;letter-spacing:-.9px}.brand small{display:block;font-size:8px;letter-spacing:2.3px;font-weight:600;margin-top:5px}.brand-light{font-weight:400}.brand-icon{width:40px;height:40px;background:var(--green);color:#eee7d5;border-radius:11px;text-align:center;font-size:43px;line-height:19px;padding-top:3px}.badge{margin-left:auto;padding:8px 12px;background:#ffffffc9;border:1px solid #ffffff;border-radius:30px;font-size:11px;letter-spacing:.4px;white-space:nowrap}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;line-height:1.5;color:#6c8072}#intro{position:absolute;top:18%;left:5%;max-width:540px}h1{font-family:Georgia,serif;font-size:clamp(40px,5.9vw,82px);line-height:1.02;letter-spacing:-2.5px;font-weight:400;margin:17px 0 22px}.lead{font-size:15px;line-height:1.7;color:#586458}.intro-buttons{display:flex;gap:10px;margin:24px 0 12px;flex-wrap:wrap}.fine{font-size:11px;line-height:1.55;color:#758071}.glass{background:#f9faf5f2;box-shadow:0 15px 55px #172d2119;border:1px solid #fff;border-radius:22px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.catalog{position:absolute;top:90px;right:32px;bottom:26px;width:346px;display:flex;flex-direction:column;pointer-events:auto}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 20px 12px;gap:10px}.panel-heading h2{font-size:21px;letter-spacing:-.6px;margin-top:3px}.panel-heading .icon-button{padding:10px}.panel-scroll{overflow:auto;overscroll-behavior:contain;padding:0 20px 20px;scrollbar-width:thin}.section-label{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px;gap:8px}.section-label h3{font-size:12px;font-weight:700}.section-label>span{font-size:10px;color:#7b857b}.profiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.profile{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#edeee7;padding:6px 2px 7px;border-radius:9px;min-height:100px}.profile.selected{background:#e0e8dc}.profile svg{width:43px;height:54px;margin-bottom:3px}.profile path{fill:#fafbf4;stroke:#82967b;stroke-width:.9;stroke-linejoin:round}.profile span{font-size:9px;white-space:nowrap}.profile small{font-size:6px;letter-spacing:.8px;color:#899181;margin-top:4px}.materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.material{display:flex;align-items:center;gap:7px;text-align:left;padding:6px;font-size:11px;background:#eeefe9;min-height:41px;border-radius:9px}.material.selected{background:#e0e8dc}.material>span{width:27px;height:27px;border-radius:6px;background-size:cover;background-blend-mode:multiply;flex-shrink:0}.swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.swatch{height:44px;min-width:0;background:var(--swatch);border:2px solid #fff;box-shadow:0 1px 3px #0002;border-radius:10px;padding:0}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--green),inset 0 0 0 1px #fff}.custom-color{display:flex;align-items:center;gap:9px;margin:16px 0 12px}.custom-color>label{font-size:12px;margin-right:auto}.custom-color input[type=color]{width:43px;height:40px;border:0;background:transparent;padding:2px;cursor:pointer}.custom-color input[type=text]{width:86px;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:7px;background:#fff;font-size:12px;text-transform:uppercase}.catalog-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:9px;color:#718071;padding:15px 20px}.catalog-footer span:first-child{color:var(--green);font-weight:700}.catalog-toggle{position:absolute;right:32px;bottom:calc(28px + var(--safe-bottom));box-shadow:0 6px 25px #0002}.catalog-toggle span{margin-left:15px}#sample-note{position:absolute;bottom:32px;left:32px;display:flex;align-items:center;gap:8px;font-size:10px;color:#7a8171}.sample-dot{width:5px;height:5px;border-radius:50%;background:#748a70}#step{position:absolute;left:32px;top:90px;width:min(370px,calc(100% - 64px));padding:20px}#step h2{font-size:24px;line-height:1.2;margin:5px 0 9px;letter-spacing:-.5px}#step p{font-size:12px;line-height:1.5;color:#617062}.status{display:block;font-size:11px;color:var(--green);line-height:1.45;margin-top:12px}#reticle{position:absolute;left:50%;top:50%;width:28px;height:28px;transform:translate(-50%,-50%);border:1px solid #ffffffdd;border-radius:50%;box-shadow:0 0 0 1px #0004}#reticle span{position:absolute;width:4px;height:4px;background:#fff;left:11px;top:11px;border-radius:50%;box-shadow:0 0 3px #000}#actions{position:absolute;left:50%;bottom:calc(22px + var(--safe-bottom));transform:translate(-50%);width:min(530px,calc(100% - 40px));padding:12px;pointer-events:auto}.action-meta{display:flex;align-items:center;gap:12px;font-size:11px;margin:1px 2px 10px;min-height:30px}#length{font-size:17px;font-weight:700;color:var(--green);white-space:nowrap}#node-count{color:#788376;white-space:nowrap}.segmented{display:flex;margin-left:auto;gap:2px;border-radius:8px;background:#e5e9df;padding:2px}.segmented button{min-height:30px;padding:6px 9px;background:transparent;font-size:10px;border-radius:6px}.segmented button[aria-pressed=true]{background:#fff;box-shadow:none}.action-buttons{display:flex;gap:8px}.action-buttons .primary{flex:1}.action-buttons button{white-space:nowrap}.placing .catalog-toggle{bottom:calc(147px + var(--safe-bottom))}.check{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;margin:18px 0 9px;pointer-events:auto}.check input{width:20px;height:20px;accent-color:var(--green)}.check span{font-size:9px;color:#7b8076}.ar,.ar #viewport{background:transparent}.ar .brand{color:#fff;text-shadow:0 1px 5px #0009}.ar .topbar>.icon-button{background:#f8faf4ee}.ar .badge{display:none}#exit{margin-left:auto}#toast{position:absolute;left:50%;bottom:calc(165px + var(--safe-bottom));transform:translate(-50%);max-width:480px;width:calc(100% - 40px);padding:14px 18px;background:#263e33f5;color:#fff;font-size:12px;line-height:1.5;border-radius:14px;box-shadow:0 8px 35px #0002;z-index:8}dialog{max-width:380px;border:0;border-radius:20px;padding:25px;box-shadow:0 15px 100px #0004}dialog p{margin:15px 0;line-height:1.5;font-size:14px}dialog::backdrop{background:#eee8e3aa}@media(min-width:900px){.placing #catalog{bottom:165px;max-height:calc(100% - 220px)}.placing .catalog-toggle{bottom:28px}.placing #intro{max-width:45%}}@media(max-width:899px){.topbar{left:20px;right:20px;top:max(18px,env(safe-area-inset-top))}.brand{font-size:19px}.brand-icon{width:34px;height:34px;font-size:37px;line-height:17px}.badge{font-size:9px;padding:7px 9px}#intro{left:24px;top:15%;right:20px}h1{font-size:56px}.lead{font-size:13px}.intro-buttons{max-width:340px;margin-top:18px}.intro-buttons button{font-size:12px}#intro .fine{max-width:310px}.catalog{left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));top:auto;max-height:75dvh;width:auto;border-radius:22px}.catalog-toggle{right:20px;bottom:calc(25px + var(--safe-bottom))}.panel-heading{padding-top:16px}.panel-scroll{padding-bottom:18px}.profiles{grid-template-columns:repeat(5,minmax(0,1fr))}.profile span{font-size:10px}.materials{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-footer{padding:12px 20px}#sample-note{left:22px;bottom:86px;font-size:9px}#step{left:14px;top:78px;width:calc(100% - 28px);padding:15px 17px}#step h2{font-size:22px}#step p{font-size:11px}.status{margin-top:8px;font-size:10px}.placing .catalog{bottom:calc(142px + var(--safe-bottom));max-height:calc(100dvh - 222px)}.placing .catalog-toggle{right:20px;bottom:calc(144px + var(--safe-bottom))}#actions{width:calc(100% - 24px);bottom:calc(12px + var(--safe-bottom));border-radius:17px}.action-buttons button{padding:11px 12px;font-size:12px}.action-meta{gap:9px}.segmented button{font-size:9px;padding:7px}.brand small{letter-spacing:1.9px}}@media(max-height:540px)and (orientation:landscape){.topbar{top:max(10px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}.brand small{display:none}.brand{font-size:17px}.brand-icon{width:30px;height:30px;font-size:33px;line-height:15px}.topbar{height:32px}#intro{top:70px;left:26px;max-width:370px}h1{font-size:42px;margin:10px 0}.lead{font-size:11px}.eyebrow{font-size:8px}.intro-buttons{margin:14px 0 8px;max-width:none;flex-wrap:nowrap}.intro-buttons button{font-size:11px;min-height:40px;padding:9px 12px}#sample-note{bottom:15px;left:26px}.catalog{left:auto;right:max(12px,env(safe-area-inset-right));width:310px;top:56px;bottom:10px;max-height:none}.panel-heading{padding:12px 15px 5px}.panel-heading h2{font-size:18px}.panel-scroll{padding:0 15px 12px}.catalog-footer{padding:10px 15px;font-size:8px}.catalog-toggle{bottom:15px;right:20px;font-size:11px}#step{left:max(14px,env(safe-area-inset-left));top:58px;width:230px;padding:13px}#step h2{font-size:19px}#step p{font-size:10px}.status{font-size:9px}.placing #actions{left:auto;right:max(12px,env(safe-area-inset-right));bottom:calc(10px + var(--safe-bottom));transform:none;width:min(420px,54%);padding:9px}.action-buttons button{font-size:11px;padding:10px 9px}.action-meta{margin-bottom:6px;gap:8px}#length{font-size:15px}#node-count{font-size:9px}.placing .catalog-toggle{left:max(14px,env(safe-area-inset-left));right:auto;bottom:calc(10px + var(--safe-bottom));font-size:11px}.placing .catalog{top:55px;bottom:calc(126px + var(--safe-bottom));max-height:none}.placing .catalog-footer{display:none}#toast{bottom:130px;max-width:360px;left:auto;right:12px;transform:none}.ar #step{background:#f9faf5e8}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.ar .topbar{top:max(34px,env(safe-area-inset-top))}.ar #step{top:96px}@media(max-height:540px)and (orientation:landscape){.ar .topbar{top:max(26px,env(safe-area-inset-top))}.ar #step{top:70px}}.brand-icon{padding:0;object-fit:contain}.ar .brand{display:none}.ar .topbar{height:40px;gap:10px;top:max(32px,env(safe-area-inset-top))}.ar .badge{display:block;margin-left:0;order:1;font-size:9px;padding:9px 13px}.ar #exit{order:0;margin-left:0;border-radius:50%;width:40px;min-height:40px;height:40px;font-size:22px;padding:0}.ar #step{top:88px;padding:12px 15px;border-radius:16px;max-width:360px}.ar #step h2{font-size:17px;margin:3px 0 5px;line-height:1.2}.ar #step .eyebrow{font-size:8px;letter-spacing:1px}.ar #step p{font-size:10px;line-height:1.4}.ar #step .status{font-size:10px;margin-top:7px}.ar #open-catalog{font-size:10px;padding:8px 12px;min-height:36px}.ar.complete #step p,.ar.complete #step .status{display:none}.ar.complete #step{padding:10px 14px}.ar.complete #step h2{font-size:16px}#finish-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}#finish-controls button{font-size:11px;min-height:38px;padding:8px}#finish-swatches{grid-column:1/-1;display:flex;gap:6px;overflow-x:auto;padding:3px 2px}#finish-swatches button{min-width:30px;height:30px;min-height:30px;padding:0;flex:1;border-radius:50%}.complete .catalog-toggle{display:none}.complete #actions{max-width:470px}.complete .catalog{bottom:calc(260px + var(--safe-bottom));max-height:calc(100dvh - 330px)}@media(max-height:540px)and (orientation:landscape){.ar .topbar{top:max(24px,env(safe-area-inset-top))}.ar #step{top:74px;width:220px;padding:10px 12px}.ar #step h2{font-size:15px}.ar #step p,.ar #step .status{font-size:9px}.complete #actions{width:min(420px,55%)}.complete .catalog{top:65px;bottom:12px;right:auto;left:12px;width:300px;max-height:none}.ar.complete #step{max-width:220px}}#scan-progress{padding:4px 4px 8px}#scan-progress>div{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}#scan-progress strong{color:var(--green)}#floor-progress{display:block;width:100%;height:5px;border:0;border-radius:10px;accent-color:var(--green)}#floor-progress::-webkit-progress-bar{background:#dfe6dc;border-radius:10px}#floor-progress::-webkit-progress-value{background:var(--green);border-radius:10px}.scanning .action-meta,.scanning .action-buttons,.scanning .catalog-toggle{display:none}
