/* =========================================================================
   بازارچه سُکانه (templates/market/*): فهرست و جستجو، صفحه‌ی آگهی، فرم ثبت، کارتابل، درخواست همکاری،
   پروفایل کسب‌وکار. پایه از brokers.css (br-*)؛ رنگ‌ها از tokens.css. عرضه = سرمه‌ای برند، تقاضا = کهربایی.
   ========================================================================= */
.mk-page { --mk-supply: var(--sk-primary); --mk-supply-soft: var(--sk-primary-soft); --mk-demand: var(--sk-accent-text); --mk-demand-soft: var(--sk-accent-soft); }

/* ---------- نشان نوع آگهی ---------- */
.mk-kind { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; line-height: 1.8; white-space: nowrap; }
.mk-kind .sk-ico { font-size: 14px; }
.mk-kind--supply { background: var(--mk-supply-soft); color: var(--mk-supply); }
.mk-kind--demand { background: var(--mk-demand-soft); color: var(--mk-demand); }

/* ---------- سربرگ صفحه‌ی اصلی ---------- */
.mk-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end;
    padding: 26px 26px 22px; margin-bottom: 18px; border-radius: 22px; color: #FFFFFF;
    background: radial-gradient(120% 140% at 0% 0%, var(--sk-primary-light) 0%, var(--sk-primary) 46%, var(--sk-primary-deep) 100%);
}
.mk-hero::after {
    content: ''; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.06); pointer-events: none;
}
.mk-hero > * { position: relative; z-index: 1; min-width: 0; }
.mk-hero__title { font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mk-hero__title .sk-ico { font-size: 30px; color: var(--sk-accent); }
.mk-hero__sub { margin-top: 6px; max-width: 60ch; color: rgba(255, 255, 255, 0.82); font-size: var(--fs-sm); line-height: 1.9; }
.mk-hero__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mk-hero__stats span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: var(--fs-xs); font-weight: 700; }
.mk-hero__stats b { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mk-hero__actions { display: flex; flex-direction: column; gap: 8px; }
.mk-hero__actions .br-btn { min-width: 190px; }
.mk-btn-supply { background: #FFFFFF; color: var(--sk-primary); }
.mk-btn-supply:hover { background: var(--sk-primary-soft); color: var(--sk-primary); }
.mk-btn-demand { background: var(--sk-accent); color: var(--sk-accent-ink); }
.mk-btn-demand:hover { background: #E8971A; color: var(--sk-accent-ink); }

/* خلاصه‌ی کاربر واردشده */
.mk-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--sk-line); border-radius: 16px; background: var(--sk-surface); }
.mk-mine__label { font-size: var(--fs-xs); font-weight: 800; color: var(--sk-ink); display: inline-flex; align-items: center; gap: 6px; }
.mk-mine__label .sk-ico { color: var(--sk-primary); font-size: 18px; }
.mk-mine a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sk-ground); color: var(--sk-ink); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; }
.mk-mine a b { color: var(--sk-primary); font-variant-numeric: tabular-nums; }
.mk-mine a.is-alert { background: var(--sk-accent-soft); color: var(--sk-accent-text); }
.mk-mine a.is-alert b { color: var(--sk-accent-text); }
.mk-mine__go { margin-inline-start: auto; }

/* ---------- زبانه‌ی نوع و دسته‌های پرتکرار ---------- */
.mk-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sk-line); }
.mk-seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 10px; color: var(--sk-muted); font-size: var(--fs-sm); font-weight: 800; text-decoration: none; white-space: nowrap; }
.mk-seg a .sk-ico { font-size: 17px; }
.mk-seg a.is-active { background: var(--sk-surface); color: var(--sk-primary); box-shadow: var(--sk-shadow-sm); }
.mk-seg a.is-active[data-kind=demand] { color: var(--sk-accent-text); }
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.mk-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mk-cats::-webkit-scrollbar { display: none; }
.mk-cats a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--sk-line); border-radius: 999px; background: var(--sk-surface); color: var(--sk-ink); text-decoration: none; font-size: var(--fs-xs); font-weight: 600; }
.mk-cats a small { color: var(--sk-muted); font-variant-numeric: tabular-nums; }
.mk-cats a.is-active { border-color: var(--sk-primary); background: var(--sk-primary-soft); color: var(--sk-primary); }

