@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-v15-latin_cyrillic-ext-regular.woff2') format('woff2');font-display:swap;font-weight:400}@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-v15-latin_cyrillic-ext-700.woff2') format('woff2');font-display:swap;font-weight:600 800}
:root{--ink:#222a2c;--muted:#596366;--line:#e1e4e2;--accent:#bb272c;--paper:#fff;--soft:#f5f5f1;--focus:#137d7b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--soft);font:14px/1.5 Montserrat,Arial,sans-serif}button,input,select{font:inherit}button{min-height:44px;border:1px solid var(--line);background:white;border-radius:7px;padding:9px 13px;cursor:pointer;color:var(--ink);transition:background .15s,border-color .15s}button:hover{background:#f0f2ef;border-color:#adb7b1}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input,select{min-height:44px;border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:white;color:var(--ink);max-width:100%;min-width:0}input[type=range]{padding:0;accent-color:var(--accent)}input[type=checkbox]{min-height:20px;width:20px;accent-color:var(--accent)}input[type=color]{width:55px}a{color:inherit}h1,h2,p{margin-top:0}h2{font-size:19px;line-height:1.35}small{font-size:11px}.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:700}.primary:hover{background:#be252a;border-color:#be252a}.secondary{background:transparent;border-color:#b6beb8}.large{padding:15px 21px;min-height:54px}.text-button{border:0;background:transparent;color:var(--muted);padding:8px 3px;text-underline-offset:4px}.text-button:hover{background:transparent;color:var(--ink);text-decoration:underline}.danger{color:#bd282c}.selected{border-color:var(--ink);background:#ecf1ed}.muted{color:var(--muted);font-size:12px;line-height:1.7}
.topbar{height:78px;border-bottom:1px solid var(--line);background:white;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:18px;text-decoration:none}.brand img{width:130px;height:auto;max-height:45px}.brand-caption{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}.modes{display:flex;background:var(--soft);border-radius:8px;padding:3px;gap:3px}.modes button{border:0;background:transparent;color:var(--muted);padding:7px 20px;min-height:44px}.modes .active{background:white;box-shadow:0 1px 4px #24302918;color:var(--ink)}.header-actions{display:flex;align-items:center;gap:7px}.header-actions>button{border:0;background:transparent}.icon-button{font-size:24px;width:44px;padding:4px}.language{font-size:12px;font-weight:700}.welcome{max-width:1500px;margin:0 auto;min-height:calc(100svh - 78px);display:grid;grid-template-columns:1fr 1.05fr;gap:65px;align-items:center;padding:60px 60px 55px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700;color:var(--accent);margin-bottom:26px}.intro h1{font-size:clamp(32px,3.4vw,53px);line-height:1.18;letter-spacing:-.04em;margin-bottom:25px;font-weight:700}.intro-copy{max-width:480px;line-height:1.8;color:var(--muted);font-size:15px}.entry-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:35px}.file-help{color:var(--muted);font-size:11px;margin:13px 0 17px}.steps{display:flex;gap:26px;margin-top:50px;padding-top:24px;border-top:1px solid var(--line);font-size:11px}.steps>span{display:flex;flex-direction:column;gap:10px}.steps b{color:#59685d;letter-spacing:.1em}.hero-photo{position:relative;height:570px;max-height:70svh;border-radius:5px 5px 90px 5px;overflow:hidden;background:#d7d9cd}.hero-photo>img{width:100%;height:100%;object-fit:cover;object-position:50% 55%}.photo-tag{position:absolute;top:20px;left:20px;padding:8px 12px;background:#fffffff0;border-radius:5px;font-size:10px}.hero-card{position:absolute;bottom:32px;left:25px;background:white;box-shadow:0 10px 40px #0e1b2130;border-radius:9px;padding:16px 20px;display:flex;gap:16px;align-items:center;max-width:85%}.hero-card strong,.hero-card small{display:block}.hero-card strong{font-size:13px}.hero-card small{color:var(--muted);margin-top:5px}.swatch{width:48px;height:48px;border-radius:3px;background:repeating-linear-gradient(0deg,#b8b2a9 0 3px,transparent 3px 18px),repeating-linear-gradient(90deg,#caa180 0 34px,#b8b2a9 34px 38px)}
.editor{display:grid;grid-template-columns:minmax(0,1fr) 365px;height:calc(100svh - 78px);min-height:560px}.workspace{min-width:0;display:flex;flex-direction:column;background:#e7e9e3}.scene-toolbar{height:60px;flex-shrink:0;padding:8px 20px;display:flex;justify-content:space-between;align-items:center;background:#f8f9f6;border-bottom:1px solid var(--line);gap:12px}.scene-toolbar>div{display:flex;gap:5px;align-items:center}.scene-toolbar button{font-size:12px;padding:7px 10px;border:0;background:transparent}.scene-toolbar .selected{background:#e1e5df}.stage{flex:1;position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#f8f9f5,#dde2d9)}.photo-fit{position:relative;flex-shrink:0;transform-origin:center center;touch-action:none;background:white;box-shadow:0 4px 25px #111a1014}.photo-fit canvas,.photo-fit img{display:block;width:100%;height:100%}#comparison-image,#mask-overlay{position:absolute;inset:0}#mask-overlay{touch-action:none}.comparison-line{position:absolute;left:50%;top:0;height:100%;width:2px;background:white;pointer-events:none;box-shadow:0 0 8px #0005}.comparison-line:after{content:'↔';position:absolute;top:50%;left:-20px;background:white;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;color:#333;box-shadow:0 1px 8px #0003}.stage-caption{position:absolute;bottom:13px;left:15px;right:15px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;font-size:10px;color:#46544a}.stage-caption span{background:#ffffffe3;padding:5px 8px;border-radius:4px}.scene-footer{min-height:51px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background:#f8f9f6;border-top:1px solid var(--line);gap:15px}.scene-footer p{font-size:10px;color:var(--muted);margin:0;max-width:530px}.scene-footer button{font-size:11px}.compare-controls{padding:8px 20px;display:flex;align-items:center;gap:15px;background:white}.compare-controls span{font-size:10px;width:110px}.compare-controls input{flex:1}.panel{display:flex;flex-direction:column;background:white;border-left:1px solid var(--line);min-height:0}.panel-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);padding:6px 5px}.panel-tabs button{font-size:10px;border:0;border-radius:0;padding:12px 5px;min-height:47px;color:var(--muted)}.panel-tabs .active{border-bottom:2px solid var(--accent);color:var(--ink);font-weight:700}.panel-body{flex:1;overflow:auto;padding:20px}.surface-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-bottom:18px}.surface-row label{color:var(--muted);font-size:11px}.surface-row select{flex:1;font-size:12px}.surface-row .text-button{font-size:11px;min-height:44px}.catalog-search{display:flex;gap:7px}.catalog-search input{width:100%;font-size:11px}.catalog-search button{font-size:11px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.filters select{width:100%;font-size:11px}.catalog-meta{font-size:10px;color:var(--muted);margin:14px 0 12px}.catalog{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product-card{position:relative;text-align:left;border:1px solid #e2e5df;border-radius:8px;padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0;background:white}.product-card:hover{border-color:#808f82;background:white}.product-card.active{border:2px solid var(--accent)}.product-card.active:after{content:'✓';position:absolute;top:6px;right:6px;background:var(--accent);color:white;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;font-size:11px}.product-card img{width:100%;height:82px;object-fit:cover;background:#eeece6}.product-copy{padding:10px 9px}.product-brand{font-size:9px;letter-spacing:.025em;color:var(--muted);display:block;margin-bottom:4px}.product-name{font-size:11px;line-height:1.5;display:block;font-weight:700;min-height:44px}.product-size{display:block;font-size:9px;color:var(--muted);margin-top:6px}.load-more{width:100%;margin:16px 0;font-size:11px}.panel-footer{border-top:1px solid var(--line);padding:13px 20px;flex-shrink:0;box-shadow:0 -6px 18px #16211805}.panel-footer .primary{width:100%;margin-top:9px}.panel-footer .text-button{width:100%;min-height:44px;font-size:11px;padding:5px}.active-item{display:flex;align-items:center;gap:10px}.active-item img{width:45px;height:38px;object-fit:cover;border-radius:4px}.active-item strong{font-size:10px;display:block}.active-item small{font-size:9px;color:var(--muted)}.surface-card,.variant-card{margin:10px 0;padding:13px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;gap:8px}.surface-card.active{border-color:var(--accent)}.surface-card input{width:100%;font-size:12px}.surface-card select{font-size:11px}.surface-card .actions,.variant-card .actions{display:flex;gap:6px;flex-wrap:wrap}.surface-card .actions button,.variant-card .actions button{font-size:10px}.variant-card img{width:100%;height:100px;object-fit:cover;border-radius:4px}.selection-item{display:flex;gap:10px;align-items:flex-start;margin:15px 0}.selection-item img{width:55px;height:44px;object-fit:cover;border-radius:4px}.selection-item strong{font-size:11px;display:block}.selection-item small{color:var(--muted);font-size:10px;display:block;margin:4px 0}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:20px 0}.export-grid button{font-size:11px}#share-project{width:100%}#share-link input{width:100%;margin-top:12px}.panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px}.panel-heading h2{margin:0}.panel-heading button{min-width:44px;font-size:20px;border:0}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tool-grid button{font-size:11px}.tool-grid .selected{border-color:var(--accent);color:var(--ink)}.range-field,.field{display:flex;flex-direction:column;gap:10px;margin:20px 0;font-size:12px}.range-field input{width:100%}.check{display:flex;align-items:center;gap:8px;font-size:11px;margin:16px 0}details{border-top:1px solid var(--line);padding-top:17px;margin-top:20px}summary{cursor:pointer;min-height:44px;font-size:12px;font-weight:700}.geometry-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:10px}.geometry-grid label{display:flex;flex-direction:column;gap:5px}.geometry-grid input{width:100%}#quad-fields label{font-size:10px;display:flex;gap:5px;align-items:center;margin:6px 0}#quad-fields input{width:70px;font-size:11px}#done-correction{width:100%;margin-top:20px}#model-frame{width:100%;height:100%;border:0}.processing{position:absolute;inset:0;background:#f9faf7ed;z-index:7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.processing h2,.processing p{margin:0}.processing p{font-size:12px;color:var(--muted)}.spinner{display:block;width:35px;height:35px;border:2px solid #d5dad2;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite;margin-bottom:10px}@keyframes spin{to{transform:rotate(360deg)}}.empty-photo{position:absolute;bottom:60px;left:50%;transform:translateX(-50%);background:white;box-shadow:0 8px 30px #0002;border-radius:10px;padding:20px;width:min(440px,90%);z-index:5}.empty-photo h2{font-size:16px}.empty-photo p{font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:#273a31;color:white;padding:12px 22px;border-radius:7px;font-size:12px;z-index:40;box-shadow:0 5px 30px #0002}dialog{border:0;border-radius:12px;padding:25px;max-width:520px;width:calc(100vw - 32px);max-height:90svh;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#18231b80}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-heading h2{margin:0}.dialog-heading button{font-size:25px;border:0}.dialog-body label,.form-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:12px}#dialog-body .primary{width:100%;margin-top:15px}#dialog-body p{font-size:12px;line-height:1.7}#dialog-body iframe{width:100%;height:70svh;border:0}dialog.fullscreen{width:96vw;max-width:1500px}body.read-only .panel-footer,body.read-only #refine-button,body.read-only #share-project,body.read-only #delete-project{display:none}
@media(max-width:1050px){.topbar{padding:0 18px}.brand-caption{display:none}.welcome{padding:40px 30px;gap:35px}.editor{grid-template-columns:minmax(0,1fr) 335px}.panel-body{padding:15px}.panel-footer{padding:12px 15px}.hero-photo{height:510px}}
@media(max-width:740px){.topbar{height:62px;padding:0 12px;gap:9px}.brand img{width:88px}.modes button{padding:6px 10px;font-size:10px;min-height:44px}.header-actions{gap:0}.header-actions #project-button{font-size:0;width:44px;padding:0}.header-actions #project-button:before{content:'▱';font-size:24px}.icon-button{width:44px;min-height:44px;font-size:22px}.language{min-height:44px;padding:5px}.welcome{padding:34px 22px;display:flex;flex-direction:column;gap:28px;min-height:calc(100svh - 62px)}.intro{width:100%}.eyebrow{font-size:9px;margin-bottom:17px}.intro h1{font-size:32px;margin-bottom:18px}.intro-copy{font-size:12px;line-height:1.75}.entry-actions{margin-top:24px;gap:8px}.entry-actions button{font-size:11px;min-height:49px;padding:12px 14px}.file-help{font-size:9px}.steps{margin-top:25px;padding-top:16px;gap:20px;font-size:9px}.hero-photo{width:100%;height:300px;border-bottom-right-radius:60px;max-height:none}.photo-tag{font-size:9px;left:14px;top:14px}.hero-card{left:15px;bottom:20px;padding:12px;gap:11px}.hero-card strong{font-size:11px}.hero-card small{font-size:9px}.swatch{width:40px;height:40px;flex-shrink:0}.editor{height:calc(100svh - 62px);min-height:0;display:flex;flex-direction:column}.workspace{height:58%;flex:none}.scene-toolbar{height:46px;padding:4px 10px;gap:4px}.scene-toolbar button{font-size:10px;padding:4px 6px;min-height:44px}.scene-toolbar #change-photo{font-size:10px}.scene-toolbar select{font-size:10px;min-height:44px;width:130px}.scene-footer{display:none}.stage-caption{font-size:8px;bottom:5px;left:6px;right:6px;gap:3px}.stage-caption span{padding:4px 6px}.panel{flex:1;min-height:0;border-left:0;border-top:1px solid var(--line)}.panel-tabs{padding:2px 5px}.panel-tabs button{font-size:10px;min-height:44px;padding:7px 4px}.panel-body{padding:10px 15px}.surface-row{margin-bottom:9px;gap:2px 9px}.surface-row label{font-size:9px}.surface-row select{min-height:44px;font-size:10px}.surface-row .text-button{font-size:9px}.catalog-search input,.catalog-search button{min-height:44px;font-size:10px}.catalog-meta{margin:8px 0;font-size:9px}.catalog{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.product-card img{height:55px}.product-copy{padding:7px}.product-name{font-size:9px;min-height:44px}.product-brand{font-size:8px}.product-size{font-size:8px;margin-top:3px}.panel-footer{padding:8px 15px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:5px 12px;align-items:center}.panel-footer .primary{font-size:10px;margin:0;min-height:44px;padding:7px}.panel-footer #sample{display:none}.active-item img{width:35px;height:30px}.active-item strong{font-size:9px;max-height:27px;overflow:hidden}.active-item small{font-size:8px}.compare-controls{padding:3px 12px;gap:8px}.compare-controls span{width:75px;font-size:8px}.compare-controls input{min-height:44px}.tool-grid{grid-template-columns:repeat(3,1fr)}.tool-grid button{font-size:9px;padding:8px 3px;min-height:44px}.panel-heading{margin-bottom:10px}.panel-heading h2{font-size:16px}.muted{font-size:10px}.range-field{margin:12px 0}.processing h2{font-size:17px}.processing p{font-size:10px}.empty-photo{bottom:10px;padding:12px}.empty-photo h2{font-size:13px}.empty-photo p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.entry-product{display:grid;gap:6px;margin:18px 0;padding:14px 16px;border-left:3px solid var(--accent,#b4362d);background:#fff;max-width:100%;overflow-wrap:anywhere}.entry-product[hidden]{display:none}#welcome-open-project{display:block;margin-top:12px}#share-expiry{overflow-wrap:anywhere}

#processing-preview{max-width:70%;max-height:45%;object-fit:contain;border-radius:6px;margin-bottom:14px}
@media(max-width:400px){.topbar{gap:4px;padding-left:9px;padding-right:9px}}

.house-comparison{position:absolute;inset:0;z-index:12;background:#f5f5f1;display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:8px;overflow:auto}.house-comparison>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.house-comparison>header strong{font-size:14px}.house-comparison button,.house-comparison input{min-height:44px}.house-compare-images{position:relative;min-height:0;flex:1;max-width:100%;overflow:hidden;background:#fff}.house-compare-images img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.house-compare-images img:nth-child(2){clip-path:inset(0 0 0 50%)}#house-compare-divider{position:absolute;top:0;bottom:0;left:50%;width:2px;background:white;box-shadow:0 0 3px #0009}.house-compare-labels,.house-compare-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.house-compare-labels{font-size:11px}#house-compare-slider{width:100%;margin:0}#house-compare-status{margin:auto;text-align:center;max-width:440px}.house-compare-actions button{flex:1;font-size:12px}.house-comparison .muted{margin:5px 0 0;font-size:10px}@media(max-width:740px){.house-comparison{padding:8px;gap:4px}.house-comparison>header strong{font-size:11px}.house-comparison>header button,.house-compare-actions button{font-size:10px;padding:5px}.house-comparison .muted{display:none}.house-compare-labels{font-size:9px}.house-compare-images{min-height:70px}}

#quote{min-height:44px}body.read-only #revoke-share{display:none}

#server-project-list{max-height:45svh;overflow:auto}.server-project-row{display:grid!important;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;border-top:1px solid var(--line);padding:10px 0}.server-project-row input{width:24px;height:44px;margin:auto}.server-project-row strong,.server-project-row small{display:block}.server-project-row small{font-size:11px;color:var(--muted);margin-top:5px}.server-project-actions{display:flex;flex-wrap:wrap;gap:8px}.server-project-actions button,#manage-server-projects,#welcome-server-projects{min-height:44px}.server-project-actions button{flex:1;font-size:12px}

#advanced-house-overlay{position:fixed;inset:0 0 auto;z-index:52;background:#f6f7f3}#advanced-house-overlay>header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:8px 20px;gap:12px}#advanced-house-overlay h2{font-size:18px;margin:0}#advanced-house-close{min-height:44px;white-space:nowrap}body.advanced-house #model-frame{position:fixed;inset:64px 0 0;width:100vw;height:calc(100svh - 64px);z-index:51;background:white}body.advanced-house{overflow:hidden}@media(max-width:740px){#advanced-house-overlay>header{padding:8px 12px}#advanced-house-overlay h2{font-size:13px}#advanced-house-close{font-size:11px}}

#capture-progress{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:60;width:min(620px,calc(100vw - 24px));display:flex;align-items:center;gap:16px;padding:14px 18px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 30px #0003;border-radius:8px}#capture-progress>div{flex:1;min-width:0}#capture-progress strong,#capture-progress small{display:block}#capture-progress strong{font-size:13px}#capture-progress small{font-size:11px;line-height:1.4;color:var(--muted);margin-top:5px}#cancel-capture{min-height:44px;flex-shrink:0}#export-status{overflow-wrap:anywhere}@media(max-width:480px){#capture-progress{align-items:stretch;flex-direction:column;gap:8px;padding:12px}#cancel-capture{width:100%}}

#photo-job-banner{position:fixed;top:84px;left:16px;z-index:25;width:min(440px,calc(100vw - 32px));display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 3px 15px #0002;padding:12px}#photo-job-preview{width:72px;height:72px;object-fit:contain;background:#eee}.photo-job-copy{min-width:0;flex:1}.photo-job-copy strong,.photo-job-copy small{display:block;font-size:12px;line-height:1.45}.photo-job-copy small{color:var(--muted)}.photo-job-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.photo-job-actions button{min-height:44px;font-size:11px;padding:6px 9px}#photo-review-overlay{position:fixed;inset:0;z-index:70;background:#f7f8f4;padding:18px max(18px,calc((100vw - 1100px)/2));display:flex;flex-direction:column;gap:8px;overflow:auto}#photo-review-overlay>header{display:flex;align-items:center;justify-content:space-between;gap:12px}#photo-review-title{font-size:20px;margin:0}#photo-review-status{font-size:12px;margin:0}.photo-review-images{position:relative;flex:1;min-height:120px;overflow:hidden;background:#fff}.photo-review-images img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#photo-review-after{clip-path:inset(0 0 0 50%)}.photo-review-labels,.photo-review-actions{display:flex;gap:10px;justify-content:space-between}.photo-review-labels{font-size:11px}.photo-review-actions button{flex:1}#photo-review-overlay button,#photo-review-slider,#photo-review-ack{min-height:44px}#photo-review-warning{font-size:12px}#photo-review-warning input{width:24px;flex:none}#photo-review-slider{width:100%;margin:0}@media(max-width:740px){#photo-job-banner{top:66px;left:8px;width:calc(100vw - 16px);padding:8px;gap:8px}#photo-job-preview{width:50px;height:60px}#photo-review-overlay{padding:10px}#photo-review-title{font-size:15px}.photo-review-actions button{font-size:11px;padding:7px}#photo-review-status{font-size:11px}}

#photo-prepared-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none}

#photo-job-toggle{min-height:44px;align-self:flex-start;order:3;font-size:11px;padding:5px 8px}#photo-job-banner.compact{top:auto;bottom:16px;left:16px;width:auto;max-width:calc(100vw - 32px);padding:4px}#photo-job-banner.compact #photo-job-preview,#photo-job-banner.compact .photo-job-copy{display:none}#photo-job-banner.compact #photo-job-toggle{order:0}

body.native-fallback #model-select,body.native-fallback #toolbar-settings,body.native-fallback #advanced,body.native-fallback #zoom-in,body.native-fallback #zoom-out,body.native-fallback #fit{display:none}body.native-fallback .panel-tabs{grid-template-columns:repeat(2,1fr)}#native-settings{min-height:44px}#photo-feature-note{max-width:560px}

.project-load-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;pointer-events:none}.project-load-overlay[hidden]{display:none}.project-load-overlay.blocking{background:#15231bcc;pointer-events:auto}.project-load-overlay section{pointer-events:auto;background:white;color:#202c26;border-radius:16px;padding:24px;box-shadow:0 8px 40px #0005;max-width:min(440px,90vw)}.project-load-overlay button{min-height:44px;margin:6px}.project-load-overlay:not(.blocking){align-items:flex-end;padding-bottom:24px}

/* Local manual entry remains available independently of automatic analysis. */
.entry-actions{flex-wrap:wrap}.entry-actions #local-photo-button{min-height:44px}.local-photo-help{max-width:540px;line-height:1.6}#choose-auto-photo{width:100%;margin-top:12px;min-height:44px}#point-tool-note{line-height:1.5}#photo-pdf-continue{min-height:44px}

/* A04/A05: controls keep their complete touch target at every breakpoint. */
button,select,summary{min-width:44px}button,input,select,summary{flex-shrink:0}input:not([type=checkbox]):not([type=radio]){min-width:44px}.check{min-height:44px}label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;cursor:pointer}input[type=checkbox],input[type=radio]{flex:none}a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.brand{min-height:44px}.scene-toolbar{height:auto;min-height:60px;flex-wrap:wrap}.scene-toolbar>div{flex-wrap:wrap;min-width:0}.surface-row select{min-width:80px;flex-shrink:1}.catalog-search input{min-width:0;flex-shrink:1}.tool-grid .selected{font-weight:700;box-shadow:inset 0 -3px currentColor}.modes .active{font-weight:700;text-decoration:underline;text-underline-offset:4px}.surface-card.active{border-width:2px}.keyboard-mask-cursor{position:absolute;width:24px;height:24px;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;outline:2px solid #202c26;box-shadow:0 0 0 4px #fff8;pointer-events:none;z-index:4}.keyboard-mask-cursor:before,.keyboard-mask-cursor:after{content:'';position:absolute;background:#202c26;box-shadow:0 0 0 1px white;left:50%;top:50%;transform:translate(-50%,-50%)}.keyboard-mask-cursor:before{width:32px;height:2px}.keyboard-mask-cursor:after{width:2px;height:32px}#keyboard-mask-start{width:100%;margin-top:12px}#keyboard-mask-help,#keyboard-mask-status{margin:10px 0;line-height:1.6}#mask-overlay:focus-visible{outline-offset:-4px}#keyboard-mask-status:empty{display:none}
@media(max-width:740px){.topbar{height:auto;min-height:106px;flex-wrap:wrap;gap:2px 8px;padding:6px 12px}.brand{flex:1}.modes{order:3;width:100%;justify-content:center}.modes button{flex:1}.header-actions{gap:2px}.header-actions>button{min-width:44px}.welcome{min-height:calc(100svh - 106px)}.editor{height:calc(100svh - 106px)}.scene-toolbar{min-height:52px;padding:4px 10px}.scene-toolbar>div{gap:2px}.scene-toolbar>div:last-child{margin-left:auto}.scene-toolbar button{min-width:44px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid button{overflow-wrap:anywhere}.panel-tabs button{min-width:0}.compare-controls span{min-width:0}.compare-controls input{min-width:44px}.panel-footer{grid-template-columns:minmax(0,1fr) minmax(0,145px)}#photo-job-banner:not(.compact){top:110px}.entry-actions button{max-width:100%}.photo-review-actions{flex-wrap:wrap}.photo-review-actions button{min-width:130px}}

.eyebrow{color:#a82328}.scene-toolbar .selected{font-weight:700;text-decoration:underline;text-underline-offset:4px}
@media(max-width:740px){.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{height:54%}}
.panel-body{scroll-padding:6px}

/* Both modes present the same mounted configurator. */
.ui-modes{display:flex;gap:4px;align-items:stretch;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff}.ui-modes button{font-size:12px;min-height:44px;white-space:nowrap;padding:8px 12px}.ui-modes button[aria-pressed="true"]{background:#273a31;color:white;font-weight:700}.ui-modes button[aria-disabled="true"]{cursor:wait}.topbar:not(.has-ui-modes)>.ui-modes{display:none}.professional-tools{position:relative;border:0;padding:0;margin:0;flex-shrink:0}.professional-tools>summary{display:flex;align-items:center;padding:8px;min-width:44px}.professional-tools>div{position:absolute;right:0;top:100%;display:grid;gap:4px;padding:10px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0002;width:min(300px,calc(100vw - 24px));z-index:53}.professional-tools button{text-align:left;font-size:12px}.professional-tools[open]>summary{outline:2px solid #273a31}.advanced-house #advanced-house-overlay>header{position:relative;z-index:52}.advanced-house #toast{z-index:55}.advanced-house #house-comparison{visibility:hidden}body.ui-mode-pending .ui-modes{cursor:wait}
@media(max-width:1100px){body:has(>.topbar.has-ui-modes){height:100svh;display:flex;flex-direction:column}body:has(>.topbar.has-ui-modes)>main{flex:1;min-height:0}.topbar.has-ui-modes{height:auto;min-height:118px;flex-shrink:0;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;padding-top:4px;padding-bottom:4px}.topbar.has-ui-modes>.ui-modes{order:4;flex-basis:100%;justify-content:center}.topbar.has-ui-modes>.ui-modes>button{flex:1}.topbar.has-ui-modes .modes [data-mode="house"]{display:none}.has-ui-modes~main>.editor{height:100%;min-height:0}#advanced-house-overlay h2{display:none}#advanced-house-overlay>header{padding:6px 10px;gap:6px}#advanced-house-overlay .ui-modes{flex:1;min-width:0}#advanced-house-overlay .ui-modes button{flex:1;font-size:11px;padding:6px}#advanced-house-overlay .professional-tools>summary{font-size:0}#advanced-house-overlay .professional-tools>summary:after{content:'▱';font-size:22px}}
/* Ready-made looks, the third mode: the looks list replaces the catalogue tabs and panels. */
body.looks-mode .panel>.panel-tabs,body.looks-mode .panel>.panel-body:not(#looks-panel){display:none!important}
.looks-panel h2{margin:0 0 6px}
.look-list{display:grid;gap:12px;margin-top:12px}
.look-card{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.look-card.active{border-color:#273a31;box-shadow:0 0 0 2px rgba(39,58,49,.18)}
.look-card h3{margin:0;font-size:15px;line-height:1.3}
.look-card p{margin:0;font-size:13px;line-height:1.45}
.look-card p.muted{font-size:12px;line-height:1.5}
.look-card button{width:100%;min-height:44px}
.look-swatches{display:grid;grid-template-columns:2fr 1fr 1fr;gap:6px}
.look-swatches figure{margin:0;min-width:0}
.look-swatches img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:var(--soft)}
.look-swatches figcaption{margin-top:4px;font-size:11px;line-height:1.3;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.look-swatches figcaption small{display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase}
@media(max-width:520px){.ui-modes button{white-space:normal;line-height:1.15;padding:6px 4px}}

/* ===== 04.11.2026 revision: color roles, a readable type floor, English first, quick demo access =====
   Color has three jobs and no more: red (the install's --accent, HIT #d93a2f by default, the same
   value install.json sets, so the page no longer changes red as it loads) is for the action
   (Get a quote, the main entry button); dark green is for the current state (mode, tab, chosen
   product, sliders, focus); everything else is the warm grays. Red text on a light ground uses
   a darker step, so 11-12 px labels keep 4.5:1. No text under 11 px anywhere, 16 px in fields
   on a phone so iOS does not zoom on focus. */
:root{--accent:#d93a2f;--accent-ink:color-mix(in srgb,var(--accent) 80%,#000);--state:#273a31;--focus:#273a31}
.primary:hover{background:color-mix(in srgb,var(--accent) 86%,#000);border-color:color-mix(in srgb,var(--accent) 86%,#000)}
.eyebrow,.danger{color:var(--accent-ink)}
input[type=range],input[type=checkbox]{accent-color:var(--state)}
.panel-tabs .active{border-bottom-color:var(--state)}
.product-card.active,.surface-card.active,.tool-grid .selected{border-color:var(--state)}
.product-card.active:after{background:var(--state)}

/* Type floor, desktop */
.photo-tag{font-size:12px}
.stage-caption,.scene-footer p,.compare-controls span,.panel-tabs button{font-size:12px}
.catalog-meta,.selection-item small,.geometry-grid,#quad-fields label{font-size:11px}
.product-brand,.product-size{font-size:11px;letter-spacing:.01em}
.active-item strong{font-size:12px}.active-item small{font-size:11px}
.surface-card .actions button,.variant-card .actions button{font-size:11px}
.house-comparison .muted,.look-swatches figcaption small{font-size:11px}

/* Welcome: one main action, the secondary links on the text edge */
.intro .text-button{padding-left:0;padding-right:0;font-size:13px}
#welcome-open-project{margin-top:14px}
/* One 3D mode only (photo is off): a lone tab says nothing, so the header drops it */
.topbar>.modes:not(:has([data-mode="photo"]:not([hidden]))){display:none}
/* Undo and redo have nothing to act on before a project opens */
body:has(#welcome:not([hidden])) #undo,body:has(#welcome:not([hidden])) #redo{display:none}

/* English first: the language switch shows both, English first, the current one pressed */
.header-actions>.language{display:flex;gap:2px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff;min-height:0}
.language>button{min-width:42px;min-height:40px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.04em}
.language>button:hover{background:var(--soft);color:var(--ink)}
.language>button[aria-pressed="true"]{background:var(--state);color:#fff}
/* While the page works out its language, the words wait a moment instead of flashing Russian;
   they appear anyway after 3 s if the script never runs */
.i18n-boot .topbar>:not(.brand),.i18n-boot .brand-caption,.i18n-boot .intro,.i18n-boot .hero-photo>:not(img){visibility:hidden;animation:i18n-reveal 0s 3s forwards}
@keyframes i18n-reveal{to{visibility:visible}}

/* Quick access to the demo: a header button on every screen, the hero card on the welcome */
.header-actions>.demo-open{display:inline-flex;align-items:center;gap:7px;margin-right:4px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px;font-weight:700}
.header-actions>.demo-open:hover{border-color:#adb7b1;background:#fff}
.demo-open svg{width:14px;height:14px;color:var(--accent)}
.hero-card.hero-demo{right:auto;border:0;padding:12px 18px 12px 12px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.hero-card.hero-demo:hover{background:#fff;transform:translateY(-2px);box-shadow:0 14px 44px #0e1b2138}
.hero-demo-thumb{position:relative;flex:none;width:112px;height:63px;border-radius:6px;overflow:hidden;background:var(--soft)}
.hero-demo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.hero-demo-play{position:absolute;inset:0;margin:auto;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#fff;box-shadow:0 2px 10px #0004}
.hero-demo-play svg{width:14px;height:14px;margin-left:2px}
.hero-demo-copy{display:block;min-width:0}
.hero-demo-copy strong{display:block;font-size:14px}
.hero-demo-copy small{display:block;margin-top:4px;font-size:12px;line-height:1.45;color:var(--muted);max-width:300px}
.demo-dialog{padding:0;width:min(960px,calc(100vw - 32px));max-width:none;overflow:hidden;background:#fff}
.demo-dialog::backdrop{background:#18231bb3}
.demo-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 22px}
.demo-dialog-head h2{margin:0;font-size:17px}
.demo-close{min-width:44px;border:0;font-size:24px;line-height:1;padding:6px}
.demo-video{background:#e6e9e4}
.demo-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:calc(100svh - 190px);object-fit:contain;background:#e6e9e4}
.demo-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;padding:14px 22px 18px;font-size:13px}
.demo-links a{color:var(--muted);text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.demo-links a:hover{color:var(--ink)}
.demo-links .primary-link{padding:0 18px;border-radius:7px;background:var(--accent);color:#fff;font-weight:700;text-decoration:none}
.demo-links .primary-link:hover{background:color-mix(in srgb,var(--accent) 86%,#000);color:#fff}

@media(max-width:740px){
 /* Type floor, phone */
 .eyebrow{font-size:11px}.intro-copy{font-size:15px;line-height:1.65}.entry-actions button{font-size:15px}
 .file-help,.photo-tag{font-size:11px}
 .hero-demo-copy strong{font-size:13px}.hero-demo-copy small{font-size:11px}
 .scene-toolbar button,.scene-toolbar #change-photo{font-size:12px}
 .stage-caption{font-size:10px}
 .panel-tabs button{font-size:12px}
 .surface-row label,.surface-row .text-button,.catalog-meta{font-size:11px}
 /* 16 px fields: iOS zooms the page into anything smaller on focus */
 .surface-row select,.catalog-search input,.filters select,.scene-toolbar select{font-size:16px}
 .catalog-search button{font-size:12px}
 .product-name{font-size:11px;line-height:1.3}.product-brand,.product-size{font-size:10px}
 .panel-footer .primary{font-size:13px}
 .active-item strong{font-size:11px;max-height:29px}.active-item small{font-size:10px}
 .compare-controls span{font-size:10px}
 .tool-grid button{font-size:11px}
 .muted,.processing p,.empty-photo p{font-size:12px}
 .house-comparison .muted,.house-comparison>header button,.house-compare-actions button{font-size:11px}
 .house-compare-labels{font-size:11px}
 /* The three numbered steps move below the fold on a phone and push the picture with them */
 .steps{display:none}
 .hero-photo{height:340px}
 .hero-card.hero-demo{left:12px;right:12px;bottom:12px;max-width:none;padding:10px}
 .hero-demo-thumb{width:88px;height:50px}
 .header-actions>.demo-open{padding:0;width:44px;min-height:44px;justify-content:center;margin-right:2px}
 .header-actions>.demo-open span{display:none}
 .language>button{min-width:38px;padding:0 6px}
 .demo-dialog{width:calc(100vw - 16px);max-height:calc(100svh - 16px)}
 .demo-dialog-head{padding:8px 8px 8px 16px}.demo-dialog-head h2{font-size:15px}
 .demo-video video{max-height:calc(100svh - 190px)}
 .demo-links{padding:10px 16px 14px;gap:4px 16px}
 /* Without the lone mode row the phone header is one row again */
 .topbar:not(.has-ui-modes):not(:has(>.modes [data-mode="photo"]:not([hidden]))){min-height:62px}
 .welcome{min-height:auto}
}
/* My project: a folder, not a parallelogram glyph */
@media(max-width:740px){.header-actions #project-button:before{content:'';display:block;width:24px;height:24px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 6.5a1.5 1.5 0 0 1 1.5-1.5h4.4l2 2.2h8.6A1.5 1.5 0 0 1 21 8.7v9.8a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 6.5a1.5 1.5 0 0 1 1.5-1.5h4.4l2 2.2h8.6A1.5 1.5 0 0 1 21 8.7v9.8a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E") center/contain no-repeat}}
@media(max-width:1100px){#advanced-house-overlay .professional-tools>summary:after{content:'';display:block;width:24px;height:24px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 6.5a1.5 1.5 0 0 1 1.5-1.5h4.4l2 2.2h8.6A1.5 1.5 0 0 1 21 8.7v9.8a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 6.5a1.5 1.5 0 0 1 1.5-1.5h4.4l2 2.2h8.6A1.5 1.5 0 0 1 21 8.7v9.8a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E") center/contain no-repeat}}

/* ===== 04.11.2026 revision (2) =====
   3D house toolbar: fit and zoom act on a photo only (fitPhoto() returns in house mode), so with
   the 3D house on screen they are dead buttons; the toolbar drops them, and on a phone the row
   (house, Before, After, settings) fits on one line, the house list taking the free width. */
.workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar :is(#fit,#zoom-in,#zoom-out){display:none}
@media(max-width:740px){
 .workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar{flex-wrap:nowrap}
 .workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar>div:first-child{flex:1 1 auto;min-width:0}
 .workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar>div:last-child{flex:none;flex-wrap:nowrap}
 .workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar #model-select{width:100%;max-width:260px}
}

/* ===== 10.11.2026 sale revision =====
   What a visitor waits for is named (the 3D house loads, it is not "applied"); controls that do
   nothing in the 3D mode are gone (scale caption, a second settings link, the sample entry of an
   installation without samples); the House tab is a real panel with previews; a phone gives the
   panel more room; line icons replace the text glyphs. */
.icon-button svg,.toolbar-icon svg{display:block;width:22px;height:22px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.scene-toolbar .toolbar-icon{width:44px;padding:0}
.scene-footer #advanced{display:none}
.scene-footer{justify-content:flex-start}

/* Loading: a spinner, what is loading, and one quiet action */
.project-load-overlay section{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;align-items:center;width:min(440px,calc(100vw - 32px));max-width:none;padding:22px 24px;border-radius:14px}
.project-load-overlay .spinner{width:30px;height:30px;margin:0}
.project-load-copy p{margin:0;font-size:15px;font-weight:700;line-height:1.4}
.project-load-hint{display:none;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}
.project-load-overlay.house-loading .project-load-hint{display:block}
.project-load-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:10px}
.project-load-overlay .project-load-actions button{margin:0}
.project-load-overlay section:has(#project-load-recover:not([hidden])) .spinner{display:none}

/* The mode switch answers at once: the target is pressed while the 3D frame rearranges */
.ui-modes[aria-busy="true"] button[aria-pressed="true"]{background-image:linear-gradient(100deg,transparent 30%,#ffffff2e 50%,transparent 70%);background-size:220% 100%;animation:mode-pending 1.1s linear infinite}
@keyframes mode-pending{from{background-position:120% 0}to{background-position:-100% 0}}

/* House panel */
.house-panel h2{margin:0 0 4px}.house-panel>.muted{margin:0 0 14px}
.house-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.house-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;text-align:left;border:1px solid #e2e5df;border-radius:8px;background:#fff}
.house-card:hover{border-color:#808f82;background:#fff}
.house-card img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;background:var(--soft)}
.house-card-copy{display:block;padding:9px 10px 11px}
.house-card strong{display:block;font-size:12px;line-height:1.35}
.house-card small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.house-card.active{border:2px solid var(--state)}
.house-card.active:after{content:'✓';position:absolute;top:6px;right:6px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--state);color:#fff;font-size:11px}

/* Catalogue cards: the title holds three lines, the size sits on the bottom edge */
.product-copy{display:flex;flex:1;flex-direction:column}
.product-name{min-height:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product-size{margin-top:auto;padding-top:6px}

/* Dialog actions stack at full width, the main one first */
#dialog-body>button{width:100%;margin-top:10px}
#dialog-body>button.primary{margin-top:15px}
#dialog-body>p:first-child{margin-bottom:6px}

/* Welcome: the numbered steps read as one quiet line */
.steps{gap:32px;font-size:12px;color:var(--muted)}
.steps>span{gap:6px}
.steps b{color:var(--ink)}
.hero-card.hero-demo:not([hidden]),.header-actions>.demo-open:not([hidden]){animation:demo-in .25s ease-out}
@keyframes demo-in{from{opacity:0}to{opacity:1}}

@media(max-width:740px){
 /* The picture keeps a little under half of the screen, the panel gets the rest */
 .workspace{height:47%}
 .house-list{gap:8px}
 .house-card small{display:none}
 dialog{padding:20px}
 /* Looks: one card per screen with its button in reach */
 .looks-panel h2{font-size:16px}
 .looks-panel>.muted{display:none}
 .look-list{margin-top:8px;gap:10px}
 .look-card{padding:10px;gap:6px}
 .look-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}
 .look-swatches img{aspect-ratio:16/9}
 .look-card h3{font-size:14px}
 .look-card p:not(.muted){display:none}
 .project-load-overlay section{padding:18px}
}

/* Material settings: the joint width beside its label, the two closing actions at full width */
.range-field:has(>output){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px 12px}
.range-field:has(>output)>input{grid-row:2;grid-column:1/-1}
.range-field>output{grid-row:1;grid-column:2;font-weight:700}
#settings-panel>button{width:100%;margin-top:8px}

/* Compare panel: its buttons do not touch, the only action in the 3D mode takes the full width */
#compare-panel>button{margin:0 8px 8px 0}
#compare-panel>#compare-original[hidden]+#save-variant{width:100%;margin-right:0}
/* The chosen product in the footer: two whole lines, never a line cut through the letters */
.active-item strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:none;line-height:1.35}
.active-item>div{min-width:0}
@media(max-width:740px){
 /* Type floor on a phone, the last 10 px labels */
 .stage-caption,.product-brand,.product-size,.active-item small,.sample-choices p{font-size:11px}
 .active-item strong{max-height:none}
}

/* Server copies: checkbox, caption, Open on one row */
.server-project-row{grid-template-columns:44px minmax(0,1fr) auto}
.server-project-row>button{font-size:12px;white-space:nowrap}
@media(max-width:480px){.server-project-row{grid-template-columns:44px minmax(0,1fr)}.server-project-row>button{grid-column:2;justify-self:start}}
/* A sent enquiry: the result is a notice in place of the Send button */
#lead-status[data-state]{margin:16px 0 0;padding:13px 15px;border-radius:8px;background:#e8eee9;font-size:13px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}
#lead-status[data-state="attention"]{background:#fbf1dc}
#dialog-body>#send-lead[hidden]{display:none}
/* A shared link opened for viewing says so for as long as it is open, with the way to edit */
.readonly-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 16px;background:#e8eee9;border-bottom:1px solid var(--line);font-size:12px;font-weight:700}
.readonly-bar button{min-height:40px;padding:6px 12px;font-size:12px;font-weight:700;border-color:var(--state);background:var(--state);color:#fff}
.readonly-bar button:hover{background:#1c2b24;border-color:#1c2b24}
/* Comparison is being prepared: the same spinner as the other waits */
.house-comparison[aria-busy="true"] #house-compare-status:before{content:'';display:block;width:30px;height:30px;margin:0 auto 14px;border:2px solid #d5dad2;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}
/* 3D toolbar at every width: the house list gives way, Compare and settings stay on the same row
   (at tablet widths the pair used to drop to a second row) */
.workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar{flex-wrap:nowrap}
.workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar>div:first-child{flex:1 1 auto;min-width:0}
.workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar>div:last-child{flex:none;flex-wrap:nowrap}
.workspace:has(>#stage>#model-frame:not([hidden])) .scene-toolbar #model-select{width:100%;max-width:400px;min-width:0;flex-shrink:1}
/* Small phones: the header stays on one row in the editor (it used to wrap into two at 360 px
   and take a quarter of the screen). The demo keeps its place on the welcome screen. */
@media(max-width:400px){.topbar.has-ui-modes #demo-open{display:none}}
@media(max-width:340px){
 .brand img{width:70px}
 .header-actions>.icon-button,.header-actions #project-button{width:40px;min-width:40px}
 .language>button{min-width:34px;padding:0 4px}
}
.panel-tabs button{padding-left:2px;padding-right:2px}

/* Camera and lighting sit on the live canvas, within thumb reach on small screens. */
.scene-tools{position:absolute;z-index:3;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;max-width:calc(100% - 12px);padding:3px;background:#202c27f5;border:1px solid #ffffff40;border-radius:12px;box-shadow:0 3px 14px #16201944;color:#fff}
.scene-tools button,.scene-tools select{background:transparent;color:inherit;line-height:1.15;font-family:inherit;font-weight:600;font-size:12px;min-height:44px;border:0;border-radius:8px;white-space:nowrap;margin:0}
.scene-tools button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px}
.scene-tools button:hover,.scene-tools label:hover{background:#ffffff1f}
.scene-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.scene-tools label{display:flex;align-items:center;margin:0;position:relative;border-radius:7px}
.scene-light svg{position:absolute;left:9px;pointer-events:none}
.scene-tools select{appearance:none;cursor:pointer;padding:0 21px 0 34px;min-width:0}
.scene-tools select option{background:white;color:#202c27}
.scene-light:after{content:'';width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);position:absolute;right:9px;top:18px;pointer-events:none}
.scene-tools #scene-expand{padding:0;min-width:44px}
.scene-tools [hidden],.scene-tools[hidden],body.advanced-house .scene-tools,.stage:has(#house-comparison:not([hidden])) .scene-tools{display:none}
.scene-tools :is(button,select):focus-visible{outline:2px solid white;outline-offset:-3px}
.stage:has(.scene-tools:not([hidden])) .stage-caption{bottom:auto;top:9px}
.stage:fullscreen{width:100vw;height:100vh;background:#d4ddd4}
@media(max-width:600px){.scene-tools{bottom:max(7px,env(safe-area-inset-bottom));padding:2px}.scene-tools #scene-home span{display:none}.scene-tools button{padding:0 8px}}

.project-load-overlay #loading-house-preview{display:none}
.project-load-overlay.house-loading:not(:has(#project-load-recover:not([hidden]))) #loading-house-preview:not([hidden]){display:block;grid-column:1/-1;width:100%;height:clamp(84px,18vh,155px);object-fit:cover;object-position:center 46%;border-radius:8px;margin-bottom:10px}
@media(max-width:350px){.scene-tools #scene-detail span{display:none}.scene-tools #scene-detail{min-width:44px}}

/* Keep the wordmark readable and give the scene more room on short screens. */
.topbar .brand{min-height:44px;flex-shrink:0}
.topbar .brand img{display:block;width:140px;height:auto}
.welcome .intro-copy{font-size:clamp(16px,1.25vw,20px);line-height:1.55}
.hero-demo-copy strong{font-size:16px;line-height:1.25}
.hero-demo-copy small{font-size:13px}
.demo-editions{display:flex;gap:4px;margin:0 16px 10px;padding:3px;width:fit-content;border-radius:10px;background:#eff1ed}
.demo-editions button{min-height:44px;padding:6px 15px;border:0;border-radius:7px;background:transparent;color:var(--ink);line-height:1.2;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.demo-editions button[aria-pressed=true]{background:#28382f;color:white}
.demo-dialog{max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}
.demo-video,.demo-video video{background:#16201e}
.demo-video video{max-height:min(64dvh,600px)}
.demo-links a,.demo-close{min-height:44px;display:inline-flex;align-items:center}
.demo-close{justify-content:center}
.demo-dialog :focus-visible,.hero-demo:focus-visible,.brand:focus-visible{outline:3px solid #bc3031;outline-offset:-3px}
@media(max-width:740px){
 .topbar .brand img{width:116px}
 .topbar.has-ui-modes .brand img{width:98px}
 .hero-demo-copy strong{font-size:15px}
 .welcome{padding-top:clamp(22px,5vw,35px);gap:24px}
 .welcome .intro h1{font-size:clamp(30px,8vw,43px);line-height:1.09}
 .demo-dialog-head{padding-bottom:6px}
 .demo-editions{margin:0 12px 8px}
 .demo-links{display:flex;gap:2px 12px;padding:6px 12px}
 .demo-links a{font-size:13px}
 .scene-tools #scene-home{min-width:44px}
}
@media(max-width:350px){.topbar.has-ui-modes .brand img{width:82px}.demo-editions button{padding-inline:10px}}
@media(max-height:520px){.demo-video video{max-height:53dvh}.demo-dialog-head{padding-block:2px}.demo-editions{margin-bottom:2px}}
