/* =====================================================================
   Arabic CRM — theme. Load AFTER bootstrap.rtl.min.css.
   Palette: Ink (structure) · Nile (action/progress) · Sand (attention) · Coral (risk)
   Signature: the stage rail (.crm-rail) — where a lead is in the 11-stage journey.
   ===================================================================== */
:root {
  --ink: #0f1b2d;
  --ink-2: #1b2a41;
  --ink-3: #2a3b55;
  --canvas: #f2f4f7;
  --surface: #ffffff;
  --line: #e3e7ee;
  --line-strong: #cfd6e1;
  --text: #16212f;
  --muted: #65728a;
  --nile: #0e8a7e;
  --nile-strong: #0a6c63;
  --nile-soft: #e3f4f1;
  --sand: #d99a29;
  --sand-soft: #fbf1dc;
  --coral: #c8463d;
  --coral-soft: #fbe7e5;
  --sky-soft: #e8eefc;

  /* legacy aliases used across views */
  --crm-primary: var(--nile);
  --crm-primary-strong: var(--nile-strong);
  --crm-text: var(--text);
  --crm-muted: var(--muted);
  --crm-border: var(--line);
  --crm-success: var(--nile);
  --crm-warning: var(--sand);
  --crm-danger: var(--coral);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(15, 27, 45, .04), 0 4px 16px rgba(15, 27, 45, .05);
  --shadow-2: 0 18px 48px rgba(15, 27, 45, .16);
  --crm-sidebar-width: 264px;

  --bs-body-font-family: "Cairo", "Noto Sans Arabic", sans-serif;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--canvas);
  --bs-primary: var(--nile);
  --bs-primary-rgb: 14, 138, 126;
  --bs-link-color: var(--nile-strong);
  --bs-link-color-rgb: 10, 108, 99;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
}

html, body, button, input, select, textarea, .dropdown-menu,
.modal, .toast, .tooltip, .popover, .table, .navbar, .offcanvas,
.form-control, .form-select, .swal2-popup, .swal2-title, .swal2-html-container,
.swal2-confirm, .swal2-cancel, .btn, .badge, .form-label, .pagination, .card, .nav-link {
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
}

html { direction: rtl; }
body { color: var(--text); background: var(--canvas); font-size: .92rem; line-height: 1.75; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: var(--nile-strong); text-decoration: none; }
a:hover { color: var(--nile); }
.crm-num, .crm-kpi-value, .table td, bdi[dir="ltr"] { font-variant-numeric: tabular-nums; }

/* ---------- Typography ---------- */
.crm-page-title { font-weight: 800; font-size: clamp(1.35rem, 2.1vw, 1.7rem); letter-spacing: 0; margin: 0; color: var(--ink); }
.crm-section-title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0; }
.crm-eyebrow { font-size: .74rem; font-weight: 700; color: var(--muted); }
.crm-muted { color: var(--muted) !important; }

/* ---------- Surfaces ---------- */
.crm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.crm-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 18px 22px 12px; }
.crm-card-body { padding: 4px 22px 20px; }

/* ---------- Buttons & forms ---------- */
.btn { font-weight: 700; border-radius: var(--radius-sm); padding: .5rem 1rem; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-primary { --bs-btn-bg: var(--nile); --bs-btn-border-color: var(--nile); --bs-btn-hover-bg: var(--nile-strong); --bs-btn-hover-border-color: var(--nile-strong); --bs-btn-active-bg: var(--nile-strong); --bs-btn-disabled-bg: var(--nile); --bs-btn-disabled-border-color: var(--nile); }
.btn-outline-primary { --bs-btn-color: var(--nile-strong); --bs-btn-border-color: var(--nile); --bs-btn-hover-bg: var(--nile); --bs-btn-hover-border-color: var(--nile); --bs-btn-active-bg: var(--nile-strong); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--canvas); --bs-btn-hover-border-color: var(--line-strong); color: var(--ink); }
.btn-ghost { background: transparent; border: 0; color: var(--muted); }
.btn-ghost:hover { background: var(--canvas); color: var(--ink); }
.text-primary { color: var(--nile) !important; }
.form-label { font-weight: 700; font-size: .84rem; color: var(--ink-3); margin-bottom: .35rem; }
.form-control, .form-select { border-color: var(--line-strong); border-radius: var(--radius-sm); padding: .55rem .8rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--nile); box-shadow: 0 0 0 .22rem rgba(14, 138, 126, .16); }
.form-control::placeholder { color: #9aa5b7; }
.form-check-input:checked { background-color: var(--nile); border-color: var(--nile); }
:where(input[type='email'], input[type='tel'], input[data-ltr], .crm-ltr) { direction: ltr; unicode-bidi: isolate; text-align: start; }
bdi.crm-ltr { white-space: nowrap; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--ink); }
.nav-pills .nav-link { color: var(--ink-3); font-weight: 700; border-radius: 999px; padding: .4rem 1rem; }
.nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; padding: .7rem .9rem; }
.nav-tabs .nav-link.active { color: var(--ink); border-bottom-color: var(--nile); background: transparent; }
.page-link { color: var(--ink-3); border-color: var(--line); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); }
.progress-bar { background: var(--nile) !important; }

