:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243b36;background:#f5f6f2;font-synthesis:none;--green:#153c35;--accent:#c99450;--muted:#71817b;--line:#e2e7df;--white:#fff;--danger:#ad4536}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{border:1px solid var(--line);background:white;color:var(--green);border-radius:8px;padding:10px 15px;font-weight:600;transition:background .15s}button:hover{background:#f0f3ee}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#25584c}button.gold{background:#e7bf83;border-color:#e7bf83;color:#25372c}button.danger{color:var(--danger)}button.small{font-size:12px;padding:7px 10px}button.icon{padding:8px;line-height:1}button.ghost{border-color:transparent;background:transparent}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--muted)}h1,h2,h3,h4,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:8px;font-weight:650}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:16px}small{font-size:12px}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--green);color:#d8e4dc;padding:30px 16px 20px;position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:11px;padding:0 13px 30px;color:#fff}.brand img{width:36px}.brand strong{font-size:23px;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#b4c7ba;margin-top:2px}.nav-label{font-size:9px;letter-spacing:1.5px;color:#9bb7a8;margin:22px 13px 8px}.nav{display:flex;flex-direction:column;gap:4px}.nav button{display:flex;align-items:center;gap:12px;background:transparent;border:0;color:#c3d4c9;text-align:left;border-radius:7px;font-size:13px;padding:12px 14px;font-weight:500}.nav button:hover{background:#204a40}.nav button.active{background:#31594b;color:#fff}.nav .ico{font-size:17px;width:20px;text-align:center;color:#dfbe86}.side-bottom{margin-top:auto;padding:30px 12px 0}.local-indicator{font-size:11px;color:#b5cdbb;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;background:#8ed0a5;border-radius:50%;display:inline-block}.workspace{grid-column:2;min-width:0}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:20px}.breadcrumb{font-size:12px;color:var(--muted)}.user-chip{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#edf1e8;color:#426044;font-weight:700}.top-right{display:flex;gap:18px;align-items:center}.version{font-size:10px;border:1px solid var(--line);padding:5px 8px;border-radius:20px;color:var(--muted)}main{padding:34px;max-width:1680px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-head p{font-size:13px;color:var(--muted);margin:0}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hero{background:#e9ede4;border:1px solid #dde3d5;border-radius:12px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;margin-bottom:25px;min-height:165px}.hero h2{font-size:27px;color:var(--green);margin:12px 0}.hero p{font-size:13px;color:#617366;max-width:450px;line-height:1.7;margin-bottom:0}.hero-art{width:210px;opacity:.8}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 22px}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.stat strong{font-size:29px;font-weight:650;display:block;margin:14px 0 8px;letter-spacing:-1px}.stat small{font-size:11px;color:var(--muted)}.stat .stat-icon{background:#eff2ea;border-radius:8px;padding:7px;color:#5c795b;font-size:16px}.panel{border:1px solid var(--line);background:white;border-radius:11px;overflow:hidden;margin-bottom:22px}.panel-pad{padding:23px}.panel-title{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.panel-title h3{margin:0}.panel-title small{display:block;margin-top:6px}.grid2{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:22px}.grid-equal{display:grid;grid-template-columns:1fr 1fr;gap:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}thead{background:#f7f8f4;color:#728076;font-size:10px;text-transform:uppercase;letter-spacing:.6px}th{padding:13px 16px;font-weight:600}td{padding:16px;border-top:1px solid #edf0e9}td.wrap{white-space:normal;min-width:180px;max-width:320px}td strong{font-size:12px;font-weight:600}td small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f6f8f1}.badge{padding:5px 9px;border-radius:5px;background:#edf2e9;color:#4c6c49;font-size:10px;display:inline-block;white-space:nowrap}.badge.amber{background:#fbf0da;color:#8f682a}.badge.red{background:#fbe9e4;color:#9d483a}.badge.gray{background:#f0f1ed;color:#727c74}.empty{padding:45px 22px;text-align:center;color:var(--muted);white-space:normal}.empty .empty-icon{font-size:32px;color:#92a089;margin-bottom:14px}.empty h3{color:#405a4d;margin:10px 0}.empty p{font-size:12px;line-height:1.8;max-width:400px;margin:0 auto 20px}.quick{display:flex;align-items:center;gap:14px;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:18px 23px;font-size:12px}.quick:last-child{border-bottom:0}.quick .ico{font-size:20px;background:#f0f3eb;padding:10px;border-radius:8px}.quick small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.quick .arrow{margin-left:auto;color:var(--muted)}.note{font-size:12px;line-height:1.7;background:#f5f7ef;padding:14px 17px;border:1px solid #e1e7d5;border-radius:7px;color:#5f7254;margin-bottom:18px}.note.warning{background:#fff7e9;border-color:#f0dfba;color:#8a662d}.note.error{background:#fff0ed;border-color:#f0cfc4;color:#a14535}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.search{min-width:250px;max-width:450px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#53665c}.field input,.field select,.field textarea,input.search{border:1px solid #dbe1d6;border-radius:7px;padding:10px 12px;background:#fff;color:#263e32;width:100%;min-height:40px}.field input:focus,.field select:focus,.field textarea:focus,input.search:focus{border-color:#5b7f63}.field small{font-size:10px;line-height:1.5}.field textarea{min-height:80px;resize:vertical}.span2{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:12px;color:#53665c}.check input{accent-color:var(--green);width:16px;height:16px}.tabs{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:0}.tabs button{white-space:nowrap;border:0;border-radius:0;background:transparent;font-size:12px;padding:15px 18px;border-bottom:2px solid transparent;color:var(--muted)}.tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:650}.project-summary{display:flex;gap:20px;font-size:11px;color:var(--muted);margin-top:12px;flex-wrap:wrap}.model-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.model-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.model-preview{background:#f1f3eb;padding:20px;height:155px;display:flex;align-items:center;justify-content:center}.model-preview svg{max-height:120px;width:100%}.model-info{padding:18px}.model-info h3{font-size:13px;margin-bottom:8px}.model-info p{font-size:11px;color:var(--muted);margin-bottom:16px}.module-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:24px}.drawing-box{background:#f4f5ee;border:1px solid var(--line);border-radius:10px;padding:20px;min-height:300px;display:grid;place-items:center}.drawing-box svg{max-height:450px;width:100%}.drawing-tabs{display:flex;gap:5px;margin-bottom:10px}.edge-box{display:inline-grid;grid-template-columns:15px 48px 15px;grid-template-rows:15px 30px 15px;gap:2px;align-items:center;justify-items:center}.edge-toggle{width:100%;height:100%;padding:0;border:1px solid #cad4c4;background:#edf0e7;border-radius:2px}.edge-toggle.on{background:#b67a32;border-color:#b67a32}.edge-toggle:nth-child(1){grid-column:2;grid-row:1}.edge-toggle:nth-child(2){grid-column:2;grid-row:3}.edge-toggle:nth-child(3){grid-column:1;grid-row:2}.edge-toggle:nth-child(4){grid-column:3;grid-row:2}.edge-center{grid-column:2;grid-row:2;font-size:8px;background:#e7e0cf;padding:8px 4px}.piece-edges{display:inline-block;font-size:10px;letter-spacing:3px;color:#a47a42}.total-card{background:var(--green);color:#e5eddf;border-radius:10px;padding:24px}.total-card .amount{font-size:34px;font-weight:650;margin:18px 0 12px;color:#fff;letter-spacing:-1px}.total-row{display:flex;justify-content:space-between;gap:20px;font-size:12px;padding:10px 0;border-bottom:1px solid #3b5b49}.total-card .muted{color:#bed0bd}.cut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}.board{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.board svg{width:100%;height:350px;margin-top:15px}.board h3{font-size:13px}.kanban{display:grid;grid-template-columns:repeat(7,minmax(190px,1fr));gap:14px;overflow:auto;padding-bottom:14px}.kanban-col{background:#eaece4;border-radius:8px;padding:13px;min-height:240px}.kanban-col>h3{font-size:12px;margin-bottom:17px}.task{background:#fff;border:1px solid #dbe2d3;border-radius:7px;padding:14px;margin-bottom:12px;font-size:12px}.task p{font-size:10px;color:var(--muted);line-height:1.7}.task select{width:100%;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:10px;padding:6px}.progress{height:5px;border-radius:4px;background:#edf0e6;overflow:hidden}.progress i{display:block;height:100%;background:#839d6b}.terms{white-space:pre-wrap;font-size:12px;line-height:1.8;background:#f7f8f4;padding:20px;border-radius:8px;max-height:55vh;overflow:auto}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f7f8f3}.auth-story{padding:70px;background:var(--green);color:#d7e2d5;display:flex;flex-direction:column;justify-content:space-between}.auth-story .brand{padding:0}.auth-story h1{font-size:50px;color:#fff;line-height:1.15;max-width:470px;margin:30px 0}.auth-story p{font-size:15px;line-height:1.9;max-width:400px;color:#b7ccbb}.auth-story svg{width:100%;max-height:250px}.auth-form{max-width:460px;width:100%;margin:auto;padding:50px 35px}.auth-form h2{font-size:29px;margin:16px 0 10px}.auth-form>p{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:30px}.auth-form form{display:flex;flex-direction:column;gap:18px}.auth-form button.primary{padding:13px}.auth-foot{font-size:11px;margin-top:25px;line-height:1.8;color:var(--muted)}dialog{width:min(860px,94vw);max-height:91vh;border:1px solid #dce2d3;border-radius:13px;padding:0;color:#263e32;box-shadow:0 25px 100px #102f2929}dialog::backdrop{background:#132e296b;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0;font-size:20px}.modal-body{padding:25px;overflow:auto;max-height:72vh}.modal-foot{padding:18px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fafbf7}.modal-body h3{margin-top:25px}.modal-body h3:first-child{margin-top:0}#toasts{position:fixed;right:25px;bottom:25px;z-index:1000;display:flex;flex-direction:column;gap:10px;max-width:400px}.toast{background:var(--green);color:#fff;border-radius:8px;padding:15px 20px;font-size:12px;box-shadow:0 6px 25px #142f2930;line-height:1.6}.toast.error{background:#943f32}.loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}.split-list{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.split-list:last-child{border-bottom:0}.mobile-menu{display:none}.compact-list td{padding:10px 13px}.full-list main{max-width:none;padding:20px}.full-list .sidebar,.full-list .topbar{display:none}.full-list .shell{display:block}.full-list .workspace{width:100%}.error-text{color:var(--danger);font-size:12px;line-height:1.7}.section-space{margin-top:25px}hr{border:0;border-top:1px solid var(--line);margin:22px 0}a{color:#365e45}footer{font-size:10px;color:#8a958a;display:flex;justify-content:space-between;padding:8px 0 12px;margin-top:24px}pre{white-space:pre-wrap}.row-fields{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px}
.brand img{width:44px;height:44px;object-fit:contain;flex-shrink:0}.report-brand{display:flex;align-items:center;gap:14px;margin-bottom:15px}.report-brand img{width:58px;height:58px;object-fit:contain}.report-brand h2{margin:0}.drawing-box svg[data-drawing-movable=true]{touch-action:none;user-select:none}
@media(min-width:1600px){main{padding:40px 45px}.hero{min-height:190px}}@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px}.stats{grid-template-columns:repeat(2,1fr)}main{padding:24px}.topbar{padding:0 24px}.grid2{grid-template-columns:1fr}.module-layout{grid-template-columns:1fr}.hero-art{width:150px}.auth-story{padding:40px}.auth-story h1{font-size:38px}}@media(max-width:700px){.shell{display:block}.sidebar{transform:translateX(-100%);width:224px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-block}.workspace{width:100%}.topbar{height:64px;padding:0 16px}.breadcrumb{display:none}.version{display:none}main{padding:22px 16px}.page-head{align-items:flex-start;flex-direction:column}h1{font-size:26px}.hero{padding:22px}.hero h2{font-size:23px}.hero-art{display:none}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.grid-equal{grid-template-columns:1fr}.form-grid,.form-grid.three{grid-template-columns:1fr}.auth{display:block}.auth-story{padding:25px}.auth-story>div:nth-child(2),.auth-story>small{display:none}.auth-form{padding:35px 24px}.user-chip .user-name{display:none}.modal-body{padding:18px}.row-fields{grid-template-columns:1fr 1fr}.search{min-width:0;width:100%}.tabs button{padding:13px 11px}.cut-grid{grid-template-columns:1fr}footer{line-height:1.7;gap:15px}}
@media print{.sidebar,.topbar,.tabs,.actions,.toolbar,.no-print,footer,dialog,#toasts{display:none!important}.shell{display:block}.workspace{width:100%}main{padding:0;max-width:none}body{background:white;color:black}.panel,.stat{break-inside:avoid;border-color:#ccc;box-shadow:none}.table-wrap{overflow:visible}table{font-size:9px;white-space:normal}td,th{padding:7px}thead{display:table-header-group}.board{break-inside:avoid}.cut-grid{display:block}.board svg{height:600px}.total-card{background:white;color:black;border:1px solid #aaa}.total-card .amount,.total-card .muted{color:black}.print-header{display:block!important}.badge{border:1px solid #aaa}.page-head{display:block}@page{size:A4;margin:13mm}}

/* Fluxo de módulos: lista, medidas, composição e editor ao vivo. */
.catalog-toolbar{display:grid;grid-template-columns:1fr 230px;gap:16px;margin-bottom:18px}.catalog-layout{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(250px,1fr);gap:24px;min-height:390px}.catalog-models{overflow:auto;max-height:55vh;border:1px solid #dce5ef;background:#fff}.catalog-model{display:block;width:100%;border:0;border-bottom:1px solid #edf1f5;border-radius:0;text-align:left;padding:13px 16px;font-weight:400}.catalog-model.selected{background:#e6edf4;color:#172b43;box-shadow:inset 4px 0 #c65300}.catalog-detail{padding:8px 16px;color:#172b43}.catalog-detail .drawing-box{height:220px}.catalog-detail p{line-height:1.8;font-size:13px}.guided-module-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1fr);gap:24px;align-items:start}.guided-fields{padding:6px 8px}.guided-fields fieldset{margin:18px 0;padding:14px;border:1px solid #dce5ef;border-radius:6px;display:grid;gap:12px}.guided-fields legend{font-weight:700;color:#172b43;font-size:12px}.guided-fields small{font-size:11px;line-height:1.7;color:#63758a}.basic-dimensions{display:grid;gap:12px;margin:18px 0}.basic-dimensions .field{display:grid;grid-template-columns:1fr 140px;align-items:center;gap:18px}.guided-fields>.field{margin-top:14px}.guided-preview{background:white;border:1px solid #dce5ef;padding:16px;border-radius:6px;position:sticky;top:0;min-width:0}.guided-preview>h3{color:#172b43}.draft-canvas-scroll{overflow:auto;max-height:65vh;min-height:260px;background:#f7f9fc;border:1px solid #e1e7ee;margin-top:12px}.draft-canvas-scroll svg{display:block;width:100%;height:auto;max-height:none;min-height:290px}.draft-inspector,.draft-additions{margin-top:12px;padding:12px;background:#f1f5f9;border:1px solid #dce5ef;border-radius:4px;display:grid;gap:10px}.draft-inspector strong,.draft-additions strong{font-size:12px;color:#172b43}.front-editor-row{display:grid;grid-template-columns:18px 1fr 1fr auto;gap:7px;align-items:end}.front-editor-row .field{min-width:0}.front-editor-row input,.front-editor-row select{min-width:0;width:100%}.guided-preview #draft-validation{font-size:12px;line-height:1.6;color:#9c3d1b;padding-top:10px}.guided-module-layout.editor-expanded{grid-template-columns:280px minmax(420px,1fr)}dialog.expanded-editor{max-width:98vw;width:1400px}.module-more{position:relative;margin-left:auto;font-size:12px}.module-more summary{cursor:pointer;padding:10px;border:1px solid #dce5ef;border-radius:4px}.module-more[open]>.actions{position:absolute;z-index:5;right:0;top:44px;padding:16px;width:220px;background:#fff;box-shadow:0 8px 30px #172b4326;border:1px solid #dce5ef}.module-table td{padding:13px 16px!important;height:auto!important;vertical-align:middle}.module-row{cursor:pointer}.module-row.selected{background:#e6edf4}.wizard-footer{display:flex;gap:14px;justify-content:space-between;margin-top:28px}.wizard-footer button{min-width:150px}.production-module-heading{background:#e6edf4;color:#172b43;font-size:12px;font-weight:700;line-height:1.7}
@media(max-width:1000px){.guided-module-layout,.guided-module-layout.editor-expanded{grid-template-columns:1fr}.guided-preview{position:static;order:-1}.draft-canvas-scroll{max-height:430px}.catalog-layout{grid-template-columns:minmax(220px,1fr) minmax(200px,1fr)}}
@media(max-width:760px){.sidebar{position:fixed;transform:translateX(-100%)}.workspace{margin-left:0;min-width:0}.mobile-menu{display:block!important}.catalog-toolbar,.catalog-layout{grid-template-columns:1fr}.catalog-models{max-height:240px}.catalog-detail .drawing-box{height:150px}.guided-module-layout{display:block}.guided-preview{margin-bottom:20px}.wizard-footer{flex-wrap:wrap}.wizard-footer button{min-width:0;flex:1}.guided-fields .form-grid{grid-template-columns:1fr 1fr}.guided-module-layout .front-editor-row{grid-template-columns:1fr 1fr}.topbar{gap:8px}.page-head{flex-wrap:wrap}}

.finish-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.finish-card{min-width:0;border:1px solid #dce5ef;padding:18px;background:#fff;border-radius:5px;display:grid;gap:14px}.finish-card legend{font-size:15px;font-weight:700;color:#172b43}.finish-follow{display:grid;gap:12px;margin:20px 0}.finish-card .field{min-width:0}.finish-card select{width:100%;min-width:0}@media(max-width:760px){.finish-cards{grid-template-columns:1fr}}

.review-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#172b43;color:white;border-radius:4px}.review-heading strong{font-size:14px}.review-heading button{background:#fff;color:#172b43}.review-tabs{margin-top:12px}@media(max-width:760px){.review-heading{align-items:flex-start;flex-direction:column}}

.print-drawing-grid{display:grid;grid-template-columns:7fr 3fr;gap:20px}.print-drawing-grid>div>svg{width:100%;height:440px}.print-drawing-grid aside svg{width:100%;height:200px}.production-list-page td{white-space:normal;font-size:10px;padding:8px}.production-list-page th{font-size:10px;white-space:normal}.production-list-page .table-wrap{overflow:visible}@media print{@page assembly{size:A4 landscape;margin:15mm}@page production{size:A4 portrait;margin:15mm}.production-drawing-page{page:assembly;break-before:page;break-after:page;box-shadow:none;border:0;padding:0}.production-list-page{page:production;break-after:page;box-shadow:none;border:0;padding:0}.print-drawing-grid>div>svg{height:125mm}.print-drawing-grid aside svg{height:58mm}.production-list-page table{width:100%;table-layout:fixed}.production-list-page td{overflow-wrap:anywhere}.production-list-page tr{break-inside:avoid}.production-list-page thead{display:table-header-group}}

.wardrobe-system-tools{display:grid;gap:9px;border:1px solid #dce5ef;border-radius:4px;background:#f7f9fc;padding:12px;margin-top:12px}.wardrobe-system-tools small{font-size:11px;line-height:1.6}.wardrobe-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:8px}.wardrobe-comparison h4{font-size:11px;text-align:center;color:#172b43}.draft-canvas-scroll .wardrobe-comparison svg{min-height:230px}.wardrobe-comparison section{min-width:0}

.door-hardware-summary{display:grid;gap:5px;border-top:1px solid #dce5ef;padding-top:9px}.door-hardware-summary strong{font-size:11px}.door-hardware-summary small{font-size:10px}
.wardrobe-model-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;height:100%;min-width:0;pointer-events:none}.wardrobe-model-preview section{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;gap:6px}.wardrobe-model-preview section>span{font-size:10px;font-weight:600;letter-spacing:.04em;color:#50665d}.wardrobe-model-preview svg{display:block;flex:1;min-height:0;width:100%;height:100%;max-height:100%}.model-preview:has(.wardrobe-model-preview){height:210px;padding:12px;background:linear-gradient(145deg,#f5f5ef,#e7ece5)}.catalog-detail .drawing-box:has(.wardrobe-model-preview){min-height:290px;padding:12px}.wardrobe-module-cell{display:flex;align-items:center;gap:18px}.wardrobe-module-thumbnail{width:160px;height:130px;flex:none;padding:8px;border:1px solid #dce5df;border-radius:8px;background:#f2f5ef}.wardrobe-module-thumbnail .wardrobe-model-preview{gap:6px}.wardrobe-module-thumbnail span{font-size:9px}@media(max-width:760px){.wardrobe-module-cell{gap:10px}.wardrobe-module-thumbnail{width:110px;height:100px}}
.module-drag-handle{float:left;margin:10px 12px 10px 0;cursor:grab;font-size:24px;color:#62796d;user-select:none}.module-drag-handle:active{cursor:grabbing}.draft-canvas-scroll svg{touch-action:none;user-select:none}.draft-inspector .field{font-size:12px}
.interior-selection{margin-top:12px}.interior-selection select{width:100%;min-width:0}.interior-motion{margin-top:12px;display:grid;gap:10px}.interior-motion-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.interior-motion-buttons button{min-height:44px;white-space:normal}.draft-inspector input{min-width:0;width:100%}
@media(max-width:1000px){.guided-preview{position:static}.guided-module-layout,.guided-fields,.guided-preview{min-width:0}.guided-fields .field input,.guided-fields .field select{max-width:100%}}
@media(max-width:760px){#modal{max-width:100vw;max-height:96dvh;margin:auto;border-radius:10px}#modal #modal-form{display:flex;flex-direction:column;max-height:94dvh;min-height:0}#modal .modal-body{flex:1;min-height:0;max-height:none;overflow:auto;padding:12px}#modal .modal-head{padding:12px 14px;flex:none}#modal .modal-head h2{font-size:18px}#modal .modal-foot{padding:10px;flex:none;flex-wrap:wrap}#modal button,#modal select{min-height:44px}#modal input,#modal select,#modal textarea{font-size:16px}#modal .guided-preview{padding:10px}.guided-fields{padding:0}.guided-fields fieldset{padding:10px}.basic-dimensions .field{grid-template-columns:minmax(0,1fr) 110px;gap:10px}.guided-fields .form-grid{grid-template-columns:minmax(0,1fr)}.draft-additions .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.draft-additions .actions button{min-width:0;white-space:normal}.guided-preview>.actions:first-of-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.draft-canvas-scroll{min-height:240px;max-height:55dvh}.draft-canvas-scroll svg{min-height:240px}.wardrobe-comparison{grid-template-columns:1fr}.module-drag-handle{padding:8px;min-width:44px;min-height:44px;margin:0;touch-action:pan-y}.module-table .wrap{min-width:200px}}
.module-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.module-row-actions button[aria-label]{min-width:36px;min-height:36px}@media(max-width:760px){.module-row-actions button{min-height:44px}.module-row-actions button[aria-label]{min-width:44px}}
@media(max-width:760px){.module-table{display:block;min-width:0;width:100%}.module-table thead{display:none}.module-table tbody{display:block}.module-table tr.module-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px;border-bottom:1px solid var(--line)}.module-table .module-row td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal}.module-table .module-row td:first-child,.module-table .module-row td:last-child{grid-column:1/-1}.module-table .module-row td:nth-child(2)::before{content:'Qtd.: ';color:var(--muted)}.module-table .module-row td:nth-child(3)::before{content:'A × L × P (mm)';display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.module-row-actions{justify-content:flex-end}.wardrobe-module-cell strong{min-width:0;overflow-wrap:anywhere}}
.draft-bay-navigation{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.draft-bay-navigation button{min-width:44px;min-height:44px}.draft-bay-navigation span{font-size:12px;color:#555}.draft-canvas-scroll{height:clamp(260px,48dvh,480px);min-height:0;max-height:none}.draft-canvas-scroll #draft-drawing{height:100%}.draft-canvas-scroll svg{height:100%;min-height:0;max-height:none;width:100%;display:block}.draft-canvas-scroll .wardrobe-comparison{height:100%}.draft-canvas-scroll .wardrobe-comparison section{min-height:0;display:flex;flex-direction:column}.draft-canvas-scroll .wardrobe-comparison svg{flex:1;min-height:0}.guided-preview>.interior-selection{margin-top:10px}.guided-preview>.wardrobe-system-tools,.guided-preview>.draft-additions{margin-top:14px}
@media(max-width:1000px){.guided-module-layout,.guided-module-layout.editor-expanded{display:flex;flex-direction:column}.guided-preview{order:-1;width:100%}.guided-fields{width:100%}}
@media(max-width:760px){.draft-canvas-scroll{height:clamp(250px,42dvh,380px);min-height:0;max-height:none}.draft-canvas-scroll svg{height:100%;min-height:0}.draft-canvas-scroll .wardrobe-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.draft-canvas-scroll .wardrobe-comparison h4{font-size:10px}}
#modal{overflow:hidden}#modal .modal-head,#modal .modal-foot{flex:none}.guided-preview>.draft-canvas-scroll{height:clamp(180px,calc(100dvh - 440px),420px)}
@media(min-width:761px){#modal #modal-form{display:flex;flex-direction:column;max-height:90dvh;min-height:0}#modal .modal-body{flex:1;min-height:0;max-height:none;overflow:auto}}
@media(max-width:760px){.guided-preview>.draft-canvas-scroll{height:clamp(220px,42dvh,380px)}}
.guided-fields input[readonly]{background:#f3f3f3;color:#333;border-style:dashed;cursor:default}.auto-width-note{font-size:12px;line-height:1.6;color:#555;margin:10px 0 14px}.quote-pdf-frame{width:100%;height:min(68vh,750px);border:1px solid var(--line);border-radius:8px;margin-top:16px;background:#fff}@media(max-width:700px){.quote-pdf-frame{height:62vh}}
.section-plan-controls{margin:14px 0;padding:14px;border:1px solid #dedede;border-radius:8px;background:#fafafa;min-width:0}.section-plan-controls legend{font-weight:700;font-size:13px}.section-plan-controls p{font-size:12px;line-height:1.6;margin:10px 0}.section-plan-controls .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-plan-controls input{min-width:0;width:100%}.draft-canvas-scroll [data-part-position]{cursor:grab!important}.draft-canvas-scroll [data-part-position]:active{cursor:grabbing!important}.draft-canvas-scroll [data-draft-resize]{cursor:ns-resize!important}@media(max-width:760px){.section-plan-controls .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Galeria de inclusão: cada imagem e nome pertencem ao mesmo cartão. */
.catalog-hint{margin:0 0 18px;color:#4c564f;font-size:13px;line-height:1.6}
.catalog-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.catalog-card{display:flex;flex-direction:column;min-width:0;width:100%;padding:0;border:1px solid #c8d0c8;border-radius:10px;overflow:hidden;background:#fff;color:#202520;text-align:center;cursor:pointer;box-shadow:0 2px 6px #132e290d;transition:border-color .15s,box-shadow .15s}
.catalog-card:hover{border-color:#b64b00;box-shadow:0 3px 12px #132e2920}
.catalog-card:focus-visible{outline:3px solid #b64b00;outline-offset:3px}
.catalog-card-image{display:flex;align-items:center;justify-content:center;height:170px;padding:12px;background:#f5f6f1;pointer-events:none;min-width:0}
.catalog-card-image svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.catalog-card-image .wardrobe-model-preview{height:100%;gap:6px}
.catalog-card-image .wardrobe-model-preview section>span{font-size:9px}
.catalog-card-name{display:flex;align-items:center;justify-content:center;flex:1;min-height:66px;width:100%;padding:12px 10px;background:#e7ece4;border-top:1px solid #c8d0c8;color:#18251d;font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}
.catalog-card:disabled{opacity:.65;cursor:wait}
@media(max-width:1000px){.catalog-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.catalog-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.catalog-card-image{height:150px;padding:8px}.catalog-card-name{min-height:76px;font-size:12px;padding:10px 8px}.catalog-card-image .wardrobe-model-preview{gap:3px}}

.shopping-mobile{display:none}.shopping-item{margin-bottom:14px}.shopping-item h3{font-size:16px;margin:12px 0;overflow-wrap:anywhere}.shopping-quantity{display:block;font-size:20px;margin:10px 0}.shopping-item p,.shopping-item small{font-size:12px;line-height:1.7;overflow-wrap:anywhere}@media(max-width:760px){.shopping-desktop{display:none}.shopping-mobile{display:block}}
/* Campos com contorno legível e destaque de foco, inclusive no toque. */
.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),
.field select,.field textarea,input.search{
 border-color:#718b83;
 box-shadow:0 2px 4px #153c3514;
 transition:border-color .15s,box-shadow .15s,background-color .15s;
}
.field input:not([type=hidden]):not(:disabled):hover,.field select:not(:disabled):hover,.field textarea:not(:disabled):hover,input.search:hover{border-color:#416b5d}
.field input:not([type=hidden]):focus,.field select:focus,.field textarea:focus,input.search:focus{
 border-color:#215d4b;outline:2px solid #215d4b;outline-offset:2px;
 box-shadow:0 0 0 5px #215d4b19;background-color:#fbfefc;
}
.field:focus-within{color:#153c35}
.field input:disabled,.field select:disabled,.field textarea:disabled{background:#eef1ef;border-color:#b3beb8;box-shadow:none;color:#65746c}
.finish-card{border-color:#91a99f;border-radius:9px;background:#f8fbf9;box-shadow:0 3px 9px #153c3512}
.finish-card:focus-within{border-color:#416b5d;box-shadow:0 3px 12px #153c3524}
.finish-card legend{padding:0 7px}
@media(prefers-reduced-motion:reduce){.field input,.field select,.field textarea,input.search{transition:none}}
/* Relevo comum, sem alterar o tamanho ou a posição dos controles. */
button{box-shadow:0 2px 5px #153c3526;transition:background .15s,box-shadow .15s,border-color .15s}
button:not(:disabled):hover{box-shadow:0 4px 9px #153c3533}
button:not(:disabled):active{box-shadow:inset 0 1px 3px #153c3529}
button:focus-visible{outline:2px solid #397c68;outline-offset:3px}
button:disabled{box-shadow:none}
.sidebar button{box-shadow:0 2px 5px #00000026}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.sidebar .product-brand{display:flex;flex-direction:column;align-items:center;gap:13px;padding:4px 10px 24px;text-align:center}
.sidebar .product-brand img{width:104px;height:104px;object-fit:contain;filter:drop-shadow(0 4px 7px #00000030)}
.sidebar .product-brand strong{display:block;color:#fff;font-size:21px;line-height:1.3;letter-spacing:.3px;font-weight:750}
.construction-rule-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr);gap:20px;margin-top:18px}
.construction-rule-layout section{min-width:0}.construction-rule-layout textarea{min-height:110px}
.construction-rule-preview{position:sticky;top:0;align-self:start;background:#fafbf9;border:1px solid #91a99f;border-radius:10px;padding:14px}
.construction-rule-preview svg{width:100%;max-height:430px}.rule-piece{border:1px solid #91a99f;border-radius:8px;padding:12px;margin:10px 0;box-shadow:0 2px 5px #153c3514}.rule-piece summary{cursor:pointer;font-weight:600;line-height:1.5}.rule-piece .form-grid{margin-top:14px}
@media(max-width:760px){.construction-rule-layout{display:flex;flex-direction:column}.construction-rule-preview{position:static;order:-1}.construction-rule-preview svg{max-height:260px}}
