.mmd-matt{--brown:#3B2A21;--mid:#7A5C45;--cream:#FFFDF9;--beige:#F7F4E8;--line:#E6DCCE;--ink:#3B2A21;max-width:1550px;margin:0 auto!important;padding:24px 16px 38px;color:var(--ink);font-family:inherit;background:transparent}
.mmd-matt *{box-sizing:border-box}.mmd-matt button,.mmd-matt input,.mmd-matt select{font:inherit}.mmd-matt button{cursor:pointer}.mmd-matt .lx-hero{text-align:center;padding:18px 12px 30px}.mmd-matt .lx-eyebrow,.mmd-matt .lx-kicker{font-size:11px;letter-spacing:.17em;font-weight:700;color:var(--mid)}.mmd-matt .lx-hero h1{font:400 clamp(33px,3.6vw,52px)/1.1 Georgia,serif;color:var(--brown);margin:12px 0}.mmd-matt .lx-hero em{font-style:italic}.mmd-matt .lx-hero p{margin:0;color:var(--mid);font-size:15px}.mmd-matt .lx-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:0 0 18px}.mmd-matt .lx-step{min-width:0;padding:13px 8px;border:1px solid var(--line);border-radius:12px;background:var(--cream);color:var(--brown);font-size:12px;font-weight:600}.mmd-matt .lx-step b{display:block;font-size:15px;font-weight:500;opacity:.6}.mmd-matt .lx-step.active{background:var(--brown);color:white;border-color:var(--brown)}.mmd-matt .lx-layout{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr) minmax(0,315px);gap:14px;align-items:start}.mmd-matt .lx-panel{min-width:0;border:1px solid var(--line);border-radius:17px;background:var(--cream);padding:19px}.mmd-matt .lx-summary{position:sticky;top:20px}.mmd-matt h2{font:400 27px/1.17 Georgia,serif;margin:8px 0 17px;color:var(--brown)}.mmd-matt h3{font:400 23px/1.15 Georgia,serif;color:var(--brown);margin:0 0 14px}.mmd-matt p{line-height:1.5}.mmd-matt .lx-muted{color:#75695e;font-size:13px}.mmd-matt .lx-summary-line{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.mmd-matt .lx-summary-line b{display:block;margin-bottom:3px}.mmd-matt .lx-summary-total{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 0 10px}.mmd-matt .lx-summary-total strong{font-size:21px}.mmd-matt .lx-summary small{font-size:11px;color:#71645d}.mmd-matt .lx-btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:11px;padding:11px 14px;border:1px solid var(--brown);font-weight:600;font-size:13px;transition:background .15s}.mmd-matt .lx-primary{color:#fff;background:var(--brown)}.mmd-matt .lx-primary:hover{background:#634737}.mmd-matt .lx-outline{background:white;color:var(--brown)}.mmd-matt .lx-outline:hover{background:var(--beige)}.mmd-matt button:disabled{opacity:.45;cursor:not-allowed}.mmd-matt .lx-foot-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 0}.mmd-matt #lx-foot-counter{color:#8b7768;font-size:12px}.mmd-matt .lx-legal{font-size:11px;color:#7e7067;text-align:center;margin:0 auto;max-width:950px}.mmd-matt .lx-mobile-progress{display:none}.mmd-matt .lx-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mmd-matt .lx-module-card{display:flex;align-items:center;text-align:left;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px;width:100%;color:var(--brown)}.mmd-matt .lx-module-card:hover{border-color:var(--mid);background:var(--beige)}.mmd-matt .lx-module-card span{flex:1;min-width:0}.mmd-matt .lx-module-card b{display:block;font-size:13px}.mmd-matt .lx-module-card small{display:block;font-size:11px;line-height:1.4}.mmd-matt .lx-module-card .lx-pict{flex:0 0 76px}.mmd-matt .lx-pict{height:52px;position:relative;border:1px solid var(--mid);border-radius:5px;background:#eee9e3;min-width:50px}.mmd-matt .lx-pict:before{content:"";position:absolute;left:8px;right:8px;top:9px;bottom:9px;border:2px solid #c5b5a2;border-radius:3px}.mmd-matt .lx-pict.side-left:after{content:"";position:absolute;left:2px;top:0;bottom:0;border-left:5px solid var(--brown)}.mmd-matt .lx-pict.side-right:after{content:"";position:absolute;right:2px;top:0;bottom:0;border-right:5px solid var(--brown)}.mmd-matt .lx-pict.rounded{border-radius:16px}.mmd-matt .lx-filter{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff;margin:0 0 12px}.mmd-matt .lx-group-button{display:inline-flex;margin:0 5px 6px 0;padding:7px 9px;border-radius:20px;border:1px solid var(--line);font-size:11px;background:#fff;color:var(--brown)}.mmd-matt .lx-group-button.active{background:var(--brown);color:#fff}.mmd-matt .lx-plan{padding:18px;min-height:195px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;background:var(--beige);border:1px dashed #c4b4a2;border-radius:13px;margin:12px 0 16px}.mmd-matt .lx-plan-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:65px;max-width:140px;border:1px solid #a58f7c;background:#e7ded3;border-radius:8px;padding:12px 8px;text-align:center;color:#4a382c}.mmd-matt .lx-plan-item b{font-size:15px}.mmd-matt .lx-plan-item small{font-size:10px}.mmd-matt .lx-plan-item .lx-plan-actions{display:flex;gap:5px}.mmd-matt .lx-plan-actions button{background:#fff;border:1px solid var(--line);font-size:11px;border-radius:5px;padding:4px 6px;color:var(--brown)}.mmd-matt .lx-box{border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:12px;background:#fff}.mmd-matt .lx-box h4{font-size:14px;margin:0 0 8px}.mmd-matt .lx-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mmd-matt .lx-preset{border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px;text-align:left;color:var(--brown)}.mmd-matt .lx-preset:hover{background:var(--beige)}.mmd-matt .lx-preset strong,.mmd-matt .lx-preset small{display:block}.mmd-matt .lx-preset small{font-size:11px}.mmd-matt .lx-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.mmd-matt .lx-swatch{position:relative;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#fff;padding:0;color:var(--brown)}.mmd-matt .lx-swatch.active{border-color:var(--brown)}.mmd-matt .lx-swatch img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#e8e4dd}.mmd-matt .lx-swatch small{display:block;font-size:9px;padding:4px;white-space:nowrap;overflow:hidden}.mmd-matt .lx-kv{display:flex;justify-content:space-between;gap:8px;font-size:13px;border-bottom:1px solid var(--line);padding:9px 0}.mmd-matt .lx-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mmd-matt .lx-choice{border:1px solid var(--line);border-radius:11px;background:white;text-align:left;padding:13px;color:var(--brown)}.mmd-matt .lx-choice.active{border:2px solid var(--brown);background:var(--beige);padding:12px}.mmd-matt .lx-choice b,.mmd-matt .lx-choice small{display:block}.mmd-matt .lx-choice small{color:#77675b;font-size:11px}.mmd-matt .lx-notice{padding:14px 16px;background:var(--beige);border-left:3px solid var(--mid);border-radius:7px;font-size:13px;color:var(--brown);margin:13px 0}.mmd-matt .lx-qty{width:65px;padding:7px;border:1px solid var(--line);border-radius:8px}.mmd-matt .lx-recap{white-space:pre-wrap;word-break:break-word;background:var(--beige);border:1px solid var(--line);border-radius:10px;padding:16px;font:12px/1.55 ui-monospace,monospace}.mmd-matt .lx-recap-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.mmd-matt label{font-weight:600;font-size:13px;display:block;margin-bottom:8px}.mmd-matt .lx-price{font-size:18px;font-weight:700}.mmd-matt .lx-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.mmd-matt .lx-empty{padding:24px 12px;text-align:center;color:#867362;font-size:14px}.mmd-matt .lx-feet-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.mmd-matt .lx-feet-color{border:2px solid transparent;border-radius:8px;background:white;padding:8px 4px;font-size:10px;color:var(--brown)}.mmd-matt .lx-feet-color.active{border-color:var(--brown)}.mmd-matt .lx-dot{display:block;width:28px;height:28px;border-radius:50%;border:1px solid #ccc;margin:0 auto 6px}.mmd-matt .lx-segment{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.mmd-matt .lx-segment button{padding:9px 5px;font-size:12px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--brown)}.mmd-matt .lx-segment button.active{background:var(--brown);color:#fff}.mmd-matt .lx-count{display:block;margin:10px 0;font-size:11px;color:var(--mid)}
@media(max-width:1100px){.mmd-matt .lx-layout{grid-template-columns:minmax(0,1fr) minmax(0,300px)}.mmd-matt .lx-summary{position:static;grid-column:1/-1;order:-1}.mmd-matt .lx-summary #lx-summary-content{display:flex;flex-wrap:wrap;gap:12px}.mmd-matt .lx-summary-line{border:none;max-width:250px}.mmd-matt .lx-summary-total{justify-content:flex-start;gap:25px}}
@media(max-width:760px){.mmd-matt{padding:15px 17px 26px}.mmd-matt .lx-steps{display:none}.mmd-matt .lx-mobile-progress{display:flex;gap:12px;align-items:center;padding:12px 15px;margin-bottom:12px;background:var(--brown);color:#fff;border-radius:10px;font-size:12px}.mmd-matt .lx-mobile-progress strong{font-size:13px}.mmd-matt .lx-hero{padding:14px 4px 22px}.mmd-matt .lx-layout{grid-template-columns:1fr}.mmd-matt .lx-summary{grid-column:1}.mmd-matt .lx-options{grid-row:auto}.mmd-matt .lx-panel{padding:15px}.mmd-matt .lx-card-list{grid-template-columns:1fr}.mmd-matt .lx-presets{grid-template-columns:1fr 1fr}.mmd-matt .lx-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}.mmd-matt .lx-feet-colors{grid-template-columns:repeat(4,minmax(0,1fr))}.mmd-matt .lx-foot-actions{position:sticky;bottom:0;background:#fffdf9eF;padding:10px 4px;z-index:3}.mmd-matt .lx-step-counter{display:none}}

/* V2 — Aperçu technique et propositions MATT */
.mmd-matt .lx-module-diagram{width:76px;height:76px;flex:0 0 76px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:7px}
.mmd-matt .lx-presets-bar{margin-bottom:10px}
.mmd-matt .lx-preset{min-height:95px;display:flex;flex-direction:column;gap:4px}
.mmd-matt .lx-preset span{font-weight:700;font-size:13px;color:var(--brown)}
.mmd-matt .lx-plan-visual{display:block;padding:12px;text-align:center;min-height:120px}
.mmd-matt .lx-plan-visual svg{width:100%;max-height:270px;overflow:visible;display:block}
.mmd-matt .lx-plan-visual>small{font-size:11px;color:#75695e}
.mmd-matt .lx-plan-manage{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.mmd-matt .lx-plan-manage .lx-plan-item{min-width:94px;width:100px;padding:7px 5px;gap:3px}
.mmd-matt .lx-plan-manage .lx-plan-item img{width:72px;height:64px;object-fit:contain;background:white;border-radius:5px}
@media(max-width:760px){.mmd-matt .lx-presets{grid-template-columns:1fr 1fr}.mmd-matt .lx-module-diagram{width:69px;height:69px;flex-basis:69px}}
@media(max-width:430px){.mmd-matt .lx-presets{grid-template-columns:1fr}.mmd-matt .lx-plan-manage .lx-plan-item{width:84px;min-width:84px}}
@media print{.mmd-matt .lx-steps,.mmd-matt .lx-options,.mmd-matt .lx-foot-actions,.mmd-matt .lx-presets-bar,.mmd-matt .lx-legal,.mmd-matt .lx-recap-actions{display:none!important}.mmd-matt .lx-layout{display:block}.mmd-matt .lx-panel{border:none;box-shadow:none}.mmd-matt .lx-summary{position:static}}

/* V3 — aperçu plan orthogonal */
.mmd-matt .lx-plan-visual{overflow:hidden}
.mmd-matt .lx-plan-visual svg{height:auto;max-height:420px;max-width:100%;margin:10px auto 5px}
.mmd-matt .lx-plan-heading{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;text-align:left;color:var(--brown);font-size:13px}
.mmd-matt .lx-plan-heading small{font-size:11px;color:#78675c}
.mmd-matt .lx-plan-warning{font-size:11px;text-align:left;color:#7c4a34;margin:5px 0}

/* V4 — navigation des propositions et aperçus légers, sans images lourdes */
.mmd-matt .lx-preset-preview{display:block;width:100%;height:72px;object-fit:contain;background:#faf7f2;border-radius:8px;margin-bottom:5px}
.mmd-matt .lx-preset-category{font-size:10px!important;color:#77675b!important;font-weight:600!important}
.mmd-matt .lx-preset-count{margin:4px 0 13px!important}
.mmd-matt .lx-preset-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:13px;margin:15px 0 24px}
@media(max-width:430px){.mmd-matt .lx-preset-preview{height:84px}}

/* V10 - Etape 1 : plan MATT adaptatif, sans modifier les finitions */
#mmd-matt-root .lx-matt-v10-svg{display:block;width:100%;max-width:100%;max-height:480px;min-height:150px;height:auto;object-fit:contain;margin:12px auto}
#mmd-matt-root .lx-v10-turn{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
#mmd-matt-root .lx-v10-turn>span{font-size:13px;font-weight:600;margin-right:5px}
@media(max-width:700px){#mmd-matt-root .lx-matt-v10-svg{max-height:330px;min-height:110px}#mmd-matt-root .lx-v10-turn .lx-group-button{font-size:12px;padding:8px}}

/* V11 étape 2 — commandes de configuration libre (scopées MATT) */
.mmd-matt .lx-edit-toolbar{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;margin:12px 0}
.mmd-matt .lx-edit-toolbar>b{display:block;color:var(--brown);font-size:14px;margin-bottom:10px}
.mmd-matt .lx-edit-toolbar .lx-edit-actions{display:flex;gap:7px;flex-wrap:wrap}
.mmd-matt .lx-edit-toolbar .lx-edit-actions .lx-btn{font-size:12px;padding:8px 10px}
.mmd-matt .lx-edit-toolbar p{margin:10px 0 0;line-height:1.45}
.mmd-matt .lx-plan-manage .lx-edit-item{position:relative;cursor:grab;outline:2px solid transparent;outline-offset:1px;min-width:115px;width:115px}
.mmd-matt .lx-plan-manage .lx-edit-item:focus-visible,.mmd-matt .lx-plan-manage .lx-edit-item.is-selected{outline-color:var(--brown);background:#f2e6d4}
.mmd-matt .lx-plan-manage .lx-edit-item.is-dragging{opacity:.45}
.mmd-matt .lx-plan-manage .lx-edit-item.is-drop-target{box-shadow:inset 0 0 0 3px #b79476}
.mmd-matt .lx-item-number{position:absolute;top:4px;left:7px;background:var(--brown);color:#fff;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;font-size:10px;font-weight:700}
.mmd-matt .lx-plan-manage .lx-edit-item .lx-plan-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
.mmd-matt .lx-plan-manage .lx-edit-item .lx-plan-actions button{padding:5px 0;min-width:0;font-size:12px;white-space:nowrap}
.mmd-matt .lx-plan-manage .lx-edit-item .lx-plan-actions button:first-child{font-size:8px}
@media(max-width:700px){.mmd-matt .lx-plan-manage .lx-edit-item{width:calc(50% - 5px);max-width:none;min-width:125px}.mmd-matt .lx-edit-toolbar .lx-edit-actions .lx-btn{flex:1 1 auto}}
@media(max-width:430px){.mmd-matt .lx-plan-manage .lx-edit-item{min-width:125px;width:calc(50% - 5px)}}

/* V12 étape 3 : vue de dessus plus lisible, sans impact sur le calcul */
#mmd-matt-root .lx-matt-v12-svg{display:block;width:100%;height:auto;max-height:520px;overflow:visible;margin:10px auto 12px}
#mmd-matt-root .lx-plan-module{pointer-events:none}
@media(max-width:700px){#mmd-matt-root .lx-matt-v12-svg{max-height:330px}}

/* V13 — Étape 4 : audit des options MATT (sans altérer les étapes précédentes) */
#mmd-matt-root .lx-option-audit{border:1px solid rgba(77,52,40,.18);background:#faf8f4;border-radius:12px;padding:14px 16px;margin:20px 0 12px}
#mmd-matt-root .lx-option-audit h3{margin:0 0 8px}
#mmd-matt-root .lx-option-audit p{margin:6px 0;line-height:1.5}
#mmd-matt-root button[disabled]{opacity:.48;cursor:not-allowed}

/* V14 — Étape 5 : récapitulatif structuré et impression séparée */
#mmd-matt-root .lx-recap-document{color:#3B2A21;background:#fff;border:1px solid #E6DCCE;border-radius:12px;padding:20px;font-size:13px}
#mmd-matt-root .lx-recap-head{border-bottom:1px solid #E6DCCE;margin-bottom:16px;padding-bottom:13px}
#mmd-matt-root .lx-recap-head small{font-size:10px;letter-spacing:.13em;font-weight:700;color:#7A5C45}
#mmd-matt-root .lx-recap-head h2{margin:8px 0 4px;font-size:27px}
#mmd-matt-root .lx-recap-head p{margin:0;color:#75695e;font-size:12px}
#mmd-matt-root .lx-recap-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
#mmd-matt-root .lx-recap-meta div{display:flex;flex-direction:column;gap:4px}
#mmd-matt-root .lx-recap-meta b{font-size:11px;color:#7A5C45}
#mmd-matt-root .lx-recap-document h3{font-size:18px;margin:15px 0 9px}
#mmd-matt-root .lx-recap-scroll{max-width:100%;overflow-x:auto}
#mmd-matt-root .lx-recap-table{width:100%;border-collapse:collapse;font-size:12px}
#mmd-matt-root .lx-recap-table th{background:#F7F4E8;text-align:left}
#mmd-matt-root .lx-recap-table th,#mmd-matt-root .lx-recap-table td{padding:8px 7px;border-bottom:1px solid #E6DCCE;vertical-align:top}
#mmd-matt-root .lx-num{text-align:right;white-space:nowrap}
#mmd-matt-root .lx-recap-totals>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #E6DCCE}
#mmd-matt-root .lx-recap-grand{font-size:17px;background:#F7F4E8;padding:14px!important;color:#3B2A21}
#mmd-matt-root .lx-recap-note{margin:12px 0 0;font-size:11px;line-height:1.5;color:#705d51}
#mmd-matt-root #lx-print-sheet{display:none}
@media(max-width:620px){#mmd-matt-root .lx-recap-document{padding:12px}#mmd-matt-root .lx-recap-meta{grid-template-columns:1fr}}
@media print{
 @page{size:A4;margin:15mm}
 body:has(#mmd-matt-root) *{visibility:hidden!important}
 body:has(#mmd-matt-root) #lx-print-sheet,body:has(#mmd-matt-root) #lx-print-sheet *{visibility:visible!important}
 body:has(#mmd-matt-root) #mmd-matt-root{margin:0!important;padding:0!important;max-width:none!important}
 #mmd-matt-root #lx-print-sheet{display:block!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;background:#fff!important;z-index:999999!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-document{border:0!important;padding:0!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-scroll{overflow:visible!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-table{font-size:10px}
 #mmd-matt-root #lx-print-sheet .lx-recap-table tr{break-inside:avoid}
 #mmd-matt-root #lx-print-sheet .lx-recap-grand{background:#f2eee9!important;print-color-adjust:exact}
}

/* =========================================================
   V15 ETAPE 6 — Harmonisation AUGUST / MATT.
   Strictement limitée à #mmd-matt-root.
   Règles commerciales, 255 compositions et prix inchangés.
   ========================================================= */
#mmd-matt-root{--brown:#3B2A21;--mid:#7A5C45;--cream:#FFFDF9;--beige:#F7F4EE;--line:#e6ddd4;color:var(--brown);line-height:1.45}
#mmd-matt-root .lx-hero{text-align:left; padding:19px 20px 24px;background:#FFFDF9;border:1px solid var(--line);border-radius:10px;margin:0 0 16px}
#mmd-matt-root .lx-hero h1{margin:8px 0 9px;letter-spacing:-.015em}
#mmd-matt-root .lx-hero p{max-width:720px}
#mmd-matt-root .lx-steps{gap:8px}
#mmd-matt-root .lx-step{min-height:60px;border-radius:11px;line-height:1.35;transition:background-color .2s,border-color .2s;}
#mmd-matt-root .lx-step.active,#mmd-matt-root .lx-step[aria-current="step"]{background:#3B2A21;color:#FFFDF9;border-color:#3B2A21}
#mmd-matt-root .lx-panel{border-radius:12px;background:#FFFDF9;box-shadow:0 1px 0 rgba(60,43,32,.04)}
#mmd-matt-root .lx-summary-desktop-head{margin:0 0 14px}
#mmd-matt-root .lx-summary-desktop-head p{color:#837266;font-size:12px;line-height:1.45;margin:8px 0 0}
#mmd-matt-root .lx-summary-mobile-toggle{display:none}
#mmd-matt-root .lx-mobile-step-arrow{border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(255,255,255,.09);color:#fff;min-width:40px;min-height:40px;font-size:20px}
#mmd-matt-root .lx-mobile-step-arrow:disabled{opacity:.35;cursor:not-allowed}
#mmd-matt-root .lx-mobile-progress-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
#mmd-matt-root .lx-mobile-progress-label{text-align:center;min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
#mmd-matt-root .lx-mobile-progress-label small{font-size:10px;opacity:.85}
#mmd-matt-root .lx-mobile-progress-label strong{font-size:14px}
#mmd-matt-root .lx-mobile-progress-track{width:100%;height:4px;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.23)}
#mmd-matt-root #lx-mobile-progress-fill{display:block;height:100%;width:16.67%;background:#dfc7ad;transition:width .2s ease}
#mmd-matt-root .lx-btn:focus-visible,#mmd-matt-root button:focus-visible{outline:2px solid #a67e5f;outline-offset:3px}
@media(max-width:1100px) and (min-width:761px){
 #mmd-matt-root .lx-summary #lx-summary-details{display:block!important}
}
@media(max-width:760px){
 #mmd-matt-root{padding:14px 17px 30px}
 #mmd-matt-root .lx-hero{text-align:center;padding:18px 13px 20px;margin-bottom:13px}
 #mmd-matt-root .lx-hero h1{font-size:clamp(30px,7vw,42px)}
 #mmd-matt-root .lx-mobile-progress{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:12px 13px;background:#3B2A21;border-radius:12px}
 #mmd-matt-root .lx-summary{padding:0;overflow:hidden}
 #mmd-matt-root .lx-summary-mobile-toggle{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:14px;width:100%;padding:13px 15px;border:0;background:#FFFDF9;color:#3B2A21;cursor:pointer}
 #mmd-matt-root .lx-summary-mobile-toggle>span{display:flex;flex-direction:column;gap:4px}
 #mmd-matt-root .lx-summary-mobile-toggle small{color:#7A5C45;font-size:11px}
 #mmd-matt-root .lx-summary-mobile-trailing{text-align:right;align-items:flex-end}
 #mmd-matt-root .lx-summary-mobile-trailing b{font-size:17px}
 #mmd-matt-root .lx-summary-desktop-head{display:none}
 #mmd-matt-root #lx-summary-details{display:none;padding:0 15px 15px}
 #mmd-matt-root.lx-mobile-summary-open #lx-summary-details{display:block}
 #mmd-matt-root .lx-summary #lx-summary-content{display:block}
 #mmd-matt-root .lx-summary .lx-summary-line{border-bottom:1px solid var(--line);max-width:none}
 #mmd-matt-root .lx-summary .lx-summary-total{justify-content:space-between}
 #mmd-matt-root .lx-panel:not(.lx-summary){padding:14px}
 #mmd-matt-root .lx-foot-actions{gap:10px}
 #mmd-matt-root .lx-foot-actions .lx-btn{min-height:44px}
}
@media(max-width:430px){
 #mmd-matt-root .lx-mobile-progress-label strong{font-size:13px}
 #mmd-matt-root .lx-mobile-step-arrow{min-width:38px}
}
@media(prefers-reduced-motion:reduce){#mmd-matt-root .lx-step,#mmd-matt-root #lx-mobile-progress-fill{transition:none}}
@media print{
 #mmd-matt-root .lx-mobile-progress,#mmd-matt-root .lx-summary-mobile-toggle{display:none!important}
}

/* V17 - Informations de variantes MATT, sans modification des cartes AUGUST. */
.mmd-matt .lx-variant-label{font-size:11px!important;font-weight:600!important;color:#7A5C45!important;line-height:1.35}

/* MATT V18 — Editeur SVG, commandes souris / tactile et repères de collision. */
#mmd-matt-root .lx-v18-controller{margin:12px 0 16px;padding:14px;border:1px solid #ded0c0;background:#fffdf9;border-radius:12px}
#mmd-matt-root .lx-v18-controller-head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
#mmd-matt-root .lx-v18-controller-head small{color:#806c5b;font-size:12px}
#mmd-matt-root .lx-v18-arrows,#mmd-matt-root .lx-v18-rotations{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#mmd-matt-root .lx-v18-arrows button,#mmd-matt-root .lx-v18-rotations button{background:#fff;border:1px solid #cdb8a1;color:#3b2a21;border-radius:7px;padding:8px 11px;min-height:40px;font-size:12px;cursor:pointer}
#mmd-matt-root .lx-v18-arrows button:disabled,#mmd-matt-root .lx-v18-rotations button:disabled{opacity:.4;cursor:not-allowed}
#mmd-matt-root .lx-v18-svg [data-plan-index]{cursor:grab;touch-action:none;pointer-events:all}
#mmd-matt-root .lx-v18-svg [data-plan-index]:active{cursor:grabbing}
#mmd-matt-root .lx-v18-svg .lx-module-selected>.lx-plan-outline{stroke:#2f6957;stroke-width:4}
#mmd-matt-root .lx-v18-svg .lx-module-collision>.lx-plan-outline{stroke:#b44636;stroke-width:3;stroke-dasharray:8 4}
#mmd-matt-root .lx-v18-svg{overflow:visible}
@media(max-width:760px){#mmd-matt-root .lx-v18-arrows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#mmd-matt-root .lx-v18-arrows button{min-height:44px}}

/* V19 — Pieds : pictogrammes non contractuels, incompatibilités conservatrices. */
#mmd-matt-root .lx-foot-choice{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;text-align:center}
#mmd-matt-root .lx-foot-art{width:100%;max-width:118px;height:72px;display:block;margin:0 auto 5px}
#mmd-matt-root .lx-foot-choice[disabled]{opacity:.55;cursor:not-allowed;border-style:dashed}
#mmd-matt-root .lx-foot-choice small{line-height:1.4}
#mmd-matt-root .lx-recap-plan{background:#fffdf9;border:1px solid #e5dbd0;border-radius:10px;padding:12px;margin:10px auto 16px;text-align:center;max-width:100%;overflow:hidden}
#mmd-matt-root .lx-recap-plan svg{display:block;max-width:100%;width:auto;height:auto;max-height:360px;margin:auto}
#mmd-matt-root .lx-recap-plan-caption{font-size:10px;color:#715c50;line-height:1.35;margin:10px 0 0}
@media print{
 #mmd-matt-root #lx-print-sheet .lx-recap-plan{max-width:100%;overflow:visible;break-inside:avoid;page-break-inside:avoid;background:#fff!important;border-color:#aaa!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-plan svg{height:auto!important;max-height:245px!important;max-width:100%!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-table{break-inside:auto}
 #mmd-matt-root #lx-print-sheet .lx-recap-totals{break-inside:avoid}
}

/* V20: message de collision visible à l’impression et dans le récapitulatif */
#mmd-matt-root .lx-recap-alert{color:#8b3226;font-weight:700;background:#fff2ed;padding:8px;border-left:3px solid #af654e}
@media print {#mmd-matt-root .lx-recap-alert{color:#000!important;background:#fff!important;border:1px solid #888!important}}


/* V21 : plateau MATT toujours visible sur les six étapes, comme le parcours AUGUST. */
#mmd-matt-root .lx-layout{grid-template-columns:minmax(195px,220px) minmax(350px,1fr) minmax(330px,410px);align-items:start;gap:13px}
#mmd-matt-root .lx-stage{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#mmd-matt-root .lx-stage-title h2{margin:6px 0 6px}
#mmd-matt-root .lx-stage-title p{color:#7a6b5f;font-size:12px;line-height:1.4;margin:0 0 10px}
#mmd-matt-root .lx-workspace{display:flex;flex-direction:column;gap:13px;min-width:0}
#mmd-matt-root .lx-workspace .lx-panel{min-width:0}
#mmd-matt-root .lx-stage .lx-plan-visual{padding:11px;min-height:160px;margin:0 0 12px}
#mmd-matt-root .lx-stage .lx-matt-v10-svg{width:100%;height:auto;max-height:310px}
#mmd-matt-root .lx-stage .lx-v18-controller{margin:8px 0}
#mmd-matt-root .lx-stage .lx-edit-toolbar{margin:8px 0}
#mmd-matt-root .lx-stage .lx-stage-list{border:1px solid var(--line);border-radius:10px;background:white;margin-top:12px;padding:9px}
#mmd-matt-root .lx-stage .lx-stage-list>summary{font-size:12px;font-weight:700;color:var(--brown);cursor:pointer;padding:3px 0}
#mmd-matt-root .lx-stage .lx-stage-list .lx-plan-manage{margin-top:12px}
#mmd-matt-root .lx-stage-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;font-size:12px;color:var(--mid)}
#mmd-matt-root .lx-stage-bottom .lx-btn{font-size:12px;padding:8px 10px}
@media(max-width:1250px) and (min-width:761px){
 #mmd-matt-root .lx-layout{grid-template-columns:minmax(0,1fr) minmax(320px,410px)}
 #mmd-matt-root .lx-summary{grid-column:1/-1;position:static;order:0}
 #mmd-matt-root .lx-stage{grid-column:1;grid-row:2;top:14px;max-height:calc(100vh - 28px)}
 #mmd-matt-root .lx-workspace{grid-column:2;grid-row:2}
}
@media(max-width:760px){
 #mmd-matt-root .lx-layout{display:flex;flex-direction:column;gap:12px}
 #mmd-matt-root .lx-summary{order:0;width:100%}
 #mmd-matt-root .lx-stage{order:1;width:100%;position:static;max-height:none;overflow:visible}
 #mmd-matt-root .lx-workspace{order:2;width:100%}
 #mmd-matt-root .lx-stage .lx-matt-v10-svg{max-height:300px}
 #mmd-matt-root .lx-stage .lx-stage-title p{font-size:12px}
}
@media print{
 #mmd-matt-root .lx-stage,#mmd-matt-root .lx-workspace{display:none!important}
}

/* V22 : commandes du plateau, sans alteration du plan imprime. */
#mmd-matt-root .lx-v22-zoom{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 10px}
#mmd-matt-root .lx-v22-zoom button{border:1px solid #cdb8a1;border-radius:7px;background:#fffdf9;color:#3b2a21;min-height:38px;padding:6px 10px;font-size:12px;cursor:pointer}
#mmd-matt-root .lx-v22-zoom button[aria-pressed="true"]{background:#e7ede5;border-color:#7e9b86}
#mmd-matt-root .lx-v22-zoom button:disabled{opacity:.45;cursor:not-allowed}
#mmd-matt-root .lx-v22-zoom span{font-size:12px;font-weight:700;min-width:48px;text-align:center}
@media(max-width:760px){#mmd-matt-root .lx-v22-zoom button{min-height:44px}}
/* Le zoom doit masquer la partie du plan hors du cadre, sans debordement dans les panneaux voisins. */
#mmd-matt-root .lx-stage .lx-v18-svg{overflow:hidden}

/* V23 — Contrôles et avertissements non ambiguës dans le récapitulatif */
#mmd-matt-root .lx-v23-validation{border:1px solid #d7c8b8;border-radius:12px;padding:15px;margin:16px 0;background:#fffdf9;break-inside:avoid;}
#mmd-matt-root .lx-v23-validation h3{margin:0 0 10px;font-size:1.02rem;}
#mmd-matt-root .lx-v23-errors{background:#fff1ec;border-left:4px solid #ac4f36;padding:10px 12px;margin-bottom:12px;color:#642e22;}
#mmd-matt-root .lx-v23-ok{color:#496d4e;font-weight:600;}
#mmd-matt-root .lx-v23-advice{background:#f7f2e9;padding:10px 12px;border-radius:8px;}
#mmd-matt-root .lx-v23-validation ul{margin:6px 0 0;padding-left:21px;}
#mmd-matt-root .lx-recap-actions button:disabled{opacity:.47;cursor:not-allowed;}
@media print{#mmd-matt-root .lx-v23-validation{background:#fff!important;color:#222!important;break-inside:avoid;}.lx-v23-advice,.lx-v23-errors{background:#fff!important;}}

/* V25 : réutilisation des visuels officiels internes AUGUST pour références MOOME communes */
.mmd-matt .lx-foot-product-image{display:block;width:100%;height:132px;object-fit:contain;object-position:center;background:#fffdf9;border-radius:8px;margin:0 auto 10px}.mmd-matt .lx-decor-product-image{display:block;width:100%;max-height:185px;height:145px;object-fit:contain;object-position:center;background:#fffdf9;border-radius:8px;margin:0 auto 10px}.mmd-matt .lx-foot-choice{min-width:0}.mmd-matt .lx-decor-card{min-width:0}


.mmd-matt .lx-accessory-grid{display:grid;grid-template-columns:1.35fr .95fr;gap:12px;align-items:start}
.mmd-matt .lx-head-card{display:grid;grid-template-columns:190px 1fr;gap:14px;align-items:center}
.mmd-matt .lx-head-product-image{display:block;width:100%;max-width:220px;max-height:170px;height:150px;object-fit:contain;object-position:center;background:#fffdf9;border-radius:10px;margin:0 auto 10px}
.mmd-matt .lx-head-controls strong{min-width:22px;text-align:center;font-size:18px}
@media(max-width:960px){.mmd-matt .lx-accessory-grid{grid-template-columns:1fr}.mmd-matt .lx-head-card{grid-template-columns:1fr}}

/* V28 — lecture et accessibilité des accessoires MATT */
.mmd-matt .lx-decor-grid .lx-decor-card{min-width:0;display:flex;flex-direction:column;gap:7px}
.mmd-matt .lx-decor-grid .lx-decor-product-image{height:155px;max-height:155px;margin-bottom:7px}
.mmd-matt .lx-decor-grid .lx-decor-controls{margin-top:auto!important}
.mmd-matt .lx-decor-subtotal{font-size:12px;color:#5c493c;margin:7px 0 0}
.mmd-matt .lx-decor-controls strong{min-width:25px;text-align:center;font-size:17px}
.mmd-matt .lx-head-product-image{background:#fff;border:1px solid #eee7df;padding:6px}
@media(max-width:760px){.mmd-matt .lx-decor-grid{grid-template-columns:1fr}}

.mmd-matt .lx-swatch-photo{display:block}
.mmd-matt .lx-swatch-photo [hidden]{display:none!important}
.mmd-matt .lx-swatch-fallback{display:grid;place-items:center;min-height:3.5rem;padding:.25rem;background:#f5f0ea;color:#6d5545;font-size:.72rem}

.mmd-matt .lx-composition-families {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));
 gap:8px;
}
.mmd-matt .lx-composition-families button {
 display:grid;
 gap:4px;
 padding:10px;
 margin:0;
 text-align:left;
}
.mmd-matt .lx-composition-families small {font-size:.75rem}
.mmd-matt .lx-preset-variants {display:block; min-width:0}
.mmd-matt .lx-preset-variants summary {cursor:pointer}
.mmd-matt .lx-preset-variants summary > b {display:block; margin:.3rem 0}
.mmd-matt .lx-preset-variants ul {list-style:none; padding:0; margin:.7rem 0 0}
.mmd-matt .lx-preset-variants li + li {margin-top:.35rem}
.mmd-matt .lx-preset-variants li button {
 display:grid;
 gap:.15rem;
 width:100%;
 padding:.45rem;
 border:1px solid var(--line);
 border-radius:6px;
 background:white;
 color:var(--brown);
 text-align:left;
 overflow-wrap:anywhere;
}
.mmd-matt .lx-preset-variants li button:hover {background:var(--beige)}

.mmd-matt .lx-back-suggestion {
  margin-block: 1rem;
}
.mmd-matt .lx-back-suggestion small {
  display: block;
  margin-top: .5rem;
}
.mmd-matt .lx-suggested-back {
  pointer-events: none;
}
.mmd-matt .lx-join-ok {
  color: #375c43;
  font-size: .875rem;
}

.mmd-matt .lx-fabric-tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .625rem;
  margin: 1rem 0 1.25rem;
}
.mmd-matt .lx-fabric-tariff {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .2rem;
  padding: .7rem;
  color: #3b2a21;
  background: #fffdf9;
  border: 1px solid #c6b3a1;
  border-radius: .625rem;
  text-align: left;
}
.mmd-matt .lx-fabric-tariff.active {
  background: #f4eadb;
  border-color: #7a5c45;
  box-shadow: inset 0 0 0 1px #7a5c45;
}
.mmd-matt .lx-fabric-tariff:focus-visible,
.mmd-matt .lx-swatch:focus-visible {
  outline: 2px solid #3b2a21;
  outline-offset: 2px;
}
.mmd-matt .lx-fabric-tariff small {
  color: #594539;
  font-size: .78rem;
  line-height: 1.3;
}
.mmd-matt .lx-fabric-pager {
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mmd-matt .lx-fabric-selected .lx-swatch-photo {
  width: min(100%, 18rem);
  border-radius: .625rem;
  overflow: hidden;
}
.mmd-matt .lx-fabric-selected img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.mmd-matt .lx-swatch small {
  white-space: normal;
  overflow-wrap: anywhere;
}

.mmd-matt .lx-foot-model {
  text-align: left;
}
.mmd-matt .lx-foot-model small {
  margin-top: .3rem;
  line-height: 1.4;
}
.mmd-matt .lx-foot-finish-heading {
  margin-top: 1.5rem;
}
.mmd-matt .lx-feet-finishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: .5rem;
}
.mmd-matt .lx-feet-finish {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .3rem;
  padding: .6rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: .625rem;
  background: #fffdf9;
  color: var(--brown);
}
.mmd-matt .lx-feet-finish .lx-dot {
  margin: 0;
}
.mmd-matt .lx-feet-finish strong {
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.mmd-matt .lx-feet-finish small {
  font-size: .75rem;
  color: #594539;
}
.mmd-matt .lx-feet-finish.active {
  background: #f4eadb;
  border-color: #7a5c45;
  box-shadow: inset 0 0 0 1px #7a5c45;
}
.mmd-matt .lx-foot-model:focus-visible,
.mmd-matt .lx-feet-finish:focus-visible {
  outline: 2px solid #3b2a21;
  outline-offset: 2px;
}
.mmd-matt .lx-foot-catalogue {
  margin: 0 0 .75rem;
}
.mmd-matt .lx-foot-catalogue img {
  height: 100px;
}
.mmd-matt .lx-foot-catalogue figcaption,
.mmd-matt .lx-foot-support-list {
  font-size: .8rem;
  color: #594539;
}
.mmd-matt .lx-foot-support-list {
  margin: .5rem 0 .75rem;
  padding-left: 1.25rem;
}

.mmd-matt .lx-back-suggestion details {
  margin: .75rem 0;
}
.mmd-matt .lx-back-suggestion summary {
  font-weight: 600;
  cursor: pointer;
}
.mmd-matt .lx-back-suggestion ol,
.mmd-matt .lx-back-recap {
  padding-left: 1.35rem;
  line-height: 1.5;
}
.mmd-matt .lx-back-card .lx-row {
  justify-content: center;
}

.mmd-matt .lx-decor-selection {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.mmd-matt .lx-decor-preview {
  display: grid;
  place-items: center;
  min-height: 155px;
  background: #fff;
  border-radius: .5rem;
}
.mmd-matt .lx-decor-preview .lx-decor-product-image {
  margin: 0;
  transform: scale(var(--lx-decor-scale, 1));
}
.mmd-matt .lx-decor-grid .lx-decor-selected {
  border-color: #7a5c45;
  box-shadow: inset 0 0 0 1px #7a5c45;
}
.mmd-matt .lx-decor-controls button:focus-visible {
  outline: 2px solid #3b2a21;
  outline-offset: 2px;
}

/* V17 – coussins réellement sélectionnés */
.mmd-matt .lx-selected-back{pointer-events:none}
.mmd-matt .lx-back-placement{margin:14px 0}
.mmd-matt .lx-back-placement-row{margin:8px 0}
.mmd-matt .lx-back-placement-row label{display:flex;flex-direction:column;gap:5px;font-size:13px}
.mmd-matt .lx-back-placement-row select{width:100%;max-width:100%;padding:8px;border:1px solid #d9c8b5;border-radius:6px;background:#fffdf9;color:#3b2a21}

/* V18 — bibliothèque technique, sans représentation photographique fictive */
.mmd-matt .lx-module-diagram{width:112px;height:112px;flex-basis:112px;object-fit:contain;background:white}
.mmd-matt .lx-v18-plan-preview{background:#fffdf9;border:1px solid #e3d8ca;border-radius:9px;padding:6px;text-align:center;margin:5px 0}
.mmd-matt .lx-v18-plan-preview .lx-preset-preview{height:106px;margin:0;background:transparent}
.mmd-matt .lx-v18-plan-preview>span{display:block;font-size:.68rem;color:#6b5849}
.mmd-matt .lx-v18-summary-thumb{width:44px;height:44px;object-fit:contain;background:white;border:1px solid #e3d8ca;border-radius:5px}
.mmd-matt .lx-v18-summary-images{display:flex;flex-wrap:wrap;gap:4px}.mmd-matt .lx-v18-summary-images:empty{display:none}
.mmd-matt .lx-v18-summary-plan svg{width:100%;height:85px;display:block}
.mmd-matt .lx-v18-foot-height{display:flex;align-items:end;justify-content:center;gap:8px;height:64px;margin:0 0 5px;color:#6b5849}
.mmd-matt .lx-v18-foot-height>span{width:10px;border:1px solid #6b5849;background:#e7ded1;border-radius:3px}
.mmd-matt .lx-v18-foot-height i{font-size:.75rem;font-style:normal}
.mmd-matt .lx-back-card .lx-decor-product-image{height:170px;max-height:170px;background:white}
@media(max-width:760px){.mmd-matt .lx-module-diagram{width:86px;height:86px;flex-basis:86px}.mmd-matt .lx-v18-plan-preview .lx-preset-preview{height:90px}}
.mmd-matt .lx-summary-line .lx-swatch-photo{display:block;width:44px;height:44px;margin:4px 0;overflow:hidden;border-radius:5px}.mmd-matt .lx-summary-line .lx-swatch-photo img{width:100%;height:100%;object-fit:cover}

/* V19 : information tarifaire, sans modifier le moteur de prix. */
#mmd-matt-root .lx-v19-category-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:12px 0;font-size:12px} #mmd-matt-root .lx-v19-category-list span{padding:8px;border:1px solid #ded4c4;border-radius:6px} #mmd-matt-root .lx-v19-categories summary{cursor:pointer;font-weight:600}

/* V20 : interface intégrée à la fiche produit, cartes de sélection indépendantes. */
#mmd-matt-root{padding-top:8px;scroll-margin-top:24px}
#mmd-matt-root .lx-summary #lx-summary-content{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
#mmd-matt-root .lx-v20-card{border:1px solid var(--line);border-radius:10px;padding:10px;background:white;min-width:0;overflow-wrap:anywhere}
#mmd-matt-root .lx-v20-card.is-empty{background:var(--cream);border-style:dashed}
#mmd-matt-root .lx-v20-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px}
#mmd-matt-root .lx-v20-card p{margin:6px 0 0;font-size:12px;line-height:1.4}
#mmd-matt-root .lx-v20-empty,#mmd-matt-root .lx-v20-estimate{color:#75695e;font-size:12px}
#mmd-matt-root .lx-v20-modify{border:0;background:transparent;color:var(--mid);text-decoration:underline;padding:6px 2px;font-size:12px;min-height:32px;white-space:normal}
#mmd-matt-root .lx-v20-card .lx-swatch-photo{display:block;width:48px;height:48px;margin:8px 0 0;overflow:hidden;border-radius:5px}
#mmd-matt-root .lx-v20-card .lx-swatch-photo img{width:100%;height:100%;object-fit:cover}
#mmd-matt-root .lx-summary-total{flex-wrap:wrap;gap:4px}
#mmd-matt-root .lx-stage .lx-matt-v10-svg{max-height:390px}
#mmd-matt-root .lx-stage .lx-plan-visual{background:#fffdf9;background-image:none}
#mmd-matt-root .lx-step{overflow-wrap:anywhere}
#mmd-matt-root .lx-step.active b{opacity:1}
#mmd-matt-root .lx-workspace,#mmd-matt-root .lx-panel{min-width:0}
#mmd-matt-root .lx-v20-estimate{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1250px){#mmd-matt-root .lx-summary #lx-summary-content{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#mmd-matt-root{padding:8px 8px 24px}#mmd-matt-root .lx-v20-modify{min-height:44px}#mmd-matt-root .lx-stage .lx-matt-v10-svg{max-height:300px}#mmd-matt-root .lx-summary #lx-summary-content{display:grid}#mmd-matt-root .lx-foot-actions .lx-btn{padding:10px 8px}#mmd-matt-root .lx-foot-actions{gap:5px}}

#mmd-matt-root #lx-main{scroll-margin-top:18px}
@media(prefers-reduced-motion:reduce){#mmd-matt-root #lx-mobile-progress-fill{transition:none}}

/* V21 : document et sauvegarde portable */
#mmd-matt-root .lx-v21-project{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;align-items:center}#mmd-matt-root .lx-v21-project p{flex-basis:100%;font-size:12px;color:#705d51;margin:0}#mmd-matt-root .lx-recap-meta .lx-swatch-photo{width:64px;height:64px;display:block;margin:6px 0}#mmd-matt-root .lx-recap-meta .lx-swatch-photo img{width:64px;height:64px;object-fit:cover}#mmd-matt-root .lx-v21-dimensions{font-size:13px;color:#705d51}#mmd-matt-root .lx-v21-table{min-width:510px}#mmd-matt-root .lx-recap-scroll{overflow-x:auto}
@media print{body:has(#lx-print-sheet) *:not(:has(#lx-print-sheet)):not(#lx-print-sheet):not(#lx-print-sheet *){display:none!important} body:has(#lx-print-sheet) :has(#lx-print-sheet){display:block!important;position:static!important;overflow:visible!important;max-width:none!important;width:auto!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;transform:none!important;box-shadow:none!important;border:0!important} body:has(#lx-print-sheet){margin:0!important;padding:0!important;background:#fff!important} #mmd-matt-root #lx-print-sheet{position:static!important;width:100%!important;z-index:auto!important}#mmd-matt-root .lx-v21-project,#mmd-matt-root .lx-layout,#mmd-matt-root .lx-foot-actions{display:none!important}#mmd-matt-root #lx-print-sheet .lx-v21-table{min-width:0!important;width:100%;table-layout:auto}#mmd-matt-root #lx-print-sheet thead{display:table-header-group}#mmd-matt-root #lx-print-sheet h3{break-after:avoid}#mmd-matt-root #lx-print-sheet .lx-recap-meta{break-inside:avoid}}

@media print{#mmd-matt-root #lx-print-sheet .lx-v23-validation,#mmd-matt-root #lx-print-sheet .lx-v23-errors,#mmd-matt-root #lx-print-sheet .lx-v23-advice{border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;background:#fff!important;break-inside:auto!important}#mmd-matt-root #lx-print-sheet .lx-v23-ok{display:none!important}#mmd-matt-root #lx-print-sheet .lx-recap-plan{padding:8px!important}#mmd-matt-root #lx-print-sheet .lx-recap-plan svg{max-height:200px!important}#mmd-matt-root #lx-print-sheet .lx-recap-totals{break-inside:auto!important}#mmd-matt-root #lx-print-sheet .lx-recap-totals>div{break-inside:avoid}#mmd-matt-root #lx-print-sheet .lx-recap-table td,#mmd-matt-root #lx-print-sheet .lx-recap-table th{padding:5px!important}}
@media print{
 #mmd-matt-root #lx-print-sheet .lx-recap-document{font-size:11px!important;line-height:1.35!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-document h3{font-size:15px!important;margin:12px 0 6px!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-note{font-size:9px!important;line-height:1.35!important;margin:7px 0 0!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-document ul{padding-left:18px!important;margin:5px 0 8px!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-document li{line-height:1.3!important;margin:1px 0!important;break-inside:avoid}
 #mmd-matt-root #lx-print-sheet .lx-recap-totals>div{padding:6px 0!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-totals>.lx-recap-grand{padding:10px!important}
 #mmd-matt-root #lx-print-sheet .lx-recap-plan svg{max-height:235px!important}
}

/* V25 — alignement AUGUST V9.26, isolé au configurateur MATT. */
#mmd-matt-root .lx-foot-actions{display:none}
#mmd-matt-root.lx-v25-decor-stage .lx-stage{display:none}
#mmd-matt-root.lx-v25-decor-stage .lx-workspace{grid-column:2/-1;grid-row:1}
#mmd-matt-root .lx-v25-zoom{margin-top:8px;font-size:12px;min-height:36px}
#mmd-matt-root #lx-v25-dialog{max-width:min(90vw,720px);width:fit-content;max-height:90vh;overflow:auto;padding:16px;border:1px solid #c4b4a2;border-radius:12px;background:#fffdf9;color:#3b2a21;position:fixed;margin:auto}
#mmd-matt-root #lx-v25-dialog::backdrop{background:rgba(32,24,18,.65)}
#mmd-matt-root #lx-v25-dialog figure{margin:12px 0 0;text-align:center}
#mmd-matt-root #lx-v25-dialog img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
@media(min-width:761px) and (max-width:1250px){#mmd-matt-root.lx-v25-decor-stage .lx-workspace{grid-column:1/-1;grid-row:2}}
@media(max-width:760px){#mmd-matt-root .lx-v25-zoom{min-height:44px}}
@media print{#mmd-matt-root #lx-v25-dialog{display:none!important}}

/* V26 : message de lien commercial, strictement limité à MATT */
#mmd-matt-root .mmd-matt-link-notice{padding:16px;border:1px solid #d9c6b3;background:#fffdf9;border-radius:12px;margin:0 0 16px;color:#3b2a21}
#mmd-matt-root .mmd-matt-link-notice[hidden],#mmd-matt-root #mmd-matt-link-open[hidden],#mmd-matt-root #mmd-matt-cart-open[hidden]{display:none!important}
#mmd-matt-root .mmd-matt-link-notice p{margin:0 0 12px;line-height:1.5}
#mmd-matt-root .mmd-matt-link-notice>div{display:flex;flex-wrap:wrap;gap:8px}

/* V27 — actions individuelles, positions limitées aux places compatibles. */
#mmd-matt-root .lx-v27-unit-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;padding:10px;background:#f7f4e8;border-radius:8px}#mmd-matt-root .lx-v27-unit-tools small{flex-basis:100%}#mmd-matt-root .lx-v27-active{cursor:grab}#mmd-matt-root .lx-v27-dragging{opacity:.55}#mmd-matt-root .lx-v18-svg [data-back-unit]{touch-action:none}#mmd-matt-root .lx-back-placement-row button[aria-pressed=true]{background:#3b2a21;color:white}#mmd-matt-root .lx-back-placement-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#mmd-matt-root .lx-back-placement-row label{flex:1;min-width:0}#mmd-matt-root .lx-back-placement-row select{max-width:100%}
#mmd-matt-root.lx-v27-back-stage .lx-v18-svg [data-back-unit]{pointer-events:all;cursor:grab}

/* V29 — finishing touches, scoped to MATT */
#mmd-matt-root .lx-swatches{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
#mmd-matt-root .lx-swatch small{white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-height:31px;font-size:10px}
#mmd-matt-root .lx-foot-model{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:132px}
#mmd-matt-root .lx-foot-model .lx-v18-foot-height{margin-inline:auto}
#mmd-matt-root .lx-foot-catalogue{text-align:center}
#mmd-matt-root .lx-v29-price-reference{background:#f7f4e8;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0 12px;font-size:12px;color:var(--brown)}
#mmd-matt-root .lx-v29-price-reference div{display:flex;justify-content:space-between;gap:8px;margin:4px 0}
#mmd-matt-root .lx-v29-price-reference p{margin:6px 0 0;font-size:11px;color:#705d51}
#mmd-matt-root .lx-v29-price-reference strong{white-space:nowrap}
#mmd-matt-root .lx-recap-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#mmd-matt-root .lx-recap-actions .lx-btn{padding:9px 11px;min-height:40px}
#mmd-matt-root .lx-v29-cart-status{flex-basis:100%;margin:0;order:2}
#mmd-matt-root .lx-v27-unit-tools .lx-btn{min-height:40px}
#mmd-matt-root button:focus-visible,#mmd-matt-root select:focus-visible,#mmd-matt-root input:focus-visible{outline:2px solid #7A5C45;outline-offset:3px}
#mmd-matt-root #lx-v29-confirm{width:min(440px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:22px;border:1px solid #d9cbbb;border-radius:15px;background:#fffdf9;color:#3b2a21;box-shadow:0 14px 50px #3b2a2133;overflow:auto}
#mmd-matt-root #lx-v29-confirm::backdrop{background:#2a201b99}
#mmd-matt-root #lx-v29-confirm h2{margin:0 0 10px;font-size:24px}
#mmd-matt-root #lx-v29-confirm p{margin:0 0 18px;font-size:14px;line-height:1.5}
#mmd-matt-root .lx-v29-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media(max-width:1100px){#mmd-matt-root .lx-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){#mmd-matt-root .lx-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}#mmd-matt-root .lx-v29-confirm-actions .lx-btn{flex:1 1 100%}#mmd-matt-root .lx-recap-actions .lx-btn{flex:1 1 100%}}
@media print{#mmd-matt-root #lx-v29-confirm{display:none!important}#mmd-matt-root .lx-v29-price-reference{break-inside:avoid}}

/* V30 — filtres guidés par silhouette, orientation et nombre de centres */
#mmd-matt-root .lx-preset-filters{display:grid;gap:8px;margin:8px 0 12px} #mmd-matt-root .lx-preset-filters [role=group]>div{display:flex;flex-wrap:wrap;gap:5px} #mmd-matt-root .lx-preset-filters small{display:block;margin-bottom:4px;color:#756352} #mmd-matt-root .lx-preset-filters .lx-group-button{max-width:100%;white-space:normal}

/* V31 : sept familles de choix, pictogrammes schématiques. */
.mmd-matt .lx-composition-families .lx-family-icon{width:64px;height:42px;display:block;margin:0 auto;color:inherit}
.mmd-matt .lx-composition-families button{text-align:center;align-content:start;justify-items:center;min-width:0}
.mmd-matt .lx-family-count{font-weight:600}

/* V33 — AUGUST 9.26 shell: isolated presentation, MATT engine unchanged. */
#mmd-matt-root{--line:#e7dfd6;background:#f7f4ee;max-width:1600px;padding:0 0 16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.4;text-align:left;border-radius:12px}
#mmd-matt-root .lx-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left;padding:30px clamp(16px,3%,46px) 26px;background:linear-gradient(110deg,#fffdf9,#f4eee6);border:1px solid var(--line);border-radius:16px 16px 0 0}
#mmd-matt-root .lx-hero h1{font:normal clamp(30px,3.2vw,49px)/1.07 Georgia,serif;letter-spacing:-1.2px;margin:9px 0;color:#3b2a21}
#mmd-matt-root .lx-hero h1 em{color:#806048}#mmd-matt-root .lx-hero p{font-size:13px;color:#786e64;margin:0}#mmd-matt-root .lx-eyebrow,#mmd-matt-root .lx-kicker{display:block;font-size:10px;font-weight:850;letter-spacing:1.5px;color:#7a5c45}
#mmd-matt-root .lx-steps{display:flex;justify-content:center;gap:8px;padding:13px 14px;background:white;border:1px solid var(--line);border-top:0;overflow-x:auto;margin:0}
#mmd-matt-root .lx-step{min-height:0;border:1px solid transparent;border-radius:8px;padding:9px 13px;background:transparent;color:#988a7b;font-size:12px;font-weight:750;white-space:nowrap;overflow-wrap:normal;line-height:1.4}
#mmd-matt-root .lx-step b{display:inline;font-size:10px;margin-right:7px;color:#ac998b;opacity:1}#mmd-matt-root .lx-step.active{background:#3b2a21;color:white;border-color:#3b2a21}
#mmd-matt-root .lx-layout{display:grid;grid-template-columns:minmax(188px,235px) minmax(0,1.18fr) minmax(0,1fr);grid-template-areas:"progress board options";gap:14px;padding:16px;align-items:start}
#mmd-matt-root .lx-panel{background:white;border-radius:12px;box-shadow:0 8px 22px #3b2a2105;min-width:0;padding:16px}
#mmd-matt-root .lx-summary{grid-area:progress;grid-column:auto;grid-row:auto;position:sticky;top:12px;order:0;padding:12px}
#mmd-matt-root .lx-stage{grid-area:board;grid-column:auto;grid-row:auto;position:sticky;top:12px;max-height:none;overflow:visible;padding:0}
#mmd-matt-root .lx-workspace{grid-area:options;grid-column:auto;grid-row:auto;min-width:0;gap:12px}
#mmd-matt-root .lx-summary-desktop-head{margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
#mmd-matt-root .lx-summary-desktop-head h2{font:normal 23px Georgia,serif;margin:5px 0}#mmd-matt-root .lx-summary-desktop-head p{font-size:10px;margin:0;line-height:1.5}
#mmd-matt-root .lx-summary #lx-summary-content{grid-template-columns:minmax(0,1fr);gap:7px}
#mmd-matt-root .lx-v20-card{padding:9px 8px 10px;border:1px solid #eadfd3;border-radius:10px;background:white}
#mmd-matt-root .lx-v20-card.is-current{border-color:#89684d;box-shadow:inset 0 0 0 1px #a5866e;background:#fffcf6}
#mmd-matt-root .lx-v20-card-head{display:block}#mmd-matt-root .lx-v20-modify{display:flex;align-items:center;gap:6px;text-decoration:none;text-align:left;width:100%;border:0;background:transparent;padding:0;color:#4e392c;font-size:11px;min-height:20px}
#mmd-matt-root .lx-v20-modify span{display:grid;place-items:center;flex:0 0 20px;height:20px;background:#eee5d9;border-radius:6px;font-size:10px}#mmd-matt-root .lx-v20-card p{font-size:10px;color:#938273;line-height:1.4}
#mmd-matt-root .lx-summary-total{border-top:1px solid var(--line);padding:10px 0;display:flex;flex-wrap:wrap;font-size:11px}#mmd-matt-root .lx-summary-total strong{font-size:18px}
#mmd-matt-root .lx-stage-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 16px 14px}#mmd-matt-root .lx-stage-title h2{font:normal 24px Georgia,serif;letter-spacing:-.5px;margin:5px 0 0}#mmd-matt-root .lx-stage-title h2 small{font:normal 11px system-ui;color:#a09589}
#mmd-matt-root .lx-board-actions{display:flex;gap:5px;align-items:center}#mmd-matt-root .lx-board-actions button{background:white;border:1px solid var(--line);border-radius:7px;padding:8px 10px;font-size:12px;color:#3b2a21}
#mmd-matt-root .lx-board-context{padding:7px 16px;font-size:11px;color:#85776b;border-top:1px solid #f4f0eb}
#mmd-matt-root .lx-board-wrap{position:relative;height:clamp(480px,44vw,660px);background:#faf8f4;border-top:1px solid #ece5dd;border-bottom:1px solid #ece5dd;overflow:hidden;display:flex;align-items:center;justify-content:center}
#mmd-matt-root .lx-board-wrap .lx-matt-v10-svg{width:100%;height:100%;max-height:none;display:block;margin:0}
#mmd-matt-root .lx-board-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;color:#806c5c;padding:24px;pointer-events:none}#mmd-matt-root .lx-board-empty[hidden]{display:none}#mmd-matt-root .lx-board-empty-icon{display:grid;place-items:center;width:66px;height:66px;border:1px solid #e4d7ca;border-radius:18px;background:#fffdf9;font-size:24px;color:#a9896f}#mmd-matt-root .lx-board-empty strong{font:normal 21px Georgia,serif}#mmd-matt-root .lx-board-empty span{max-width:230px;font-size:12px;line-height:1.5;color:#938273}
#mmd-matt-root .lx-board-wrap .lx-v22-zoom{position:absolute;right:14px;bottom:28px;display:flex;gap:4px;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;padding:5px;margin:0;box-shadow:0 3px 12px #3b2a210a;font-size:11px}#mmd-matt-root .lx-board-wrap .lx-v22-zoom button{padding:5px 8px;border:0;border-radius:5px;background:#f7f4ee;font-size:11px;color:#7a5c45}
#mmd-matt-root .lx-board-legend{position:absolute;left:12px;bottom:10px;color:#a09589;font-size:10px;pointer-events:none}#mmd-matt-root .lx-board-hint{padding:9px 14px;font-size:10px;color:#938273}#mmd-matt-root .lx-stage-list{margin:8px 12px}#mmd-matt-root .lx-board-snap{padding:0 12px 8px}
#mmd-matt-root .lx-content h2{font:normal 23px Georgia,serif;margin:4px 0 12px}#mmd-matt-root .lx-guide-intro{padding:12px;background:#faf5ef;border:1px solid #eadbcc;border-radius:10px;margin-bottom:12px;font-size:13px}#mmd-matt-root .lx-guide-intro p{font-size:11px;color:#806c5c;margin:5px 0 0}
#mmd-matt-root .lx-composition-families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#mmd-matt-root .lx-composition-families button{text-align:left;justify-items:start;gap:4px;padding:11px;border-radius:10px;min-height:86px;background:white}#mmd-matt-root .lx-composition-families button.active{background:#f5efe8;border-color:#7a5c45;color:#3b2a21}#mmd-matt-root .lx-composition-families .lx-family-icon{width:25px;height:22px;margin:0}#mmd-matt-root .lx-composition-families button strong{font-size:12px}#mmd-matt-root .lx-composition-families button small{font-size:10px}
#mmd-matt-root[data-stage="0"] .lx-content{max-height:calc(100vh - 220px);min-height:400px;overflow-y:auto;scrollbar-width:thin}
#mmd-matt-root:is([data-stage="1"],[data-stage="2"],[data-stage="4"],[data-stage="5"]) .lx-layout{grid-template-columns:minmax(188px,235px) minmax(0,1fr);grid-template-areas:"progress options"}
#mmd-matt-root:is([data-stage="1"],[data-stage="2"],[data-stage="4"],[data-stage="5"]) .lx-stage{display:none}#mmd-matt-root:is([data-stage="1"],[data-stage="2"],[data-stage="4"],[data-stage="5"]) .lx-workspace{grid-area:options;grid-column:auto;grid-row:auto}
#mmd-matt-root[data-stage="3"] .lx-layout{grid-template-columns:minmax(180px,230px) minmax(0,1fr) minmax(0,1fr)}#mmd-matt-root[data-stage="3"] .lx-board-wrap{height:clamp(380px,38vw,560px)}
@media(min-width:761px) and (max-width:1050px){#mmd-matt-root .lx-layout,#mmd-matt-root[data-stage="3"] .lx-layout{grid-template-columns:minmax(185px,235px) minmax(0,1fr);grid-template-areas:"progress board" "progress options"}#mmd-matt-root .lx-stage{position:relative;top:auto}#mmd-matt-root[data-stage="0"] .lx-content{max-height:none;overflow:visible}}
@media(max-width:760px){#mmd-matt-root .lx-hero{padding:16px 17px;gap:6px}#mmd-matt-root .lx-hero h1{font-size:clamp(27px,8vw,36px);margin:6px 0 8px}#mmd-matt-root .lx-hero p{font-size:12px}#mmd-matt-root .lx-steps{display:none}#mmd-matt-root .lx-layout{display:flex!important;flex-direction:column;gap:10px;padding:8px}#mmd-matt-root .lx-summary,#mmd-matt-root .lx-stage,#mmd-matt-root .lx-workspace{width:100%;position:relative;top:auto}#mmd-matt-root .lx-summary{padding:0}#mmd-matt-root .lx-board-wrap,#mmd-matt-root[data-stage="3"] .lx-board-wrap{height:clamp(270px,82vw,355px)}#mmd-matt-root .lx-stage-title{padding:12px;gap:5px}#mmd-matt-root .lx-stage-title h2{font-size:19px}#mmd-matt-root .lx-board-actions button{padding:6px}#mmd-matt-root[data-stage="0"] .lx-content{max-height:none;overflow:visible}#mmd-matt-root .lx-board-empty-icon{width:48px;height:48px}#mmd-matt-root .lx-board-empty strong{font-size:18px}}
/* Explicit named-area placement: do not override named grid lines with auto. */
#mmd-matt-root .lx-summary{grid-area:progress}
#mmd-matt-root .lx-stage{grid-area:board}
#mmd-matt-root .lx-workspace,#mmd-matt-root:is([data-stage="1"],[data-stage="2"],[data-stage="4"],[data-stage="5"]) .lx-workspace{grid-area:options}
#mmd-matt-root .lx-hero{min-height:0;padding-top:24px;padding-bottom:20px}
#mmd-matt-root .lx-stage-title{padding-top:14px;padding-bottom:10px}
#mmd-matt-root .lx-board-context{line-height:1.4;margin:0}
@media(min-width:761px) and (max-width:1050px){#mmd-matt-root .lx-stage{grid-area:board}#mmd-matt-root .lx-workspace{grid-area:options}#mmd-matt-root .lx-summary{grid-area:progress}#mmd-matt-root.lx-v25-decor-stage .lx-workspace{grid-area:options}}
@media(max-width:760px){#mmd-matt-root .lx-hero{padding:16px 17px}#mmd-matt-root .lx-summary{order:0}#mmd-matt-root .lx-stage{order:1}#mmd-matt-root .lx-workspace{order:2}}

/* V34 — guided chooser, scoped to step 1 */
#mmd-matt-root .lx-v34-subheading{font-size:12px;font-weight:800;color:#4d392c;margin:18px 0 10px}
#mmd-matt-root .lx-v34-silhouettes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 14px}
#mmd-matt-root .lx-v34-silhouette{padding:14px 12px;text-align:left;background:#fff;border:1px solid #e5d8cb;border-radius:10px;min-height:75px;display:flex;flex-direction:column;gap:6px;color:#493628;justify-content:center;min-width:0;white-space:normal;overflow-wrap:anywhere}
#mmd-matt-root .lx-v34-silhouette b{font-size:12px;line-height:1.4}
#mmd-matt-root .lx-v34-silhouette small{font-size:10px;color:#8d7765;line-height:1.45}
#mmd-matt-root .lx-v34-silhouette.active{background:#f7f0e8;border-color:#6f5240;box-shadow:inset 0 0 0 1px #6f5240}
#mmd-matt-root .lx-v34-filters{display:flex;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #eee3d8;border-radius:12px;padding:14px;margin:14px 0}
#mmd-matt-root .lx-v34-filters>div{flex:1 1 105px;min-width:0}
#mmd-matt-root .lx-v34-filters small{font-size:11px;font-weight:800;color:#664c3c}
#mmd-matt-root .lx-v34-filters .lx-group-button{border-radius:6px;padding:6px 8px;margin:0;font-size:10px}
#mmd-matt-root .lx-v34-results{display:flex;flex-wrap:wrap;gap:5px 12px;justify-content:space-between;align-items:center;margin:12px 0 10px}
#mmd-matt-root .lx-v34-results strong{font-size:13px} #mmd-matt-root .lx-v34-results>span{font-size:10px;color:#988371}
#mmd-matt-root .lx-v34-model{padding:0;gap:0;border:1px solid #e6d9cb;border-radius:13px;overflow:hidden;align-items:stretch;min-width:0;background:#fff;text-align:left}
#mmd-matt-root .lx-v34-model:hover,#mmd-matt-root .lx-v34-model.is-selected{border-color:#917763;box-shadow:0 5px 15px #3b2a2114}
#mmd-matt-root .lx-v34-preview{height:130px;background:#faf7f2;border-bottom:1px solid #eee4da;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;overflow:hidden}
#mmd-matt-root .lx-v34-preview svg{width:100%;height:95px;max-width:270px;min-height:0}
#mmd-matt-root .lx-v34-preview>span{font-size:9px;color:#9b8572;font-weight:400}
#mmd-matt-root .lx-v34-model-info{display:flex;flex:1;flex-direction:column;gap:6px;padding:12px;min-width:0;overflow-wrap:anywhere}
#mmd-matt-root .lx-v34-model-info>strong{font-size:13px;line-height:1.35}
#mmd-matt-root .lx-v34-model-info>small{font-size:10px;color:#8d7765}
#mmd-matt-root .lx-v34-tags{display:flex;flex-wrap:wrap;gap:4px}
#mmd-matt-root .lx-v34-tags span{font-size:10px;background:#f5efe8;border-radius:5px;padding:4px;font-weight:400}
#mmd-matt-root .lx-v34-model-info>b{font-size:14px;margin-top:auto}
#mmd-matt-root .lx-v34-model-info>b small{display:inline;font-weight:400;font-size:10px}
#mmd-matt-root .lx-v34-model-info>span{font-size:11px;font-weight:700}
#mmd-matt-root .lx-v34-warning{font-size:11px;color:#805638;background:#faf4eb;padding:8px;border-radius:7px}
#mmd-matt-root .lx-composition-families button{min-height:78px;margin:0}
#mmd-matt-root .lx-composition-families button:focus-visible,#mmd-matt-root .lx-v34-silhouette:focus-visible,#mmd-matt-root .lx-v34-model:focus-visible{outline:2px solid #805638;outline-offset:2px}
@media(max-width:430px){#mmd-matt-root .lx-v34-silhouette{padding:10px;min-height:80px}#mmd-matt-root .lx-v34-filters{padding:10px;gap:8px}}

/* V34 — final chooser alignment */
#mmd-matt-root .lx-v34-model-info .lx-v34-choose{display:block;margin-top:5px;padding:7px 10px;background:#3b2a21;color:#fff;border-radius:6px;text-align:center;font-size:11px;font-weight:750}
#mmd-matt-root .lx-v34-model-info .lx-v34-validation{font-size:9px;line-height:1.4;color:#8d7765}
#mmd-matt-root .lx-v34-model-info .lx-v34-refs{font-size:9px;overflow-wrap:anywhere}
#mmd-matt-root .lx-composition-families button:last-child{grid-column:1/-1;min-height:65px}
#mmd-matt-root[data-stage="0"] .lx-presets{gap:11px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){#mmd-matt-root[data-stage="0"] .lx-presets{grid-template-columns:1fr}}

/* V35 — AUGUST: overview, price matrix, categories, swatches and feet. Only stages 2/3. */
#mmd-matt-root:is([data-stage="1"],[data-stage="2"]) .lx-v35-section{margin:16px 0 20px}
#mmd-matt-root:is([data-stage="1"],[data-stage="2"]) .lx-v35-section>h3{font:750 13px/1.4 Inter,system-ui,sans-serif;color:#49352b;margin:0 0 10px}
#mmd-matt-root .lx-v35-current{display:flex;align-items:center;gap:18px;padding:14px;border:1px solid #e6d9cc;background:#fcfaf7;border-radius:12px;min-width:0}
#mmd-matt-root .lx-v35-current>div:last-child{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere;color:#49352b}
#mmd-matt-root .lx-v35-current>div:last-child>span{font-size:12px;color:#7d6652}
#mmd-matt-root .lx-v35-current .lx-fabric-selected,#mmd-matt-root .lx-v35-current .lx-foot-catalogue{flex:0 0 154px;max-width:42%;margin:0;text-align:center}
#mmd-matt-root .lx-v35-current .lx-fabric-selected .lx-swatch-photo,#mmd-matt-root .lx-v35-current .lx-foot-product-image{display:block;width:110px;height:110px;max-width:100%;margin:auto;border-radius:10px;overflow:hidden;object-fit:contain}
#mmd-matt-root .lx-v35-current .lx-fabric-selected img{width:100%;height:100%;object-fit:cover}
#mmd-matt-root .lx-v35-current figcaption{font-size:10px;color:#806c5c;margin:4px 0}
#mmd-matt-root .lx-v35-current .lx-v25-zoom{padding:7px 9px;white-space:normal;max-width:100%;font-size:11px}
#mmd-matt-root[data-stage="1"] .lx-fabric-tariffs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 9px}
#mmd-matt-root[data-stage="1"] .lx-fabric-tariff{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px;border:1px solid #e6d9cc;border-radius:10px;background:#fcfaf7;color:#584436;min-width:0;text-align:left;overflow-wrap:anywhere}
#mmd-matt-root[data-stage="1"] .lx-fabric-tariff strong{font-size:12px}#mmd-matt-root[data-stage="1"] .lx-fabric-tariff span{font-size:14px;font-weight:700}#mmd-matt-root[data-stage="1"] .lx-fabric-tariff small{font-size:10px;color:#7d6652;line-height:1.4}
#mmd-matt-root[data-stage="1"] .lx-fabric-tariff.active,#mmd-matt-root[data-stage="1"] .lx-swatch.active,#mmd-matt-root[data-stage="2"] :is(.lx-foot-model,.lx-feet-finish).active{border-color:#6f5340;background:#f8f1ea;box-shadow:inset 0 0 0 1px #6f5340}
#mmd-matt-root .lx-v35-caption{font-size:11px;color:#806c5c;line-height:1.5;margin:8px 0 12px}
#mmd-matt-root .lx-v35-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}
#mmd-matt-root .lx-v35-tabs button{padding:8px 15px;border:1px solid #e6d9cc;border-radius:8px;background:#fff;color:#584436;font-size:12px;font-weight:700}
#mmd-matt-root .lx-v35-tabs button.active{background:#3b2a21;color:#fff;border-color:#3b2a21}
#mmd-matt-root .lx-v35-search-label{display:block;font-size:11px;color:#806c5c;margin-bottom:5px}
#mmd-matt-root[data-stage="1"] .lx-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#mmd-matt-root[data-stage="1"] .lx-swatch{position:relative;min-width:0;padding:6px;border:1px solid #e6d9cc;border-radius:9px;background:#fff;color:#584436;display:flex;flex-direction:column;gap:5px;align-items:stretch}
#mmd-matt-root[data-stage="1"] .lx-swatch .lx-swatch-photo{width:100%;height:68px;overflow:hidden;border-radius:7px}
#mmd-matt-root[data-stage="1"] .lx-swatch img{width:100%;height:100%;object-fit:cover;border-radius:7px}
#mmd-matt-root[data-stage="1"] .lx-swatch small{min-height:0;font-size:10px;line-height:1.3;text-align:left}
#mmd-matt-root .lx-v35-check{position:absolute;top:8px;right:8px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#3b2a21;color:white;font-size:12px}
#mmd-matt-root[data-stage="2"] .lx-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#mmd-matt-root[data-stage="2"] .lx-foot-model,#mmd-matt-root[data-stage="2"] .lx-feet-finish{position:relative;min-width:0;padding:9px;border:1px solid #e6d9cc;border-radius:10px;background:#fff;color:#584436;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;overflow-wrap:anywhere}
#mmd-matt-root[data-stage="2"] .lx-foot-model{min-height:146px}#mmd-matt-root[data-stage="2"] .lx-foot-model strong,#mmd-matt-root[data-stage="2"] .lx-feet-finish strong{font-size:12px;line-height:1.35}#mmd-matt-root[data-stage="2"] :is(.lx-foot-model,.lx-feet-finish) small{font-size:10px;line-height:1.35;color:#806c5c}
#mmd-matt-root .lx-v35-foot-art,#mmd-matt-root .lx-v35-metal{width:100%;height:82px;background:#faf7f2;border-radius:7px;display:flex;align-items:center;justify-content:center}
#mmd-matt-root .lx-v35-metal i{display:block;width:13px;height:63px;border-radius:5px;background:linear-gradient(90deg,#0003,transparent 45%,#fff3 66%,#0002),var(--metal);border:1px solid #0002}
#mmd-matt-root[data-stage="2"] .lx-feet-finishes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#mmd-matt-root .lx-v35-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #e6d9cc;padding-top:14px;margin-top:18px}
@media(max-width:1100px){#mmd-matt-root[data-stage="1"] .lx-fabric-tariffs,#mmd-matt-root[data-stage="2"] .lx-feet-finishes{grid-template-columns:repeat(3,minmax(0,1fr))}#mmd-matt-root[data-stage="1"] .lx-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){#mmd-matt-root[data-stage="1"] .lx-fabric-tariffs,#mmd-matt-root[data-stage="2"] .lx-feet-finishes{grid-template-columns:repeat(2,minmax(0,1fr))}#mmd-matt-root[data-stage="1"] .lx-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}#mmd-matt-root .lx-v35-current{gap:10px;padding:10px}#mmd-matt-root .lx-v35-actions .lx-btn{flex:1 1 100%}}
/* Keep a single customization card, as in AUGUST; retain detail in a disclosure. */
#mmd-matt-root:is([data-stage="1"],[data-stage="2"]) .lx-options{display:none}
#mmd-matt-root .lx-v35-details{border:1px solid #e6d9cc;border-radius:9px;padding:10px 12px;margin:12px 0;background:#fcfaf7}
#mmd-matt-root .lx-v35-details>summary{font-weight:700;font-size:12px;cursor:pointer;color:#584436}
#mmd-matt-root .lx-v35-details>h3{font:750 13px/1.4 Inter,system-ui,sans-serif;margin:12px 0 5px}
#mmd-matt-root .lx-v35-swatch-price{display:flex;flex-direction:column;gap:2px;font-size:10px;color:#806c5c;text-align:left;overflow-wrap:anywhere}
#mmd-matt-root .lx-v35-swatch-price strong{font-size:11px;color:#49352b;line-height:1.3}

/* V36 — coussins : interface inspirée des écrans AUGUST, données MATT inchangées. */
#mmd-matt-root .lx-v36-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
#mmd-matt-root .lx-v36-head h2{margin:0;font:400 25px/1.2 Georgia,serif}
#mmd-matt-root .lx-v36-head>span{white-space:nowrap;font-size:10px;font-weight:700;color:#806c5c;background:#f5efe8;border:1px solid #e6d9cc;padding:6px 9px;border-radius:20px}
#mmd-matt-root .lx-v36-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;margin:0 0 12px;border:1px solid #e6d9cc;background:#f8f4ee;border-radius:9px;color:#49352b;font-size:13px}
#mmd-matt-root .lx-v36-summary b{white-space:nowrap}
#mmd-matt-root .lx-v36-intro{font-size:12px;color:#806c5c;margin:0 0 12px}
#mmd-matt-root .lx-v36-active{padding:12px;border:1px solid #e6d9cc;border-radius:9px;margin:12px 0;background:#fff}
#mmd-matt-root .lx-v36-active select{width:100%;padding:8px;border:1px solid #d9c8b5;border-radius:6px;color:#49352b;background:white;min-width:0}
#mmd-matt-root .lx-v36-quick{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
#mmd-matt-root .lx-v36-quick button{flex:1}
#mmd-matt-root[data-stage="3"] #lx-main>h3,#mmd-matt-root .lx-v36-fabric h3,#mmd-matt-root .lx-v36-decor-selected h3{font:700 13px/1.4 Inter,system-ui,sans-serif;margin:16px 0 9px;color:#49352b}
#mmd-matt-root[data-stage="3"] .lx-back-card,#mmd-matt-root[data-stage="4"] .lx-decor-card{display:flex;flex-direction:column;gap:6px;margin:0;padding:10px;border-radius:10px}
#mmd-matt-root[data-stage="3"] .lx-back-card.lx-v36-selected{border-color:#a88c73;background:#fcf9f5}
#mmd-matt-root[data-stage="3"] .lx-back-card img{height:80px;max-height:80px;margin:0;background:#f8f4ee}
#mmd-matt-root[data-stage="3"] .lx-back-card h4,#mmd-matt-root[data-stage="4"] .lx-decor-card h4{margin:0;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
#mmd-matt-root[data-stage="3"] .lx-back-card p,#mmd-matt-root[data-stage="4"] .lx-decor-card p{margin:0;font-size:11px;line-height:1.4}
#mmd-matt-root[data-stage="3"] .lx-back-card .lx-row,#mmd-matt-root[data-stage="4"] .lx-decor-controls{justify-content:space-between;margin-top:auto}
#mmd-matt-root[data-stage="3"] .lx-back-card .lx-row button,#mmd-matt-root[data-stage="4"] .lx-decor-controls button{padding:7px 10px;min-height:32px}
#mmd-matt-root .lx-v36-price{font-size:13px;color:#49352b}
#mmd-matt-root .lx-v36-fabric{margin:16px 0}
#mmd-matt-root .lx-v36-fabric-row{display:flex;align-items:center;gap:12px;padding:12px;background:#fcfaf7;border:1px solid #e6d9cc;border-radius:9px}
#mmd-matt-root .lx-v36-fabric-row .lx-swatch-photo{flex:0 0 64px;width:64px;height:64px;border-radius:6px;overflow:hidden}
#mmd-matt-root .lx-v36-fabric-row img{width:100%;height:100%;object-fit:cover}
#mmd-matt-root .lx-v36-fabric-row>div{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;overflow-wrap:anywhere}
#mmd-matt-root .lx-v36-fabric-row small{font-size:11px;color:#806c5c}
#mmd-matt-root[data-stage="4"] .lx-decor-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#mmd-matt-root[data-stage="4"] .lx-decor-grid .lx-decor-product-image{height:135px;max-height:135px;margin:0}
#mmd-matt-root .lx-v36-selected-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#mmd-matt-root .lx-v36-selected-item{display:flex;align-items:center;gap:12px;border:1px solid #e6d9cc;padding:12px;border-radius:10px;background:#fff}
#mmd-matt-root .lx-v36-selected-item>img{width:76px;height:76px;object-fit:contain;background:#f8f4ee;border-radius:6px}
#mmd-matt-root .lx-v36-selected-item>div{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere;font-size:12px}
#mmd-matt-root .lx-v36-selected-item small{font-size:11px;color:#806c5c}
#mmd-matt-root .lx-v36-selected-item button{align-self:start;padding:6px 10px;font-size:11px}
#mmd-matt-root[data-stage="3"] .lx-v25-zoom,#mmd-matt-root[data-stage="4"] .lx-v25-zoom{font-size:10px;padding:5px 7px;margin:0;white-space:normal}
@media(max-width:1100px){#mmd-matt-root[data-stage="4"] .lx-decor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#mmd-matt-root .lx-v36-head{flex-wrap:wrap}#mmd-matt-root .lx-v36-head h2{font-size:23px}#mmd-matt-root .lx-v36-selected-grid{grid-template-columns:1fr}#mmd-matt-root[data-stage="3"] .lx-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}#mmd-matt-root[data-stage="4"] .lx-decor-grid .lx-decor-product-image{height:95px;max-height:95px}#mmd-matt-root .lx-v36-summary{flex-wrap:wrap}}
/* Keep the drawing and choice panel together on large screens. Page scroll on mobile. */
#mmd-matt-root:is([data-stage="3"],[data-stage="4"]) .lx-options{display:none}
#mmd-matt-root .lx-v36-slot-label{margin:10px 0 0;font-size:11px}
#mmd-matt-root .lx-v36-slot-label select{margin-top:5px}
#mmd-matt-root .lx-v36-reset{margin-top:9px;font-size:11px;padding:7px 9px}
@media(min-width:1051px){#mmd-matt-root[data-stage="3"] .lx-content{max-height:calc(100vh - 220px);min-height:400px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}}

/* V37 — résumé commercial, document technique et impression conservés */
#mmd-matt-root .lx-v37-section{background:#fff;border:1px solid #e5d8c9;border-radius:12px;padding:16px;margin:12px 0;min-width:0}
#mmd-matt-root .lx-v37-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#mmd-matt-root .lx-v37-section h3,#mmd-matt-root .lx-v37-total h3{font:700 14px/1.4 Inter,system-ui,sans-serif;margin:0;color:#49352b}
#mmd-matt-root .lx-v37-section-head button{min-height:32px;padding:5px 10px;font-size:11px;flex-shrink:0}
#mmd-matt-root .lx-v37-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eee4da;min-width:0}
#mmd-matt-root .lx-v37-item>img,#mmd-matt-root .lx-v37-item>.lx-swatch-photo{width:64px;height:64px;object-fit:contain;border:1px solid #e5d8c9;border-radius:7px;background:#f8f5f0;overflow:hidden}
#mmd-matt-root .lx-v37-item .lx-swatch-photo img{width:100%;height:100%;object-fit:cover}
#mmd-matt-root .lx-v37-item small{display:block;color:#78695e;font-size:11px;overflow-wrap:anywhere}
#mmd-matt-root .lx-v37-item strong{white-space:nowrap;color:#49352b;font-size:13px}
#mmd-matt-root .lx-v37-item b{overflow-wrap:anywhere}
#mmd-matt-root .lx-v37-plan{max-height:390px;overflow:hidden;margin:0}
#mmd-matt-root .lx-v37-plan svg{display:block;width:100%;max-height:320px;height:auto}
#mmd-matt-root .lx-v37-dims{color:#78695e;font-size:12px;margin:0 0 8px}
#mmd-matt-root .lx-v37-amount{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;border-bottom:1px solid #e7dbcf;font-size:13px}
#mmd-matt-root .lx-v37-amount strong{text-align:right;overflow-wrap:anywhere}
#mmd-matt-root .lx-v37-total{background:#f7f3ed;border:1px solid #e1d4c6;border-radius:12px;padding:16px;margin:14px 0}
#mmd-matt-root .lx-v37-grand{display:flex;justify-content:space-between;gap:12px;padding:16px 0;font-size:18px;color:#49352b;border-bottom:1px solid #e7dbcf}
#mmd-matt-root .lx-v37-grand strong:last-child{white-space:nowrap}
#mmd-matt-root .lx-v37-total p{font-size:11px;color:#78695e;margin:10px 0 0}
#mmd-matt-root .lx-v37-edit{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#mmd-matt-root[data-stage="5"] .lx-options{display:none}
#mmd-matt-root .lx-v37-technical{margin:12px 0}
@media(max-width:520px){#mmd-matt-root .lx-v37-section,#mmd-matt-root .lx-v37-total{padding:11px}#mmd-matt-root .lx-v37-item{grid-template-columns:44px minmax(0,1fr) auto;gap:7px}#mmd-matt-root .lx-v37-item>img,#mmd-matt-root .lx-v37-item>.lx-swatch-photo{width:44px;height:44px}#mmd-matt-root .lx-v37-grand{font-size:15px}#mmd-matt-root .lx-v37-amount{font-size:12px}}

/* V38 — final responsive shell audit against AUGUST 9.26.
   No catalogue, prices, plan geometry or commerce changes. */
@media screen and (min-width:761px) {
  #mmd-matt-root .lx-hero{padding-bottom:30px;margin-bottom:0}
  #mmd-matt-root[data-stage="3"] .lx-layout{gap:12px}
}
@media screen and (min-width:761px) and (max-width:1320px) {
  #mmd-matt-root:is([data-stage="0"],[data-stage="3"]) .lx-layout{
    grid-template-columns:minmax(180px,235px) minmax(0,1fr);
    grid-template-areas:"progress board" "progress options";
  }
  #mmd-matt-root:is([data-stage="0"],[data-stage="3"]) .lx-stage{position:relative;top:auto}
  #mmd-matt-root:is([data-stage="0"],[data-stage="3"]) .lx-content{max-height:none;min-height:0;overflow:visible}
  #mmd-matt-root[data-stage="0"] .lx-board-wrap{height:clamp(480px,51vw,660px)}
}
@media screen and (max-width:760px) {
  #mmd-matt-root .lx-layout{padding:8px 16px}
  #mmd-matt-root .lx-stage{padding:0;position:relative;overflow:visible}
  /* Same compact drawing as AUGUST. Controls remain available above the drawing. */
  #mmd-matt-root .lx-stage-title{height:0;min-height:0;padding:0;margin:0;border:0;display:block;overflow:visible}
  #mmd-matt-root .lx-stage-title>div:first-child{display:none}
  #mmd-matt-root .lx-stage-title .lx-board-actions{position:absolute;top:9px;right:9px;z-index:5;gap:4px}
  #mmd-matt-root .lx-board-actions button{padding:5px 8px;min-height:28px;font-size:11px;background:#fffdf9ef}
  #mmd-matt-root .lx-board-context,#mmd-matt-root .lx-board-hint{display:none}
  #mmd-matt-root .lx-stage:has(.lx-board-empty:not([hidden])) .lx-stage-list,
  #mmd-matt-root .lx-stage:has(.lx-board-empty:not([hidden])) .lx-board-snap{display:none}
  #mmd-matt-root .lx-board-wrap .lx-v22-zoom{right:8px;bottom:22px;padding:3px;gap:2px}
  #mmd-matt-root .lx-board-wrap .lx-v22-zoom button{padding:4px 7px;font-size:10px;min-height:32px}
}
/* V38 — do not display manipulation panels before a module exists. */
@media screen {
  #mmd-matt-root .lx-stage:has(.lx-board-empty:not([hidden])) .lx-stage-list,
  #mmd-matt-root .lx-stage:has(.lx-board-empty:not([hidden])) .lx-board-snap{display:none}
}
@media screen and (min-width:761px) and (max-width:1320px) {
  #mmd-matt-root[data-stage="0"] .lx-content{max-height:calc(100vh - 150px);min-height:400px;overflow-y:auto;overscroll-behavior:contain}
}
@media screen and (max-width:760px) {
  #mmd-matt-root .lx-panel.lx-stage:not(.lx-summary){padding:0}
}
