:root{font-family:'DM Sans',sans-serif;color:#29392f;background:#f6f5f0;font-size:16px;--green:#304c3d;--line:#dedfd5;--soft:#efeee7;--muted:#69736c}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{cursor:pointer}button{color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #b78645;outline-offset:4px}button{border:0;background:none}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 4%;border-bottom:1px solid var(--line);background:#fcfbf7}.brand{font:34px Georgia,serif;letter-spacing:-1.7px}.brand span{display:block;font:9px 'DM Sans',sans-serif;letter-spacing:2.8px;margin-top:6px}.header nav{display:flex;gap:28px;align-items:center;font-size:14px}.header nav a:hover,.textlink:hover{text-decoration:underline}.solid,.outline{display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:12px 18px;border-radius:5px;font-size:14px;font-weight:500;min-height:44px}.solid{background:var(--green);color:#fff}.solid:hover{background:#213c2d}.outline{border:1px solid #b7bfb6;background:transparent}.outline:hover{background:#eeeee5}.quiet{padding:10px 4px;font-size:14px}.large{padding:16px 24px;font-size:16px}.full{width:100%}.hero{display:grid;grid-template-columns:43% 57%;min-height:630px}.hero-copy{padding:95px 8% 70px 10%}.eyebrow{font-size:11px;letter-spacing:2.3px;font-weight:600;margin:0 0 16px}.hero h1{font:clamp(42px,4.7vw,76px)/1.04 Georgia,serif;letter-spacing:-2.3px;margin:24px 0}.hero h1 em{font-weight:400;color:#7b815d}.hero-copy>p:not(.eyebrow){font-size:18px;line-height:1.7;color:var(--muted);margin:26px 0 32px}.textlink{display:block;margin-top:22px;font-size:14px}.hero-photo{position:relative;background:#d7d0bd;min-height:450px}.hero-photo img{width:100%;height:100%;object-fit:cover;position:absolute}.hero-photo>span{position:absolute;bottom:14px;right:14px;background:#fffdf3e8;padding:7px 10px;font-size:11px;border-radius:3px;color:#465046}.process{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:40px;padding:66px 5%;border-bottom:1px solid var(--line)}.process h2{font:32px/1.2 Georgia,serif;margin:0}.process h3{font-size:17px;font-weight:500;margin:18px 0 12px}.process article>span{font:22px Georgia,serif;color:#8f9678}.process p{font-size:14px;line-height:1.7;color:var(--muted)}.studio-heading{display:flex;align-items:center;justify-content:space-between;padding:34px 3% 28px;gap:20px}.studio-heading .eyebrow{margin-bottom:9px}.studio-heading h1{font:34px Georgia,serif;margin:0;letter-spacing:-.8px}.tag{font-size:12px;padding:8px 12px;border:1px solid var(--line);border-radius:30px;color:var(--muted);white-space:nowrap}.workspace{display:grid;grid-template-columns:252px minmax(0,1fr) 274px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-height:695px}.library,.inspector{padding:24px 21px;background:#fcfbf7}.library{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.section-title{display:flex;gap:12px;align-items:center;margin-bottom:23px}.section-title>span{font:16px Georgia,serif;color:#90987e}.section-title h2{font-size:16px;font-weight:600;margin:0}.divider{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.fields.three{grid-template-columns:repeat(3,1fr);gap:7px}label{display:block;font-size:13px;color:#535f55;margin-bottom:13px;line-height:1.5}input,select,textarea{display:block;width:100%;min-width:0;background:#fffefb;border:1px solid #d6dbd1;border-radius:4px;color:#263b2d;padding:9px 8px;font-size:14px;margin-top:6px}input:focus,select:focus,textarea:focus{outline:2px solid #809874;outline-offset:1px}select{height:40px}.fields.three label{font-size:11px}details{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}summary{font-size:14px;cursor:pointer;margin-bottom:14px}label.check{display:flex;gap:10px;align-items:center}label.check input{width:16px;height:16px;margin:0}.small{font-size:12px;line-height:1.55;color:var(--muted)}.catalog{display:grid;gap:10px}.catalog button{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#f7f7f1;border-radius:5px;text-align:left;padding:12px 10px;font-size:14px}.catalog button:hover{border-color:#809874;background:#edf0e7}.catalog small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.catalog b{margin-left:auto;font-size:21px;font-weight:400}.cabinet-symbol{font-size:30px;color:#7b795f}.library-note{margin-top:20px}.scene-wrap{position:relative;background:#ebece4;display:flex;flex-direction:column;min-width:0;overflow:hidden}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;position:absolute;z-index:2;top:18px;left:18px;right:18px;gap:10px;pointer-events:none}.scene-toolbar>span{background:#fffdf5e8;border-radius:4px;padding:9px 13px;font-size:12px}.scene-toolbar>div{display:flex;gap:3px;padding:4px;background:#fffdf5;border-radius:6px;pointer-events:auto;box-shadow:0 3px 16px #213c2d0b}.scene-toolbar button{padding:6px 12px;border-radius:3px;font-size:12px;min-height:32px}.scene-toolbar button[aria-pressed=true]{background:var(--green);color:white}#scene{position:relative;flex:1;min-height:620px}#scene canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}#loading{padding:120px 24px;text-align:center;color:var(--muted)}.scene-foot{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:15px 20px;font-size:11px;color:#5d695e;border-top:1px solid #d8dcd0;background:#f0f1e9}#status{position:absolute;bottom:62px;left:20px;right:20px;padding:12px 16px;background:#fffdf8;box-shadow:0 5px 25px #24382814;font-size:14px;border-radius:6px;display:none;z-index:4}#status.error{color:#8b3c2d;background:#fff2e9}#status.visible{display:block}.field-title{font-size:13px;margin:14px 0 10px}.swatches{display:flex;gap:10px;margin-bottom:9px}.swatches button{height:30px;width:30px;flex:none;border-radius:50%;background:var(--swatch);border:3px solid #fcfbf7;box-shadow:0 0 0 1px #d3d8ce}.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px var(--green)}#finish-name{display:block;margin-bottom:18px}.action-row{display:flex;gap:9px;justify-content:space-between}.action-row .outline{padding:9px;font-size:12px;flex:1}.danger{color:#995944}.project-footer{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:25px 3%;background:#fcfbf7}.project-footer strong{font-size:16px;font-weight:500}.project-footer p{font-size:13px;color:var(--muted);margin:8px 0 0}.footer{display:flex;justify-content:space-between;gap:16px;padding:24px 3%;font-size:12px;color:#737d71}.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.modal-head h2{font:30px Georgia,serif;margin:5px 0 20px}.modal-head .eyebrow{margin-bottom:5px}dialog{max-width:min(700px,calc(100% - 32px));width:700px;border:1px solid #d5dace;background:#fcfbf7;color:#29392f;border-radius:12px;padding:28px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#17281c88;backdrop-filter:blur(3px)}dialog>p{font-size:14px;line-height:1.7}model-viewer{display:block;width:100%;height:350px;background:#efeee6;border-radius:7px;margin:15px 0}model-viewer button{position:absolute;bottom:20px;left:20px}#quote-content{padding:16px;background:#eeefe6;font-size:14px;line-height:1.8;margin:20px 0;white-space:pre-wrap}dialog>.outline{margin-top:10px}
@media(min-width:1500px){.workspace{grid-template-columns:290px minmax(0,1fr) 310px}.library,.inspector{padding:28px}.fields.three label{font-size:12px}#scene{min-height:690px}}
@media(max-width:1000px){.workspace{grid-template-columns:220px minmax(0,1fr)}.inspector{grid-column:1/-1;border-top:1px solid var(--line);border-left:0;display:block}.inspector form{max-width:600px}.inspector>label{max-width:600px}#selected-form{max-width:600px}.header{padding:20px 3%}.header nav{gap:15px}.process{grid-template-columns:1fr 1fr}.hero-copy{padding:65px 8%}.hero{min-height:550px}.hero h1{font-size:48px}.hero .large{font-size:14px;padding:14px 16px}}
@media(max-width:650px){.header{flex-wrap:wrap;gap:18px;padding:18px}.brand{font-size:28px}.brand span{font-size:8px}.header nav{order:3;width:100%;justify-content:space-between;gap:8px}.header>.solid{font-size:12px;padding:10px}.hero{grid-template-columns:1fr}.hero-copy{padding:45px 24px}.hero h1{font-size:48px}.hero-photo{min-height:360px}.process{grid-template-columns:1fr;padding:40px 24px;gap:20px}.studio-heading{padding:24px 18px;align-items:flex-start}.studio-heading h1{font-size:27px}.tag{font-size:10px;white-space:normal;max-width:100px}.workspace{display:flex;flex-direction:column}.library{border-right:0;padding:20px}.catalog{grid-template-columns:1fr 1fr;gap:8px}.catalog button{font-size:12px}.catalog small{font-size:10px}.scene-wrap{min-height:440px;order:0}.library{order:1}.inspector{order:2}.scene-toolbar{left:12px;right:12px;top:12px}#scene{min-height:410px;height:410px}.scene-foot{padding:12px;font-size:10px}.scene-foot span:first-child{max-width:230px}.fields.three label{font-size:12px}.project-footer{padding:22px 18px;flex-direction:column;align-items:stretch}.footer{flex-direction:column;padding:22px 18px}.studio-heading .eyebrow{font-size:9px}input,select,textarea{font-size:16px}.swatches button{width:36px;height:36px}.catalog button{min-height:68px}dialog{padding:20px}.modal-head h2{font-size:25px}model-viewer{height:280px}}

.move-toolbar{position:absolute;z-index:3;top:74px;left:18px;right:18px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;pointer-events:none}.move-toolbar .check{pointer-events:auto;background:#fffdf5ed;padding:8px 11px;border-radius:5px;margin:0;font-size:12px}.move-toolbar #drag-feedback{background:#fffdf5ed;font-size:12px;padding:5px 8px;border-radius:4px}.move-toolbar #drag-feedback:empty{display:none}#add-countertop{margin-top:14px;background:#eee7d9}#scene canvas:focus-visible{outline:3px solid #718759;outline-offset:-3px}@media(max-width:650px){.move-toolbar{top:65px;left:12px;right:12px}}
.catalog button{padding:8px;gap:9px}.catalog img{width:58px;height:76px;object-fit:contain;background:#f2efe8;border-radius:4px}.catalog button>span{min-width:0;overflow-wrap:anywhere}.catalog small{font-size:12px}.catalog b{flex:none}.front-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 18px}.front-options button{padding:5px;border:2px solid var(--line);border-radius:7px;background:#eeeae2;min-height:112px;overflow:hidden}.front-options button[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.front-options img{display:block;width:100%;height:125px;object-fit:contain}.front-options .no-front{background:#fffdf7;font-size:14px}.mirror-control{align-self:center;margin-top:12px}#properties-dialog{width:620px}#properties-dialog .fields.three label{font-size:14px}#properties-dialog label{font-size:14px}#component-list{max-height:190px;overflow:auto;padding-left:24px;font-size:14px;line-height:1.8;overflow-wrap:anywhere}#properties-error{font-size:14px;color:#923c28}#properties-error:empty{display:none}#selected-name{display:block;font-size:16px;line-height:1.5}.swatches{flex-wrap:wrap}@media(max-width:650px){.catalog button{font-size:14px}.catalog img{width:48px;height:68px}.catalog small{font-size:12px}.front-options img{height:110px}#properties-dialog .fields.three{grid-template-columns:1fr 1fr}#properties-dialog .fields.three label:last-child{grid-column:1/-1}}

.drawer-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.drawer-options button{padding:5px;border:2px solid #deded6;background:#f4f2eb;border-radius:8px;cursor:pointer;color:#283c32;min-width:0}.drawer-options button[aria-pressed="true"]{border-color:#2f493d;box-shadow:0 0 0 1px #2f493d}.drawer-options img{display:block;width:100%;aspect-ratio:330/270;object-fit:contain}.drawer-options span{display:block;font-size:14px}.wall-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.wall-buttons button{font-size:14px;padding:8px}.move-toolbar{flex-wrap:wrap;gap:10px}#drawer-front-image{object-fit:contain}#drawer-controls{padding-top:8px}

#legs-controls{margin:14px 0}#legs-controls .check{font-size:14px}.move-toolbar .check{font-size:14px;padding:7px 9px}.move-toolbar{gap:6px}.scene-wrap{background:#e6e8e9}

.project-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.project-actions button{font-size:14px}.project-actions .large{font-size:14px;padding:13px 17px}@media(max-width:650px){.project-actions{justify-content:stretch}.project-actions button{flex:1}}

.material-heading{font-size:17px;margin:22px 0 16px}.decor-import-button{margin-top:18px}#material-controls{border-top:1px solid var(--line);padding-top:3px}#supplier-controls{padding:12px;background:#f1eee6;border-radius:6px;margin-bottom:16px}#supplier-controls .textlink{margin-top:8px}.decor-preview-wrap{overflow:auto}#decor-preview{border-collapse:collapse;width:100%;font-size:13px}#decor-preview th,#decor-preview td{padding:9px;text-align:left;border-bottom:1px solid var(--line)}#decor-import-error{color:#923c28;font-size:14px}#decor-dialog{width:740px}

.decor-sample{display:block;width:100%;height:95px;object-fit:cover;border:1px solid var(--line);border-radius:5px;margin:10px 0}
#ar-dialog{width:900px;max-width:calc(100% - 24px)}#ar-model{height:min(55dvh,520px);min-height:320px;background:radial-gradient(ellipse at 50% 35%,#b9c1c5,#89969c);border:1px solid #a0adb2}#ar-dialog .modal-head h2{margin-bottom:8px}@media(max-width:650px){#ar-model{height:48dvh;min-height:300px}#ar-dialog{padding:18px}}

.supplier-fronts{margin:20px 0;padding:14px;border:1px solid #d8ded4;background:#fff}#front-catalog-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.supplier-front-card{display:flex;flex-direction:column;gap:8px;align-items:center;padding:10px 6px;border:1px solid #d8ded4;background:#f8f9f5;color:#29392f}.supplier-front-card img{width:100%;height:160px;object-fit:contain}.supplier-front-card strong{font-size:12px}.supplier-front-card small{font-size:9px}.supplier-front-card[aria-pressed=true]{outline:2px solid #526b51;background:#edf2e8}@media(max-width:650px){#front-catalog-gallery{grid-template-columns:repeat(2,1fr)}.supplier-front-card img{height:180px}}

.front-library-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px}.supplier-front-entry{min-width:0}.supplier-front-entry .supplier-front-card{width:100%;height:230px}.front-sheet-link{display:block;margin-top:7px;font-size:10px;color:#526b51;text-align:center;text-decoration:underline}.supplier-front-card small{text-align:center}.front-library-tools label{margin:8px 0}@media(max-width:650px){.front-library-tools{grid-template-columns:1fr}.supplier-front-entry .supplier-front-card{height:250px}}

#toggle-interior{margin-top:8px}#worktop-decor-image{height:160px}

.door-actions{display:grid;gap:7px;margin:10px 0}#milling-preview-canvas{width:100%;height:300px;border:1px solid #d8ded4;border-radius:6px;background:#e9ece9}#milling-preview-canvas canvas{display:block;width:100%;height:100%}#selected-front-model:empty{display:none}
#resize-handles{position:absolute;inset:0;pointer-events:none;z-index:5}#resize-handles button{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border:2px solid #fff;border-radius:7px;background:#976626;color:white;pointer-events:auto;box-shadow:0 2px 8px #0004;font-size:23px;font-weight:bold;touch-action:none;user-select:none;line-height:1}#resize-handles button[data-resize=w]{cursor:ew-resize}#resize-handles button[data-resize=h]{cursor:ns-resize}#resize-handles button.invalid{background:#b13e2c}#delete{margin:8px 0}#height-warning{padding:10px;background:#f2eadb;border-radius:5px;line-height:1.6}#placement-note{line-height:1.6}
.scene-wrap{align-self:start;min-height:0}#scene{height:clamp(520px,70vh,720px);min-height:0}@media(max-width:650px){#scene{height:410px;min-height:410px}}
#scene{flex:none}

#front-opening-controls{margin:16px 0;padding:14px;background:#f1eee6;border-radius:7px}#back-panel-label{margin:-3px 0 16px}#back-panel-label .small{margin:3px 0 0 26px}#gola-controls{padding-top:6px}.decor-picker{position:relative}.decor-picker input{padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,#43554a 50%),linear-gradient(135deg,#43554a 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}.decor-choices{position:absolute;top:100%;left:0;right:0;z-index:10;max-height:270px;overflow:auto;border:1px solid #b6c0b4;background:#fffdf7;box-shadow:0 8px 22px #192d2326;border-radius:5px}.decor-choices [role=option]{padding:10px 12px;cursor:pointer;font-size:14px;font-weight:400}.decor-choices [role=option]:hover,.decor-choices [aria-selected=true]{background:#e5eade}.decor-choices p{padding:8px 12px}

#materials-dialog{width:1120px;max-width:calc(100% - 32px)}.materials-table-wrap{overflow:auto;max-height:46vh;margin:20px 0}#materials-table{border-collapse:collapse;width:100%;font-size:13px}#materials-table th{background:#304c3d;color:#fff;position:sticky;top:0;text-align:left;padding:11px}#materials-table td{padding:10px 11px;border-bottom:1px solid #dedfd5;vertical-align:top;min-width:90px}#materials-table td:nth-child(2),#materials-table td:last-child{min-width:190px}.material-quantity{text-align:right;font-weight:600}.missing-quantity{background:#fff4d9;color:#805a1b}#materials-error{color:#923c28}

#materials-table td{min-width:70px}#materials-table td:nth-child(2){min-width:150px}#materials-table td:nth-child(5){min-width:130px}#materials-table td:last-child{min-width:150px;white-space:nowrap}#materials-table td:first-child{font-size:11px;color:#626e63}

#resize-handles button[data-resize=d]{cursor:nwse-resize}#resize-handles button[hidden]{display:none}

#dimension-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:hidden}#dimension-overlay[hidden]{display:none}#dimension-overlay path{fill:none;stroke:#475349;stroke-width:.65;opacity:.42}#dimension-overlay text{font:11px Arial,sans-serif;text-anchor:middle;dominant-baseline:central;fill:#445047;stroke:#f6f5ed;stroke-width:3.5px;stroke-linejoin:round;paint-order:stroke;opacity:.86}#dimension-overlay .gap-dimension text{fill:#355f4f;font-weight:600}#dimension-overlay .gap-dimension path{stroke:#355f4f;opacity:.58}#dimension-overlay .selected-dimension path{opacity:.65}#end-panel-controls{margin:12px 0;padding:10px 0;border-block:1px solid #dedfd5}#end-panel-controls .fields{margin-top:10px}#end-panel-controls button{margin:0}

/* Two steps: room and furniture. Selected-body controls stay with the library. */
.workspace{grid-template-columns:270px minmax(0,1fr)}.selected-cabinet{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.selected-cabinet>#selection{width:100%}.selected-cabinet #selected-form{max-width:none}@media(min-width:1500px){.workspace{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:1000px) and (min-width:651px){.workspace{grid-template-columns:250px minmax(0,1fr)}}
@media(min-width:651px){.scene-wrap{position:sticky;top:12px}#scene{height:clamp(440px,78vh,760px)}}

#selected-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}#selected-levels span{white-space:nowrap}

/* Display settings are outside the 3D canvas; furniture keeps the entire image. */
.scene-toolbar{position:static;padding:10px 12px;min-height:48px;pointer-events:auto}.scene-toolbar>span{padding:4px;background:transparent}.scene-toolbar>div{box-shadow:none}.scene-options{order:2;margin:0;padding:10px 14px;border-top:1px solid #d8dcd0;background:#f7f8f3}.scene-options>summary{font-size:12px;margin:0}.scene-options[open]>summary{margin-bottom:10px}.move-toolbar{position:static;pointer-events:auto}.move-toolbar .check{background:transparent}.scene-foot{order:3}.scene-options+#scene{order:1}#status{bottom:64px}#multi-selection-list{max-height:230px;overflow:auto;margin:10px 0;padding:8px;border:1px solid var(--line);border-radius:5px}#multi-selection-list label{font-size:13px;margin:8px 0}#select-multiple[aria-pressed=true]{background:#e9eee3;border-color:#607848}#group-summary{line-height:1.6}
@media(max-width:650px){.scene-toolbar{padding:6px 10px;gap:6px}.scene-toolbar>span{font-size:10px}.scene-toolbar button{min-height:40px;padding:7px 12px}.scene-options{padding:10px 12px}.scene-foot{display:none}#scene{height:clamp(340px,58dvh,520px);min-height:340px}.scene-wrap{min-height:0}#dimension-overlay text{font-size:10px}#resize-handles button{width:38px;height:38px}#status{bottom:48px;left:8px;right:8px;font-size:12px;padding:8px 10px}.move-toolbar{gap:4px}.move-toolbar .check{font-size:12px;padding:7px 3px}#properties-dialog{max-width:calc(100% - 16px);padding:16px}#properties-dialog .fields.three{gap:8px}.studio-heading{padding:16px}#multi-selection-list{max-height:200px}}
@media(max-width:650px){body:has(#studio:not([hidden])) #assistant-launcher{position:static;margin:12px auto 24px;box-shadow:none;width:max-content;max-width:calc(100% - 24px)}}
@media(max-width:650px){.workspace .scene-wrap{align-self:stretch;width:100%}body:has(#studio:not([hidden])) .header{padding:10px 14px;gap:10px}body:has(#studio:not([hidden])) .studio-heading{padding:14px 16px}body:has(#studio:not([hidden])) .studio-heading h1{font-size:24px}}
@media(max-width:650px){body:has(#studio:not([hidden])) .header .project-menu{margin:0;padding:0;border:0}body:has(#studio:not([hidden])) .header .project-menu summary{margin:0;padding:0}body:has(#studio:not([hidden])) .header nav{align-items:center}}
/* Keep the assistant available below the atelier, without covering its controls. */
body:has(#studio:not([hidden])) #assistant-launcher{position:static;margin:12px auto 24px;box-shadow:none;width:max-content;max-width:calc(100% - 24px)}

/* Room dimensions: each caption and input share one row and aligned columns. */
#room-form>.fields.three{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:14px}#room-form>.fields.three>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,110px);align-items:center;gap:10px;margin:0;font-size:13px}#room-form>.fields.three>label>span{white-space:nowrap}#room-form>.fields.three input{margin:0;min-height:40px}
@media(max-width:650px){#room-form>.fields.three>label{grid-template-columns:minmax(0,1fr) minmax(100px,140px);font-size:14px}}

#materials-pricing{border-collapse:collapse;width:100%;min-width:850px;font-size:13px;line-height:1.45}#materials-pricing th{background:#304c3d;color:#fff;position:sticky;top:0;text-align:left;padding:12px}#materials-pricing td{padding:12px;border-bottom:1px solid #dedfd5;vertical-align:top}#materials-pricing th:first-child{min-width:180px}#materials-pricing th:nth-child(2){min-width:150px}#materials-pricing th:last-child{min-width:190px}#materials-pricing td:nth-child(n+4):nth-child(-n+6),#materials-pricing th:nth-child(n+4):nth-child(-n+6){text-align:right;white-space:nowrap}#materials-dialog h3{margin-top:28px}#project-price{line-height:1.5}

.project-footer{align-items:flex-end;border-top:1px solid var(--line);flex-wrap:wrap}.project-overview{min-width:0;flex:1 1 320px}.project-price-card{margin-top:14px;padding:16px 20px;border:1px solid #d2dbcd;border-radius:8px;background:#eff3e9;max-width:560px}.project-price-card>span{display:block;font-size:14px;color:#435b4c}.project-footer .project-price-amount{display:block;font-size:34px;line-height:1.2;font-weight:650;letter-spacing:-.7px;margin-top:5px;font-variant-numeric:tabular-nums}.project-footer #project-price-note{font-size:13px;line-height:1.5;max-width:62ch}.project-price-card[data-complete=false]{background:#f6f3e9}.project-price-card[data-complete=false] #project-price-note{color:#795e29}@media(max-width:820px){.project-footer{align-items:stretch;flex-direction:column}.project-overview{flex:initial;width:100%}.project-price-card{max-width:none}.project-footer .project-price-amount{font-size:32px}.project-actions{justify-content:flex-start}}@media(max-width:480px){.project-price-card{padding:15px 16px}.project-footer .project-price-amount{font-size:30px}}
/* Product choices stay inside cabinet properties, away from the room canvas. */
#accessories-controls{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#f4f4ed}.accessory-label{font-size:13px;font-weight:600;margin:16px 0 7px}.accessory-current,.accessory-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px;border:1px solid #d3d9ce;background:#fffefb;border-radius:5px;min-width:0}.accessory-current>span,.accessory-option>span{min-width:0;flex:1;overflow-wrap:anywhere}.accessory-current>b{font-size:18px}.accessory-current img,.accessory-option img{width:58px;height:58px;object-fit:contain;background:white;border-radius:4px;flex:none}.accessory-current small,.accessory-option small{display:block;font-size:11px;font-weight:400;line-height:1.4;color:#69736c;margin-top:4px}.accessory-current{font-size:13px}.accessory-dropdown{padding:10px;background:#eaece2;border:1px solid #c6cec0;border-radius:0 0 6px 6px}.accessory-dropdown input{margin:0 0 10px}.accessory-results{max-height:360px;overflow:auto;overscroll-behavior:contain;display:grid;gap:7px}.accessory-option{font-size:12px}.accessory-option[aria-pressed=true]{outline:2px solid #456749;outline-offset:-2px}.accessory-option:hover{background:#f1f5ec}.accessory-reset{text-align:left;padding:10px;background:white;border-radius:4px;font-size:12px}.accessory-results p{font-size:13px;padding:10px}.accessory-select+.accessory-select{margin-top:12px}@media(max-width:650px){#accessories-controls{padding:12px}.accessory-results{max-height:330px}.accessory-option img,.accessory-current img{width:48px;height:48px}.accessory-option{padding:9px;gap:9px}}
.accessory-photo{display:block;flex:none;padding:0;border-radius:4px;cursor:zoom-in}.accessory-choice{flex:1;text-align:left;min-width:0;padding:0;overflow-wrap:anywhere}.accessory-choice[aria-pressed=true]{box-shadow:inset 3px 0 #456749;padding-left:8px}.accessory-choice strong{font-size:12px}.accessory-family{margin:10px 0 3px;font-size:12px;color:#304c3d}.accessory-enlarged{position:fixed;inset:auto;margin:0;padding:12px;background:#fffefb;color:#29392f;border:1px solid #bcc6b6;border-radius:9px;box-shadow:0 10px 45px #17281c50;max-height:calc(100dvh - 32px);overflow:auto}.accessory-enlarged>img{display:block;width:100%;height:245px;object-fit:contain;background:white}.accessory-enlarged>p{font-size:13px;line-height:1.45;margin:10px 0}.accessory-enlarged .quiet{font-size:12px}.accessory-option:focus-within{outline:2px solid #456749;outline-offset:-2px}

.accessory-variants{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.accessory-variants label{display:flex;flex-direction:column;gap:5px;font-size:12px}.accessory-variants select{width:100%;min-width:0}.accessory-variant-note{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}@media(max-width:440px){.accessory-variants{grid-template-columns:1fr}}

/* Front editing keeps the actual handle and front dimensions on one plane. */
#handle-position-board{display:block;width:100%;height:320px;max-height:45vh;background:#eeece7;border:1px solid #d4d6cd;border-radius:8px;touch-action:none;outline-offset:3px;margin:12px 0}
.handle-editor-front{stroke:#737d72;stroke-width:.16}
.handle-editor-bar{fill:#343a38;stroke:#aab0a8;stroke-width:.12;pointer-events:none}
.handle-editor-hit{fill:transparent;stroke:transparent;cursor:grab;pointer-events:all}
#handle-drag-target:active .handle-editor-hit{cursor:grabbing;stroke:#b18b48;stroke-width:.3}
#handle-drag-target:focus-visible .handle-editor-bar{stroke:#b18b48;stroke-width:.5}
@media(max-width:600px){#handle-free-editor .fields{grid-template-columns:1fr}#handle-position-board{height:290px}}

.release-update{position:fixed;z-index:80;bottom:20px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:680px;padding:16px;background:#fbf9f1;border:1px solid #b18b48;box-shadow:0 5px 24px #0003;color:#2e4335}.release-update[hidden]{display:none}.release-update button{margin:8px 0 0;width:100%}

.handle-orientation-buttons{display:flex;gap:10px;margin:12px 0}.handle-orientation-buttons button{flex:1;border:1px solid #bac5b1;border-radius:6px;padding:11px;background:#f4f4eb;font-size:13px}.handle-orientation-buttons button[aria-pressed=true]{background:#304c3d;color:#fff;border-color:#304c3d}.handle-editor-guides{pointer-events:none}.handle-editor-guides circle{fill:#a69a7a;opacity:.55}.handle-editor-guides .active{fill:#c7943e;opacity:1;stroke:#c7943e;stroke-width:.8}