/* ---------- کارت آگهی ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mk-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--sk-line); border-radius: 18px;
    background: var(--sk-surface); color: inherit; text-decoration: none; transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.mk-card:hover { border-color: var(--sk-primary-soft-border); box-shadow: 0 10px 24px rgba(8, 30, 40, 0.08); color: inherit; transform: translateY(-1px); }
.mk-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sk-ground); overflow: hidden; }
.mk-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-card__media .mk-kind { position: absolute; top: 10px; right: 10px; box-shadow: 0 2px 6px rgba(8, 30, 40, 0.12); }
.mk-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sk-primary-soft-border); font-size: 48px; }
.mk-ph--demand { color: #F2D9A9; background: linear-gradient(135deg, var(--sk-accent-soft), #FFF9EE); }
.mk-ph--supply { background: linear-gradient(135deg, var(--sk-primary-soft), #F5FAFB); }
.mk-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.mk-card__title { font-size: var(--fs-sm); font-weight: 800; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card__price { font-size: var(--fs-md); font-weight: 800; color: var(--sk-ink); font-variant-numeric: tabular-nums; }
.mk-card__price small { font-size: var(--fs-xs); font-weight: 600; color: var(--sk-muted); }
.mk-card__facts { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-xs); color: var(--sk-muted); }
.mk-card__facts span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-card__facts span > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card__facts .sk-ico { flex-shrink: 0; font-size: 15px; color: var(--sk-muted); }
.mk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--sk-line); font-size: 12px; color: var(--sk-muted); }
.mk-card__who { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-weight: 700; color: var(--sk-ink); }
.mk-card__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-card__who .sk-ico { color: var(--sk-primary); font-size: 15px; flex-shrink: 0; }
.mk-card--demand .mk-card__price { color: var(--sk-accent-text); }

/* ---------- صفحه‌ی آگهی ---------- */
.mk-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mk-detail__main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mk-detail__side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-title { font-size: 1.45rem; font-weight: 800; line-height: 1.6; text-wrap: balance; }
.mk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: var(--fs-xs); color: var(--sk-muted); }
.mk-sub span { display: inline-flex; align-items: center; gap: 4px; }
.mk-sub .sk-ico { font-size: 15px; }
.mk-gallery { display: flex; flex-direction: column; gap: 8px; }
.mk-gallery__main { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sk-ground); border: 1px solid var(--sk-line); }
.mk-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--sk-ground); }
.mk-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.mk-gallery__thumbs button { flex: 0 0 76px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--sk-ground); cursor: pointer; }
.mk-gallery__thumbs button.is-on { border-color: var(--sk-primary); }
.mk-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-summary { display: flex; flex-direction: column; gap: 12px; }
.mk-summary__price { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.5; }
.mk-summary__price small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--sk-muted); }
.mk-summary--demand .mk-summary__price { color: var(--sk-accent-text); }
.mk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-fact { padding: 10px 12px; border-radius: 12px; background: var(--sk-ground); min-width: 0; }
.mk-fact span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sk-muted); }
.mk-fact span .sk-ico { font-size: 14px; }
.mk-fact b { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: 800; overflow-wrap: anywhere; }
.mk-desc { white-space: pre-line; line-height: 2; font-size: var(--fs-sm); }
.mk-hs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sk-primary-soft); }
.mk-hs__code { grid-row: span 2; padding: 6px 10px; border-radius: 10px; background: var(--sk-surface); color: var(--sk-primary); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.mk-hs__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.7; }
.mk-hs__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--sk-muted); }
.mk-hs__meta .is-banned { color: var(--sk-danger); font-weight: 800; }
.mk-owner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.mk-owner__name { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: var(--fs-sm); }
.mk-owner__name .sk-ico { color: var(--sk-primary); font-size: 17px; }
.mk-owner__meta { font-size: var(--fs-xs); color: var(--sk-muted); }
.mk-owner .br-chips { grid-column: 1 / -1; }
.mk-anon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sk-ground); color: var(--sk-muted); font-size: 26px; }
.mk-ended { padding: 14px 16px; border-radius: 16px; background: var(--sk-ground); border: 1px dashed var(--sk-line); font-size: var(--fs-sm); font-weight: 700; color: var(--sk-muted); display: flex; align-items: center; gap: 8px; }
.mk-ended .sk-ico { font-size: 20px; }
.mk-quota { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--sk-ground); font-size: 12px; color: var(--sk-muted); }
.mk-quota .sk-ico { color: var(--sk-primary); font-size: 16px; flex-shrink: 0; }
.mk-quota b { color: var(--sk-ink); }
.mk-quota a { margin-inline-start: auto; color: var(--sk-primary); font-weight: 800; text-decoration: none; white-space: nowrap; }
.mk-similar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-report summary { cursor: pointer; font-size: var(--fs-xs); color: var(--sk-muted); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.mk-report summary::-webkit-details-marker { display: none; }
.mk-report[open] summary { margin-bottom: 10px; }
.mk-share { display: inline-flex; align-items: center; gap: 6px; }

/* پنل صاحب آگهی */
.mk-ownerbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-ownerbar form { display: contents; }
.mk-stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--sk-line); border-radius: 14px; overflow: hidden; }
.mk-stats3 > div { padding: 10px 12px; text-align: center; }
.mk-stats3 > div + div { border-right: 1px solid var(--sk-line); }
.mk-stats3 b { display: block; font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-stats3 span { font-size: 12px; color: var(--sk-muted); }
.mk-flag { padding: 10px 12px; border-radius: 12px; background: var(--sk-accent-soft); color: var(--sk-accent-text); font-size: var(--fs-xs); font-weight: 700; line-height: 1.9; }
.mk-flag--danger { background: var(--sk-danger-soft); color: var(--sk-danger); }

/* ---------- کارت پیشنهاد تطابق ---------- */
.mk-matches { display: flex; flex-direction: column; gap: 10px; }
.mk-match { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--sk-line); border-radius: 16px; background: var(--sk-surface); }
.mk-match.is-new { border-color: var(--sk-accent); box-shadow: 0 0 0 3px var(--sk-accent-soft); }
.mk-match__thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sk-ground); }
.mk-match__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-match__thumb .mk-ph { font-size: 26px; }
.mk-match__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-match__title { font-size: var(--fs-sm); font-weight: 800; color: inherit; text-decoration: none; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-match__title:hover { color: var(--sk-primary); }
.mk-match__meta { font-size: 12px; color: var(--sk-muted); }
.mk-match__for { font-size: 12px; color: var(--sk-muted); }
.mk-match__for a { color: var(--sk-ink); font-weight: 700; text-decoration: none; }
.mk-match .br-chips { grid-column: 2 / -1; }
.mk-match__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-match__actions .br-btn { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); }
.mk-score { --p: 0; position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: conic-gradient(var(--mk-score-color, var(--sk-success)) calc(var(--p) * 1%), var(--sk-ground) 0); }
.mk-score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--sk-surface); }
.mk-score b { position: relative; font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sk-ink); }
.mk-score--mid { --mk-score-color: var(--sk-primary-light); }
.mk-score--low { --mk-score-color: var(--sk-accent); }
.mk-reason { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.8; }
.mk-reason--same { background: var(--sk-success-soft); color: var(--sk-success); }
.mk-reason--diff { background: var(--sk-accent-soft); color: var(--sk-accent-text); }
.mk-reason--info { background: var(--sk-primary-soft); color: var(--sk-primary); }
.mk-dismiss { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-dismiss select { min-height: 38px; border: 1px solid var(--sk-line); border-radius: 10px; padding: 0 8px; font-family: inherit; font-size: 12px; background: var(--sk-surface); color: var(--sk-ink); }

/* ---------- انتخاب نوع آگهی ---------- */
.mk-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-choice {
    display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--sk-line); border-radius: 20px; background: var(--sk-surface);
    color: inherit; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mk-choice:hover { border-color: var(--sk-primary-soft-border); box-shadow: 0 10px 24px rgba(8, 30, 40, 0.08); color: inherit; }
.mk-choice__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.mk-choice--supply .mk-choice__icon { background: var(--sk-primary-soft); color: var(--sk-primary); }
.mk-choice--demand .mk-choice__icon { background: var(--sk-accent-soft); color: var(--sk-accent-text); }
.mk-choice b { font-size: var(--fs-md); font-weight: 800; }
.mk-choice p { color: var(--sk-muted); font-size: var(--fs-sm); }
.mk-choice ul { margin: 0; padding-right: 18px; font-size: var(--fs-xs); color: var(--sk-muted); line-height: 2; }
.mk-choice__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-sm); color: var(--sk-primary); }
.mk-choice--demand .mk-choice__go { color: var(--sk-accent-text); }

