/* ویرایشگرِ قالب، زبانِ macOS 27 روی رایانه / iOS 27 روی گوشی (طرحِ «ب»، تأییدِ علیرضا ۱۰ نوامبر ۲۰۲۶: «حالا عالی شد. شروع کن به اجرا»).
   منبع: ماکتِ تأییدشده (maanfee-shots/_mold-editor-mac-mock-2026-11-10.css + types t1) با _mold-mac-port.py.
   قلاب‌ها: .mq-dlg = میزبانِ دیالوگ، .me-mac = ریشه‌ی ویرایشگر، .me-two = حالتِ ویرایش دو‌ستونه (عکس | فرم). گوشی = ≤700px. */
.me-mac .me-side, .me-mac .me-main { display: contents; }
@media (min-width: 1000px) { .me-two .me-main { display: block; min-width: 0; } }
:root {--me-bg: #e6e6eb; --me-card: #fff; --me-l1: #000; --me-l2: rgba(60,60,67,.6); --me-l3: rgba(60,60,67,.3);
  --me-hair: rgba(60,60,67,.18); --me-fill: rgba(120,120,128,.12); --me-fill2: rgba(120,120,128,.2);
  --me-acc: #005432; --me-ink: #005432; --me-tint: rgba(0,84,50,.12); --me-glass: rgba(255,255,255,.67); --me-glass-hi: rgba(255,255,255,.8); --me-ring: rgba(0,84,50,.45);}
html.gta-dark {--me-bg: #2c2c2e; --me-card: #3a3a3c; --me-l1: #fff; --me-l2: rgba(235,235,245,.6); --me-l3: rgba(235,235,245,.3);
  --me-hair: rgba(84,84,88,.6); --me-fill: rgba(120,120,128,.24); --me-fill2: rgba(120,120,128,.34);
  --me-acc: #0A6B41; --me-ink: #6CCB98; --me-tint: rgba(10,107,65,.38); --me-glass: rgba(58,58,60,.6); --me-glass-hi: rgba(255,255,255,.1); --me-ring: rgba(108,203,152,.5);} /* brand-check-ignore: night ink of brand green for contrast on #3a3a3c */
.mud-dialog.mq-dlg {padding: 0 !important; border-radius: 32px !important; background: var(--me-bg) !important; overflow: hidden auto !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.32) !important; scrollbar-width: thin; max-height: min(820px, calc(calc(100 * var(--gta-vh, 1vh)) - 64px)) !important;}
html.gta-dark .mud-dialog.mq-dlg {box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 0 .5px rgba(255,255,255,.1) !important;}
@supports (corner-shape: squircle) {
.mud-dialog.mq-dlg {corner-shape: squircle; border-radius: 40px !important;}
}
@media (min-width: 701px) { .mq-dlg {width: min(600px, calc(calc(100 * var(--gta-vw, 1vw)) - 48px)) !important;}
}
@media (min-width: 1000px) { .mq-dlg:has(.me-two) {width: min(900px, calc(calc(100 * var(--gta-vw, 1vw)) - 48px)) !important;}
}
.me-mac {color: var(--me-l1); font-size: 14px;}
.me-mac .me-head {height: 56px; margin: 0; padding: 0 20px 0 12px; gap: 10px; background: var(--me-bg); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;}
.me-mac .me-head > .me-icbtn {order: 9;}
.me-mac .me-tw {display: flex; flex-direction: column; line-height: 1.25; min-width: 0;}
.me-mac .me-ttl {font-size: 17px; font-weight: 700;}
.me-mac .me-sub {font-size: 12px; color: var(--me-l2); font-weight: 400;}
.me-mac .me-head .me-icbtn {width: 32px; height: 32px; background: var(--me-glass); color: var(--me-l1); box-shadow: inset 0 1px 0 var(--me-glass-hi), 0 1px 3px rgba(0,0,0,.06);}
.me-mac .me-head .me-icbtn:hover {background: var(--me-fill2);}
.me-mac .me-head .me-icbtn svg {font-size: 16px !important;}
.me-mac .me-body {padding: 16px 20px 12px; gap: 0;}
.me-mac .me-body > section {gap: 12px;}
.me-mac .me-hero {height: 240px; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05);}
.me-mac .me-photo-img {left: 16px; right: 16px; top: 16px; bottom: 16px; width: calc(100% - 32px); height: calc(100% - 32px);}
.me-mac .me-photo-bg {opacity: .55;}
.me-mac .me-photo-acts {top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); width: auto; height: 38px; flex-direction: row; gap: 0; padding: 0 4px; border-radius: 19px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 6px 20px rgba(0,0,0,.12);}
html.gta-dark .me-mac .me-photo-acts {background: rgba(58,58,60,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 20px rgba(0,0,0,.3);}
.me-mac .me-photo-acts > * {order: 2;}
.me-mac .me-photo-acts > :first-child {order: 0;}
.me-mac .me-photo-acts > .me-edit[title="گالری"] {order: 1; position: relative;}
.me-mac .me-photo-acts > .me-edit[title="گالری"]::after {display: none; content: ""; position: absolute; inset-inline-end: -5px; top: 9px; bottom: 9px; width: 1px; background: rgba(0,0,0,.12);}
html.gta-dark .me-mac .me-photo-acts > .me-edit[title="گالری"]::after {background: rgba(255,255,255,.16);}
.me-mac .me-photo-acts .me-edit, .me-mac .me-photo-acts .gta-cam-btn {width: 40px !important; min-width: 40px !important; height: 32px !important; min-height: 32px !important; border-radius: 16px !important; background: transparent !important; box-shadow: none !important; color: var(--me-l1) !important;}
.me-mac .me-photo-acts .me-edit:hover, .me-mac .me-photo-acts .gta-cam-btn:hover {background: var(--me-fill) !important;}
.me-mac .me-photo-acts .me-edit.me-ai {color: var(--me-l1) !important;}
.me-mac .me-photo-acts svg {width: 20px !important; height: 20px !important; font-size: 20px !important;}
.me-mac .me-f2 {gap: 0; background: var(--me-card); border-radius: 24px; overflow: hidden; margin-top: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05);}
.me-mac .me-sf {height: 64px; border-radius: 0; box-shadow: none; background: transparent; padding: 0 20px;}
.me-mac .me-sf + .me-sf::before {content: ""; position: absolute; inset-inline-start: 0; top: 20%; bottom: 20%; width: 1px; background: var(--me-hair);}
.me-mac .me-sf:focus-within {box-shadow: inset 0 0 0 3px var(--me-ring); border-radius: 20px;}
.me-mac .me-sl {font-size: 12px; color: var(--me-l2); line-height: 16px;}
.me-mac .me-f2 .me-in {font-size: 20px; font-weight: 600; height: 26px;}
.me-mac .me-cgh {font-size: 13px; font-weight: 600; color: var(--me-l2); padding: 24px 16px 8px; margin: 0;}
.me-mac .me-cg {background: var(--me-card); border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05);}
@supports (corner-shape: squircle) {
.me-mac .me-cg, .me-mac .me-f2, .me-mac .me-hero {corner-shape: squircle;}
}
.me-mac .me-cg > * + *::after {inset-inline-start: 56px; background: var(--me-hair); opacity: 1; transform: scaleY(.5); transform-origin: top; height: 1px;}
.me-mac .me-rh, .me-mac .me-fh {min-height: 52px; padding: 0 16px; gap: 12px;}
.me-mac .me-row > .me-rh, .me-mac .me-row.open > .me-rh {background: var(--me-card) !important;}
@media (hover: hover) {
.me-mac .me-row > .me-rh:hover, .me-mac button.me-fh:hover {background: color-mix(in srgb, var(--me-card) 96%, #000) !important;}
html.gta-dark .me-mac .me-row > .me-rh:hover, html.gta-dark .me-mac button.me-fh:hover {background: color-mix(in srgb, var(--me-card) 94%, #fff) !important;}
}
.me-mac .me-ri {width: 28px; height: 28px; border-radius: 7px;}
.me-mac .me-ri svg {width: 16px; height: 16px;}
.me-mac .me-rt {font-size: 14px; font-weight: 400; color: var(--me-l1);}
.me-mac .me-row.open > .me-rh .me-rt {font-weight: 600;}
.me-mac .me-rs {font-size: 13px; color: var(--me-l2); max-width: 45%;}
.me-mac .me-rchev, .me-mac .me-rchev svg {width: 20px; height: 20px; color: rgba(60,60,67,.45);}
html.gta-dark .me-mac .me-rchev, html.gta-dark .me-mac .me-rchev svg {color: rgba(235,235,245,.45);}
.me-mac .me-rchip {height: 20px; padding: 0; background: none; color: var(--me-ink); font-size: 13px;}
.me-mac .me-rbd {padding: 4px 16px 16px; gap: 12px;}
.me-mac .me-rbi, .me-mac .me-rb {background: transparent !important;}
.me-mac .me-hint {font-size: 13px; color: var(--me-l2);}
.me-mac .me-tg {display: flex; flex-wrap: wrap; gap: 8px;}
.me-mac .me-tp {min-height: 32px; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; font-weight: 500; background: var(--me-fill); color: var(--me-l1); white-space: nowrap;}
.me-mac .me-tp:hover {background: var(--me-fill2);}
.me-mac .me-tp.on, .me-mac .me-tp.on:hover {background: var(--me-tint); color: var(--me-ink); box-shadow: inset 0 0 0 1.5px var(--me-acc); font-weight: 600;}
html.gta-dark .me-mac .me-tp.on {color: #fff;}
.me-mac .me-tp.on::before {content: "✓"; margin-inline-end: 6px; font-size: 12px;}
.me-mac .me-tp.add, .me-mac .me-tp.add:hover {background: transparent; color: var(--me-ink);}
.me-mac .me-done {height: 28px; padding: 0 6px; font-size: 13px; font-weight: 600; box-shadow: none; background: transparent; color: var(--me-ink);}
.me-mac .me-stp, .me-mac .me-fh .me-stp, .me-mac .me-cp .me-stp, .me-mac .me-qv {height: 32px; padding: 0; background: var(--me-fill); box-shadow: none; border-radius: 16px; gap: 0; margin-inline-end: 0;}
.me-mac .me-sb, .me-mac .me-fh .me-sb, .me-mac .me-cp .me-sb, .me-mac .me-qb {width: 34px; height: 32px; border-radius: 16px; background: transparent; box-shadow: none; color: var(--me-l1);}
.me-mac .me-sb:hover, .me-mac .me-qb:hover {background: var(--me-fill);}
.me-mac .me-sb svg, .me-mac .me-qb svg {width: 15px; height: 15px;}
.me-mac .me-sv2, .me-mac .me-fh .me-sv2 {min-width: 44px; font-size: 15px; font-weight: 600;}
.me-mac .me-fh .me-sv2.zero {color: var(--me-l3); font-weight: 400; font-size: 14px;}
.me-mac .me-qn {font-size: 15px; width: 40px;}
.me-mac .me-ch {height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; box-shadow: none; background: var(--me-fill);}
.me-mac .me-ch.on, .me-mac .me-ch.on:hover {background: var(--me-tint); color: var(--me-ink); font-weight: 600;}
html.gta-dark .me-mac .me-ch.on {color: #fff;}
.me-mac .me-sw {width: 38px; height: 22px; background: rgba(120,120,128,.32);}
.me-mac .me-sw::after {width: 18px; height: 18px; top: 2px; inset-inline-start: 2px;}
.me-mac .me-sw.on::after {inset-inline-start: 18px;}
.me-mac .me-sw.on, .me-mac .me-sw.purple.on, .me-mac .me-sw.red.on {background: var(--me-acc);}
.me-mac .me-gline {height: 52px; min-height: 52px;}
.me-mac .me-gline:has(.me-ge) {height: auto !important; min-height: 0 !important;}
@media (max-width: 700px) { .mq-dlg .me-mac .me-gline:has(.me-ge) {height: auto !important; min-height: 0 !important;}
}
.me-mac .me-gsum {height: 52px;}
.me-mac .me-gline + .me-gline::before {background: var(--me-hair); opacity: 1; transform: none;}
.me-mac .me-gt b {font-size: 14px; font-weight: 500;}
.me-mac .me-gt, .me-mac .me-gt > span, .me-mac .me-gt > span:has(.me-gv) .me-gv {font-size: 13px; color: var(--me-l2);}
.me-mac .me-gline .me-gs > .me-icbtn, .me-mac .me-icbtn.xs {width: 28px; height: 28px; background: var(--me-fill); color: var(--me-l2);}
.me-mac .me-ge {background: transparent; border-radius: 0; padding: 8px 0;}
.me-mac .me-ge .me-gs, .me-mac .me-ge .me-qv {background: var(--me-fill); border-radius: 16px; box-shadow: none;}
.me-mac .me-sizebd .me-add .me-link, .me-mac .me-link {font-size: 14px; font-weight: 500; color: var(--me-ink);}
.me-mac .me-in.me-soft {height: 32px; border-radius: 16px; font-size: 14px; background: var(--me-fill);}
.me-mac .me-desc {border: 0 !important; outline: 0; box-shadow: none; border-radius: 14px; background: var(--me-fill); font-size: 14px; line-height: 22px; min-height: 88px; padding: 12px;}
.me-mac .me-desc:focus {box-shadow: 0 0 0 3px var(--me-ring);}
.me-mac .me-rbd .mud-input-outlined-border, .me-mac .me-rbd fieldset {border-color: transparent !important;}
.me-mac .me-btn.sm {height: 28px; font-size: 13px; padding: 0 12px;}
.me-mac .me-foot, .me-mac .me-foot.ed {margin: 8px 0 0; padding: 30px 20px 16px; background: linear-gradient(to top, var(--me-bg) 62%, transparent); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: flex-end;}
.me-mac .me-foot.ed .me-btn.pri, .me-mac .me-foot .me-btn.pri {flex: 0 0 auto; height: 34px; min-width: 148px; padding: 0 20px; font-size: 14px; box-shadow: none; background: var(--me-acc); color: #fff;}
.me-mac .me-foot .me-btn.pri svg {font-size: 18px !important;}
@media (min-width: 1000px) { .me-two .me-body {display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 0 20px; align-items: start;}
}
@media (min-width: 1000px) { .me-two .me-side {position: sticky; top: 68px; display: flex; flex-direction: column;}
}
@media (min-width: 1000px) { .me-two .me-side .me-hero {height: 268px;}
}
@media (min-width: 1000px) { .me-two .me-side .me-sf {padding: 0 14px;}
}
@media (min-width: 1000px) { .me-two .me-main > .me-cgh:first-child {padding-top: 0;}
}
@supports (corner-shape: squircle) {
@media (min-width: 701px) { html body .mud-dialog.mq-dlg {corner-shape: squircle; border-radius: 54px !important;}
}
@media (max-width: 700px) { html body .mud-dialog.mq-dlg.mq-dlg {corner-shape: squircle; border-radius: 54px 54px 0 0 !important;}
}
.me-mac .me-cg, .me-mac .me-f2, .me-mac .me-hero, .me-mac .me-photo.has {corner-shape: squircle; border-radius: 34px;}
html.gta-dark .me-mac .me-photo-img {corner-shape: squircle; border-radius: 24px;}
.me-mac .me-ri {corner-shape: squircle; border-radius: 10px;}
html body .me-mac.me-mac .me-tp, html body .me-mac.me-mac .me-ch:not(.num) {corner-shape: squircle; border-radius: 14px;}
.me-mac .me-desc {corner-shape: squircle; border-radius: 20px;}
.me-mac .me-sf:focus-within {corner-shape: squircle; border-radius: 28px;}
@media (max-width: 700px) { html body .mq-dlg .me-mac .me-f2, html body .mq-dlg .me-mac .me-cg {corner-shape: squircle; border-radius: 36px;}
}
@media (max-width: 700px) { html body .mq-dlg .me-mac .me-hero, html body .mq-dlg .me-mac .me-photo.has {corner-shape: squircle; border-radius: 36px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-ri {corner-shape: squircle; border-radius: 10px;}
}
@media (max-width: 700px) { html body .mq-dlg .me-mac.me-mac .me-tp, html body .mq-dlg .me-mac.me-mac .me-ch:not(.num) {corner-shape: squircle; border-radius: 20px;}
}
}
@media (min-width: 701px) { html body .mud-dialog.mq-dlg {border-radius: 38px !important;}
}
@supports (corner-shape: squircle) {
@media (min-width: 701px) { html body .mud-dialog.mq-dlg {border-radius: 44px !important;}
}
}
.me-mac .me-fh .me-stp {flex-direction: row-reverse;}
.me-mac .me-sv2, .me-mac .me-fh .me-sv2 {font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;}
.me-mac .me-sb svg, .me-mac .me-qb svg {width: 16px; height: 16px;}
@media (max-width: 700px) { html body .mud-dialog.mq-dlg.mq-dlg {border-radius: 38px 38px 0 0 !important; max-height: calc(calc(100 * var(--gta-vh, 1vh)) - 62px) !important;}
}
@media (max-width: 700px) { .mq-dlg .me-mac {font-size: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-head {height: 60px; padding: 10px 16px 0; position: sticky;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-head::before {content: ""; position: absolute; top: 6px; left: 50%; width: 60px; height: 4px; margin-left: -30px; border-radius: 2px; background: rgba(60,60,67,.3);}
}
@media (max-width: 700px) { html.gta-dark .mq-dlg .me-mac .me-head::before {background: rgba(235,235,245,.3);}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-tw {position: absolute; left: 0; right: 0; align-items: center; pointer-events: none;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-ttl {font-size: 17px; font-weight: 600;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sub {font-size: 12px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-head > .me-icbtn {order: 0;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-head .me-icbtn {width: 44px; height: 44px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-head .me-icbtn svg {font-size: 19px !important;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-body {padding: 4px 16px 8px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-hero {height: 240px; border-radius: 26px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-photo-acts {height: 44px; border-radius: 22px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-photo-acts .me-edit, .mq-dlg .me-mac .me-photo-acts .gta-cam-btn {width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; border-radius: 22px !important;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-photo-acts svg {width: 22px !important; height: 22px !important; font-size: 22px !important;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-photo-acts > .me-edit[title="گالری"]::after {top: 12px; bottom: 12px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-f2, .mq-dlg .me-mac .me-cg {border-radius: 12px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sf {height: 68px; padding: 0 16px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sl {font-size: 13px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-f2 .me-in {font-size: 22px; height: 28px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-cgh {font-size: 13px; font-weight: 400; padding: 24px 16px 8px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-rh, .mq-dlg .me-mac .me-fh {min-height: 52px; padding: 0 16px; gap: 16px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-ri {width: 29px; height: 29px; border-radius: 7px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-ri svg {width: 17px; height: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-cg > * + *::after {inset-inline-start: 61px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-rt {font-size: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-rs {font-size: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-rchip {font-size: 15px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-tp {height: 36px; min-height: 36px; border-radius: 18px; font-size: 15px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-ch {height: 36px; border-radius: 18px; font-size: 15px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-stp, .mq-dlg .me-mac .me-fh .me-stp, .mq-dlg .me-mac .me-qv {height: 36px; border-radius: 18px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sb, .mq-dlg .me-mac .me-fh .me-sb, .mq-dlg .me-mac .me-qb {width: 44px; height: 36px; border-radius: 18px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sv2 {font-size: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sw {width: 64px; height: 28px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sw::after {width: 38px; height: 24px; border-radius: 12px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-sw.on::after {inset-inline-start: 24px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-gline, .mq-dlg .me-mac .me-gsum {height: 60px; min-height: 60px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-gt b {font-size: 17px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-gt, .mq-dlg .me-mac .me-gt > span, .mq-dlg .me-mac .me-gt > span:has(.me-gv) .me-gv {font-size: 15px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-desc {font-size: 17px; min-height: 96px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-foot, .mq-dlg .me-mac .me-foot.ed {padding: 12px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--me-bg) 60%, transparent); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;}
}
@media (max-width: 700px) { .mq-dlg .me-mac .me-foot .me-btn.pri, .mq-dlg .me-mac .me-foot.ed .me-btn.pri {flex: 1; height: 50px; border-radius: 25px; font-size: 17px; font-weight: 600;}
}
html:root .mud-dialog.mq-dlg .mud-dialog-content.mq-dlg-content {padding: 0 !important; background: var(--me-bg) !important; max-height: none !important; overflow: visible !important;}
.me-mac .me-hero {max-width: none !important; width: 100%; background: #fff;}
html.gta-dark .me-mac .me-hero {background: #3a3a3c;}
html.gta-dark .me-mac .me-photo-img {border-radius: 16px; background: #fff;}
.me-mac .me-photo.has {background: #fff;}
html.gta-dark .me-mac .me-photo.has {background: #3a3a3c;}
.me-mac .me-photo-bg {display: none;}
.me-mac .me-row.open, .me-mac .me-row {background: transparent;}
.me-mac.me-mac .me-tg {display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;}
.me-mac.me-mac .me-tp {height: 32px; min-height: 32px; padding: 0 8px; border-radius: 10px; justify-content: center; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 400; background: var(--me-fill); box-shadow: none;}
.me-mac.me-mac .me-tp.on, .me-mac.me-mac .me-tp.on:hover {background: var(--me-tint); color: var(--me-ink); box-shadow: none; font-weight: 600;}
html.gta-dark .me-mac.me-mac .me-tp.on {color: #fff;}
.me-mac.me-mac .me-tp.on::before {content: "✓"; margin-inline-end: 6px; font-size: 12px;}
.me-mac.me-mac .me-tp.add {background: transparent; color: var(--me-ink); box-shadow: inset 0 0 0 1px var(--me-hair);}
@media (max-width: 700px) { .mq-dlg .me-mac.me-mac .me-tg {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;}
}
@media (max-width: 700px) { .mq-dlg .me-mac.me-mac .me-tp {height: auto; min-height: 44px; padding: 6px 8px; font-size: 15px; line-height: 1.25; border-radius: 12px; white-space: normal; overflow: visible;}
}
.me-mac.me-mac .me-chips {display: grid !important; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px;}
/* ۲۶ نوامبر ۲۰۲۶: ستونِ ثابتِ ۴تایی «امرالد/صورتی تیره» را در پنجره‌ی باریک می‌برید ⇒ ستون‌ها هم‌اندازه، تعداد با عرض؛ سایزها کوتاه‌اند */
.me-mac.me-mac .me-chips:has(> .num) {grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));}
.me-mac.me-mac .me-ch.me-chnew {background: transparent; color: var(--me-ink); box-shadow: inset 0 0 0 1px var(--me-hair); justify-content: center; font-weight: 500;}
.me-mac.me-mac .me-ch.me-chnew:hover {box-shadow: inset 0 0 0 1.5px var(--me-ring);}
.me-mac.me-mac .me-ch:not(.num) {justify-content: flex-start; height: 32px; border-radius: 10px; padding: 0 10px; min-width: 0; overflow: hidden;}
@media (max-width: 700px) { .mq-dlg .me-mac.me-mac .me-chips {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 700px) { .mq-dlg .me-mac.me-mac .me-ch:not(.num) {height: 44px; border-radius: 12px;}
}
@media (max-width: 700px) {
  .mq-dlg .me-mac :is(.me-icbtn.xs, .me-done, .me-btn.sm) { position: relative; }
  .mq-dlg .me-mac :is(.me-icbtn.xs, .me-done, .me-btn.sm)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
