:root{--green:#163f35;--deep:#102f28;--gold:#bb9849;--ink:#243c34;--muted:#737c76;--line:#dfe4de;--paper:#f7f8f5}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--paper);color:var(--ink);font-size:16px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{transition:background .2s,transform .2s}button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.topbar{padding:11px 4%;background:var(--deep);color:#e2d3ad;font-size:12px;letter-spacing:1.5px;display:flex;justify-content:space-between}.topbar span{letter-spacing:.2px}header{display:flex;align-items:center;justify-content:space-between;padding:24px 4%;border-bottom:1px solid var(--line);background:#fff;gap:20px}.brand{font-family:Georgia,serif;font-size:38px;letter-spacing:5px;line-height:1}.brand small{display:block;font-family:Arial,sans-serif;font-size:10px;letter-spacing:1.5px;margin-top:9px}nav{display:flex;gap:30px;align-items:center;font-size:14px}nav .active{color:var(--green);border-bottom:2px solid var(--gold);padding:12px 0}.textbtn{border:0;background:none;color:inherit;padding:0}.outline{background:white;border:1px solid var(--green);padding:12px 18px;border-radius:4px;font-size:14px}.outline span{margin-left:16px;background:var(--green);color:white;border-radius:50%;padding:3px 6px}main{max-width:1800px;padding:0 3.5%;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;padding:34px 0 28px;gap:20px}.eyebrow{font-size:12px;letter-spacing:2px;color:#827044;font-weight:bold;margin:0 0 12px}h1{font-family:Georgia,serif;font-weight:400;font-size:42px;letter-spacing:-1px;margin:0 0 12px}h1 em{font-weight:400;color:#8b713c}.intro p:not(.eyebrow){color:var(--muted);margin:0;font-size:15px}.steps{display:flex;align-items:center;gap:15px;font-size:13px;color:var(--muted)}.steps span{display:flex;align-items:center;gap:9px}.steps b{border:1px solid #cbd1cb;border-radius:50%;padding:10px;font-size:12px}.steps .current{color:var(--green)}.steps .current b{background:var(--green);color:#eee1c3;border-color:var(--green)}.steps i{width:35px;height:1px;background:var(--line)}.layout{display:grid;grid-template-columns:250px minmax(0,1fr) 290px;gap:20px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:6px;padding:22px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:9px}.number{font-size:12px;color:#a4874e;border-bottom:1px solid var(--gold);padding-bottom:4px}h2{font-size:17px;margin:0;font-weight:600}h3{font-size:15px;margin:0 0 18px}.muted{font-size:14px;color:var(--muted);line-height:1.6;margin:14px 0 20px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{font-size:14px}.inputunit{display:flex;align-items:center;border:1px solid var(--line);border-radius:4px;margin-top:9px;padding:11px 9px}.inputunit input{width:100%;border:0;background:transparent;min-width:0;color:var(--ink)}.inputunit span{font-size:12px;color:var(--muted)}.divider{height:1px;background:var(--line);margin:24px 0}.swatches{display:flex;gap:13px}.swatch{height:32px;width:32px;border:1px solid #c9cec7;background:var(--swatch);border-radius:50%}.swatch.selected{outline:1px solid var(--green);outline-offset:4px}.colorname{display:block;font-size:13px;margin-top:17px}.handlelabel{display:block;margin:26px 0 10px}select{width:100%;padding:12px 8px;background:#fff;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:14px}.material{display:flex;align-items:center;gap:13px;margin-top:24px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.material>span{font-family:Georgia;font-size:32px;color:#a48a52}.mm{font-size:12px}.material p{font-size:12px;line-height:1.7;margin:0}.small{font-size:12px;line-height:1.6;color:var(--muted)}.workspace{min-width:0}.workspacehead{display:flex;justify-content:space-between;align-items:center;margin:1px 0 15px;font-size:14px;gap:8px}.workspacehead>span{display:flex;align-items:center;gap:8px}.mini-square{border:1px solid #9b854f;width:10px;height:10px}.viewtabs{display:flex;background:#e8ece6;padding:3px;border-radius:4px}.viewtabs button{border:0;background:none;color:var(--muted);padding:8px 11px;font-size:12px;border-radius:3px}.viewtabs .selected{background:white;color:var(--green);box-shadow:0 1px 4px #0001}.scene{height:400px;position:relative;border-radius:5px;overflow:hidden;background:#d5d4ce}.scene img{width:100%;height:100%;object-fit:cover}.imagebadge{position:absolute;top:16px;left:16px;background:#ffffffec;font-size:10px;letter-spacing:1.4px;padding:9px 12px}.caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#10271bd9);padding:40px 22px 20px;color:white;font-family:Georgia;font-size:24px}.caption small{display:block;font:12px Arial;margin-top:8px;color:#e0e5dd}.occupancy{padding:21px 0 15px}.occupancy>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:13px}.occupancy span{color:var(--muted)}.track{height:5px;background:#e1e6de;margin:12px 0;border-radius:4px;overflow:hidden}.track>div{height:100%;background:var(--gold);transition:width .2s}.occupancy small{color:var(--muted);font-size:12px}.quality{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0;font-size:12px;gap:10px}.quality span:before{content:'✓';color:#a58a4d;margin-right:6px}.tag{font-size:11px;color:var(--muted);white-space:nowrap}.item{display:flex;gap:12px;padding:17px 0;border-bottom:1px solid #edf0eb;align-items:center}.item img{width:42px;height:47px;object-fit:contain}.iteminfo{flex:1;font-size:13px}.iteminfo small{display:block;font-size:11px;color:var(--muted);margin:5px 0}.iteminfo b{font-size:13px}.remove{border:0;background:none;color:#858d86;font-size:22px;padding:5px}.subrow{display:flex;justify-content:space-between;font-size:12px;margin-top:15px;gap:10px}.summarybottom{padding-top:9px}.total{padding:21px 0}.total span{font-size:12px;display:block;color:var(--muted);margin-bottom:8px}.total strong{font-size:30px;font-weight:500;letter-spacing:-1px}.primary{border:0;background:var(--green);color:#fff;width:100%;padding:15px 16px;border-radius:3px;text-align:left;font-size:14px}.primary span{float:right;color:#ddc487}.save{width:100%;background:transparent;color:var(--green);border:0;padding:16px 0 5px;font-size:12px}.catalog{margin-top:35px;border-top:1px solid var(--line);padding:30px 0 42px}.cataloghead{display:flex;justify-content:space-between;align-items:center;gap:15px}.cataloghead h2{font:28px Georgia}.cataloghead .eyebrow{font-size:10px}.search{display:flex;gap:10px;align-items:center;padding:11px 15px;border:1px solid var(--line);background:white;border-radius:4px}.search input{border:0;outline:none;max-width:180px;font-size:14px}.search span{font-size:24px;line-height:1;color:var(--muted)}.filters{display:flex;gap:8px;margin:25px 0 20px;flex-wrap:wrap}.filters button{font-size:13px;border:1px solid var(--line);background:transparent;padding:9px 20px;border-radius:3px;color:var(--muted)}.filters .selected{background:var(--green);border-color:var(--green);color:#fff}.products{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.product{background:white;border:1px solid var(--line);border-radius:5px;padding:15px;display:flex;flex-direction:column}.product img{width:100%;height:115px;object-fit:contain;mix-blend-mode:multiply}.product h3{margin:13px 0 7px;font-size:14px}.product p{font-size:12px;color:var(--muted);margin:0 0 17px}.product b{font-size:16px;font-weight:500}.product button{margin-top:17px;padding:10px;border:1px solid #c7cfc7;border-radius:3px;color:var(--green);background:white;font-size:13px}.product button:hover{background:var(--green);color:white}.product button:disabled{cursor:not-allowed;opacity:.45}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:30px 0;color:var(--green);gap:20px}footer .brand{font-size:28px}footer p{font:20px/1.5 Georgia}footer>span{font-size:13px;line-height:1.8}footer small{font-size:11px;color:var(--muted)}.composition{height:400px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:15px}.composition p{font-size:13px;margin:0}.composition svg{width:100%;height:290px}.composition small{font-size:12px;color:var(--muted)}.error{color:#a1452c;font-size:12px;line-height:1.5}.error:empty{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;box-shadow:0 6px 30px #0003;padding:15px 24px;border-radius:4px;font-size:14px;display:none;z-index:10;max-width:90vw}dialog{border:1px solid var(--gold);border-radius:6px;padding:32px;max-width:560px;width:90%;color:var(--ink)}dialog::backdrop{background:#102f2880;backdrop-filter:blur(3px)}.close{position:absolute;right:12px;top:8px;background:none;border:0;font-size:28px;color:var(--green)}dialog h2{font:28px Georgia;margin-bottom:22px}dialog p,dialog li{font-size:15px;line-height:1.8}dialog ul{padding-left:20px}.dialogtotal{font-size:27px!important;border-top:1px solid var(--line);padding-top:18px}@media(min-width:1500px){.layout{grid-template-columns:280px minmax(0,1fr) 320px}.scene,.composition{height:450px}}@media(max-width:1200px){.layout{grid-template-columns:220px minmax(0,1fr)}.summary{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:25px}.summary .sectionhead{align-self:start}.steps{display:none}.products{grid-template-columns:repeat(3,1fr)}.scene{height:380px}}@media(max-width:700px){.topbar{font-size:9px;text-align:center;justify-content:center;letter-spacing:1px}.topbar span{display:none}header{padding:20px 5%;flex-wrap:wrap}.brand{font-size:30px}header nav{order:3;width:100%;gap:20px;justify-content:space-between;font-size:12px}.textbtn{font-size:12px}main{padding:0 5%}.intro{padding:28px 0}h1{font-size:34px}.intro p:not(.eyebrow){font-size:14px}.layout{display:flex;flex-direction:column}.workspace{width:100%;order:0}.settings{order:1;width:100%}.summary{order:2;width:100%;display:block}.scene,.composition{height:300px}.scene img{object-fit:cover}.composition svg{height:210px}.workspacehead{font-size:12px}.viewtabs button{padding:8px;font-size:11px}.quality{font-size:10px}.caption{font-size:22px}.caption small{font-size:10px;line-height:1.5}.two{grid-template-columns:1fr 1fr}.cataloghead{align-items:flex-start;flex-direction:column}.cataloghead h2{font-size:26px}.search{width:100%}.search input{max-width:100%;width:100%}.products{grid-template-columns:repeat(2,1fr);gap:10px}.filters{gap:6px}.filters button{padding:9px 13px;font-size:12px}.product{padding:12px}.product img{height:95px}footer{flex-wrap:wrap}footer p{font-size:17px}footer>span{width:100%}}
.plumbing-fields{border:1px solid var(--line);margin:15px 0;padding:12px;min-width:0;border-radius:4px}.plumbing-fields legend{font-size:14px;font-weight:bold;padding:0 5px}.plumbing-fields select{margin:8px 0 13px}.plumbing-fields .two{gap:8px}.plumbing-fields .two label{font-size:12px;line-height:1.5}.plumbing-fields input{width:100%;min-width:0;padding:10px 5px;border:1px solid var(--line);border-radius:3px;color:var(--ink);margin-top:5px;font-size:14px}.swatches{flex-wrap:wrap}.material>span{font-size:25px}.composition{height:auto;min-height:420px}.composition svg{height:auto;min-height:210px;touch-action:manipulation}.point-tools{display:flex;gap:8px;margin-top:15px}.point-tools button{border:1px solid #a9bbb0;background:white;color:var(--green);border-radius:4px;padding:9px;font-size:13px}.point-tools button[aria-pressed=true]{background:var(--green);color:white}.point-legend{display:flex;gap:18px;margin-bottom:12px;font-size:13px}.point-legend span:first-child{color:#16729c}.point-legend span:last-child{color:#b25c2e}.plumbing-feedback{border:1px solid var(--line);padding:18px;background:white;border-radius:5px;margin-bottom:16px}.plumbing-feedback p{font-size:14px;line-height:1.6}.plumbing-feedback .small{font-size:12px}.plumbing-feedback button{font-size:13px}.plumbing-feedback button:disabled{opacity:.45;cursor:not-allowed}.move-controls{display:flex;gap:6px;margin-bottom:7px}.move-controls button{border:1px solid var(--line);background:white;color:var(--green);padding:3px 9px;border-radius:3px}.move-controls button:disabled{opacity:.3;cursor:not-allowed}.settings{padding:18px}.iteminfo{min-width:0}.summary .item img{width:35px}.summary .item{gap:8px}@media(max-width:700px){.composition{min-height:370px}.composition svg{min-height:180px}.plumbing-fields .two label{font-size:14px}.plumbing-fields input{font-size:16px}}
#plan{touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible}#plan .module-shape{cursor:grab}#plan .point-handle{cursor:move}#plan .module-shape:focus-visible,#plan .point-handle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}#plan.drag-active,#plan.drag-active *{cursor:grabbing!important}.editor-instructions{font-size:14px!important;line-height:1.65;margin:12px 0!important;color:var(--green)}.editor-status{font-size:12px!important;line-height:1.5;min-height:36px;color:#736139;background:#f6f3e9;padding:9px 12px;border-left:2px solid var(--gold);margin:10px 0!important}.composition{padding:20px}.composition>p:first-child{font-size:16px;font-weight:600}.composition svg{width:100%;min-height:250px}.point-handle:hover circle:last-child{stroke:#bca05c;stroke-width:3}.module-shape:hover{filter:brightness(1.045)}@media(max-width:700px){.composition{padding:12px}.composition svg{min-height:220px}.editor-instructions{font-size:13px!important}}
.quick-catalog{padding:18px;min-width:0}.quick-catalog .muted{margin:10px 0 15px}.quick-catalog label{display:block;margin-bottom:8px}#quickProducts{max-height:800px;overflow-y:auto;margin-top:12px}.quick-product{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:17px 0;cursor:grab}.quick-product:active{cursor:grabbing}.quick-product img{width:58px;height:70px;object-fit:contain;pointer-events:none}.quick-product strong,.quick-product small,.quick-product b{display:block;font-size:13px}.quick-product small{font-size:12px;color:var(--muted);margin:5px 0;line-height:1.5}.quick-product button{background:white;border:1px solid var(--green);color:var(--green);border-radius:3px;padding:7px 12px;font-size:12px;margin-top:10px}.workspace>.summarybottom{padding:17px 20px;background:var(--green);color:white;border-radius:5px;margin:15px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.workspace>.summarybottom .total{grid-column:1;grid-row:1/4;padding:0}.workspace>.summarybottom .total span,.workspace>.summarybottom .small{color:#d6e0d9}.workspace>.summarybottom .subrow{margin:0}.workspace>.summarybottom .primary{grid-column:2;background:#d2b674;color:var(--deep)}.workspace>.summarybottom .primary span{color:var(--deep)}.workspace>.summarybottom .save{color:#e2cd9e;text-align:left;padding:5px 0}.workspace>.summarybottom .small{grid-column:1/-1;margin:0}.selection-editor{border:1px solid var(--gold);background:white;padding:18px;border-radius:5px;margin-bottom:16px}.selection-editor input{display:block;padding:10px;width:150px;border:1px solid var(--line);border-radius:3px;margin:7px 0 17px}.selection-editor .swatches{margin:15px 0 22px}.selection-editor .textbtn{font-size:13px}.summary.panel{display:block;margin:30px 0 0;padding:24px}.summary #items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 22px}.summary .item{padding:18px 0}.summary .item img{width:48px;height:70px}#plan.catalog-drop{outline:2px dashed var(--gold);outline-offset:3px}.layout{align-items:start}@media(max-width:1200px){.layout{grid-template-columns:220px minmax(0,1fr) 230px;gap:14px}.summary #items{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-catalog{padding:12px}.quick-product img{width:40px}.quick-product{gap:8px}.composition{padding:12px}}@media(max-width:950px){.layout{grid-template-columns:210px minmax(0,1fr)}.quick-catalog{grid-column:1/-1}#quickProducts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-height:360px}.summary #items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.quick-catalog{order:2;width:100%}#quickProducts{grid-template-columns:repeat(2,minmax(0,1fr));max-height:400px}.summary #items{grid-template-columns:1fr}.workspace>.summarybottom{display:block}.workspace>.summarybottom .subrow,.workspace>.summarybottom .primary{margin-top:12px}.workspace>.summarybottom .save{margin:12px 0}.summary.panel{padding:18px}}
.editor-toolbar{display:grid;grid-template-columns:minmax(160px,.9fr) minmax(230px,1.3fr);gap:18px;border:1px solid var(--line);background:#fafbf8;padding:16px;border-radius:5px;margin:18px 0 12px}.editor-toolbar h3{font-size:14px;margin:0 0 10px}.hydraulic-tools{border-right:1px solid var(--line);padding-right:16px}.editor-toolbar .point-tools{margin-top:0;flex-wrap:wrap}.editor-toolbar .point-tools button{font-size:12px;padding:9px 10px}.editor-toolbar #markHint{margin-bottom:0;line-height:1.6}.editor-toolbar .muted{font-size:12px;margin:0 0 13px}.finish-tools .swatches{gap:11px}.finish-tools .swatch{width:27px;height:27px}.finish-tools .colorname{font-size:12px;margin-top:12px}.finish-tools .handlelabel{margin:14px 0 7px;font-size:12px}.finish-tools select{padding:9px;font-size:13px}.viewport-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px;flex-wrap:wrap}.viewport-footer .point-legend{margin:0;flex-shrink:0}.delete-selected{display:inline-flex;gap:7px;align-items:center;border:1px solid #b98a77;background:#fffaf7;color:#94442b;border-radius:4px;padding:9px 11px;font-size:12px}.delete-selected svg{width:17px!important;height:17px!important;min-height:0!important;flex:none}.delete-selected:disabled{color:#8c928a;border-color:#d9ded6;background:#f5f6f2;cursor:not-allowed}.delete-selected:not(:disabled):hover{background:#f8e7df}.selection-editor .small{margin-bottom:12px}@media(max-width:1200px) and (min-width:951px){.editor-toolbar{grid-template-columns:1fr;gap:14px}.hydraulic-tools{border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.finish-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px}.finish-tools h3,.finish-tools #frontColorScope{grid-column:1/-1}.finish-tools .swatches{grid-column:1}.finish-tools .handlelabel{grid-column:2;grid-row:3;margin:0}.finish-tools select{grid-column:2;grid-row:4}.finish-tools .colorname{grid-column:1;grid-row:4;margin:0}}@media(max-width:700px){.editor-toolbar{grid-template-columns:1fr;padding:13px;gap:15px}.hydraulic-tools{border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.editor-toolbar .point-tools button{font-size:14px}.editor-toolbar .muted,.finish-tools .handlelabel{font-size:14px}.finish-tools select{font-size:14px}.finish-tools .swatch{width:32px;height:32px}.viewport-footer{align-items:center}.delete-selected{font-size:12px;padding:10px}.viewport-footer .point-legend{font-size:12px;gap:10px}}
/* Compact work area: hydraulic points, finishes and handles in one row. */
.editor-toolbar{grid-template-columns:minmax(130px,.85fr) minmax(155px,1fr) minmax(120px,.8fr);align-items:start;gap:14px;padding:12px;margin:12px 0 8px}.editor-toolbar h3{font-size:13px;margin:0 0 8px}.hydraulic-tools{padding-right:12px}.finish-tools{display:block}.editor-toolbar .muted{margin:0 0 10px;font-size:12px;line-height:1.3}.finish-tools .swatches{gap:8px}.finish-tools .swatch{width:25px;height:25px}.finish-tools .colorname{margin-top:9px;font-size:12px}.handle-tools .handlelabel{display:block;margin:0 0 9px;font-size:13px;font-weight:600}.handle-tools select{padding:9px 6px;font-size:13px}.editor-toolbar #markHint{font-size:12px;line-height:1.4;margin:8px 0 0}.editor-toolbar .point-tools{gap:5px}.editor-toolbar .point-tools button{padding:8px 7px;font-size:12px}.editor-instructions{margin:7px 0!important;font-size:13px!important}.editor-status{min-height:0;padding:6px 10px;margin:7px 0!important}.below-viewport{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0;align-items:stretch}.below-viewport .summarybottom{background:var(--green);color:white;border-radius:5px;padding:15px;display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-content:start}.below-viewport .summarybottom .total{grid-column:1/-1;grid-row:1;padding:0 0 3px}.below-viewport .total span{color:#d6e0d9;font-size:12px;margin-bottom:5px}.below-viewport .total strong{font-size:27px}.below-viewport .subrow{grid-column:1/-1;margin:0;font-size:12px}.below-viewport .primary{grid-column:1/-1;background:#d2b674;color:var(--deep);padding:10px 12px;font-size:13px}.below-viewport .primary span{color:var(--deep)}.below-viewport .save{grid-column:1/-1;padding:2px 0;color:#e2cd9e;font-size:12px;text-align:left}.below-viewport .summarybottom>.small{grid-column:1/-1;margin:0;font-size:12px;line-height:1.35;color:#d6e0d9}.below-viewport .selection-editor{margin:0;padding:15px;min-width:0}.below-viewport .selection-editor>strong{font-size:15px}.below-viewport .selection-editor .small{font-size:12px;margin:7px 0 13px;line-height:1.4}.below-viewport .selection-editor label{font-size:13px}.below-viewport .selection-editor input{width:100%;max-width:155px;padding:9px;margin:7px 0 12px}.occupancy{padding:9px 0 13px}.quality{padding:13px 0}.composition{min-height:0}.composition>p:first-child{font-size:15px}.composition svg#plan{min-height:220px}@media(max-width:1150px) and (min-width:701px){.editor-toolbar{grid-template-columns:minmax(0,1fr) minmax(120px,.8fr)}.hydraulic-tools{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);padding:0 0 9px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.hydraulic-tools h3{margin:0}.editor-toolbar #markHint{margin:0}.finish-tools{display:block}.handle-tools{grid-column:2}.finish-tools .colorname{margin-top:9px}}@media(max-width:700px){.editor-toolbar{grid-template-columns:minmax(0,1fr) minmax(120px,.8fr);gap:12px;padding:12px}.hydraulic-tools{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px;display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap}.hydraulic-tools h3{margin:0}.editor-toolbar #markHint{margin:0}.handle-tools .handlelabel{font-size:13px}.handle-tools select{font-size:14px}.finish-tools .swatch{width:25px;height:25px}.finish-tools .swatches{gap:8px}.below-viewport{gap:10px}.below-viewport .summarybottom,.below-viewport .selection-editor{padding:12px}.below-viewport .total strong{font-size:24px}.below-viewport .primary{font-size:12px}.below-viewport .primary span{display:none}}@media(max-width:420px){.below-viewport{grid-template-columns:1fr}.below-viewport .selection-editor{padding:12px}.below-viewport #selectionControls{display:flex;align-items:center;gap:15px}.below-viewport #selectionControls[hidden]{display:none}.below-viewport .selection-editor input{margin-bottom:0}.editor-toolbar{gap:12px 9px}.editor-toolbar h3{font-size:12px}}
/* v7: the wall editor is the primary workspace. */
.layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.wall-config{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);background:#fbfcf9;border-radius:5px;padding:12px 14px;margin:10px 0 10px}.wall-config-copy{display:flex;align-items:center;gap:12px;min-width:190px}.wall-config-copy>div{display:flex;flex-direction:column;gap:3px}.wall-config-copy strong{font-size:15px}.wall-config-copy small{font-size:12px;color:var(--muted)}.wall-config-copy em{font-size:11px;font-style:normal;color:#887343}.wall-dimensions{display:flex;align-items:center;gap:10px}.wall-dimensions>label{font-size:12px;color:var(--muted)}.wall-dimensions .inputunit{margin-top:4px;padding:7px 8px;background:white}.wall-dimensions .inputunit input{font-size:15px;width:72px;padding:0}.wall-readout{display:flex;flex-direction:column;gap:3px;border-left:1px solid var(--line);padding-left:14px;min-width:120px}.wall-readout span{font-size:11px;color:var(--muted)}.wall-readout strong{font-size:15px;color:var(--green);white-space:nowrap}.wall-config>.error{margin:0;max-width:190px}.editor-toolbar{grid-template-columns:minmax(0,1.1fr) minmax(150px,.75fr) minmax(145px,.7fr);gap:13px;padding:11px;margin:8px 0 7px;align-items:start}.hydraulic-tools{padding-right:12px}.hydraulic-tools h3,.finish-tools h3{font-size:13px;margin:0 0 8px}.hydraulic-tools .point-tools{margin:0;gap:5px}.hydraulic-tools .point-tools button{font-size:12px;padding:7px 8px}.hydraulic-tools #markHint{font-size:11px;line-height:1.35;margin:7px 0 0}.point-editor{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.point-editor-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}.point-editor-title strong{font-size:12px}.point-editor-title span{font-size:10px;color:var(--muted)}.point-cards{display:grid;grid-template-columns:1fr 1fr;gap:7px}.point-card{border:1px solid var(--line);border-radius:4px;margin:0;padding:7px;min-width:0;background:#fff}.point-card.active{border-color:var(--gold);box-shadow:inset 0 0 0 1px #bb984933}.point-card legend{font-size:11px;padding:0 3px;color:var(--green);font-weight:600}.point-card select{padding:6px 4px;font-size:11px;margin:0 0 5px}.point-card label{display:block;font-size:10px;color:var(--muted);margin-top:4px}.point-card input{width:100%;min-width:0;padding:6px 4px;border:1px solid var(--line);border-radius:3px;margin-top:3px;font-size:12px;color:var(--ink)}.point-editor .error{font-size:10px;margin:5px 0 0}.finish-tools{min-width:0}.finish-tools .muted{font-size:11px;line-height:1.3;margin:0 0 8px}.finish-tools .swatches{gap:7px}.finish-tools .swatch{height:24px;width:24px}.finish-tools .colorname{font-size:11px;margin-top:8px}.handle-tools .handlelabel{font-size:12px;display:block;margin:0 0 8px}.handle-tools select{padding:8px 5px;font-size:12px}.editor-status{padding:5px 9px;margin:6px 0!important;font-size:11px}.composition{height:auto;min-height:0;padding:14px}.composition svg#plan{height:auto;min-height:340px}.viewport-footer{margin:7px 0 10px}.below-viewport{margin-top:10px}.summary.panel{margin-top:20px}.point-label-hit{cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.point-handle{cursor:move}@media(min-width:1500px){.layout{grid-template-columns:minmax(0,1fr) 320px}.composition svg#plan{min-height:390px}}@media(max-width:1200px){.layout{grid-template-columns:minmax(0,1fr) 230px}.editor-toolbar{grid-template-columns:1fr 1fr}.hydraulic-tools{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px}.finish-tools,.handle-tools{min-width:0}.point-cards{max-width:640px}.composition svg#plan{min-height:320px}.summary{display:block!important}}@media(max-width:700px){.layout{display:flex;flex-direction:column}.workspace{width:100%}.quick-catalog{order:2;width:100%}.wall-config{display:block;padding:12px}.wall-config-copy{margin-bottom:10px}.wall-dimensions{gap:7px;flex-wrap:wrap}.wall-dimensions .inputunit input{width:62px}.wall-readout{padding-left:9px;min-width:108px}.editor-toolbar{grid-template-columns:1fr 1fr;padding:10px;gap:10px}.hydraulic-tools{grid-column:1/-1}.point-cards{gap:5px}.point-card{padding:6px}.point-card input,.point-card select{font-size:13px}.finish-tools .swatch{height:25px;width:25px}.handle-tools select{font-size:13px}.composition svg#plan{min-height:270px}.below-viewport{grid-template-columns:1fr}.summary.panel{margin-top:14px}}
.scene-cta{position:absolute;right:22px;bottom:22px;z-index:2;width:225px;min-height:150px;padding:22px 20px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;text-align:left;border:1px solid #e2d3ad;background:rgba(16,47,40,.84);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 12px 30px #102f2866;color:#fff;border-radius:5px;font:16px/1.35 Georgia,serif;letter-spacing:.1px}.scene-cta span{color:#ead9aa;font-size:12px;letter-spacing:1.4px;text-transform:uppercase}.scene-cta b{align-self:flex-end;color:#e2c783;font:24px Arial,sans-serif;line-height:1;margin-top:4px}.scene-cta:hover{filter:none;background:rgba(16,47,40,.94);transform:translateY(-2px)}.scene-cta:active{transform:translateY(0)}@media(max-width:700px){.scene-cta{right:14px;bottom:14px;width:min(220px,calc(100% - 28px));min-height:116px;padding:16px;font-size:15px}.scene-cta span{font-size:11px}}.scene-cta{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:250px;min-height:160px;align-items:center;text-align:center}.scene-cta b{align-self:auto}.scene-cta:hover{transform:translate(-50%,-52%)}.scene-cta:active{transform:translate(-50%,-50%)}@media(max-width:700px){.scene-cta{left:50%;top:50%;right:auto;bottom:auto;width:min(230px,calc(100% - 32px));min-height:130px;transform:translate(-50%,-50%)}.scene-cta:hover{transform:translate(-50%,-52%)}.scene-cta:active{transform:translate(-50%,-50%)}}
.swatch[data-color="Branco Plus TX"]{background-image:url('assets/finishes/branco.png')}
.swatch[data-color="Preto TX"]{background-image:url('assets/finishes/preto.png')}
.swatch[data-color="Mocca"]{background-image:url('assets/finishes/mocca.png')}
.swatch[data-color="Panna"]{background-image:url('assets/finishes/panna.png')}
.swatch[data-color="Cinza Calcário"]{background-image:url('assets/finishes/calcario.png')}
.swatch[data-color="Freijó Natura"]{background-image:url('assets/finishes/freijo.png')}
.swatch[data-color="Carvalho Itapuã"]{background-image:url('assets/finishes/itapua.png')}
.swatch{background-size:cover;background-position:center}
#plan .module-shape:hover{filter:none}
#moduleZ:disabled{background:#f2f4ef;color:#59685d}

.product .model-preview{padding:0;background:#f2f4f1;border:0;display:block;width:100%;cursor:zoom-in}.product .model-preview img{width:100%;height:220px;object-fit:contain}.model-detail{display:block;width:100%;max-height:55vh;object-fit:contain}.quick-product img,.item img{object-fit:contain;background:#f2f4f1}

.composition svg#plan{width:100%;height:auto;min-height:0!important;max-height:none;display:block}.vertical-dimension[data-edit-elevation]{cursor:pointer}.vertical-dimension[data-edit-elevation] text{text-decoration:underline;text-underline-offset:3px}.product .model-preview{background:#b7a591}.product .model-preview img{height:auto;aspect-ratio:1;object-fit:cover}.quick-product img,.item img{background:#b7a591}
/* Vetro: wall controls above, finishes immediately below the composition. */
.wall-config{justify-content:flex-start;gap:28px;flex-wrap:wrap}.wall-dimensions{flex:1;justify-content:flex-start}.wall-dimensions>strong{font-size:14px;min-width:110px}.opening-tools{margin-left:auto;min-width:230px}.opening-tools strong{font-size:14px}.opening-tools small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.opening-tools .point-tools{margin-top:7px}.opening-editor{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:12px;background:#eef3ef;border:1px solid var(--line);border-radius:4px}.opening-editor[hidden]{display:none}.opening-editor label{flex:1;min-width:100px;font-size:13px}.opening-editor input,.opening-editor select{width:100%;padding:8px;border:1px solid var(--line);border-radius:3px;margin-top:5px}.opening-editor .error{width:100%;margin:0}.workspace>.editor-toolbar{margin:12px 14px}.custom-note{color:#86691f;font-size:14px;line-height:1.5}.custom-thumbnail{display:block;width:100%;height:auto;aspect-ratio:1}.quick-product .custom-thumbnail{width:60px;height:70px}.selection-editor input{max-width:100%}.brand{letter-spacing:.13em}.brand small{letter-spacing:.22em}#customWidthLabel small{display:block;font-size:12px;margin:5px 0}.perspective-note{font-size:12px;color:var(--muted)}@media(max-width:700px){.wall-dimensions{flex-wrap:wrap}.opening-tools{margin-top:14px;min-width:0}.opening-editor label{flex-basis:40%}.workspace>.editor-toolbar{margin:10px}.wall-readout{display:none}}

.item .custom-thumbnail{width:60px;height:70px;flex-shrink:0}.model-preview .custom-thumbnail{max-height:300px}.dialog .custom-thumbnail{max-height:300px}

.viewport-layout{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:start}.material-sidebar{padding:16px 12px;background:#f5f7f3;border-right:1px solid var(--line);position:sticky;top:12px}.material-sidebar h3{font-size:14px;margin:0 0 8px}.material-sidebar .swatches{display:flex;flex-wrap:wrap;gap:10px}.material-sidebar .swatch{width:29px;height:29px}.material-sidebar .handle-tools{margin-top:22px}.material-sidebar select{width:100%;font-size:13px}.material-sidebar .muted{font-size:12px}.workspace>.editor-toolbar{display:block;padding:10px 12px}.workspace>.editor-toolbar .hydraulic-tools{display:grid;grid-template-columns:180px minmax(0,1fr);gap:4px 16px;border:0;padding:0}.hydraulic-tools>h3,.hydraulic-tools>.point-tools,.hydraulic-tools>#markHint{grid-column:1}.hydraulic-tools>.point-editor{grid-column:2;grid-row:1/4;border:0;margin:0;padding:0}.point-editor-title span{display:none}.point-cards .point-card{display:flex;gap:7px;align-items:center}.point-card label{flex:1;min-width:55px}.point-card select{width:95px;margin:0}.point-editor-title{margin-bottom:3px}.point-card input{padding:5px}.point-cards{gap:8px}.viewport-layout:has(#planView[hidden]){display:none}@media(max-width:1100px){.viewport-layout{grid-template-columns:145px minmax(0,1fr)}.point-cards{grid-template-columns:1fr}.material-sidebar{padding:12px 8px}}@media(max-width:700px){.viewport-layout{display:flex;flex-direction:column}.material-sidebar{position:static;display:flex;gap:18px;width:100%;border-right:0;border-bottom:1px solid var(--line)}.material-sidebar .finish-tools,.material-sidebar .handle-tools{flex:1;min-width:0;margin:0}.composition{width:100%}.workspace>.editor-toolbar .hydraulic-tools{display:block}.hydraulic-tools>.point-editor{margin-top:8px}}

.wall-config{gap:12px}.wall-dimensions{flex:1 1 280px;gap:7px}.wall-dimensions>strong{min-width:80px}.wall-readout{min-width:90px;padding-left:8px}.wall-hydraulics{flex:1 1 170px;padding:0 12px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.wall-hydraulics h3{font-size:13px;margin:0 0 7px}.wall-hydraulics .point-tools{display:flex;gap:5px;flex-wrap:wrap;margin:0}.wall-hydraulics button{font-size:12px;padding:7px}.wall-hydraulics #markHint{font-size:11px;line-height:1.3;margin:6px 0 0}.opening-tools{flex:1 1 160px;min-width:0;margin-left:0}.workspace>.editor-toolbar .hydraulic-tools{display:block}.hydraulic-tools>.point-editor{padding:0;margin:0}.workspace>.editor-toolbar:has(#pointEditor[hidden]){display:none}@media(max-width:700px){.wall-hydraulics{border:0;padding:10px 0}.wall-config{display:flex;flex-wrap:wrap}.wall-dimensions{flex-basis:100%}.opening-tools{margin-top:0}}

#photoView>img{object-fit:cover;object-position:center;background:#f5f7f3}#photoView .caption{background:#163f35e6;padding:10px 15px;border-radius:4px}#photoView .imagebadge{background:#163f35;color:white}

/* Guided wall setup: three compact steps. */
.wall-config{align-items:flex-start}
.wall-dimensions{align-items:flex-end}
.wall-dimensions>.setup-heading{flex-basis:100%}
.setup-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.setup-step{font-size:12px;font-weight:700;color:#776133;line-height:1.3}
.wall-config .setup-heading strong,.wall-config .setup-heading h3{font-size:14px;line-height:1.35;margin:0;color:var(--green,#163f35)}
.wall-config .opening-tools small,.wall-config .wall-hydraulics #markHint{font-size:12px;line-height:1.4}

/* Touch-first planner. All desktop rules above remain unchanged. */
.mobile-planner,.mobile-add-module,.mobile-selection,.mobile-total-bar,.mobile-sheet,.mobile-sheet-backdrop,.mobile-delete-point{display:none}
@media (max-width:768px),(max-width:950px) and (max-height:500px){
 html{scroll-padding-top:118px}
 body.mobile-mode{padding-bottom:calc(78px + env(safe-area-inset-bottom));overflow-x:hidden;background:#f7f8f5}
 body.mobile-sheet-open{overflow:hidden}
 .mobile-mode .topbar,.mobile-mode .intro,.mobile-mode header nav,.mobile-mode #reviewTop,.mobile-mode .workspacehead,.mobile-mode #photoView,.mobile-mode .material-sidebar,.mobile-mode .quick-catalog,.mobile-mode .summary.panel,.mobile-mode #catalogo,.mobile-mode footer{display:none!important}
 .mobile-mode header{display:flex;min-height:60px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;justify-content:center;position:sticky;top:0;z-index:25;border-bottom:1px solid #dfe4de}
 .mobile-mode header .brand{font-size:25px;text-align:center}.mobile-mode header .brand small{font-size:9px;margin-top:5px}
 .mobile-mode main{padding:0;width:100%;max-width:none}.mobile-mode .layout{display:block}.mobile-mode .workspace{width:100%}
 .mobile-planner{display:block;position:sticky;top:calc(60px + env(safe-area-inset-top));z-index:20;background:#f7f8f5;border-bottom:1px solid var(--line)}
 .mobile-steps{display:flex;gap:4px;overflow-x:auto;padding:8px 10px 6px;scrollbar-width:none}.mobile-steps::-webkit-scrollbar{display:none}
 .mobile-steps button{flex:0 0 auto;min-width:58px;min-height:48px;padding:5px 7px;border:0;border-radius:7px;background:transparent;color:#758078;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px}
 .mobile-steps button b{display:grid;place-items:center;width:24px;height:24px;border:1px solid #bfc8c0;border-radius:50%;font-size:11px}
 .mobile-steps button.active{color:var(--green);background:#fff;box-shadow:0 1px 5px #102f2814}.mobile-steps button.active b{background:var(--green);border-color:var(--green);color:#f3dfad}
 .mobile-stage{display:flex;align-items:center;gap:10px;padding:8px 12px 10px;background:#fff}.mobile-stage>div{min-width:0;flex:1}.mobile-stage strong{display:block;font-size:14px;line-height:1.3;color:var(--green)}.mobile-stage p{margin:3px 0 0;font-size:12px;line-height:1.35;color:var(--muted)}
 .mobile-stage>button{flex:none;min-height:44px;padding:8px 12px;border:0;border-radius:5px;background:var(--green);color:#fff;font-size:12px}
 .mobile-mode .viewport-layout{display:block!important}.mobile-mode .composition{display:block!important;width:100%;padding:8px 0 132px;border:0;border-radius:0;background:#fff;overflow:hidden}
 .mobile-mode .composition>p:first-child,.mobile-mode .editor-instructions{display:none}
 .mobile-mode .wall-config{margin:0 10px 8px;padding:12px;display:flex;border-radius:8px;gap:10px;background:#f8faf7}.mobile-mode .wall-config>.error{width:100%;max-width:none}
 .mobile-mode .wall-dimensions,.mobile-mode .wall-hydraulics,.mobile-mode .opening-tools{width:100%;flex-basis:100%;margin:0;padding:0;border:0}
 .mobile-mode .wall-dimensions{display:flex;align-items:flex-end;gap:10px}.mobile-mode .wall-dimensions>.setup-heading{width:100%;flex-basis:100%}.mobile-mode .wall-dimensions label{flex:1;font-size:14px}.mobile-mode .wall-dimensions .inputunit{min-height:44px;margin-top:5px}.mobile-mode .wall-dimensions .inputunit input{width:100%;font-size:16px}
 .mobile-mode .setup-step{font-size:12px}.mobile-mode .wall-config .setup-heading strong,.mobile-mode .wall-config .setup-heading h3{font-size:16px}
 .mobile-mode .point-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-mode .point-tools button{min-height:44px;font-size:14px}
 .mobile-mode .opening-tools small,.mobile-mode .wall-hydraulics #markHint{font-size:13px;line-height:1.45}.mobile-mode .opening-editor{margin:0 10px 8px;padding:10px;display:grid;grid-template-columns:1fr 1fr;align-items:end}.mobile-mode .opening-editor[hidden]{display:none!important}.mobile-mode .opening-editor label{min-width:0;font-size:13px}.mobile-mode .opening-editor input,.mobile-mode .opening-editor select{min-height:44px;font-size:16px}.mobile-mode .opening-editor button{min-height:44px}.mobile-mode .opening-editor .error{grid-column:1/-1}
 .mobile-mode[data-mobile-step="1"] .wall-hydraulics,.mobile-mode[data-mobile-step="1"] .opening-tools,.mobile-mode[data-mobile-step="2"] .wall-dimensions,.mobile-mode[data-mobile-step="2"] .opening-tools,.mobile-mode[data-mobile-step="3"] .wall-dimensions,.mobile-mode[data-mobile-step="3"] .wall-hydraulics{display:none}
 .mobile-mode[data-mobile-step="1"] #openingEditor,.mobile-mode[data-mobile-step="2"] #openingEditor,.mobile-mode[data-mobile-step="4"] .wall-config,.mobile-mode[data-mobile-step="5"] .wall-config,.mobile-mode[data-mobile-step="6"] .wall-config,.mobile-mode:not([data-mobile-step="3"]) #openingEditor{display:none!important}
 .mobile-mode .workspace>.editor-toolbar{display:none!important;margin:0 10px 8px;padding:10px}.mobile-mode[data-mobile-step="2"] .workspace>.editor-toolbar:has(#pointEditor:not([hidden])){display:block!important}.mobile-mode .point-cards{grid-template-columns:1fr;gap:8px}.mobile-mode .point-cards .point-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.mobile-mode .point-card legend{font-size:14px}.mobile-mode .point-card select{grid-column:1/-1;width:100%;min-height:44px;font-size:14px}.mobile-mode .point-card label{font-size:12px}.mobile-mode .point-card input{min-height:44px;font-size:16px}.mobile-delete-point{grid-column:1/-1;min-height:44px;border:1px solid #c99682;background:#fff7f3;color:#914326;border-radius:5px;font-size:13px}
 .mobile-mode #editorStatus{display:none!important;margin:4px 10px!important;padding:7px 9px;font-size:12px}.mobile-mode:not([data-mobile-step="4"]) #editorStatus{display:none}
 .mobile-mode .composition svg#plan{display:block;width:100%;height:clamp(330px,54dvh,590px)!important;min-height:330px!important;max-height:590px;touch-action:none;overscroll-behavior:contain;background:#fff;border-top:1px solid #edf0eb;border-bottom:1px solid #edf0eb}
 .mobile-canvas-actions{display:flex;justify-content:flex-end;gap:7px;padding:7px 10px;background:#fff}.mobile-canvas-actions button{min-width:44px;min-height:44px;border:1px solid #cbd4cc;background:#fff;color:var(--green);border-radius:6px;font-weight:600}.mobile-canvas-actions button:first-child{margin-right:auto;padding:0 12px;font-size:12px}
 .mobile-mode .viewport-footer{padding:4px 10px;margin:0}.mobile-mode .viewport-footer .delete-selected{display:none}.mobile-mode .viewport-footer .point-legend{font-size:12px}.mobile-mode .composition>small{display:block;padding:0 10px;font-size:11px;line-height:1.4}
 .mobile-mode .below-viewport,.mobile-mode .occupancy,.mobile-mode .quality{display:none}
 .mobile-add-module{position:fixed;right:14px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:31;min-height:48px;padding:0 17px;border:0;border-radius:24px;background:var(--gold);color:#102f28;box-shadow:0 8px 24px #102f2840;font-weight:700;font-size:14px}.mobile-mode[data-mobile-step="4"] .mobile-add-module{display:block}
 .mobile-total-bar{position:fixed;left:0;right:0;bottom:0;z-index:35;min-height:70px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:var(--deep);color:#fff;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 -6px 20px #102f2826}.mobile-mode .mobile-total-bar{display:flex}.mobile-total-bar span{font-size:11px;color:#cbd8d1}.mobile-total-bar strong{display:block;margin-top:3px;font-size:20px;color:#fff}.mobile-total-bar button{min-height:46px;padding:0 18px;border:0;border-radius:5px;background:#d2b674;color:var(--deep);font-weight:700}
 .mobile-selection{position:fixed;left:8px;right:8px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:34;padding:12px 42px 12px 13px;border:1px solid #d6ded6;border-radius:10px;background:#fff;box-shadow:0 8px 28px #102f2838}.mobile-mode .mobile-selection:not([hidden]){display:block}.mobile-selection>strong{display:block;padding-right:10px;font-size:15px;color:var(--green)}.mobile-selection>small{display:block;margin:4px 0;font-size:12px;color:var(--muted)}.mobile-selection>b{font-size:14px}.mobile-selection-close{position:absolute;right:7px;top:6px;width:36px;height:36px;border:0;background:transparent;font-size:24px;color:var(--muted)}.mobile-selection-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:9px}.mobile-selection-actions button{min-height:44px;padding:4px;border:1px solid #ccd5ce;background:#fff;border-radius:5px;color:var(--green);font-size:11px}.mobile-selection-actions button:last-child{color:#954327;border-color:#d8b4a6}.mobile-selection-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.mobile-selection-fields[hidden]{display:none}.mobile-selection-fields label{font-size:11px;color:var(--muted)}.mobile-selection-fields input{width:100%;min-height:44px;margin-top:4px;padding:7px;border:1px solid var(--line);border-radius:5px;font-size:16px}
 .mobile-sheet-backdrop{position:fixed;inset:0;z-index:48;border:0;background:#102f2870;backdrop-filter:blur(2px)}.mobile-mode .mobile-sheet-backdrop:not([hidden]){display:block}.mobile-sheet{position:fixed;left:0;right:0;bottom:0;z-index:49;max-height:min(82dvh,760px);padding:0 14px calc(16px + env(safe-area-inset-bottom));overflow:auto;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -12px 40px #102f2840}.mobile-mode .mobile-sheet:not([hidden]){display:block}.mobile-sheet>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;min-height:58px;background:#fff;border-bottom:1px solid var(--line)}.mobile-sheet>header strong{font:21px Georgia,serif;color:var(--green)}.mobile-sheet>header button{width:44px;height:44px;border:0;background:transparent;color:var(--green);font-size:28px}.mobile-sheet-intro{padding:12px 0;font-size:13px;line-height:1.45;color:var(--muted)}
 .mobile-category-tabs{display:flex;gap:7px;overflow:auto;padding:4px 0 12px}.mobile-category-tabs button{flex:none;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--muted)}.mobile-category-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}
 .mobile-module-list{display:grid;gap:8px}.mobile-module-list article{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:8px}.mobile-module-list article>img,.mobile-module-list article>.custom-thumbnail{width:72px;height:72px;object-fit:cover;background:#b7a591;border-radius:5px}.mobile-module-list article>div{min-width:0}.mobile-module-list strong,.mobile-module-list small,.mobile-module-list b{display:block}.mobile-module-list strong{font-size:14px}.mobile-module-list small{margin:4px 0;font-size:11px;color:var(--muted)}.mobile-module-list b{font-size:13px}.mobile-module-list article>button{min-height:44px;padding:0 10px;border:0;border-radius:5px;background:var(--green);color:#fff;font-size:12px}
 .mobile-finish-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-finish-grid button{min-height:58px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fff;display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink);font-size:13px}.mobile-finish-grid button.active{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.mobile-finish-grid i{flex:none;width:40px;height:40px;border-radius:5px;background-size:cover;background-position:center;border:1px solid #cdd3cd}.mobile-handle-label{display:block;margin-top:16px;font-size:14px}.mobile-handle-label select{min-height:48px;margin-top:7px;font-size:16px}
 .mobile-review-wall{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.mobile-review-list{list-style:none;padding:0;margin:0}.mobile-review-list li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0eb}.mobile-review-list img,.mobile-review-list .custom-thumbnail{width:52px;height:52px;object-fit:cover;background:#b7a591;border-radius:4px}.mobile-review-list span strong,.mobile-review-list span small{display:block}.mobile-review-list span strong{font-size:13px}.mobile-review-list span small{font-size:11px;color:var(--muted);margin-top:4px}.mobile-review-list li>b{font-size:12px}.mobile-review-list .mobile-empty{display:block;color:var(--muted)}.mobile-review-totals{padding:12px 0}.mobile-review-totals span,.mobile-review-totals>strong{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px}.mobile-review-totals>strong{margin-top:6px;padding-top:12px;border-top:1px solid var(--line);font-size:17px}.mobile-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-review-actions button{min-height:46px;border:1px solid var(--green);border-radius:5px;background:var(--green);color:#fff}.mobile-review-actions button+button{background:#fff;color:var(--green)}
 #toast{bottom:calc(82px + env(safe-area-inset-bottom));z-index:60}
 dialog{max-height:85dvh;overflow:auto;padding:24px 18px}
}
@media (max-width:950px) and (max-height:500px){
 .mobile-mode header{display:none}.mobile-planner{top:0}.mobile-stage{padding-block:5px}.mobile-stage p{display:none}.mobile-steps{padding-block:4px}.mobile-steps button{min-height:42px}.mobile-mode .composition svg#plan{height:calc(100dvh - 178px)!important;min-height:245px!important}.mobile-sheet{max-height:92dvh}
}
@media (max-width:360px){.mobile-stage>button{padding-inline:9px}.mobile-stage strong{font-size:13px}.mobile-stage p{font-size:11px}.mobile-selection-actions{grid-template-columns:1fr 1fr}.mobile-finish-grid{grid-template-columns:1fr}.mobile-module-list article{grid-template-columns:62px minmax(0,1fr)}.mobile-module-list article>button{grid-column:1/-1}.mobile-review-actions{grid-template-columns:1fr}}

/* Mobile revision: one stepper, wall controls in the scroll flow, and a clean module canvas. */
.mobile-scroll-continue{display:none}
@media (max-width:768px),(max-width:950px) and (max-height:500px){
 .mobile-stage,.mobile-canvas-actions{display:none!important}
 .mobile-mode .wall-hydraulics,.mobile-mode .opening-tools,.mobile-mode .workspace>.editor-toolbar,.mobile-mode #openingEditor,.mobile-mode #pointEditor,.mobile-mode .mobile-delete-point{display:none!important}
 .mobile-mode[data-mobile-step="1"] .wall-config{display:flex!important}
 .mobile-mode[data-mobile-step="2"] .wall-config,.mobile-mode[data-mobile-step="3"] .wall-config{display:none!important}
 .mobile-mode[data-mobile-step="1"] #mobileWallContinue,.mobile-mode[data-mobile-step="2"] #mobileScrollContinue{display:flex!important}
 .mobile-mode[data-mobile-step="2"] .mobile-add-module{display:block!important}
 .mobile-mode[data-mobile-step="1"] .mobile-add-module,.mobile-mode[data-mobile-step="3"] .mobile-add-module{display:none!important}
 .mobile-mode .mobile-scroll-continue{display:none;align-items:center;justify-content:center;width:calc(100% - 28px);min-height:48px;margin:14px auto 20px;padding:10px 16px;border:0;border-radius:6px;background:var(--green);color:#fff;font-size:15px;font-weight:700}
 .mobile-mode #mobileWallContinue{display:none}
 .mobile-mode .mobile-selection{display:none!important}
 .mobile-mode .viewport-footer .point-legend{display:none!important}.mobile-mode .viewport-footer .delete-selected{display:inline-flex!important;width:100%;min-height:48px;justify-content:center;font-size:14px}.mobile-mode[data-mobile-step="1"] .viewport-footer,.mobile-mode[data-mobile-step="3"] .viewport-footer{display:none!important}
 .mobile-mode .composition [data-opening],.mobile-mode .composition [data-hydraulic],.mobile-mode .composition [data-point],.mobile-mode .composition .point-guides{display:none!important}
 .mobile-mode[data-mobile-step="1"] .composition svg#plan{height:clamp(260px,42dvh,430px)!important;min-height:260px!important}
 .mobile-mode[data-mobile-step="2"] .composition svg#plan{height:clamp(390px,64dvh,700px)!important;min-height:390px!important}
 .mobile-steps{justify-content:space-between}
}

@media (max-width:768px),(max-width:950px) and (max-height:500px){.mobile-confirm-module{display:block;width:100%;min-height:50px;margin:16px 0 4px;padding:10px;border:0;border-radius:6px;background:var(--green);color:#fff;font-size:15px;font-weight:700}.mobile-mode[data-mobile-step="1"] #mobileScrollContinue,.mobile-mode[data-mobile-step="3"] #mobileScrollContinue{display:none!important}}

/* Environment navigation shares one catalog and one project on every screen. */
.environment-picker{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--green)}
.environment-picker select{min-height:44px;max-width:190px;border:1px solid #c9d2ca;border-radius:8px;background:#fff;padding:8px 12px;color:inherit;font:inherit}
.mobile-environment-label{display:grid;gap:8px;font-weight:600;margin:0 0 16px}.mobile-environment-label select{min-height:44px;width:100%;font:inherit;padding:8px;border:1px solid #c9d2ca;border-radius:8px;background:white}
@media(max-width:768px){.environment-picker{width:100%;justify-content:space-between}.environment-picker select{max-width:70%;flex:1}.workspacehead{flex-wrap:wrap}.filters{flex-wrap:wrap}}

.interior-toggle{min-height:44px;border:1px solid #bccbc2;background:#fff;color:var(--green);border-radius:5px;padding:10px 14px;font-size:14px}.interior-toggle[aria-pressed="true"]{background:var(--green);color:white}.viewport-footer{flex-wrap:wrap;gap:8px}.viewport-footer .point-legend{margin-right:auto}
@media(max-width:768px),(max-width:950px) and (max-height:500px){.mobile-mode .viewport-footer{display:flex;flex-wrap:nowrap;align-items:stretch}.mobile-mode .viewport-footer .interior-toggle,.mobile-mode .viewport-footer .delete-selected{flex:1;min-width:0;width:auto!important;min-height:48px;white-space:normal;font-size:12px;padding:8px}.mobile-mode .viewport-footer .delete-selected svg{flex-shrink:0}}

.mobile-custom-width{display:none}@media(max-width:768px),(max-width:950px) and (max-height:500px){.mobile-mode[data-mobile-step="2"] .mobile-custom-width:not([hidden]){display:grid;grid-template-columns:1fr 90px;align-items:center;gap:8px;margin:8px 12px;font-size:14px}.mobile-custom-width input{width:100%;min-height:44px;border:1px solid #c9d2ca;border-radius:5px;padding:8px;font-size:16px}.mobile-custom-width small{grid-column:1/-1;color:var(--muted)}}

.internal-readout{padding:12px;margin:8px 0;background:#eef6f7;border:1px solid #c7dee3;border-radius:6px;font-size:14px;color:#155666}.internal-readout[hidden]{display:none}.internal-readout>div{display:flex;flex-wrap:wrap;gap:6px 16px;margin:8px 0}.internal-readout span{line-height:1.5}.internal-readout small{display:block;line-height:1.4}.internal-readout strong{display:block}.internal-dimensions text{font-family:Arial,sans-serif}@media(max-width:768px){.internal-readout{margin:8px 12px}.internal-readout>div{display:grid;gap:6px}}