/* ---------- فرم ثبت آگهی ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; counter-reset: mkstep; }
.mk-steps button {
    counter-increment: mkstep; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--sk-line);
    border-radius: 14px; background: var(--sk-surface); color: var(--sk-muted); font-family: inherit; font-size: var(--fs-xs); font-weight: 800; cursor: pointer; text-align: right;
}
.mk-steps button::before { content: counter(mkstep); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sk-ground); font-size: 0.8rem; }
.mk-steps button.is-on { border-color: var(--sk-primary); color: var(--sk-primary); background: var(--sk-primary-soft); }
.mk-steps button.is-on::before { background: var(--sk-primary); color: #FFFFFF; }
.mk-steps button.is-done::before { content: '✓'; background: var(--sk-success-soft); color: var(--sk-success); }
.mk-steps button.has-error { border-color: var(--sk-danger); color: var(--sk-danger); }
.mk-form .br-card { display: flex; flex-direction: column; gap: 14px; }
.mk-form .br-card + .br-card { margin-top: 14px; }
.mk-step[hidden] { display: none !important; }
.mk-form .br-card__title { margin-bottom: 0; }
.mk-hs-pick { position: relative; }
.mk-hs-pick__chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sk-primary-soft); }
.mk-hs-pick__chosen b { font-variant-numeric: tabular-nums; color: var(--sk-primary); }
.mk-hs-pick__chosen span { flex: 1; min-width: 0; font-size: var(--fs-xs); line-height: 1.7; }
.mk-hs-pick__chosen button { border: none; background: none; color: var(--sk-danger); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mk-hs-list { display: flex; flex-direction: column; border: 1px solid var(--sk-line); border-radius: 14px; overflow: hidden; background: var(--sk-surface); }
.mk-hs-list button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border: none; border-bottom: 1px solid var(--sk-line); background: none; text-align: right; font-family: inherit; cursor: pointer; color: var(--sk-ink); }
.mk-hs-list button:last-child { border-bottom: none; }
.mk-hs-list button:hover, .mk-hs-list button:focus-visible { background: var(--sk-primary-soft); outline: none; }
.mk-hs-list b { grid-row: span 2; padding: 3px 8px; border-radius: 8px; background: var(--sk-ground); color: var(--sk-primary); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.mk-hs-list span { font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; }
.mk-hs-list small { font-size: 11px; color: var(--sk-muted); }
.mk-hs-list small.is-banned { color: var(--sk-danger); font-weight: 800; }
.mk-hs-hint { font-size: 12px; color: var(--sk-muted); }
.mk-qty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 10px; align-items: end; }
.mk-qty--2 { grid-template-columns: minmax(0, 1fr) 150px; }
.mk-price { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; align-items: end; }
.mk-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; line-height: 1.8; }
.mk-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sk-primary); flex-shrink: 0; }
.mk-check small { display: block; font-weight: 500; color: var(--sk-muted); font-size: 12px; }
.mk-uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mk-uploader__item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sk-ground); border: 1px solid var(--sk-line); }
.mk-uploader__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-uploader__item label, .mk-uploader__item button {
    position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: none; border-radius: 50%; display: grid; place-items: center;
    background: rgba(15, 37, 48, 0.72); color: #FFFFFF; cursor: pointer; font-size: 15px;
}
.mk-uploader__item input { position: absolute; opacity: 0; pointer-events: none; }
.mk-uploader__item:has(input:checked) img { opacity: 0.3; }
.mk-uploader__item:has(input:checked) label { background: var(--sk-danger); }
.mk-uploader__add {
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--sk-primary-soft-border);
    border-radius: 14px; background: var(--sk-primary-soft); color: var(--sk-primary); font-size: 12px; font-weight: 800; cursor: pointer; text-align: center; padding: 6px;
}
.mk-uploader__add .sk-ico { font-size: 24px; }
.mk-uploader__add.is-full { display: none; }
.mk-files { display: flex; flex-direction: column; gap: 8px; }
.mk-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sk-ground); font-size: var(--fs-xs); }
.mk-file .sk-ico { font-size: 20px; color: var(--sk-primary); flex-shrink: 0; }
.mk-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mk-file a { color: var(--sk-primary); font-weight: 800; text-decoration: none; }
.mk-file label { display: inline-flex; align-items: center; gap: 4px; color: var(--sk-danger); font-weight: 700; cursor: pointer; }
.mk-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mk-review { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--sk-ground); font-size: var(--fs-xs); }
.mk-review b { font-size: var(--fs-sm); }
.mk-form-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.mk-form-nav .br-btn { min-width: 140px; }
.mk-errors { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--sk-danger-soft); color: var(--sk-danger); font-size: var(--fs-xs); font-weight: 700; margin-bottom: 14px; }

/* ---------- کارتابل ---------- */
.mk-desk-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mk-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--sk-line); border-radius: 16px; background: var(--sk-surface); color: inherit; text-decoration: none; }
.mk-tile:hover { border-color: var(--sk-primary-soft-border); color: inherit; }
.mk-tile.is-on { border-color: var(--sk-primary); box-shadow: 0 0 0 3px var(--sk-primary-soft); }
.mk-tile__top { display: flex; align-items: center; justify-content: space-between; }
.mk-tile__top .sk-ico { font-size: 24px; color: var(--sk-primary); }
.mk-tile__top b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-tile span { font-size: var(--fs-xs); font-weight: 800; }
.mk-tile small { font-size: 12px; color: var(--sk-muted); }
.mk-tile--alert .mk-tile__top b { color: var(--sk-accent-text); }
.mk-rows { display: flex; flex-direction: column; border: 1px solid var(--sk-line); border-radius: 18px; background: var(--sk-surface); overflow: hidden; }
.mk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.mk-row + .mk-row { border-top: 1px solid var(--sk-line); }
.mk-row:hover { background: var(--sk-ground); color: inherit; }
.mk-row__thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--sk-ground); }
.mk-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-row__thumb .mk-ph { font-size: 24px; }
.mk-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-row__title { font-size: var(--fs-sm); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-row__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--sk-muted); }
.mk-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mk-row__side small { font-size: 12px; color: var(--sk-muted); white-space: nowrap; }
.mk-pill-count { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: var(--sk-accent-soft); color: var(--sk-accent-text); font-size: 12px; font-weight: 800; }
.mk-filterline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.mk-group-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: var(--fs-xs); font-weight: 800; color: var(--sk-muted); }
.mk-group-title:first-child { margin-top: 0; }

