@font-face { font-family: "Lalezar"; src: url("../fonts/ttf/Lalezar-Regular.ttf") format("truetype"); font-display: swap; }
/* آسان فوم — ویرایشگر طراحی آنلاین */
.uz-page-head--slim { padding-block: 24px; }
.uz-page-head--slim p a { color: var(--gold); text-decoration: underline; }
.uz-designer-page .uz-alert { max-width: var(--container); margin: 16px auto 0; }

.uz-dz { --dz-bg: #1a2723; --dz-panel: #fff; display: flex; flex-direction: column; height: 100vh; min-height: 560px; scroll-margin-top: 0; background: var(--dz-bg); border-top: 1px solid rgba(255, 255, 255, .06); }
.uz-dz__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--green-900); color: #fff; }
.uz-dz__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uz-dz__field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.uz-dz__field input, .uz-dz__field select { width: 72px; min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; }
.uz-dz__field select { width: auto; }
.uz-dz__field select option { color: var(--ink); }
.uz-dz__field span { color: rgba(255, 255, 255, .5); font-size: 12px; }
.uz-dz__btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.uz-dz__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz__btn:hover { border-color: var(--gold); color: var(--gold); }
.uz-dz__btn--text { font-size: 13px; padding: 0 12px; }
.uz-dz__zoom { display: inline-flex; align-items: center; gap: 1px; height: 30px; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .8); cursor: text; }
.uz-dz__zoom:focus-within { border-color: #1e7bff; background: rgba(30, 123, 255, .15); }
.uz-dz__zoom input { width: 40px; border: 0; background: none; color: #fff; text-align: center; font: inherit; font-weight: 700; padding: 0; outline: 0; }
.uz-dz__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .15); margin-inline: 2px; }

