/* KBM 1.9.8.21 — final typography and compact marketplace surfaces. */
:root{--kbm-font-family:'IRANSansX',Tahoma,Arial,sans-serif!important;--kbm-font-lock:var(--kbm-font-family)!important;--kbm-font-sans:var(--kbm-font-family)!important;--kbm-font-heading:var(--kbm-font-family)!important}
html body.kbm-field-21,html body.kbm-field-21 *{font-family:var(--kbm-font-family)!important}
html body :where(.dashicons,[class^="dashicons-"],[class*=" dashicons-"]){font-family:dashicons!important}
html body :where(.eicon,[class^="eicon-"],[class*=" eicon-"]){font-family:eicons!important}
html body :where(.fa,.fas,.far,.fal,.fad,[class^="fa-"],[class*=" fa-"]){font-family:"Font Awesome 6 Free","Font Awesome 5 Free",FontAwesome!important}
html body :where(.fab){font-family:"Font Awesome 6 Brands","Font Awesome 5 Brands",FontAwesome!important}
html body :where(.material-icons,.material-icons-outlined,.material-symbols-outlined){font-family:"Material Icons","Material Icons Outlined","Material Symbols Outlined"!important}

.kbm-mlec-categories>a{overflow:hidden!important;padding:0!important;isolation:isolate}
.kbm-mlec-categories i{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;border-radius:0!important;background:#eef7fb!important}
.kbm-mlec-categories i img{display:block!important;width:100%!important;height:100%!important;padding:0!important;object-fit:cover!important}
.kbm-mlec-categories>a>span{display:flex!important;flex-direction:column!important;gap:4px!important;padding:13px 14px 7px!important}
.kbm-mlec-categories>a>b{padding:0 14px 14px!important}
.kbm-v08-contact-card--enamad .kbm-v08-contact-card__icon{width:72px!important;height:72px!important;padding:4px!important;background:#fff!important}
.kbm-v08-contact-card--enamad .kbm-v08-contact-card__icon img{width:auto!important;max-width:64px!important;height:64px!important;object-fit:contain!important}

/* The field recording showed a full-width duplicate action inserted by a
 * legacy MutationObserver. Hide only that legacy duplicate as a second guard;
 * the canonical top edit and lifecycle renewal stay visible. */
.kbm-dashboard-recode-card>.kbm-actions>.kbm-dashboard-edit-btn,
.kbm-dashboard-recode-card>.kbm-dashboard-edit-btn{display:none!important}

:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card{
  display:grid!important;
  grid-template-columns:112px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  min-height:190px!important;
  max-height:none!important;
  border-radius:18px!important;
}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-media{
  grid-column:1!important;grid-row:1!important;width:112px!important;height:100%!important;
  min-height:190px!important;max-height:none!important;aspect-ratio:auto!important;align-self:stretch!important
}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-body{grid-column:2!important;grid-row:1!important;padding:11px!important;gap:7px!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-top{display:grid!important;gap:5px!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-title{font-size:13px!important;line-height:1.6!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-meta{max-height:56px!important;overflow:hidden!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-chip:nth-child(n+4){display:none!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-commercial{padding:7px 8px!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-act{min-height:39px!important;padding:6px!important;font-size:11px!important}

/* Driver/home list cards must never collapse Persian words into a vertical
 * column on desktop-like mobile viewports. */
:is(body.kbm-device-mobile,body.kbm-is-handset) :where(.kbm-mk-card--driver,.kbm-drivers-recode-card,.kbm-ads-recode-card){writing-mode:horizontal-tb!important;text-orientation:mixed!important}
:is(body.kbm-device-mobile,body.kbm-is-handset) :where(.kbm-mk-card--driver *,.kbm-drivers-recode-card *,.kbm-ads-recode-card *){word-break:normal!important;overflow-wrap:break-word!important}

@media(max-width:370px){
  :is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card{grid-template-columns:96px minmax(0,1fr)!important}
  :is(body.kbm-device-mobile,body.kbm-is-handset) .kbm-dashboard-recode-card-media{width:96px!important}
}
@media(prefers-reduced-motion:reduce){.kbm-mlec-categories>a{transition:none!important}}