/* ---------- صفحه‌ی درخواست ---------- */
.mk-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.mk-pair__arrow { display: grid; place-items: center; color: var(--sk-muted); font-size: 22px; }
.mk-mini { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--sk-line); border-radius: 16px; background: var(--sk-surface); color: inherit; text-decoration: none; min-width: 0; }
.mk-mini:hover { border-color: var(--sk-primary-soft-border); color: inherit; }
.mk-mini b { font-size: var(--fs-sm); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mini small { font-size: 12px; color: var(--sk-muted); }
.mk-mini--empty { border-style: dashed; color: var(--sk-muted); justify-content: center; font-size: var(--fs-xs); }
.mk-message { white-space: pre-line; line-height: 2; padding: 12px 14px; border-radius: 14px; background: var(--sk-ground); font-size: var(--fs-sm); }
.mk-contact-cta { display: flex; flex-direction: column; gap: 10px; }
.mk-copy { border: none; background: none; color: var(--sk-primary); font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; }
.mk-reasons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- پروفایل کسب‌وکار ---------- */
.mk-logo { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: var(--sk-primary); color: #FFFFFF; font-size: 1.8rem; font-weight: 800; flex-shrink: 0; }
.mk-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-logo--sm { width: 48px; height: 48px; border-radius: 14px; font-size: 1.2rem; }
.mk-logo-pick { display: flex; align-items: center; gap: 14px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-detail { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
    .mk-detail { grid-template-columns: 1fr; }
    .mk-detail__side { position: static; }
    .mk-desk-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .mk-hero { grid-template-columns: 1fr; padding: 18px 18px 16px; border-radius: 18px; margin: 0 0 14px; }
    .mk-hero__title { font-size: 1.25rem; }
    .mk-hero__title .sk-ico { font-size: 24px; }
    .mk-hero__actions { flex-direction: row; }
    .mk-hero__actions .br-btn { flex: 1; min-width: 0; min-height: 46px; padding: 0 10px; }
    .mk-seg { display: flex; }
    .mk-seg a { flex: 1; justify-content: center; padding: 0 8px; }
    .mk-bar { margin-top: 10px; }
    .mk-mine__go { margin-inline-start: 0; }

    /* فهرست موبایل: ردیف‌های افقی با تصویر کوچک */
    .mk-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--sk-line); border-radius: 18px; overflow: hidden; background: var(--sk-surface); }
    .mk-grid .mk-card { flex-direction: row; border: none; border-radius: 0; }
    .mk-grid .mk-card + .mk-card { border-top: 1px solid var(--sk-line); }
    .mk-grid .mk-card:hover { transform: none; box-shadow: none; }
    .mk-grid .mk-card:active { background: var(--sk-ground); }
    .mk-grid .mk-card__media { flex: 0 0 104px; aspect-ratio: auto; margin: 12px 12px 12px 0; border-radius: 14px; align-self: flex-start; height: 104px; }
    .mk-grid .mk-card__media .mk-kind { top: auto; bottom: 6px; right: 6px; padding: 0 8px; font-size: 11px; }
    .mk-grid .mk-ph { font-size: 34px; }
    .mk-grid .mk-card__body { padding: 12px 10px 12px 14px; gap: 4px; }
    .mk-grid .mk-card__price { font-size: var(--fs-sm); }
    .mk-grid .mk-card__foot { padding-top: 6px; }

    .mk-title { font-size: 1.2rem; }
    .mk-gallery { margin: 0 -16px; }
    .mk-gallery__main { border-radius: 0; border-left: none; border-right: none; }
    .mk-gallery__thumbs { padding: 0 16px; }
    .mk-detail__side .mk-cta-desktop { display: none; }
    .mk-page--detail { padding-bottom: 104px; }
    .mk-similar { grid-template-columns: 1fr; }
    .mk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .mk-match { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 12px; }
    .mk-match__thumb { width: 52px; height: 52px; }
    .mk-score { width: 46px; height: 46px; }
    .mk-match .br-chips, .mk-match__actions { grid-column: 1 / -1; }

    .mk-choose { grid-template-columns: 1fr; }
    .mk-steps { gap: 6px; }
    .mk-steps button { min-height: 44px; padding: 0 8px; font-size: 12px; }
    .mk-steps button::before { width: 22px; height: 22px; }
    .mk-qty, .mk-qty--2, .mk-price { grid-template-columns: minmax(0, 1fr) 130px; }
    .mk-qty > :first-child { grid-column: 1 / -1; }
    .mk-qty--2 > :first-child { grid-column: auto; }
    .mk-form-nav {
        position: sticky; bottom: calc(var(--sk-bottomnav-h) + var(--sk-safe-bottom) + 8px); z-index: 10;
        margin: 16px -16px 0; padding: 12px 16px; background: linear-gradient(to top, var(--sk-ground) 75%, rgba(243, 246, 248, 0));
    }
    .mk-form-nav .br-btn { flex: 1; min-width: 0; min-height: 50px; }

    .mk-desk-head { gap: 8px; }
    .mk-tile { padding: 12px; }
    .mk-row { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px; }
    .mk-row__thumb { width: 48px; height: 48px; }
    .mk-pair { grid-template-columns: 1fr; }
    .mk-pair__arrow { transform: rotate(-90deg); height: 20px; }
}
