@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/iransans/IRANSansWeb.woff2") format("woff2"),
         url("/fonts/iransans/IRANSansWeb.woff") format("woff"),
         url("/fonts/iransans/IRANSansWeb.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/iransans/IRANSansWeb_Medium.woff2") format("woff2"),
         url("/fonts/iransans/IRANSansWeb_Medium.woff") format("woff"),
         url("/fonts/iransans/IRANSansWeb_Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansWeb";
    src: url("/fonts/iransans/IRANSansWeb_Bold.woff2") format("woff2"),
         url("/fonts/iransans/IRANSansWeb_Bold.woff") format("woff"),
         url("/fonts/iransans/IRANSansWeb_Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --mk-font: "IRANSansWeb", Tahoma, Arial, sans-serif;
    --mk-bg: #f6f8fb;
    --mk-surface: #ffffff;
    --mk-surface-soft: #f8fafc;
    --mk-text: #172033;
    --mk-muted: #667085;
    --mk-border: #e6eaf0;
    --mk-border-strong: #d4dae4;
    --mk-primary: #2563eb;
    --mk-primary-dark: #1d4ed8;
    --mk-primary-soft: #eff6ff;
    --mk-navy: #0f172a;
    --mk-success: #087443;
    --mk-success-soft: #ecfdf3;
    --mk-danger: #b42318;
    --mk-danger-soft: #fff1f0;
    --mk-warning: #b54708;
    --mk-warning-soft: #fff7ed;
    --mk-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
    --mk-shadow-md: 0 12px 30px rgba(15, 23, 42, .07);
    --mk-radius-sm: 10px;
    --mk-radius: 16px;
    --mk-radius-lg: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 14px; }
body, button, input, select, textarea { font-family: var(--mk-font); }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--mk-bg);
    color: var(--mk-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font-size: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #dbeafe; color: #1e3a8a; }

/* Shell */
.mk-topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(230, 234, 240, .92);
    backdrop-filter: blur(16px);
}
.mk-topbar__inner {
    width: min(1440px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mk-text);
    text-decoration: none;
    white-space: nowrap;
}
.mk-brand__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 17px;
    background: linear-gradient(145deg, #0f172a, #2563eb);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}
.mk-brand__copy { display: grid; line-height: 1.2; }
.mk-brand__copy strong { font-size: 15px; font-weight: 700; }
.mk-brand__copy small { margin-top: 3px; color: var(--mk-muted); font-size: 10.5px; font-weight: 500; }
.mk-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.mk-nav__item {
    position: relative;
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    color: #475467;
    text-decoration: none;
    font-weight: 500;
    transition: background .16s ease, color .16s ease;
}
.mk-nav__item:hover { color: var(--mk-text); background: #f2f4f7; }
.mk-nav__item.is-active { color: #1d4ed8; background: var(--mk-primary-soft); }
.mk-nav__item.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    inset-block-end: -15px;
    height: 2px;
    border-radius: 2px;
    background: var(--mk-primary);
}
.mk-logout { margin: 0; }
.mk-logout__button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--mk-border);
    border-radius: 10px;
    background: #fff;
    color: #475467;
    cursor: pointer;
}
.mk-logout__button:hover { background: #f8fafc; color: var(--mk-text); }
.mk-container {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 44px;
}
.mk-mobile-nav { display: none; }

/* Typography and page headers */
.mk-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.mk-page-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--mk-primary-dark);
    font-size: 11px;
    font-weight: 700;
}
.mk-page-head__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mk-primary);
}
.mk-page-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.45;
    letter-spacing: -.02em;
    font-weight: 700;
}
.mk-page-head p { margin: 6px 0 0; color: var(--mk-muted); }
.mk-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-muted { color: var(--mk-muted); }
.mk-small { font-size: 12px; }
.mk-strong { font-weight: 700; }