.uz-dz__body { flex: 1; display: grid; grid-template-columns: 84px 1fr 280px; min-height: 0; }
.uz-dz__tools { position: relative; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; background: #13201c; }
.uz-dz__tgroup { position: relative; }
.uz-dz__gbtn { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; font: inherit; font-size: 11px; }
.uz-dz__gbtn svg, .uz-dz__fitem svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz__gicon { display: grid; place-items: center; }
.uz-dz__gbtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.uz-dz__tgroup.is-active > .uz-dz__gbtn { background: rgba(214, 165, 78, .16); border-color: rgba(214, 165, 78, .5); color: var(--gold); }
.uz-dz__more { position: absolute; bottom: 5px; left: 5px; width: 0; height: 0; border-style: solid; border-width: 0 0 6px 6px; border-color: transparent transparent currentColor transparent; opacity: .7; }
.uz-dz__fly { position: absolute; top: -4px; right: calc(100% + 10px); display: none; min-width: 190px; padding: 6px; border-radius: 12px; background: #1c2b26; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.uz-dz__fly::before { content: ""; position: absolute; top: 22px; right: -6px; width: 10px; height: 10px; background: #1c2b26; border-top: 1px solid rgba(255, 255, 255, .1); border-right: 1px solid rgba(255, 255, 255, .1); transform: rotate(45deg); }
.uz-dz__tgroup.is-open .uz-dz__fly { display: grid; gap: 2px; animation: uz-fly .16s ease-out; }
@keyframes uz-fly { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.uz-dz__fitem { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .85); font: inherit; font-size: 13.5px; cursor: pointer; text-align: right; white-space: nowrap; }
.uz-dz__fitem:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.uz-dz__fitem.is-active { background: rgba(214, 165, 78, .18); color: var(--gold); }

.uz-dz__stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #eff1ec; }
.uz-dz__stage canvas { display: block; }
.uz-dz__hint { position: absolute; bottom: 12px; right: 50%; transform: translateX(50%); max-width: calc(100% - 32px); padding: 6px 14px; border-radius: 999px; background: rgba(10, 32, 27, .8); color: rgba(255, 255, 255, .85); font-size: 12.5px; pointer-events: none; text-align: center; backdrop-filter: blur(4px); }

.uz-dz__props { background: var(--dz-panel); padding: 16px; overflow-y: auto; min-height: 0; font-size: 13.5px; border-inline-start: 1px solid var(--line); }
.uz-dz__props h2 { font-size: 16px; margin-bottom: 12px; }
.uz-dz__props h3 { font-size: 14px; margin: 18px 0 8px; }
.uz-dz__empty { color: var(--muted); font-size: 13px; }
.uz-dz__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uz-dz__props label { display: grid; gap: 4px; font-weight: 600; color: var(--green-900); font-size: 12.5px; position: relative; }
.uz-dz__props label > span { position: absolute; left: 10px; bottom: 9px; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.uz-dz__props input[type="number"], .uz-dz__props select, .uz-dz__props textarea { width: 100%; min-height: 36px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fbfbf9; font-size: 13px; }
.uz-dz__props input:focus, .uz-dz__props select:focus, .uz-dz__props textarea:focus { outline: none; border-color: var(--gold); }
.uz-dz__textprops, .uz-dz__polyprops { display: grid; gap: 10px; margin-top: 12px; }
.uz-dz__lock, .uz-dz__check { display: flex !important; align-items: center; gap: 6px; font-weight: 500 !important; margin-top: 12px; }
.uz-dz__lock { align-self: end; margin: 0 0 8px; }
.uz-dz__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.uz-dz__props .uz-dz__btn { border-color: var(--line); color: var(--green-800); height: 32px; }
.uz-dz__props .uz-dz__btn:hover { border-color: var(--gold); color: var(--gold-600); }
.uz-dz__btn--danger { color: var(--err) !important; }
.uz-dz__refprops { display: grid; gap: 8px; }
.uz-dz__summary { margin-top: 20px; padding: 12px; border-radius: 10px; background: var(--gold-100); color: var(--green-900); }
.uz-dz__summary h3 { margin-top: 0; }
.uz-dz__summary p { margin: 0; line-height: 1.9; }

.uz-dz-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 18, 15, .7); backdrop-filter: blur(3px); }
.uz-dz-modal[hidden] { display: none; }
.uz-dz-modal__box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); }
.uz-dz-modal__close { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.uz-dz-modal__preview { width: 100%; max-height: 240px; object-fit: contain; background: #eef0ed; border-radius: 10px; margin-bottom: 16px; }

@media (max-width: 900px) {
	.uz-dz { height: auto; }
	.uz-dz__body { grid-template-columns: 1fr; grid-template-rows: auto 60vh auto; }
	.uz-dz__tools { flex-direction: row; overflow-x: auto; padding: 6px; }
	.uz-dz__tool { min-width: 64px; }
	.uz-dz__props { border-inline-start: 0; border-top: 1px solid var(--line); }
	.uz-dz__hint { display: none; }
}
.uz-dz [hidden], .uz-dz-modal[hidden] { display: none !important; }

/* نوار بالا: کلیدهای چسبندگی/شبکه */
.uz-dz__toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: rgba(255, 255, 255, .8); cursor: pointer; user-select: none; }
.uz-dz__toggle input { accent-color: var(--gold); }

/* اعلان کوتاه روی بوم */
.uz-dz__toast { position: absolute; top: 40px; right: 50%; transform: translate(50%, -8px); max-width: min(560px, calc(100% - 40px)); padding: 10px 16px; border-radius: 10px; background: rgba(10, 32, 27, .94); color: #fff; font-size: 13.5px; line-height: 1.8; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 4; }
.uz-dz__toast.is-on { opacity: 1; transform: translate(50%, 0); }
.uz-dz__toast.is-on a, .uz-dz__toast.is-on button { pointer-events: auto; }
.uz-dz__toast a { color: var(--gold); text-decoration: underline; }

/* پنل مشخصات */
.uz-dz__align { gap: 4px; }
.uz-dz__align .uz-dz__btn { width: 34px; padding: 0; }
.uz-dz__align svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.uz-dz__eraserprops { display: grid; gap: 8px; margin-bottom: 14px; }
.uz-dz__eraserprops b { font-weight: 600; color: var(--muted); font-size: 12px; }
.uz-dz__savestate { margin-top: 6px !important; font-size: 12.5px; color: var(--gold-600); }
.uz-dz__keys { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.uz-dz__keys summary { cursor: pointer; font-weight: 700; color: var(--green-900); }
.uz-dz__keys ul { margin: 8px 0 0; padding-inline-start: 1.1em; line-height: 2; }
.uz-dz__keys kbd { font: 11px/1 monospace; padding: 2px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink); }

/* پنجره تأیید */
.uz-dz-confirm__box { width: min(440px, 100%); text-align: center; }
.uz-dz-confirm__box h2 { font-size: 20px; }
.uz-dz-confirm__box p { color: var(--muted); }
.uz-dz-confirm__actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* ==========================================================================
   ماژول ساخت: تب‌ها، قطعات و بررسی، کتابخانه، الگوها، سه‌بعدی، چیدمان ورق
   ========================================================================== */
.uz-dz__btn--hl { background: var(--gold) !important; color: var(--green-950) !important; border-color: var(--gold) !important; font-weight: 800; }
.uz-dz__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -4px 0 14px; border-radius: 12px; background: #eef0ea; position: sticky; top: -16px; z-index: 2; }
.uz-dz__tabs button { position: relative; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.uz-dz__tabs button.is-active { background: #fff; color: var(--green-900); box-shadow: 0 2px 8px rgba(15, 45, 39, .1); }
.uz-dz__tabs em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 4px; border-radius: 999px; background: var(--green-700); color: #fff; font-size: 11px; }
.uz-dz__tabs em:empty { display: none; }
.uz-dz__tabs em.is-warn { background: #e9a23b; color: #3b2600; }
.uz-dz__tabs em.is-err { background: var(--err); }
.uz-dz__mfg { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f4f7f3; border: 1px solid #dfe7dd; }
.uz-dz__mfg h3 { margin: 0 0 10px; font-size: 13.5px; }
.uz-dz__mfg > label { display: grid; gap: 4px; margin-top: 8px; }
.uz-dz__mfg input[type="text"] { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

.uz-pt__empty { padding: 18px 14px; border-radius: 12px; background: #f4f7f3; line-height: 1.9; }
.uz-pt__empty p { margin: 6px 0 0; color: var(--muted); }
.uz-pt__sum { display: grid; gap: 10px; }
.uz-pt__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.uz-pt__kpis div { display: grid; justify-items: center; padding: 10px 4px; border-radius: 12px; background: var(--green-900); color: #fff; text-align: center; }
.uz-pt__kpis b { font-size: 22px; line-height: 1.2; color: var(--gold); }
.uz-pt__kpis span { font-size: 11px; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.uz-pt__sum dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; padding: 8px 12px; border-radius: 10px; background: #f4f7f3; font-size: 13px; }
.uz-pt__sum dt { color: var(--muted); }
.uz-pt__sum dd { margin: 0; font-weight: 700; text-align: left; }
.uz-pt__price { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--gold-100); border: 1px solid #efd9ad; }
.uz-pt__price small { color: var(--gold-600); font-weight: 700; }
.uz-pt__price b { font-size: 16px; color: var(--green-900); }
.uz-pt__price em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.uz-pt__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.uz-pt__btns .uz-dz__btn { width: 100%; justify-content: center; }
.uz-dz__parts h3 { margin: 16px 0 8px; font-size: 14px; }
.uz-pt__ok { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f6ee; color: var(--ok); font-weight: 700; }
.uz-pt__warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uz-pt__warns li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.85; background: #f3f5f8; border: 1px solid #e0e6ee; }
.uz-pt__warns li.is-err { background: #fdecea; border-color: #f5c6c1; }
.uz-pt__warns li.is-warn { background: #fff6e6; border-color: #f4dcae; }
.uz-pt__warns i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #457b9d; margin-top: 2px; }
.uz-pt__warns i::before { content: "i"; color: #fff; font: 700 12px/1 serif; font-style: normal; }
.uz-pt__warns li.is-err i { background: var(--err); }
.uz-pt__warns li.is-err i::before, .uz-pt__warns li.is-warn i::before { content: "!"; font-family: inherit; }
.uz-pt__warns li.is-warn i { background: #e9a23b; }
.uz-pt__warns p { margin: 0; }
.uz-pt__warns span { display: flex; gap: 6px; margin-top: 4px; }
.uz-pt__warns span:empty { display: none; }
.uz-pt__warns button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 2px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.uz-pt__warns button.is-fix { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.uz-pt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uz-pt__list li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.uz-pt__list li:hover { border-color: var(--gold); box-shadow: 0 4px 12px rgba(15, 45, 39, .08); }
.uz-pt__list li.is-bad { border-color: #f5c6c1; }
.uz-pt__thumb { position: relative; width: 58px; height: 52px; border-radius: 8px; background: #f4f5f1; display: grid; place-items: center; }
.uz-pt__thumb svg { width: 50px; height: 44px; }
.uz-pt__thumb em { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; border: 2px solid #fff; white-space: nowrap; }
.uz-pt__info { display: grid; gap: 1px; min-width: 0; }
.uz-pt__info b { font-size: 13px; color: var(--green-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uz-pt__info small { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.uz-pt__info .uz-pt__split { color: #8a5a00; font-weight: 700; }

/* کتابخانه اشکال */
.uz-dz__fly--lib { min-width: 250px; grid-template-columns: 1fr 1fr; max-height: min(70vh, 560px); overflow-y: auto; }
.uz-dz__tgroup.is-open .uz-dz__fly--lib { display: grid; }
.uz-dz__flycat { grid-column: 1 / -1; padding: 6px 8px 2px; font-size: 11.5px; color: var(--gold); }
.uz-dz__litem { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .85); font: inherit; font-size: 11.5px; cursor: pointer; text-align: center; line-height: 1.4; }
.uz-dz__litem:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.uz-dz__litem svg { width: 40px; height: 40px; fill: rgba(214, 165, 78, .3); stroke: var(--gold); stroke-width: 3; }

/* سفارش: خلاصه قطعات */
.uz-dz-order__sum { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--gold-100); font-size: 13.5px; }
.uz-dz-order__warn { padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #fff6e6; border: 1px solid #f4dcae; font-size: 13px; line-height: 1.9; }

/* الگوها */
.uz-dz-tpl { width: min(880px, 100%); }
.uz-dz-tpl > p { color: var(--muted); }
.uz-dz-tpl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.uz-dz-tpl__card { display: grid; justify-items: center; gap: 6px; padding: 16px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fbfaf6; font: inherit; color: var(--ink); cursor: pointer; text-align: center; transition: .2s var(--ease); }
.uz-dz-tpl__card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.uz-dz-tpl__card svg { width: 64px; height: 64px; fill: none; stroke: var(--green-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz-tpl__card b { font-size: 15px; color: var(--green-900); }
.uz-dz-tpl__card small { color: var(--muted); line-height: 1.7; font-size: 12px; }
.uz-dz-tpl__card.is-blank { border-style: dashed; }

/* نمای سه‌بعدی */
.uz-dz-3d { padding: 12px; }
.uz-dz-3d__box { position: relative; width: min(1400px, 100%); height: min(900px, calc(100vh - 24px)); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #2c3b36; box-shadow: var(--shadow-lg); }
.uz-dz-3d__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: var(--green-900); color: #fff; }
.uz-dz-3d__bar strong { font-size: 15px; margin-inline-end: 6px; }
.uz-dz-3d__hint { font-size: 12px; color: rgba(255, 255, 255, .6); margin-inline-end: auto; }
.uz-dz-3d__bar .uz-dz-modal__close { position: static; width: 36px; height: 36px; color: var(--green-900); }
.uz-dz-3d__bar .uz-dz-modal__close svg { width: 18px; height: 18px; }
.uz-dz-3d__view { position: relative; flex: 1; min-height: 0; }
.uz-dz-3d__view canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.uz-dz-3d__loading { position: absolute; inset: 0; display: grid; place-items: center; color: #dfe7e3; font-weight: 700; }

/* چیدمان روی ورق */
.uz-dz-sheets { width: min(1000px, 100%); }
.uz-dz-sheets__lead { color: var(--muted); font-size: 13.5px; }
.uz-dz-sheets__size { color: var(--ink) !important; margin-bottom: 10px; }
.uz-dz-sheets__size select { border: 1px solid var(--line) !important; color: var(--ink) !important; background: #fff !important; }
.uz-sh__group { margin-top: 14px; }
.uz-sh__group h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.uz-sh__group h3 i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.uz-sh__sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.uz-sh__sheet { margin: 0; padding: 8px; border-radius: 12px; background: #f4f5f1; border: 1px solid var(--line); }
.uz-sh__sheet.is-custom { border-color: #f4dcae; background: #fff9ef; }
.uz-sh__sheet svg { width: 100%; height: auto; display: block; }
.uz-sh__sheet figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
	.uz-dz__fly--lib { position: fixed; inset: auto 8px 8px 8px; max-height: 60vh; z-index: 60; }
	.uz-dz__fly--lib::before { display: none; }
	.uz-dz-3d { padding: 0; }
	.uz-dz-3d__box { height: 100vh; border-radius: 0; }
	.uz-dz-3d__hint { display: none; }
	.uz-pt__btns { grid-template-columns: 1fr; }
}

.uz-pt__addbase { justify-self: start; margin-top: 4px; padding: 3px 10px; border: 1px dashed var(--gold); border-radius: 7px; background: #fffaf0; color: var(--green-900); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.uz-pt__addbase:hover { background: var(--gold-100); }

@media (max-width: 640px) {
	.uz-dz-tpl__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.uz-dz-tpl__card { padding: 12px 8px; }
	.uz-dz-tpl__card svg { width: 44px; height: 44px; }
	.uz-dz-tpl__card small { font-size: 11px; }
}

/* ==========================================================================
   چیدمان ساده (نسخه ۳): مراحل، منوی «بیشتر»، شروع روی ورق خالی، پنل زمینه‌ای، بررسی نهایی
   ========================================================================== */
.uz-dz-headrow__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.uz-dz-headrow__btns .uz-btn { color: var(--gold); background: rgba(255, 255, 255, .06); border: 1.5px solid var(--gold); font-weight: 700; }
.uz-dz-headrow__btns .uz-btn:hover { background: var(--gold); color: var(--green-950); }

.uz-dz__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; }
.uz-dz__group--view { justify-content: center; }
.uz-dz__group--main { justify-content: flex-end; }
.uz-dz__btn--text { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.uz-dz__btn--text svg { width: 17px; height: 17px; }
.uz-dz__cta { min-height: 38px; padding-inline: 18px; font-weight: 800; box-shadow: 0 6px 18px rgba(214, 165, 78, .35); }
.uz-dz__cta svg { width: 18px; height: 18px; transform: scaleX(-1); }

/* مراحل */
.uz-dz__steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.uz-dz__steps li { display: flex; align-items: center; }
.uz-dz__steps li + li::before { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, .25); margin-inline: 2px; }
.uz-dz__steps button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .7); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.uz-dz__steps button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.uz-dz__steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.uz-dz__steps .is-current button { background: rgba(214, 165, 78, .16); color: var(--gold); font-weight: 700; }
.uz-dz__steps .is-current b { background: var(--gold); border-color: var(--gold); color: var(--green-950); }

/* منوی «بیشتر» */
.uz-dz__morewrap { position: relative; }
.uz-dz__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 300px; padding: 6px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.uz-dz__menu[hidden] { display: none !important; }
.uz-dz__menusec { padding: 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.uz-dz__menusec:last-child { border-bottom: 0; }
.uz-dz__menusec > b { font-size: 12.5px; color: var(--muted); }
.uz-dz__menurow { display: flex; gap: 10px; flex-wrap: wrap; }
.uz-dz__menu .uz-dz__field { color: var(--ink); }
.uz-dz__menu .uz-dz__field input, .uz-dz__menu .uz-dz__field select { background: #fbfaf6; border-color: var(--line); color: var(--ink); }
.uz-dz__menu .uz-dz__field span { color: var(--muted); }
.uz-dz__mtoggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.uz-dz__mtoggle input { accent-color: var(--green-700); width: 16px; height: 16px; }
.uz-dz__menulist { gap: 2px; }
.uz-dz__menulist button { text-align: right; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; color: var(--green-900); cursor: pointer; }
.uz-dz__menulist button:hover { background: #f1f3ee; }
.uz-dz__menulist .is-danger { color: var(--err); }

/* بدنه: پنل کنار پهن‌تر و خواناتر */
.uz-dz__body { grid-template-columns: 84px 1fr 332px; }
.uz-dz__props { padding: 18px 16px; font-size: 14px; }
.uz-dz__props h2 { font-size: 17px; margin: 0 0 12px; }

/* ورق خالی: «از کجا شروع کنیم؟» */
.uz-dz__emptystate { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; pointer-events: none; z-index: 3; }
.uz-dz__emptycard { pointer-events: auto; width: min(560px, 100%); padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); text-align: center; }
.uz-dz__emptycard h2 { font-size: 21px; margin-bottom: 6px; }
.uz-dz__emptycard > p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.uz-dz__startbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uz-dz__startbtns button { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fbfaf6; font: inherit; color: var(--ink); cursor: pointer; transition: .2s var(--ease); }
.uz-dz__startbtns button:hover { border-color: var(--gold); background: #fffaf0; transform: translateY(-2px); box-shadow: var(--shadow); }
.uz-dz__startbtns svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-600); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz__startbtns b { font-size: 15px; color: var(--green-900); }
.uz-dz__startbtns small { color: var(--muted); font-size: 12px; }
.uz-dz__startbtns button:first-child { grid-column: 1 / -1; background: var(--green-900); border-color: var(--green-900); }
.uz-dz__startbtns button:first-child b { color: #fff; }
.uz-dz__startbtns button:first-child small { color: rgba(255, 255, 255, .7); }
.uz-dz__startbtns button:first-child svg { stroke: var(--gold); }

/* پنل خلاصه (بدون انتخاب) */
.uz-ov__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.uz-ov__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; line-height: 1.9; }
.uz-ov__steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-800); color: var(--gold); font-size: 13px; }
.uz-ov__tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #f4f7f3; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.uz-ov__kpis { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.uz-ov__kpis div { display: grid; padding: 10px; border-radius: 12px; background: var(--green-900); color: #fff; }
.uz-ov__kpis b { font-size: 20px; line-height: 1.3; color: var(--gold); }
.uz-ov__kpis span { font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.uz-ov__warn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 9px 12px; border: 1px solid #f4dcae; border-radius: 10px; background: #fff6e6; color: #7a4d00; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: right; }
.uz-ov__warn i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9a23b; color: #fff; font-style: normal; flex: none; }
.uz-ov__ok { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #e8f6ee; color: var(--ok); font-weight: 700; font-size: 13px; }
.uz-ov__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.uz-ov__list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.uz-ov__list li:hover { border-color: var(--gold); background: #fffaf0; }
.uz-ov__list li i { width: 12px; height: 12px; border-radius: 3px; }
.uz-ov__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--green-900); font-weight: 600; }
.uz-ov__list li small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.uz-ov__list li.is-more { display: block; border: 0; color: var(--muted); cursor: default; }
.uz-ov__btns { display: grid; gap: 8px; margin-top: 14px; }
.uz-ov__btns .uz-btn, .uz-ov__btns .uz-dz__btn { width: 100%; justify-content: center; }

/* پنل قطعه انتخاب‌شده */
.uz-dz__phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.uz-dz__phead h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uz-dz__iconbtn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--green-800); cursor: pointer; }
.uz-dz__iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz__iconbtn.is-danger { color: var(--err); }
.uz-dz__iconbtn.is-danger:hover { background: #fdecea; border-color: #f5c6c1; }
.uz-dz__objnote { margin: -2px 0 12px; padding: 9px 11px; border-radius: 10px; background: #fff6e6; border: 1px solid #f4dcae; font-size: 12.5px; line-height: 1.9; }
.uz-dz__objnote p { margin: 0; }
.uz-dz__objnote .is-warn { color: var(--err); margin-top: 4px; }
.uz-dz__essential { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #f4f7f3; border: 1px solid #dfe7dd; }
.uz-dz__essential .uz-dz__lock { margin: 0; font-size: 12.5px; }
.uz-dz__essential input[type="number"] { min-height: 42px; font-size: 15px; font-weight: 700; background: #fff; }
.uz-dz__mfg { margin: 0; padding: 0; background: none; border: 0; }
.uz-dz__thick { padding: 10px; border-radius: 12px; background: var(--gold-100); border: 1px solid #efd9ad; }
.uz-dz__thick input[type="number"] { border-color: var(--gold) !important; }
.uz-dz__props .uz-dz__thick > span { bottom: 21px; left: 20px; }
.uz-dz__textprops { margin-top: 12px; }
.uz-dz__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.uz-dz__quick button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 11.5px; color: var(--green-800); cursor: pointer; }
.uz-dz__quick button:hover { border-color: var(--gold); color: var(--gold-600); }
.uz-dz__quick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.uz-dz__multi { margin-top: 12px; }
.uz-dz__multi h3 { margin: 0 0 6px; }
.uz-dz__multi .uz-dz__actions { margin-top: 0; }
.uz-dz__details { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.uz-dz__details > summary { list-style: none; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 11px 12px; cursor: pointer; font-weight: 700; color: var(--green-900); font-size: 13.5px; }
.uz-dz__details > summary::-webkit-details-marker { display: none; }
.uz-dz__details > summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #eef0ea; color: var(--green-800); font-weight: 800; line-height: 1; }
.uz-dz__details[open] > summary::before { content: "−"; }
.uz-dz__details > summary small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.uz-dz__details > :not(summary) { margin-inline: 12px; }
.uz-dz__details > :last-child { margin-bottom: 12px; }
.uz-dz__details .uz-dz__check { margin-top: 10px; }
.uz-dz__outline { margin-top: 10px; }
.uz-dz__props input[type="text"] { width: 100%; min-height: 36px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fbfbf9; font: inherit; font-size: 13px; }
.uz-dz__refprops { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* مرحله ۳: بررسی نهایی و سفارش */
.uz-dz-review { width: min(1060px, 100%); padding: 22px 24px; }
.uz-dz-review h2 { font-size: 21px; }
.uz-dz-review__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.uz-dz-review__check .uz-dz-modal__preview { max-height: 220px; margin-bottom: 12px; }
.uz-dz-review__form { position: sticky; top: 0; padding: 16px; border-radius: 14px; background: #f7f8f4; border: 1px solid var(--line); }
.uz-dz-review__form h3 { margin: 0 0 10px; font-size: 16px; }
.uz-dz-review__form .uz-form { display: grid; gap: 10px; }
.uz-dz-review__note { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.9; }
.uz-pt__details { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.uz-pt__details > summary { padding: 10px 12px; cursor: pointer; font-weight: 700; color: var(--green-900); }
.uz-pt__details > ol { padding: 0 8px 8px; }

/* راهنما */
.uz-dz-help { width: min(620px, 100%); }
.uz-dz-help__steps { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 12px; }
.uz-dz-help__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: 14px; background: #f7f8f4; }
.uz-dz-help__steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--green-950); font-size: 18px; }
.uz-dz-help__steps strong { display: block; color: var(--green-900); margin-bottom: 2px; }
.uz-dz-help__steps p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.uz-dz-help .uz-dz__keys { margin: 0 0 14px; }

/* واکنش‌گرا */
@media (max-width: 1200px) {
	.uz-dz__top { grid-template-columns: 1fr auto; }
	.uz-dz__steps { grid-column: 1 / -1; justify-content: center; }
	.uz-dz__group--view { justify-content: flex-start; }
}
@media (max-width: 900px) {
	.uz-dz__top { grid-template-columns: 1fr; gap: 8px; padding: 8px 10px; }
	.uz-dz__steps span { display: none; }
	.uz-dz__steps .is-current span { display: inline; }
	.uz-dz__group--view, .uz-dz__group--main { justify-content: space-between; }
	.uz-dz__group--main .uz-dz__btn--text span { display: none; }
	.uz-dz__cta { flex: 1; justify-content: center; }
	.uz-dz__menu { position: fixed; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 75vh; overflow-y: auto; }
	.uz-dz__body { grid-template-columns: 1fr; grid-template-rows: auto 62vh auto; }
	.uz-dz__startbtns { grid-template-columns: 1fr 1fr; }
	.uz-dz__emptycard { padding: 16px; }
	.uz-dz__emptycard h2 { font-size: 18px; }
	.uz-dz__emptycard > p { font-size: 13px; margin-bottom: 10px; }
	.uz-dz__startbtns button { padding: 10px 6px; }
	.uz-dz__startbtns small { display: none; }
	.uz-dz-review { padding: 18px 14px; }
	.uz-dz-review__grid { grid-template-columns: 1fr; }
	.uz-dz-review__form { position: static; }
}

/* صفحه طراحی: هدر سایت ثابت نمی‌ماند تا روی نوار ابزار ویرایشگر نیفتد (ویرایشگر خودش کل صفحه را می‌گیرد) */
body.uz-designer-page .uz-header { position: relative; }
.uz-dz__startbtns { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .uz-dz__startbtns { grid-template-columns: repeat(3, 1fr); gap: 6px; } .uz-dz__startbtns b { font-size: 13px; } }

.uz-dz__menulist button small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }

.uz-ov__kpis.is-one { grid-template-columns: 1fr; }

/* ==========================================================================
   موبایل و تبلت (نسخه ۴): ویرایشگر تمام‌صفحه مثل اپ
   بالا: خروج، راهنما، برگشت/جلو، ذخیره، بیشتر، سفارش — وسط: بوم (زوم شناور) —
   پایین: نوار ابزار؛ مشخصات قطعه به شکل برگه کشویی روی بوم
   ========================================================================== */
.uz-dz__monly, .uz-dz__ctas, .uz-dz__sheetbar { display: none; }
.uz-dz__zoomctl { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
	body.uz-designer-page { overflow: hidden; overscroll-behavior: none; }
	.uz-dz { --dz-top: 54px; --dz-tools: 62px; --dz-safe: env(safe-area-inset-bottom, 0px); position: fixed; inset: 0; z-index: 150; height: auto; min-height: 0; border: 0; }
	body.admin-bar .uz-dz { top: 46px; }

	/* نوار بالا: یک ردیف */
	.uz-dz__top { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; height: var(--dz-top); padding: 0 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); z-index: 9; }
	.uz-dz__monly { display: inline-grid; }
	.uz-dz__menulist .uz-dz__monly { display: block; }
	.uz-dz__steps { display: none; }
	.uz-dz__group--view { flex: 1; gap: 6px; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; }
	.uz-dz__group--view > .uz-dz__sep { display: none; }
	.uz-dz__group--main { flex: none; gap: 6px; flex-wrap: nowrap; }
	.uz-dz__group--main > [data-mfg="3d"] { display: none; }
	.uz-dz__btn { min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; }
	.uz-dz__btn svg { width: 20px; height: 20px; }
	.uz-dz__group--main .uz-dz__btn--text span { display: none; }
	.uz-dz__cta { flex: none; min-height: 38px; height: 38px; padding-inline: 12px; gap: 6px; font-size: 14px; box-shadow: none; }
	.uz-dz__ctal { display: none; }
	.uz-dz__ctas { display: inline; }

	/* زوم: شناور گوشه بوم */
	.uz-dz__zoomctl { position: absolute; top: auto; bottom: calc(var(--dz-tools) + var(--dz-safe) + 58px); left: 10px; z-index: 5; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(12, 30, 26, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
	.uz-dz__zoomctl .uz-dz__btn { min-width: 34px; height: 34px; border: 0; font-size: 20px; }
	.uz-dz__zoomctl .uz-dz__zoom { height: 30px; padding: 0 2px; border: 0; background: transparent; font-size: 12px; }
	.uz-dz__zoomctl .uz-dz__zoom input { width: 36px; font-size: 13px; }

	/* بدنه: بوم بالا، نوار ابزار پایین، برگه مشخصات روی بوم */
	.uz-dz__body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
	.uz-dz__stage { order: 1; flex: 1; min-height: 0; }
	.uz-dz__hint { display: none; }
	.uz-dz__tools { order: 2; flex: none; flex-direction: row; align-items: stretch; gap: 2px; height: calc(var(--dz-tools) + var(--dz-safe)); padding: 4px 4px calc(4px + var(--dz-safe)); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; box-shadow: 0 -2px 12px rgba(0, 0, 0, .3); z-index: 9; }
	.uz-dz__tools::-webkit-scrollbar { display: none; }
	.uz-dz__tgroup { flex: 1 0 52px; position: static; }
	.uz-dz__gbtn { height: 100%; min-width: 52px; justify-content: center; gap: 2px; padding: 4px 2px; font-size: 10.5px; line-height: 1.3; white-space: nowrap; border-radius: 12px; }
	.uz-dz__gbtn svg { width: 22px; height: 22px; }
	.uz-dz__more { bottom: 6px; left: 6px; }

	/* زیرمنوی ابزارها: برگه بالای نوار ابزار */
	.uz-dz__fly, .uz-dz__fly--lib { position: fixed; top: auto; right: 8px; left: 8px; bottom: calc(var(--dz-tools) + var(--dz-safe) + 8px); min-width: 0; max-height: 52vh; overflow-y: auto; z-index: 60; padding: 8px; border-radius: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
	.uz-dz__fly::before { display: none; }
	.uz-dz__fitem { padding: 13px 12px; font-size: 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); white-space: normal; }
	.uz-dz__fly--lib { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.uz-dz__litem { padding: 8px 2px; }
	.uz-dz__litem svg { width: 34px; height: 34px; }
	@keyframes uz-fly { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

	/* برگه مشخصات */
	.uz-dz__props { position: absolute; left: 0; right: 0; bottom: calc(var(--dz-tools) + var(--dz-safe)); z-index: 8; max-height: 46%; padding: 0 14px 14px; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 34px rgba(0, 0, 0, .35); overflow-y: auto; overscroll-behavior: contain; font-size: 14px; transition: max-height .22s var(--ease); }
	.uz-dz__props.is-big { max-height: 72%; }
	.uz-dz__props.is-collapsed { max-height: 46px; overflow: hidden; }
	.uz-dz__sheetbar { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc(100% + 28px); margin: 0 -14px 6px; padding: 7px 14px 6px; border: 0; background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--green-900); cursor: pointer; }
	.uz-dz__sheetbar i { width: 42px; height: 4px; border-radius: 4px; background: #cfd6d2; }
	.uz-dz__sheetbar span { display: none; }
	.uz-dz__props.is-collapsed .uz-dz__sheetbar span { display: block; }
	.uz-dz__props.is-collapsed .uz-dz__sheetbar { padding-bottom: 12px; }
	.uz-dz__props h2 { font-size: 16px; }
	.uz-dz__phead { margin-bottom: 8px; }
	.uz-dz__essential { padding: 10px; gap: 8px; }
	.uz-dz__essential input[type="number"] { min-height: 44px; font-size: 16px; }
	.uz-dz__props input[type="number"], .uz-dz__props input[type="text"], .uz-dz__props select, .uz-dz__props textarea { font-size: 16px; min-height: 42px; }
	.uz-dz__props label > span { bottom: 12px; }
	.uz-dz__props .uz-dz__thick > span { bottom: 23px; }
	.uz-dz__quick button { padding: 10px 2px; font-size: 12px; }
	.uz-dz__iconbtn { width: 40px; height: 40px; }
	.uz-dz__details > summary { padding: 13px 12px; }
	.uz-dz__align .uz-dz__btn { width: 40px; }
	.uz-ov__list { max-height: none; }
	.uz-ov__steps li { line-height: 1.8; font-size: 13.5px; }

	/* «از کجا شروع کنیم؟» */
	.uz-dz__emptystate { padding: 14px; }
	.uz-dz__emptycard { padding: 16px 14px; border-radius: 16px; }
	.uz-dz__emptycard h2 { font-size: 18px; }
	.uz-dz__emptycard > p { font-size: 13px; line-height: 1.9; }
	.uz-dz__startbtns { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.uz-dz__startbtns button { padding: 12px 4px; border-radius: 12px; }
	.uz-dz__startbtns button:first-child { grid-column: 1 / -1; }
	.uz-dz__startbtns svg { width: 26px; height: 26px; }
	.uz-dz__startbtns b { font-size: 13px; }

	.uz-dz__toast { top: 80px; max-width: calc(100% - 24px); font-size: 13px; }

	/* منوی «بیشتر»: برگه پایین */
	.uz-dz__menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82dvh; overflow-y: auto; padding: 8px 8px calc(8px + var(--dz-safe)); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgba(0, 0, 0, .45); z-index: 80; }
	.uz-dz__menulist button { padding: 12px 10px; font-size: 14.5px; }
	.uz-dz__menu .uz-dz__field input, .uz-dz__menu .uz-dz__field select { min-height: 42px; font-size: 16px; width: 86px; }
	.uz-dz__mtoggle { padding: 6px 0; font-size: 14.5px; }
	.uz-dz__mtoggle input { width: 20px; height: 20px; }

	/* پنجره‌ها: برگه تمام‌عرض از پایین */
	.uz-dz-modal { padding: 0; place-items: end stretch; }
	.uz-dz-modal__box { width: 100%; max-height: 94dvh; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
	.uz-dz-modal__close { top: 10px; left: 10px; }
	.uz-dz-modal__box > h2 { padding-left: 46px; font-size: 18px; }
	.uz-dz-review { max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.uz-dz-3d { place-items: stretch; }
	.uz-dz-3d__box { width: 100%; height: 100dvh; border-radius: 0; }
	.uz-dz-3d__bar { gap: 6px; padding: 8px 10px; }
	.uz-dz-3d__bar strong { width: 100%; font-size: 14px; }
	.uz-dz-3d__bar .uz-dz-modal__close { position: absolute; top: 8px; left: 10px; }

	/* پیام بعد از ثبت سفارش، روی ویرایشگر */
	.uz-designer-page .uz-alert { position: fixed; top: 64px; left: 12px; right: 12px; z-index: 170; margin: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); cursor: pointer; }
}
/* عدد با دکمه‌های + و − */
.uz-dz label > span.uz-num, .uz-dz__props label > span.uz-num { position: relative !important; inset: auto !important; display: flex; align-items: stretch; width: 100%; color: inherit; font-weight: 400; }
.uz-num input[type="number"] { flex: 1; min-width: 0; margin: 0; border-radius: 0 !important; text-align: center; padding-inline: 2px 24px !important; -moz-appearance: textfield; appearance: textfield; }
.uz-num input[type="number"]::-webkit-inner-spin-button, .uz-num input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.uz-num__btn { flex: none; display: grid; place-items: center; width: 30px; padding: 0; border: 1.5px solid var(--line); background: #f4f6f2; color: var(--green-800); font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background .12s; }
.uz-num__btn:first-child { border-radius: 0 8px 8px 0; border-left: 0; }
.uz-num__btn:last-child { border-radius: 8px 0 0 8px; border-right: 0; }
.uz-num__btn:hover { background: #e9efe6; color: var(--gold-600); }
.uz-num__btn:active { background: var(--gold); color: var(--green-950); }
.uz-num__unit { position: absolute; left: 35px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }
.uz-dz__thick .uz-num__btn { border-color: var(--gold); background: #fff8ea; }
.uz-dz__menu .uz-dz__field .uz-num { width: auto; display: inline-flex; }
.uz-dz__menu .uz-dz__field .uz-num input { width: 64px; }
.uz-dz__menu .uz-num__unit { left: 38px; color: var(--muted); }
@media (max-width: 900px) {
	.uz-num__btn { width: 42px; font-size: 22px; }
	.uz-num__unit { left: 48px; }
}

@media (max-width: 380px) {
	.uz-dz__top { gap: 4px; padding: 0 6px; }
	.uz-dz__btn { min-width: 34px; height: 36px; }
	.uz-dz__cta { padding-inline: 10px; font-size: 13px; }
	.uz-dz__cta svg { display: none; }
	.uz-dz__gbtn { min-width: 48px; font-size: 10px; }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
	.uz-dz { --dz-top: 46px; --dz-tools: 52px; }
	.uz-dz__gbtn .uz-dz__glabel { display: none; }
	.uz-dz__props { max-height: 70%; left: auto; width: min(360px, 55%); border-radius: 18px 0 0 0; }
}
