*{box-sizing:border-box}.mf-3d-page{margin:0;background:#eef2ed;color:#20382c;font-family:Arial,sans-serif;overflow:hidden}.mf3d-top{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#153d2d;color:#fff}.mf3d-brand{color:#fff;text-decoration:none;font-size:22px;font-weight:700;letter-spacing:.02em}.mf3d-brand small{display:block;font-size:9px;letter-spacing:.18em;font-weight:500;opacity:.72}.mf3d-top-actions{display:flex;gap:9px;align-items:center}.mf3d-top-actions a,.mf3d-top-actions button{color:#fff}.mf3d-shell{display:grid;grid-template-columns:260px minmax(520px,1fr) 330px;height:calc(100vh - 66px)}.mf3d-left,.mf3d-right{background:#f7f5ef;padding:18px;overflow:auto}.mf3d-left{border-right:1px solid #d7ddd5}.mf3d-right{border-left:1px solid #d7ddd5}.mf3d-left h2,.mf3d-right h2{font-size:18px;margin:0 0 12px}.mf3d-section-head{display:flex;align-items:center;justify-content:space-between}.mf3d-left section+section{margin-top:28px}.mf3d-projects{display:grid;gap:7px}.mf3d-project{width:100%;text-align:left;padding:10px;border:1px solid #d6ddd5;background:#fff;border-radius:8px}.mf3d-project.active{border-color:#153d2d;background:#e8efe9}.mf3d-project strong,.mf3d-project span{display:block}.mf3d-project span{font-size:12px;opacity:.65;margin-top:3px}.mf3d-module{width:100%;padding:12px;text-align:left;border:1px solid #153d2d;border-radius:9px;background:#e8efe9}.mf3d-module strong,.mf3d-module span{display:block}.mf3d-module span{font-size:12px;margin-top:4px}.mf3d-stage{min-width:0;display:flex;flex-direction:column;background:#dfe9e1}.mf3d-stagebar{height:56px;background:#fff;display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid #d6ddd5}.mf3d-stagebar input{flex:1;border:0;font-size:16px;font-weight:700;padding:8px;background:transparent}.mf3d-segment{display:flex;gap:4px}.mf3d-canvas-wrap{position:relative;flex:1;min-height:350px}.mf3d-canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none}.mf3d-overlay{position:absolute;top:14px;left:14px;display:flex;gap:6px}.mf3d-overlay span{background:rgba(255,255,255,.88);padding:6px 9px;border-radius:999px;font-size:12px}.mf3d-help{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:rgba(21,61,45,.84);color:#fff;padding:6px 10px;border-radius:999px;font-size:11px}.mf3d-cutlist{background:#fff;border-top:1px solid #d6ddd5;padding:10px 14px;max-height:34vh;overflow:auto}.mf3d-cutlist summary{font-weight:700;cursor:pointer}.mf3d-cutlist table{width:100%;border-collapse:collapse;margin-top:8px}.mf3d-cutlist th,.mf3d-cutlist td{padding:5px 7px;border-bottom:1px solid #e4e8e3;text-align:left;font-size:12px}.mf3d-right label{display:block;font-size:12px;font-weight:700;margin:10px 0}.mf3d-right input,.mf3d-right select{width:100%;margin-top:5px;padding:9px;border:1px solid #cfd8cf;border-radius:7px;background:#fff}.mf3d-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.mf3d-material{margin-top:18px;padding-top:14px;border-top:1px solid #d6ddd5}.mf3d-material h3{margin:0 0 6px}.mf3d-results{display:grid;gap:4px;margin-top:5px}.mf3d-results button{font-size:11px;text-align:left;padding:7px;background:#fff;border:1px solid #d6ddd5;border-radius:6px}.mf3d-side-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:20px}.mf3d-status{min-height:22px;font-size:12px}.muted{font-size:12px;opacity:.65}button{cursor:pointer;border:0;border-radius:7px;background:#153d2d;color:#fff;padding:9px 12px;font-weight:700}button.secondary{background:#e6ebe6;color:#20382c}.mf3d-top-actions a{font-size:13px;text-decoration:none;padding:8px}@media(max-width:1100px){.mf3d-shell{grid-template-columns:220px minmax(430px,1fr) 280px}.mf3d-grid{grid-template-columns:1fr}}.mf3d-modules{display:grid;gap:7px}.mf3d-modules .mf3d-module{background:#fff;border-color:#d2dbd3}.mf3d-modules .mf3d-module:hover{border-color:#153d2d;background:#edf3ee}.mf3d-right section+section{margin-top:18px}.mf3d-right #item-controls{padding-top:14px;border-top:1px solid #d6ddd5}.mf3d-right #item-controls[hidden]{display:none}.mf3d-stagebar{min-height:56px;height:auto}.mf3d-left,.mf3d-right{scrollbar-gutter:stable}.mf3d-project.active strong{color:#153d2d}@media(max-width:900px){.mf-3d-page{overflow:auto}.mf3d-top{position:sticky;top:0;z-index:5}.mf3d-shell{display:flex;flex-direction:column;height:auto}.mf3d-left,.mf3d-right{border:0}.mf3d-stage{min-height:70vh}.mf3d-canvas-wrap{min-height:55vh}.mf3d-grid{grid-template-columns:1fr 1fr}.mf3d-top-actions{gap:4px}.mf3d-top-actions a{display:none}}.mf3d-view-shell{display:grid;grid-template-columns:minmax(600px,1fr) 300px;height:calc(100vh - 66px)}.mf3d-view-page .mf3d-stage{min-height:0}.mf3d-view-page .mf3d-right{overflow:auto}.mf3d-view-page #readonly-label{font-size:12px;opacity:.8}@media(max-width:900px){.mf3d-view-shell{display:flex;flex-direction:column;height:auto}.mf3d-view-page .mf3d-stage{min-height:70vh}}.mf3d-share{margin-top:10px;padding:10px;border:1px solid #d6ddd5;border-radius:8px;background:#fff}.mf3d-share label{margin:0}.mf3d-share input{font-size:11px}.mf3d-share button{margin-top:7px;width:100%}.mf3d-rule{padding:10px 11px;margin-bottom:10px;border-radius:8px;background:#e8efe9;border:1px solid #cbd9ce}.mf3d-rule strong,.mf3d-rule span{display:block}.mf3d-rule strong{font-size:12px;color:#153d2d}.mf3d-rule span{font-size:11px;line-height:1.35;margin-top:3px;opacity:.78}.mf3d-module-group{display:grid;gap:6px}.mf3d-module-group+.mf3d-module-group{margin-top:13px;padding-top:12px;border-top:1px solid #dde3dc}.mf3d-module-group h3{margin:0 0 2px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#68736b}.mf3d-template-info{margin:-3px 0 9px;padding:8px 9px;border-radius:7px;background:#eef3ee;font-size:11px;line-height:1.4;color:#536158}.mf3d-facade-rule{margin:12px 0 3px;padding:9px;border:1px solid #c9d7cc;border-radius:8px;background:#e8efe9}.mf3d-facade-rule strong,.mf3d-facade-rule span{display:block}.mf3d-facade-rule strong{font-size:12px;color:#153d2d}.mf3d-facade-rule span{font-size:11px;margin-top:3px}.mf3d-right select:disabled{opacity:.7;background:#eef1ed}.mf3d-module[data-template]{position:relative}.mf3d-module[data-template]::after{content:'+';position:absolute;right:10px;top:10px;font-size:15px;color:#55705d}
/* kitchen module templates: stage 01 */

/* module workspace UX v2 */
.mf3d-shell{grid-template-columns:300px minmax(520px,1fr) 360px}
.mf3d-section-sub{margin:-7px 0 12px;font-size:11px;line-height:1.4;color:#68736b}
.mf3d-catalog-tools{display:grid;gap:8px;margin-bottom:10px}
.mf3d-catalog-tools input{width:100%;padding:10px 11px;border:1px solid #cfd8cf;border-radius:8px;background:#fff;color:#20382c}
.mf3d-tabs{display:flex;flex-wrap:wrap;gap:5px}
.mf3d-tabs button{padding:6px 9px;border:1px solid #d4ddd5;background:#fff;color:#536158;font-size:11px}
.mf3d-tabs button.active{background:#153d2d;border-color:#153d2d;color:#fff}
.mf3d-modules .mf3d-module{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;min-height:62px;padding:9px 11px}
.mf3d-module-copy{min-width:0}
.mf3d-module-copy strong{padding-right:22px;font-size:13px;line-height:1.2}
.mf3d-module-copy span{font-size:11px;line-height:1.3;color:#6c766e}
.mf3d-module-icon{position:relative;width:40px;height:42px;border:1.5px solid #75907c;border-radius:4px;background:#f2f6f2}
.mf3d-module-icon::before,.mf3d-module-icon::after{content:"";position:absolute;background:#75907c}
.mf3d-module-icon.base::before{left:4px;right:4px;top:7px;height:1px;box-shadow:0 12px 0 #75907c,0 24px 0 #75907c}
.mf3d-module-icon.base::after{left:50%;top:7px;bottom:4px;width:1px;opacity:.55}
.mf3d-module-icon.wall{height:36px;margin-block:3px}
.mf3d-module-icon.wall::before{left:4px;right:4px;top:50%;height:1px}
.mf3d-module-icon.wall::after{left:50%;top:4px;bottom:4px;width:1px;opacity:.55}
.mf3d-module-icon.tall{height:48px;margin-block:-3px}
.mf3d-module-icon.tall::before{left:4px;right:4px;top:16px;height:1px;box-shadow:0 14px 0 #75907c}
.mf3d-module-icon.tall::after{left:50%;top:4px;bottom:4px;width:1px;opacity:.55}
.mf3d-module-icon.other::before{left:5px;right:5px;bottom:8px;height:1px;box-shadow:0 -10px 0 #75907c}
.mf3d-module-icon.other::after{left:7px;right:7px;top:7px;height:7px;border:1px solid #75907c;background:transparent}
.mf3d-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#78827b;margin-bottom:3px}
.mf3d-item-head-actions{display:flex;gap:5px}
.mf3d-item-head-actions button{padding:7px 8px;font-size:11px}
.mf3d-control-card{margin:10px 0;padding:11px;border:1px solid #d8dfd8;border-radius:10px;background:#fff}
.mf3d-control-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.mf3d-control-title strong{font-size:13px;color:#153d2d}
.mf3d-control-title span{font-size:10px;color:#7c857e}
.mf3d-control-card label{margin:7px 0}
.mf3d-quick-widths{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.mf3d-quick-widths button{padding:5px 8px;font-size:10px;border:1px solid #d7ded7}
.mf3d-quick-widths button.active{background:#153d2d;color:#fff;border-color:#153d2d}
.mf3d-facade-summary{margin-top:9px;padding:8px 9px;border-radius:7px;background:#eef3ee;border:1px solid #d5dfd6}
.mf3d-facade-summary strong,.mf3d-facade-summary span{display:block}
.mf3d-facade-summary strong{font-size:11px;color:#153d2d}
.mf3d-facade-summary span{margin-top:3px;font-size:11px;line-height:1.45;color:#536158}
@media(max-width:1180px){.mf3d-shell{grid-template-columns:260px minmax(430px,1fr) 320px}}
@media(max-width:900px){.mf3d-shell{display:flex}.mf3d-left,.mf3d-right{width:100%}.mf3d-tabs{position:sticky;top:0;background:#f7f5ef;padding:4px 0;z-index:2}}

/* staging module UX deploy */

/* real module thumbnails */
.mf3d-module-thumb{width:64px;height:52px;object-fit:cover;border:1px solid #d5ddd6;border-radius:7px;background:#f5f7f3;display:block}
.mf3d-modules .mf3d-module{grid-template-columns:64px 1fr}
.mf3d-module[data-template]::after{top:9px}

/* direct OBJ export note */
.mf3d-export-note{position:absolute;right:14px;bottom:12px;max-width:360px;padding:6px 9px;border-radius:8px;background:rgba(255,255,255,.88);color:#536158;font-size:10px;line-height:1.35;pointer-events:none}
@media(max-width:900px){.mf3d-export-note{display:none}}

/* Compact client album; modal keeps the saved scene stable while exporting. */
.mf-sales-dialog{border:1px solid #d8dfd6;border-radius:18px;padding:26px;width:min(860px,92vw);max-height:92vh;overflow:auto;background:#f6f3ed;color:#19382e;box-shadow:0 20px 80px #0004}
.mf-sales-dialog::backdrop{background:#172d2588}
.mf-sales-heading{display:flex;justify-content:space-between;align-items:start;gap:24px}.mf-sales-heading h2{margin:6px 0;font-size:27px}.mf-sales-heading small{letter-spacing:2px}.mf-sales-heading button{font-size:24px;padding:2px 12px}
.mf-sales-dialog p{line-height:1.5}.mf-sales-dialog [data-message]{min-height:25px;font-size:14px;color:#58695f}
.mf-sales-dialog canvas{display:block;width:100%;height:auto;max-height:36vh;object-fit:contain;background:#ebece5;border-radius:10px}
.mf-sales-files{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.mf-sales-files label{font-weight:600}.mf-sales-files input{display:block;max-width:100%;margin-top:8px;font-size:13px}
.mf-sales-check{display:flex;align-items:start;gap:9px;margin:16px 0;font-size:14px;line-height:1.4}.mf-sales-check input{width:auto;flex:none;margin-top:3px}.mf-sales-actions{display:flex;justify-content:flex-end;margin-top:20px}.mf-sales-dialog button:disabled{opacity:.48;cursor:default}
.mf-kitchen-album{max-width:calc(100vw - 48px);width:min(940px,92vw)}.mf-kitchen-album .mf-sales-actions{flex-wrap:wrap;gap:10px;justify-content:flex-start}.mf-kitchen-album [hidden]{display:none!important}.mf-kitchen-album details{margin-top:24px}.mf-kitchen-album .presentation-download{padding:12px 16px;border-radius:8px;background:#19382e;color:white;text-decoration:none}
.mf-album-cover{position:relative;container-type:inline-size;width:min(100%,72vh);margin:14px auto 0;overflow:hidden;border-radius:8px}
.mf-album-cover canvas{height:auto;max-height:none;border-radius:0}
.mf-album-cover-price{position:absolute;right:3.8%;bottom:4.8%;padding-top:.32em;border-top:1px solid currentColor;color:#202020;font-family:inherit;font-size:clamp(10px,1.5cqw,16px);font-weight:400;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums}
.mf-album-cover-price[data-ink=light]{color:white}
.mf-album-pages{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 18px;padding:0;list-style:none;color:#58695f;font-size:12px}
.mf-album-style{padding:16px;border:1px solid #d8dfd6;border-radius:12px;background:#fff}.mf-album-style label{display:block;margin-bottom:8px;font-weight:600}.mf-album-style select{width:100%;padding:10px;border:1px solid #bdc9bf;border-radius:8px;background:#fff;color:#19382e;font:inherit}.mf-album-style p{margin:8px 0 0;font-size:13px;color:#58695f}
@media(max-width:600px){.mf-kitchen-album .mf-sales-actions>*{width:100%;box-sizing:border-box}}
@media(max-width:600px){.mf-sales-dialog{padding:18px}.mf-sales-files{grid-template-columns:1fr}.mf-sales-heading h2{font-size:23px}}