/* ---------- Tables ---------- */
.table { --bs-table-color: var(--text); --bs-table-hover-bg: #f6f8fb; margin: 0; }
.table > thead th, .table-light th { background: #f8fafc !important; color: var(--muted); font-size: .76rem; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); padding: .8rem 1rem; }
.table > tbody td { padding: .85rem 1rem; border-color: var(--line); }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- App shell ---------- */
.crm-shell { display: flex; min-height: 100vh; }
.crm-sidebar {
  background: var(--ink); color: #fff;
  width: var(--crm-sidebar-width); flex: 0 0 var(--crm-sidebar-width);
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1030; /* start = right in RTL */
  display: flex; flex-direction: column; overflow-y: auto;
}
.crm-brand { padding: 22px 22px 18px; display: flex; align-items: center; gap: 12px; }
.crm-brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--nile); display: grid; place-items: center; font-size: 1.15rem; color: #fff; box-shadow: 0 6px 18px rgba(14, 138, 126, .45); }
.crm-brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.crm-brand-sub { font-size: .72rem; color: rgba(255, 255, 255, .5); font-weight: 600; }
.crm-sidebar .nav { padding: 6px 12px; gap: 2px; }
.crm-sidebar .nav-link { color: rgba(255, 255, 255, .72); border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .9rem; position: relative; }
.crm-sidebar .nav-link i { font-size: 1.08rem; width: 1.25rem; text-align: center; opacity: .85; }
.crm-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.crm-sidebar .nav-link.active { color: #fff; background: var(--ink-2); }
.crm-sidebar .nav-link.active::before { content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--nile); }
.crm-sidebar .nav-link .crm-nav-count { margin-inline-start: auto; font-size: .7rem; background: var(--coral); color: #fff; border-radius: 999px; padding: 0 .45rem; line-height: 1.5; }
.crm-nav-section { color: rgba(255, 255, 255, .38); font-size: .7rem; font-weight: 700; padding: 18px 24px 6px; }
.crm-sidebar-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.crm-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: #fff; }
.crm-me:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.crm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: 0 0 auto; }
.crm-me small { color: rgba(255, 255, 255, .5); display: block; line-height: 1.2; }

.crm-main { flex: 1 1 auto; margin-inline-start: var(--crm-sidebar-width); display: flex; flex-direction: column; min-width: 0; }
.crm-navbar { background: rgba(242, 244, 247, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 1020; }
.crm-search { max-width: 420px; flex: 1 1 auto; position: relative; }
.crm-search input { padding-inline-start: 2.4rem; border-radius: 999px; background: #fff; border-color: var(--line); }
.crm-search i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.crm-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); position: relative; }
.crm-icon-btn:hover { border-color: var(--line-strong); }
.crm-content { padding: 26px 28px 40px; flex: 1 1 auto; max-width: 1480px; width: 100%; }
.crm-page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.crm-sidebar-toggle { display: none; }

/* ---------- Bell ---------- */
.crm-bell-badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--canvas); }
.crm-bell.has-new .bi-bell-fill { animation: crm-ring .9s ease 1; transform-origin: 50% 10%; }
@keyframes crm-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.crm-bell-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; }
.crm-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.crm-bell-list { max-height: 420px; overflow-y: auto; }
.crm-bell-group { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 10px 16px 4px; background: #fafbfc; }
.crm-notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); position: relative; white-space: normal; }
.crm-notif-item:last-child { border-bottom: 0; }
.crm-notif-item:hover { background: #f7f9fb; color: var(--text); }
.crm-notif-item.is-unread { background: #f3fbfa; }
.crm-notif-item.is-unread::after { content: ""; position: absolute; inset-inline-end: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--nile); }
.crm-notif-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1rem; }
.crm-tone-primary { background: var(--nile-soft); color: var(--nile-strong); }
.crm-tone-info { background: var(--sky-soft); color: #3550c4; }
.crm-tone-success { background: #e2f6ea; color: #1d7a45; }
.crm-tone-warning { background: var(--sand-soft); color: #9a6608; }
.crm-tone-danger { background: var(--coral-soft); color: var(--coral); }
.crm-notif-title { font-weight: 700; font-size: .86rem; line-height: 1.45; padding-inline-end: 14px; }
.crm-notif-body { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.crm-notif-time { font-size: .72rem; color: #98a2b3; margin-top: 2px; }
.crm-bell-foot { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: .84rem; border-top: 1px solid var(--line); background: #fafbfc; }
.crm-notification-unread { background: #f3fbfa; }
.crm-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nile); display: inline-block; }

/* ---------- KPIs ---------- */
.crm-kpi { padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px; height: 100%; }
.crm-kpi-value { font-size: 1.75rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.crm-kpi-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.crm-kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }

/* ---------- Signature: stage rail ---------- */
.crm-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.crm-rail-step { position: relative; }
.crm-rail-bar { height: 8px; border-radius: 4px; background: var(--line); }
.crm-rail-step.is-done .crm-rail-bar { background: var(--nile); opacity: .55; }
.crm-rail-step.is-current .crm-rail-bar { background: var(--nile); box-shadow: 0 0 0 3px rgba(14, 138, 126, .18); }
.crm-rail-step.is-won .crm-rail-bar { background: #1d9a57; }
.crm-rail-step.is-lost .crm-rail-bar { background: var(--coral); }
.crm-rail-label { font-size: .68rem; font-weight: 700; color: #9aa5b7; margin-top: 7px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-rail-step.is-current .crm-rail-label { color: var(--ink); }
/* Dashboard funnel version: a count per stage */
.crm-funnel { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.crm-funnel-stage { display: block; padding: 14px 12px 12px; border-radius: 12px; background: #f7f9fb; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s; }
.crm-funnel-stage:hover { border-color: var(--nile); color: var(--ink); transform: translateY(-1px); }
.crm-funnel-count { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.crm-funnel-name { font-size: .76rem; font-weight: 700; color: var(--muted); }
.crm-funnel-meter { height: 5px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; }
.crm-funnel-meter span { display: block; height: 100%; background: var(--nile); border-radius: 3px; }
.crm-funnel-outcomes { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-outcome { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; }

/* ---------- Status badges (text always present; color supports) ---------- */
.crm-badge { font-weight: 700; font-size: .76rem; border-radius: 999px; padding: .25em .75em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.crm-badge[data-status="new"]            { background: #eef1f5; color: #4a5568; }
.crm-badge[data-status="qualifying"]     { background: #e8eefc; color: #3550c4; }
.crm-badge[data-status="qualified"]      { background: #e0f3f0; color: #0a6c63; }
.crm-badge[data-status="assigned"]       { background: #ece9fb; color: #5a43c8; }
.crm-badge[data-status="contacted"]      { background: #e4f1fb; color: #1f6aa5; }
.crm-badge[data-status="interested"]     { background: #def5f7; color: #157080; }
.crm-badge[data-status="follow_up"]      { background: var(--sand-soft); color: #94600a; }
.crm-badge[data-status="quotation_sent"] { background: #f3e9fb; color: #7b3fb0; }
.crm-badge[data-status="won"]            { background: #dff5e7; color: #1b7a43; }
.crm-badge[data-status="lost"]           { background: var(--coral-soft); color: #a8352d; }
.crm-badge[data-status="unqualified"]    { background: #f1f2f4; color: #6b7280; }

.crm-prio { font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; gap: 5px; }
.crm-prio::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.crm-prio[data-prio="high"] { color: var(--coral); }
.crm-prio[data-prio="medium"] { color: var(--sand); }
.crm-prio[data-prio="low"] { color: #98a2b3; }

/* ---------- Timeline ---------- */
.crm-timeline { position: relative; padding-inline-start: 24px; }
.crm-timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 7px; width: 2px; background: var(--line); }
.crm-timeline-item { position: relative; padding-bottom: 18px; }
.crm-timeline-item::before { content: ""; position: absolute; inset-inline-start: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--nile); }

/* ---------- Empty states ---------- */
.crm-empty { text-align: center; color: var(--muted); padding: 44px 16px; font-weight: 600; }
.crm-empty i { font-size: 1.7rem; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--canvas); color: #98a2b3; }

/* ---------- Auth ---------- */
.crm-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--surface); }
.crm-auth-panel { background: var(--ink); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.crm-auth-panel h2 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.45; max-width: 480px; }
.crm-auth-panel p { color: rgba(255, 255, 255, .62); max-width: 440px; }
.crm-auth-panel .crm-rail-bar { background: rgba(255, 255, 255, .12); }
.crm-auth-panel .crm-rail-step.is-done .crm-rail-bar { background: var(--nile); opacity: .7; }
.crm-auth-panel .crm-rail-step.is-current .crm-rail-bar { background: #3fd0bf; box-shadow: 0 0 0 4px rgba(63, 208, 191, .2); }
.crm-auth-panel .crm-rail-label { color: rgba(255, 255, 255, .45); }
.crm-auth-panel .crm-rail-step.is-current .crm-rail-label { color: #fff; }
.crm-auth-form { display: grid; place-items: center; padding: 40px 24px; }
.crm-auth-form form { width: min(400px, 100%); }
.crm-auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--canvas); padding: 20px; }
.crm-auth-card { width: min(420px, 100%); border-radius: 16px; }

/* ---------- Gate (audit) ---------- */
.crm-gate { max-width: 440px; margin: 6vh auto 0; text-align: center; }
.crm-gate-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.8rem; }
.crm-code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center !important; font-weight: 800; }

/* ---------- Toasts ---------- */
.crm-toast-stack { z-index: 3000; inset-block-start: 14px; inset-inline-start: 14px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 992px) {
  body:has(.crm-shell) .crm-toast-stack { inset-block-start: 76px; inset-inline-start: calc(var(--crm-sidebar-width) + 20px); }
}
.crm-toast { width: min(400px, calc(100vw - 28px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; }
.crm-toast-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 10px; }
.crm-toast-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.05rem; }
.crm-toast--success .crm-toast-icon { background: #e2f6ea; color: #1d7a45; }
.crm-toast--info .crm-toast-icon { background: var(--sky-soft); color: #3550c4; }
.crm-toast--warning .crm-toast-icon { background: var(--sand-soft); color: #9a6608; }
.crm-toast--error .crm-toast-icon { background: var(--coral-soft); color: var(--coral); }
.crm-toast-title { font-weight: 800; font-size: .88rem; color: var(--ink); line-height: 1.4; }
.crm-toast-msg { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.crm-toast .btn-close { margin-inline-start: auto; font-size: .7rem; flex: 0 0 auto; }
.crm-toast-timer { height: 3px; background: currentColor; transform-origin: right; }
.crm-toast--success .crm-toast-timer { color: #1d9a57; }
.crm-toast--info .crm-toast-timer { color: #3550c4; }
.crm-toast--warning .crm-toast-timer { color: var(--sand); }
@keyframes crm-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

:focus-visible { outline: 3px solid rgba(14, 138, 126, .35); outline-offset: 2px; }

/* ---------- Kanban ---------- */
.crm-kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.crm-kanban-col { flex: 0 0 272px; background: #e9edf2; border-radius: var(--radius); padding: 12px; }
.crm-kanban-col h6 { font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crm-kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(15, 27, 45, .04); transition: border-color .15s, box-shadow .15s; }
.crm-kanban-card:hover { border-color: var(--nile); box-shadow: var(--shadow-1); }

/* ---------- Modals & SweetAlert ---------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-2); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font-weight: 800; }
.swal2-popup { border-radius: 18px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) { .crm-funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .crm-sidebar { transform: translateX(100%); transition: transform .22s ease; }
  .crm-sidebar.show { transform: translateX(0); }
  .crm-main { margin-inline-start: 0; }
  .crm-sidebar-toggle { display: grid; }
  .crm-backdrop { position: fixed; inset: 0; background: rgba(15, 27, 45, .45); z-index: 1025; }
  .crm-auth { grid-template-columns: 1fr; }
  .crm-auth-panel { padding: 32px 24px; }
  .crm-auth-panel .crm-auth-hide-sm { display: none; }
}
@media (max-width: 575.98px) {
  .crm-content { padding: 16px 14px 32px; }
  .crm-navbar { padding: 10px 14px; }
  .crm-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-toast-stack { inset-block-start: 8px; inset-inline-start: 8px; }
  .crm-rail-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.min-w-0 { min-width: 0; }
dl bdi.crm-ltr, dd bdi.crm-ltr { white-space: normal; overflow-wrap: anywhere; }
