.mwms-dialog{width:min(1280px,96vw);max-height:95dvh;overflow:auto;padding:1rem;border:1px solid #ccd6ca;border-radius:1rem;background:#f7f5ee;color:#18372a;direction:rtl}.mwms-dialog::backdrop{background:#101c16dc}.mwms-dialog h2{margin:.5rem 0;font-size:1.3rem}.mwms-close{float:left}.mwms-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:1rem}.mwms-layout canvas{width:100%;height:auto;position:sticky;top:0;align-self:start;border-radius:.6rem}.mwms-dialog button,.mwms-open{font:inherit;min-height:44px;cursor:pointer;border:1px solid #a5b5a7;border-radius:.5rem;background:#fff;padding:.45rem .65rem;color:#18372a}.mwms-open{display:block;width:100%;margin-top:.6rem;background:#e4eddf}.mwms-palette fieldset{border:1px solid #cad3c5;border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.7rem;padding:.5rem}.mwms-palette button{font-size:.78rem;display:flex;align-items:center;gap:.3rem}.mwms-palette button:before{content:'';width:1.3rem;height:1.3rem;background:var(--swatch);border:1px solid #888;border-radius:50%}.mwms-palette button[aria-pressed=true]{outline:3px solid #335a42;outline-offset:1px;background:#e0e9dc}.mwms-actions{display:flex;gap:.4rem;flex-wrap:wrap}.mwms-form{display:grid;gap:.6rem}.mwms-form label{display:grid;gap:.3rem}.mwms-form input,.mwms-form textarea{width:100%;min-height:44px;padding:.5rem;border:1px solid #9eae9f;border-radius:.4rem;font:inherit;box-sizing:border-box}.mwms-form input[type=checkbox]{width:24px;min-height:24px}.mwms-form button[type=submit]{background:#214b35;color:white}.mwms-dialog :focus-visible{outline:3px solid #b37521;outline-offset:2px}.mwms-dialog button:disabled{opacity:.6;cursor:wait}@media(max-width:760px){.mwms-layout{grid-template-columns:1fr}.mwms-layout canvas{position:static}.mwms-dialog{width:96vw;padding:.7rem;box-sizing:border-box}}@media(prefers-reduced-motion:reduce){.mwms-dialog *{scroll-behavior:auto}}

.mwms-palette-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin-bottom:.75rem}.mwms-palette-tabs button{font-size:.84rem}.mwms-palette-tabs [aria-selected=true]{background:#214b35;color:#fff;border-color:#214b35}.mwms-palette-panel[hidden]{display:none!important}.mwms-palette-panel fieldset{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.mwms-palette-panel fieldset button{min-width:0;display:flex;flex-direction:column;justify-content:start;text-align:center;gap:.25rem;padding:.5rem .3rem;min-height:90px}.mwms-palette-panel button:before{width:1.8rem;height:1.8rem;flex:none}.mwms-palette-panel button small{direction:ltr;font-size:.68rem;color:#506456}.mwms-palette-panel button span{font-size:.76rem;line-height:1.6}

.mwms-dialog,.mwms-page,.mwms-dialog button,.mwms-dialog input,.mwms-dialog textarea{font-family:IRANYekanX,Tahoma,sans-serif}.mwms-palette-tabs button:before{content:none}.mwms-scene{margin:0;position:sticky;top:0;align-self:start;background:#f7f5ee;border-radius:8px;overflow:hidden}.mwms-scene figcaption{padding:.55rem .65rem;font-weight:700;font-size:.9rem}.mwms-scene canvas{position:static;display:block;width:100%;height:auto}.mwms-selection-summary{background:#edf1e8;border:1px solid #ccd8c5;border-radius:8px;padding:.7rem;margin:.8rem 0}.mwms-selection-summary>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:.5rem;margin:.35rem 0;font-size:.8rem}.mwms-selection-summary dt{color:#58704e}.mwms-selection-summary dd{margin:0;font-weight:600;overflow-wrap:anywhere}.mwms-form h3{font-size:1rem;margin:.5rem 0}.mwms-form small{font-size:.73rem;line-height:1.9;color:#596b50}@media(max-width:760px){.mwms-scene{position:sticky;top:-1px;z-index:2}.mwms-scene canvas{max-height:30dvh;object-fit:contain;background:#edeadf}.mwms-scene figcaption{font-size:.8rem;padding:.35rem .5rem}.mwms-dialog h2{font-size:1rem}.mwms-dialog>p{font-size:.76rem}}

/* Studio workspace v0.3: direct swatches, large preview, independent zoom. */
.mwms-dialog{border:1px solid #d5ddd6;background:#f8faf7;box-sizing:border-box;padding:20px;color:#203c30}
.mwms-inline[open]{position:relative;inset:auto;display:block;margin:20px 0 28px;width:100%;max-width:none;max-height:none;overflow:visible;box-shadow:0 12px 38px #193c2c0b;border-radius:18px}
.mwms-inline h2{font-size:22px;margin:0 0 4px}.mwms-inline>p{font-size:14px;color:#66776a}
.mwms-layout{grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:22px;align-items:start}
.mwms-scene{top:12px;border:1px solid #d9e2d9;background:#edf1ec;border-radius:12px;overflow:hidden}
.mwms-scene figcaption{font-size:13px;padding:12px;color:#425d4b}
.mwms-scene-tools{display:flex;gap:8px;flex-wrap:wrap;padding:0 10px 10px}
.mwms-scene-tools button{min-height:44px;font-size:12px;padding:6px 10px;background:#fff}
.mwms-viewport{overflow:auto;max-height:75dvh;direction:ltr;touch-action:pan-x pan-y pinch-zoom}
.mwms-scene canvas{max-width:none!important;max-height:none!important;object-fit:initial!important;border-radius:0;cursor:zoom-in}
.mwms-zoomed{position:fixed!important;inset:12px!important;z-index:1000000!important;background:#f8faf7;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #13281de8}
.mwms-zoomed .mwms-viewport{flex:1;max-height:none;min-height:0}.mwms-zoomed canvas{min-width:100%}
.mwms-controls{min-width:0}.mwms-palette>h3{font-size:16px;margin:0 0 12px}
.mwms-palette-tabs{display:none}.mwms-palette-panel{scroll-margin-top:20px}
.mwms-palette-panel fieldset{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:#fff;border:1px solid #dce3da;border-radius:12px;margin:0 0 14px;padding:12px 8px}
.mwms-palette-panel legend{font-size:13px;font-weight:700;padding:0 6px}
.mwms-palette-panel fieldset button{padding:6px;gap:4px;min-height:98px;border:1px solid transparent;border-radius:8px;justify-content:start}
.mwms-palette-panel button:before{display:none}.mwms-swatch{display:block;width:100%;height:44px;flex:none;border:1px solid #00000014;border-radius:5px;background-size:cover;background-position:center}
.mwms-palette-panel button span{font-size:11px;line-height:1.6}.mwms-palette-panel button small{font-size:10px}
.mwms-palette-panel button[aria-pressed=true]{outline:2px solid #214d37;background:#e7f1e9}
.mwms-palette-panel#mwms-panel-wood .mwms-swatch{height:72px;background-size:cover;background-repeat:no-repeat}
.mwms-actions{margin:12px 0}.mwms-actions button{font-size:12px}.mwms-selection-summary{margin:16px 0}
.mwms-form{padding:16px;border:1px solid #d9e2d8;border-radius:12px;background:#fff}.mwms-form label{font-size:13px}.mwms-form input,.mwms-form textarea{font-size:16px}
.mwms-model-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mwms-model-grid article>a{aspect-ratio:4/3}.mwms-model-grid h2{font-size:13px}.mwms-model-grid .mwgal-caption{padding:10px}.mwms-model-grid .mwms-open{font-size:12px}
.mwms-dialog button:focus-visible{outline:3px solid #a67127;outline-offset:3px}
@media(max-width:900px){.mwms-layout{grid-template-columns:1fr}.mwms-controls{display:block}.mwms-scene{position:sticky;top:0;z-index:4}.mwms-inline{isolation:isolate}.mwms-inline[open]{padding:12px}.mwms-viewport{max-height:48dvh}.mwms-scene figcaption{padding:7px 10px;font-size:11px}.mwms-scene-tools{gap:6px;padding-bottom:8px}.mwms-scene-tools button{flex:1;white-space:nowrap;font-size:11px;padding-inline:6px}.mwms-palette-panel fieldset{grid-template-columns:repeat(5,minmax(0,1fr))}.mwms-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mwms-page{padding-inline:12px}.mwms-inline h2{font-size:18px}.mwms-inline>p{font-size:12px}.mwms-dialog:has(.mwms-zoomed){overflow:visible}.mwms-zoomed{inset:6px!important}.mwms-zoomed .mwms-viewport{max-height:none}}
@media(max-width:480px){.mwms-palette-panel fieldset{grid-template-columns:repeat(4,minmax(0,1fr))}.mwms-layout{gap:14px}.mwms-scene-tools button{min-height:44px}.mwms-scene-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mwms-palette-panel fieldset button{min-height:92px}.mwms-inline>p{line-height:1.8}.mwms-selection-summary>div{grid-template-columns:80px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.mwms-dialog *{scroll-behavior:auto!important;transition:none!important}}

.mwms-zoomed{height:calc(100dvh - 24px)!important;width:calc(100vw - 24px)!important;max-height:none!important}.mwms-palette-panel [data-finish]{scroll-margin-top:48dvh}@media(max-width:900px){.mwms-zoomed{height:calc(100dvh - 12px)!important;width:calc(100vw - 12px)!important}}

.mwms-zoomed .mwms-scene-tools,.mwms-zoomed figcaption{flex-shrink:0}.mwms-zoomed .mwms-viewport{flex:1 1 0;height:0;min-height:0}.mwms-zoomed .mwms-viewport canvas{height:auto!important}

body:has(.mwms-inline[open]) .site-header.mw-header{position:relative!important;top:auto!important}
.mwms-zoomed{z-index:2147483647!important;direction:rtl;color:#203c30;border-radius:12px;box-sizing:border-box;font-family:IRANYekanX,Tahoma,sans-serif}
.mwms-zoomed .mwms-scene-tools button{font:inherit;font-size:12px;border:1px solid #a5b5a7;border-radius:6px;background:#fff;color:#203c30;cursor:pointer}
body:has(>.mwms-zoomed){overflow:hidden}
body:has(>.mwms-zoomed) .site-header.mw-header{visibility:hidden}
.mwms-hub .mwms-model-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}
.mwms-hub .mwms-model-filters button{display:grid;grid-template-rows:auto 1fr;align-items:center;text-align:center;gap:.35rem;padding:.4rem;min-width:0;white-space:normal;line-height:1.45}
.mwms-hub .mwms-model-filters img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:.4rem;display:block}
.mwms-hub .mwms-model-filters span{padding:.2rem;display:block}
.mwms-swatch{background-size:cover;background-position:center}
.mwms-palette-tabs [hidden]{display:none!important}
@media(max-width:600px){.mwms-hub .mwms-model-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.mwms-hub .mwms-model-filters button{font-size:.78rem}}