/* Buttons */
.mk-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--mk-border-strong);
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .12s ease;
}
.mk-button:hover { border-color: #b8c1cf; background: #f8fafc; }
.mk-button:active { transform: translateY(1px); }
.mk-button--primary { color: #fff; border-color: var(--mk-primary); background: var(--mk-primary); box-shadow: 0 5px 12px rgba(37, 99, 235, .14); }
.mk-button--primary:hover { color: #fff; border-color: var(--mk-primary-dark); background: var(--mk-primary-dark); }
.mk-button--soft { color: #1d4ed8; border-color: #dbeafe; background: #eff6ff; }
.mk-button--danger { color: var(--mk-danger); border-color: #fecaca; background: #fff; }
.mk-button--compact { min-height: 34px; padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.mk-button--block { width: 100%; }
button:disabled, .mk-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; transform: none; }

/* Alerts */
.mk-alert {
    position: relative;
    margin-bottom: 16px;
    padding: 11px 14px 11px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: var(--mk-shadow-sm);
}
.mk-alert--success { color: var(--mk-success); border-color: #abefc6; background: var(--mk-success-soft); }
.mk-alert--error { color: var(--mk-danger); border-color: #fecdca; background: var(--mk-danger-soft); }

/* Cards */
.mk-card {
    background: var(--mk-surface);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow-sm);
}
.mk-card--padded { padding: 18px; }
.mk-card--raised { box-shadow: var(--mk-shadow-md); }
.mk-card__head {
    min-height: 58px;
    padding: 15px 18px 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f4;
}
.mk-card__head h2, .mk-card__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.mk-card__head p { margin: 3px 0 0; color: var(--mk-muted); font-size: 12px; }
.mk-card__body { padding: 18px; }
.mk-section-stack { display: grid; gap: 16px; }
.mk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* KPI */
.mk-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.mk-kpi-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mk-kpi {
    position: relative;
    min-height: 112px;
    padding: 16px 17px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 15px;
    box-shadow: var(--mk-shadow-sm);
}
.mk-kpi::after {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    inset-inline-end: -26px;
    inset-block-start: -28px;
    border-radius: 50%;
    background: #eff6ff;
}
.mk-kpi__label { display: block; color: var(--mk-muted); font-size: 12px; font-weight: 500; }
.mk-kpi__value { display: block; margin-top: 9px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.35; font-weight: 700; color: var(--mk-text); }
.mk-kpi__hint { display: block; margin-top: 4px; color: #98a2b3; font-size: 11px; }
.mk-kpi--danger::after { background: #fff1f0; }
.mk-kpi--success::after { background: #ecfdf3; }
.mk-kpi--warning::after { background: #fff7ed; }

/* Lead claim */
.mk-claim {
    margin-bottom: 18px;
    padding: 17px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #dbeafe;
    border-radius: var(--mk-radius);
    background: linear-gradient(115deg, #ffffff 15%, #f4f8ff 100%);
}
.mk-claim h2 { margin: 0; font-size: 15px; }
.mk-claim p { margin: 4px 0 0; color: var(--mk-muted); font-size: 12px; }
.mk-inline-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.mk-inline-form .mk-field-control { min-width: 210px; }

/* Forms */
.mk-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mk-form-grid--dashboard { grid-template-columns: 1.15fr 1fr 1fr 1.6fr auto; }
.mk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-field--wide { grid-column: 1 / -1; }
.mk-field > span, .mk-field > label, .mk-field-label { color: #475467; font-size: 11.5px; font-weight: 700; }
.mk-field-control, input, select, textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--mk-border-strong);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--mk-text);
    line-height: 1.6;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, select:focus, textarea:focus, .mk-field-control:focus {
    border-color: #84adff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
select:disabled, input:disabled, textarea:disabled { background: #f2f4f7; color: #98a2b3; }
.mk-validation, .validation {
    padding: 10px 12px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: var(--mk-danger-soft);
    color: var(--mk-danger);
    font-size: 12px;
}
.mk-validation:empty, .validation:empty { display: none; }

/* Lists and tasks */
.mk-empty { padding: 28px 18px; text-align: center; color: var(--mk-muted); }
.mk-empty--compact { padding: 14px; }
.mk-list { display: grid; }
.mk-list-item {
    min-height: 70px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef1f5;
    transition: background .14s ease;
}
.mk-list-item:last-child { border-bottom: 0; }
.mk-list-item:hover { background: #fafbfc; }
.mk-list-item__main { min-width: 0; display: grid; gap: 2px; }
.mk-list-item__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-list-item__main span { color: #475467; font-size: 12px; }
.mk-list-item__meta { color: var(--mk-muted); font-size: 11px; white-space: nowrap; }
.mk-list-item--danger { background: #fffafa; }
.mk-list-item--danger .mk-list-item__meta { color: var(--mk-danger); }
.mk-task-row {
    min-height: 68px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef1f5;
}
.mk-task-row:last-child { border-bottom: 0; }
.mk-task-row__copy { min-width: 0; display: grid; gap: 2px; }
.mk-task-row__copy small { color: var(--mk-muted); }

/* Chips and status */
.mk-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 10.5px;
    font-weight: 700;
}
.mk-chip--primary { background: #eff6ff; color: #1d4ed8; }
.mk-chip--success { background: #ecfdf3; color: #087443; }
.mk-chip--warning { background: #fff7ed; color: #b54708; }
.mk-chip--danger { background: #fff1f0; color: #b42318; }

/* Tables */
.mk-table-wrap { width: 100%; overflow: auto; scrollbar-width: thin; }
.mk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}
.mk-table--wide { min-width: 1180px; }
.mk-table th, .mk-table td {
    padding: 11px 14px;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid #eef1f5;
}
.mk-table th {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    background: #fbfcfd;
    color: #667085;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.mk-table tbody tr:last-child td { border-bottom: 0; }
.mk-table tbody tr:hover td { background: #fcfdff; }
.mk-table td strong { font-weight: 700; }
.mk-table td small { display: block; margin-top: 2px; color: var(--mk-muted); font-size: 10.5px; }
.mk-table a:not(.mk-button) { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.mk-table__subrow td { padding-top: 7px; padding-bottom: 10px; background: #fbfcff !important; }
.mk-target-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Progress */
.mk-target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mk-target { padding: 18px; }
.mk-target__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mk-target__top h2 { margin: 8px 0 2px; font-size: 16px; }
.mk-target__top p { margin: 0; color: var(--mk-muted); font-size: 12px; }
.mk-target__percent { font-size: 1.55rem; font-weight: 700; color: #1d4ed8; white-space: nowrap; }
.mk-progress { height: 8px; margin: 18px 0 12px; overflow: hidden; border-radius: 999px; background: #edf1f7; }
.mk-progress__bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #3b82f6); }
.mk-target__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #475467; font-size: 11.5px; }

/* Contact */
.mk-contact-info { display: grid; gap: 16px; }
.mk-info-block h3 { margin: 0 0 7px; color: #475467; font-size: 11.5px; }
.mk-info-values { display: grid; gap: 7px; }
.mk-info-value { padding: 9px 11px; border: 1px solid #eef1f5; border-radius: 10px; background: #fafbfc; }
.mk-timeline { position: relative; display: grid; gap: 0; padding-inline-start: 2px; }
.mk-timeline-item {
    position: relative;
    padding: 3px 27px 20px 0;
    border-inline-start: 1px solid #e4e7ec;
}
.mk-timeline-item:last-child { padding-bottom: 2px; border-inline-start-color: transparent; }
.mk-timeline-item::before {
    content: "";
    position: absolute;
    inset-inline-start: -5px;
    inset-block-start: 9px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mk-primary);
    box-shadow: 0 0 0 1px #bfdbfe;
}
.mk-timeline-item__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-timeline-item__head strong { font-size: 12.5px; }
.mk-timeline-item__head span { color: #475467; font-size: 11px; }
.mk-timeline-item__time { color: var(--mk-muted); font-size: 10.5px; }
.mk-timeline-item p { margin: 5px 0 0; color: #475467; white-space: pre-line; }

/* Manager dashboard */
.mk-filter-card { margin-bottom: 18px; padding: 15px; }
.mk-dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mk-quality { font-size: 11px; line-height: 1.9; color: #475467; white-space: nowrap; }
.mk-danger-text { color: var(--mk-danger); }

/* Error / access denied */
.mk-state-page { max-width: 620px; margin: 9vh auto 0; text-align: center; }
.mk-state-page__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 25px;
    font-weight: 700;
}
.mk-state-page h1 { margin: 0; font-size: 1.4rem; }
.mk-state-page p { margin: 9px 0 18px; color: var(--mk-muted); }
.mk-state-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mk-support-code { margin-top: 16px; color: #98a2b3; font-size: 10.5px; }
.mk-support-code code { direction: ltr; unicode-bidi: isolate; }

/* Login */
.login-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(360px, .88fr) minmax(480px, 1.12fr);
    background: #f5f7fb;
}
.login-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: 54px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #0f172a;
}
.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.login-brand-panel::before {
    width: 460px;
    height: 460px;
    inset-inline-start: -160px;
    inset-block-start: -170px;
    background: radial-gradient(circle, rgba(37, 99, 235, .35), rgba(37, 99, 235, 0) 68%);
}
.login-brand-panel::after {
    width: 330px;
    height: 330px;
    inset-inline-end: -160px;
    inset-block-end: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, .22), rgba(56, 189, 248, 0) 70%);
}
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-brand .mk-brand__mark { width: 42px; height: 42px; background: #fff; color: #0f172a; box-shadow: none; }
.login-brand strong { display: block; font-size: 17px; }
.login-brand small { display: block; margin-top: 2px; color: #94a3b8; font-size: 11px; }
.login-brand-message { position: relative; z-index: 1; max-width: 470px; }
.login-brand-message span { display: inline-block; margin-bottom: 9px; color: #93c5fd; font-size: 11px; font-weight: 700; }
.login-brand-message h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.6; font-weight: 700; letter-spacing: -.03em; }
.login-brand-message p { margin: 13px 0 0; color: #a8b3c7; font-size: 13px; }
.login-brand-footer { position: relative; z-index: 1; color: #64748b; font-size: 10.5px; }
.login-form-panel { min-height: 100vh; padding: 40px; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); }
.login-card__mobile-brand { display: none; margin-bottom: 28px; }
.login-card__head { margin-bottom: 28px; }
.login-card__head h1 { margin: 0; font-size: 1.8rem; line-height: 1.45; }
.login-card__head p { margin: 7px 0 0; color: var(--mk-muted); }
.login-card form { display: grid; gap: 15px; }
.login-card .mk-field-control { min-height: 46px; border-radius: 11px; }
.login-submit { min-height: 47px; margin-top: 4px; font-weight: 700; }
.login-security-note { margin: 18px 0 0; color: #98a2b3; font-size: 10.5px; text-align: center; }

@media (max-width: 1180px) {
    .mk-kpi-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-form-grid--dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-form-grid--dashboard .mk-filter-submit { grid-column: 1 / -1; }
    .mk-filter-submit .mk-button { width: 100%; }
}

@media (max-width: 900px) {
    .mk-topbar__inner, .mk-container { width: min(100% - 28px, 1440px); }
    .mk-nav { gap: 1px; }
    .mk-nav__item { padding-inline: 10px; }
    .mk-grid-3 { grid-template-columns: 1fr; }
    .login-body { grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 28px; }
    .login-card__mobile-brand { display: flex; }
}

@media (max-width: 800px) {
    html { font-size: 13px; }
    body.marketing-app { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
    .mk-topbar__inner { min-height: 58px; width: calc(100% - 24px); gap: 12px; }
    .mk-brand__mark { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
    .mk-brand__copy strong { font-size: 13px; }
    .mk-brand__copy small { font-size: 9.5px; }
    .mk-nav { display: none; }
    .mk-logout { margin-inline-start: auto; }
    .mk-logout__button { min-height: 34px; padding: 5px 10px; font-size: 11px; }
    .mk-container { width: calc(100% - 24px); padding: 18px 0 26px; }
    .mk-mobile-nav {
        position: fixed;
        z-index: 50;
        inset-inline: 0;
        inset-block-end: 0;
        min-height: 62px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        border-top: 1px solid var(--mk-border);
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(16px);
        box-shadow: 0 -8px 25px rgba(15, 23, 42, .05);
    }
    .mk-mobile-nav a {
        min-width: 0;
        padding: 4px 5px;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 4px;
        border-radius: 10px;
        color: #667085;
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
    }
    .mk-mobile-nav a.is-active { color: #1d4ed8; background: #eff6ff; }
    .mk-mobile-nav__dot { width: 16px; height: 3px; border-radius: 999px; background: #d0d5dd; }
    .mk-mobile-nav a.is-active .mk-mobile-nav__dot { background: var(--mk-primary); }
    body.marketing-app .melal-knowledge-page-help {
        inset-inline-end: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 24px);
        z-index: 49;
    }
    .mk-page-head { margin-bottom: 16px; align-items: flex-start; }
    .mk-page-head h1 { font-size: 1.45rem; }
    .mk-page-head p { font-size: 11.5px; }
    .mk-page-actions { flex-shrink: 0; }
    .mk-kpi-grid, .mk-kpi-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mk-kpi { min-height: 98px; padding: 13px; }
    .mk-kpi__value { font-size: 1.35rem; }
    .mk-grid-2, .mk-dashboard-split, .mk-target-grid { grid-template-columns: 1fr; gap: 12px; }
    .mk-card__head { min-height: 54px; padding: 13px 14px 11px; }
    .mk-card__body, .mk-card--padded, .mk-target { padding: 14px; }
    .mk-claim { padding: 14px; align-items: stretch; flex-direction: column; }
    .mk-inline-form { align-items: stretch; }
    .mk-inline-form .mk-field-control { min-width: 0; }
    .mk-form-grid, .mk-form-grid--dashboard { grid-template-columns: 1fr; gap: 11px; }
    .mk-form-grid--dashboard .mk-filter-submit { grid-column: auto; }
    .mk-target__foot { align-items: flex-start; flex-direction: column; gap: 3px; }

    .mk-table--stack { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
    .mk-table--stack thead { display: none; }
    .mk-table--stack tbody, .mk-table--stack tr, .mk-table--stack td { display: block; width: 100%; }
    .mk-table--stack tr {
        overflow: hidden;
        border: 1px solid var(--mk-border);
        border-radius: 13px;
        background: #fff;
        box-shadow: var(--mk-shadow-sm);
    }
    .mk-table--stack td {
        min-height: 43px;
        padding: 9px 12px;
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        border-bottom: 1px solid #eef1f5;
        background: #fff !important;
    }
    .mk-table--stack td:last-child { border-bottom: 0; }
    .mk-table--stack td::before { content: attr(data-label); color: var(--mk-muted); font-size: 10.5px; font-weight: 700; }
    .mk-table--stack td[data-label=""] { grid-template-columns: 1fr; }
    .mk-table--stack td[data-label=""]::before { display: none; }
    .mk-table--stack .mk-button { width: 100%; }

    .mk-table--performance { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
    .mk-table--performance thead { display: none; }
    .mk-table--performance tbody { display: grid; gap: 12px; }
    .mk-table--performance tr:not(.mk-table__subrow) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--mk-border);
        border-radius: 14px 14px 0 0;
        background: #fff;
    }
    .mk-table--performance tr:not(.mk-table__subrow) td {
        min-width: 0;
        padding: 10px 12px;
        display: grid;
        gap: 2px;
        border-bottom: 1px solid #eef1f5;
        background: #fff !important;
    }
    .mk-table--performance tr:not(.mk-table__subrow) td::before { content: attr(data-label); color: var(--mk-muted); font-size: 10px; font-weight: 700; }
    .mk-table--performance tr:not(.mk-table__subrow) td:first-child { grid-column: 1 / -1; }
    .mk-table--performance .mk-table__subrow { display: block; margin-top: -12px; }
    .mk-table--performance .mk-table__subrow td { display: block; border: 1px solid var(--mk-border); border-top: 0; border-radius: 0 0 14px 14px; }
    .mk-table--performance .mk-table__subrow + tr:not(.mk-table__subrow) { margin-top: 0; }
    .mk-quality { white-space: normal; }
    .mk-list-item { padding: 11px 14px; }
    .mk-list-item__meta { white-space: normal; text-align: left; }
    .login-form-panel { min-height: 100vh; padding: 24px 18px; align-content: center; }
}

@media (max-width: 430px) {
    .mk-page-head { flex-direction: column; gap: 10px; }
    .mk-page-actions { width: 100%; }
    .mk-page-actions .mk-button { flex: 1; }
    .mk-kpi-grid, .mk-kpi-grid--6 { grid-template-columns: 1fr 1fr; }
    .mk-kpi { min-height: 92px; }
    .mk-claim .mk-inline-form { flex-direction: column; }
    .mk-table--performance tr:not(.mk-table__subrow) { grid-template-columns: 1fr; }
    .mk-table--performance tr:not(.mk-table__subrow) td:first-child { grid-column: auto; }
    .mk-target__top { gap: 10px; }
    .mk-target__percent { font-size: 1.35rem; }
}
