/* MazayaChat new dashboard design (daschat), scoped under .mzx */
/* MazayaChat dashboard — plain CSS port */
.mzx{
  --background: 84 26% 97%;
  --foreground: 203 76% 11%;
  --card: 0 0% 100%;
  --muted: 84 22% 95%;
  --muted-foreground: 203 18% 42%;
  --border: 203 18% 89%;
  --ring: 75 82% 45%;
  --navy: 203 76% 11%;
  --lime: 75 82% 45%;
  --sb-bg: 203 76% 11%;
  --radius: .9rem;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --c-out: #0f4a6b;
  --c-bar2: #0f4a6b;
  --c-navy-bar: #072032;
}

.mzx.mz-dark{
  --background: 203 62% 7%;
  --foreground: 80 18% 96%;
  --card: 203 46% 10%;
  --muted: 203 36% 14%;
  --muted-foreground: 200 14% 66%;
  --border: 203 30% 19%;
  --navy: 203 62% 8%;
  --sb-bg: 203 66% 6%;
  --c-out: #38bdf8;
  --c-bar2: #38bdf8;
  --c-navy-bar: #ACE601;
}

[dir="rtl"] .mzx{ --font: Cairo, Tajawal, ui-sans-serif, system-ui, sans-serif; }

.mzx *, .mzx *::before, .mzx *::after{ box-sizing: border-box; border: 0 solid hsl(var(--border)); }

.mzx{ -webkit-text-size-adjust: 100%; }

.mzx{
  margin: 0; font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: hsl(var(--background)); color: hsl(var(--foreground));
}

.mzx a{ color: inherit; text-decoration: none; }

.mzx button{ font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }

.mzx input{ font: inherit; color: inherit; }

.mzx ul{ list-style: none; margin: 0; padding: 0; }

.mzx h1, .mzx h2, .mzx p{ margin: 0; }

.mzx svg.lucide, .mzx i[data-lucide]{ display: inline-block; flex-shrink: 0; }

[dir="rtl"] .mzx .flip{ transform: scaleX(-1); }

.mzx .layout{ display: flex; min-height: 100vh; }
/* ---------- Sidebar ---------- */
.mzx .sidebar{
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; width: 264px; flex-shrink: 0;
  display: flex; flex-direction: column; background: hsl(var(--sb-bg)); color: rgb(255 255 255 / .7);
  transform: translateX(-100%); transition: transform .3s ease-out, width .3s ease-out;
}

[dir="rtl"] .mzx .sidebar{ transform: translateX(100%); }

.mzx .sidebar.open{ transform: none !important; }

.mzx .sb-brand{ display: flex; align-items: center; gap: 10px; padding: 20px 16px; }

.mzx .sb-logo{
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  background: #fff; color: hsl(203 76% 11%); font-size: 15px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(172, 230, 1, .35), 0 0 22px -6px rgba(172, 230, 1, .55);
}
/* the MazayaChat mark (navy and lime) on white, as in the website header */
.mzx .sb-logo img{ display: block; width: 26px; height: auto; }

.mzx .sb-name{ font-size: 15px; font-weight: 600; letter-spacing: -.025em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .sb-sub{ font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: rgb(255 255 255 / .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .sb-close{ margin-inline-start: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: rgb(255 255 255 / .6); }

.mzx .sb-close:hover{ background: rgb(255 255 255 / .1); }

.mzx .sb-nav{ flex: 1; overflow-y: auto; padding: 0 10px 16px; scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }

.mzx .sb-group{ margin-bottom: 16px; }

.mzx .sb-label{ margin-bottom: 6px; padding-inline: 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: rgb(255 255 255 / .3); white-space: nowrap; }

.mzx .sb-group ul{ display: flex; flex-direction: column; gap: 2px; }

.mzx .sb-link{
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; color: rgb(255 255 255 / .65); transition: all .2s;
}

.mzx .sb-link svg{ width: 16px; height: 16px; }

.mzx .sb-link span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mzx .sb-link:hover{ background: rgb(255 255 255 / .07); color: #fff; }

.mzx .sb-link.active{ background: hsl(var(--lime)); color: hsl(203 76% 11%); box-shadow: 0 6px 20px -8px rgba(172, 230, 1, .9); }

.mzx .sb-foot{ border-top: 1px solid rgb(255 255 255 / .1); padding: 10px; }

.mzx .sb-plan{ border-radius: 12px; background: rgb(255 255 255 / .06); padding: 12px; }

.mzx .sb-plan-title{ display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #fff; }

.mzx .sb-plan-title svg{ width: 14px; height: 14px; color: hsl(var(--lime)); }

.mzx .sb-plan p{ margin-top: 4px; font-size: 10.5px; line-height: 1.6; color: rgb(255 255 255 / .45); }

.mzx .sb-bar{ margin-top: 8px; height: 4px; border-radius: 999px; background: rgb(255 255 255 / .15); overflow: hidden; }

.mzx .sb-bar > i{ display: block; height: 100%; width: 68%; border-radius: 999px; background: hsl(var(--lime)); }

.mzx .sb-collapse{
  display: none; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 12px;
  font-size: 12.5px; font-weight: 500; color: rgb(255 255 255 / .45); transition: all .2s;
}

.mzx .sb-collapse:hover{ background: rgb(255 255 255 / .07); color: #fff; }

.mzx .sb-collapse svg{ width: 16px; height: 16px; }

.mzx .overlay{ position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .5); display: none; }

.mzx .overlay.show{ display: block; }
/* collapsed */
@media (min-width: 1024px){
.mzx .sidebar{ position: sticky; top: 0; height: 100vh; transform: none; }

[dir="rtl"] .mzx .sidebar{ transform: none; }

.mzx .sb-close{ display: none; }

.mzx .sb-collapse{ display: flex; }

.mzx .sidebar.collapsed{ width: 76px; }

.mzx .sidebar.collapsed .sb-name, .mzx .sidebar.collapsed .sb-sub, .mzx .sidebar.collapsed .sb-label, .mzx .sidebar.collapsed .sb-link span, .mzx .sidebar.collapsed .sb-plan, .mzx .sidebar.collapsed .sb-collapse span{ display: none; }

.mzx .sidebar.collapsed .sb-link, .mzx .sidebar.collapsed .sb-collapse{ justify-content: center; }

.mzx .sidebar.collapsed .sb-brand{ justify-content: center; }

.mzx .sidebar.collapsed .sb-collapse svg{ transform: rotate(180deg); }

[dir="rtl"] .mzx .sidebar.collapsed .sb-collapse svg{ transform: none; }

[dir="rtl"] .mzx .sb-collapse svg{ transform: rotate(180deg); }

}
/* ---------- Main column ---------- */
.mzx .content{ flex: 1; min-width: 0; display: flex; flex-direction: column; }

.mzx .topbar{
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--background) / .85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}

.mzx .topbar-in{ display: flex; align-items: center; gap: 8px; height: 64px; padding-inline: 12px; }

.mzx .icon-btn{
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); box-shadow: 0 1px 2px 0 #0000000d; transition: background .2s;
}

.mzx .icon-btn:hover{ background: hsl(var(--lime) / .12); }

.mzx .icon-btn svg{ width: 16px; height: 16px; }

.mzx .menu-btn{ display: grid; }

.mzx .search{ position: relative; display: none; flex: 1; max-width: 384px; }

.mzx .search svg{ position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: hsl(var(--muted-foreground)); pointer-events: none; }

.mzx .search input{
  width: 100%; height: 36px; border-radius: 12px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card));
  padding: 4px 48px 4px 36px; font-size: 13px; box-shadow: 0 1px 2px 0 #0000000d;
}

[dir="rtl"] .mzx .search input{ padding: 4px 36px 4px 48px; }

.mzx .search input::placeholder{ color: hsl(var(--muted-foreground)); }

.mzx .search input:focus{ outline: none; box-shadow: 0 0 0 1px hsl(var(--ring)); }

.mzx .search kbd{
  position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); pointer-events: none;
  border-radius: 6px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--muted)); padding: 2px 6px;
  font: 500 10px var(--font); color: hsl(var(--muted-foreground));
}

.mzx .top-actions{ margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }

.mzx .pill-link{
  display: none; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--card)); padding: 6px 10px; font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground));
  box-shadow: 0 1px 2px 0 #0000000d; transition: color .2s;
}

.mzx .pill-link:hover{ color: hsl(var(--foreground)); }

.mzx .pill-link svg{ width: 14px; height: 14px; color: hsl(var(--lime)); }

.mzx .lang{ display: flex; align-items: center; border-radius: 999px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); padding: 2px; box-shadow: 0 1px 2px 0 #0000000d; }

.mzx .lang button{ border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground)); transition: all .2s; }

.mzx .lang button:hover{ color: hsl(var(--foreground)); }

.mzx .lang button.on{ background: hsl(var(--navy)); color: #fff; }

.mzx.mz-dark .lang button.on{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .badge{
  position: absolute; inset-inline-end: 6px; top: 6px; display: grid; place-items: center; min-width: 16px; height: 16px;
  border-radius: 999px; background: hsl(var(--lime)); padding-inline: 4px; font-size: 9.5px; font-weight: 700; color: hsl(203 76% 11%);
}

.mzx .user-btn{
  display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--card)); padding: 4px 8px 4px 4px; box-shadow: 0 1px 2px 0 #0000000d; transition: border-color .2s; text-align: start;
}

[dir="rtl"] .mzx .user-btn{ padding: 4px 4px 4px 8px; }

.mzx .user-btn:hover{ border-color: hsl(var(--lime) / .6); }

.mzx .avatar{ display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--navy)); color: #fff; font-size: 11px; font-weight: 600; }

.mzx.mz-dark .avatar{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .user-meta{ display: none; }

.mzx .user-meta b{ display: block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.25; }

.mzx .user-meta small{ display: block; font-size: 10px; line-height: 1.25; color: hsl(var(--muted-foreground)); }

.mzx .user-btn > svg{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .main{
  flex: 1; padding: 20px 12px 64px;
  background:
    radial-gradient(60rem 30rem at 95% -10%, hsl(var(--lime) / .16), transparent 60%),
    radial-gradient(45rem 25rem at 5% 0%, #0da2e712, transparent 55%);
}

.mzx .wrap{ margin-inline: auto; width: 100%; max-width: 1600px; animation: rise .45s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes rise{ from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ---------- Page head ---------- */
.mzx .page-head{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.mzx .eyebrow{ margin-bottom: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: hsl(var(--navy) / .5); }

.mzx.mz-dark .eyebrow{ color: hsl(var(--lime) / .7); }

.mzx h1{ font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }

.mzx .lede{ margin-top: 6px; max-width: 42rem; font-size: 14px; color: hsl(var(--muted-foreground)); }

.mzx .head-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.mzx .date-chip{
  display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--card)); padding: 8px 10px; font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); box-shadow: 0 1px 2px 0 #0000000d;
}

.mzx .date-chip svg{ width: 14px; height: 14px; }

.mzx .btn-navy{
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; padding-inline: 12px; border-radius: 12px;
  background: hsl(var(--navy)); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a; transition: background .2s;
}

.mzx .btn-navy:hover{ background: hsl(var(--navy) / .9); }

.mzx .btn-navy svg{ width: 14px; height: 14px; color: hsl(var(--lime)); margin-inline-start: 4px; }

.mzx.mz-dark .btn-navy{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx.mz-dark .btn-navy:hover{ background: hsl(var(--lime) / .9); }

.mzx.mz-dark .btn-navy svg{ color: hsl(203 76% 11%); }

[dir="rtl"] .mzx .btn-navy svg, [dir="rtl"] .mzx .ico-ne{ transform: scaleX(-1); }
/* ---------- Cards ---------- */
.mzx .card{
  border-radius: 16px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); padding: 16px;
  box-shadow: 0 1px 2px 0 #0000000d;
}

.mzx .grid{ display: grid; gap: 12px; }

.mzx .kpis{ grid-template-columns: repeat(2, 1fr); gap: 10px; }

.mzx .kpi{ position: relative; overflow: hidden; transition: all .3s; }

.mzx .kpi:hover{ transform: translateY(-2px); border-color: hsl(var(--lime) / .5); box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; }

.mzx .kpi-top{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.mzx .kpi-label{ font-size: 12.5px; font-weight: 500; line-height: 1.375; color: hsl(var(--muted-foreground)); }

.mzx .kpi-value{ margin-top: 6px; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -.025em; }

.mzx .kpi-ico{ display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; transition: color .2s; }

.mzx .kpi-ico svg{ width: 17px; height: 17px; stroke-width: 2.1; }

.mzx .kpi-ico.lime{ background: hsl(var(--lime) / .25); color: hsl(var(--navy)); }

.mzx .kpi-ico.navy{ background: hsl(var(--navy) / .06); color: hsl(var(--navy)); }

.mzx.mz-dark .kpi-ico.lime{ background: hsl(var(--lime) / .2); color: hsl(var(--lime)); }

.mzx.mz-dark .kpi-ico.navy{ background: rgb(255 255 255 / .1); color: #fff; }

.mzx .kpi-foot{ display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; }

.mzx .kpi-foot > span:last-child{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); }

.mzx .delta{ display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; padding: 3px 6px; font-weight: 600; white-space: nowrap; }

.mzx .delta svg{ width: 12px; height: 12px; }

.mzx .delta.up{ background: rgb(16 185 129 / .1); color: #059669; }

.mzx .delta.down{ background: rgb(244 63 94 / .1); color: #e11d48; }

.mzx .delta.flat{ background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.mzx.mz-dark .delta.up{ color: #34d399; }

.mzx.mz-dark .delta.down{ color: #fb7185; }

[dir="rtl"] .mzx .delta svg{ transform: scaleX(-1); }

.mzx .row2{ margin-top: 12px; grid-template-columns: 1fr; }

.mzx .col{ display: flex; flex-direction: column; gap: 12px; }

.mzx .card-h{ margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }

.mzx .card-h.row{ flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }

.mzx .h2{ font-size: 15px; font-weight: 600; letter-spacing: -.025em; }

.mzx .sub{ margin-top: 2px; font-size: 12px; color: hsl(var(--muted-foreground)); }

.mzx .legend{ margin-top: 6px; display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .legend span{ display: inline-flex; align-items: center; gap: 6px; }

.mzx .dot{ width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.mzx .tabs{ display: flex; flex-shrink: 0; align-items: center; gap: 2px; border-radius: 999px; background: hsl(var(--muted)); padding: 2px; align-self: flex-start; }

.mzx .tabs button{ border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); transition: all .2s; white-space: nowrap; }

.mzx .tabs button:hover{ color: hsl(var(--foreground)); }

.mzx .tabs button.on{ background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px 0 #0000000d, 0 0 0 1px hsl(var(--border) / .6); }

.mzx .more{ margin-top: 8px; display: inline-block; font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }

.mzx .more:hover{ color: hsl(var(--foreground)); }

.mzx .link-sm{ font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }

.mzx .link-sm:hover{ color: hsl(var(--foreground)); }
/* AI save card */
.mzx .save{
  border-radius: 16px; border: 1px solid hsl(var(--lime) / .4); padding: 16px; box-shadow: 0 1px 2px 0 #0000000d;
  background: linear-gradient(to bottom right, hsl(var(--lime) / .15), hsl(var(--card)) 50%, hsl(var(--card)));
}

.mzx .save-h{ display: flex; align-items: center; gap: 8px; }

.mzx .save-ico{ display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: hsl(var(--navy)); color: hsl(var(--lime)); }

.mzx .save-ico svg{ width: 14px; height: 14px; }

.mzx .save-h p{ font-size: 13.5px; font-weight: 600; }

.mzx .save-big{ margin-top: 8px; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -.025em; }

.mzx .save-note{ margin-top: 4px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .save-cov{ margin-top: 12px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }

.mzx .save-cov span:first-child{ color: hsl(var(--muted-foreground)); }

.mzx .track{ margin-top: 6px; height: 6px; width: 100%; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; }

.mzx .track i{ display: block; height: 100%; width: 68%; border-radius: 999px; background: hsl(var(--lime)); }

.mzx .duty{ display: flex; flex-direction: column; gap: 8px; }

.mzx .duty a{
  display: flex; align-items: center; gap: 10px; border-radius: 12px; border: 1px solid hsl(var(--border) / .6);
  background: hsl(var(--background) / .5); padding: 8px 10px; transition: all .2s;
}

.mzx .duty a:hover{ border-color: hsl(var(--lime) / .6); background: hsl(var(--lime) / .07); }

.mzx .duty .av{ display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; font-size: 12px; font-weight: 600; color: hsl(var(--lime)); }

.mzx .duty .info{ min-width: 0; flex: 1; }

.mzx .duty .info b{ display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .duty .info small{ display: block; font-size: 11px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .tag-ai{ display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgb(16 185 129 / .1); padding: 2px 6px; font-size: 10px; font-weight: 600; color: #059669; }

.mzx.mz-dark .tag-ai{ color: #34d399; }

.mzx .tag-ai svg{ width: 10px; height: 10px; }

.mzx .btn-wide{
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px;
  background: hsl(var(--navy)); padding: 10px 12px; font-size: 12px; font-weight: 500; color: #fff; transition: background .2s;
}

.mzx .btn-wide:hover{ background: hsl(var(--navy) / .9); }

.mzx .btn-wide svg{ width: 14px; height: 14px; }

.mzx.mz-dark .btn-wide{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }
/* Performance snapshot */
.mzx .snap{ margin-top: 12px; }

.mzx .snap-h{ margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.mzx .demo{ border-radius: 999px; background: hsl(var(--navy) / .06); padding: 2px 8px; font-size: 10.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }

.mzx.mz-dark .demo{ background: rgb(255 255 255 / .1); }

.mzx .charts{ grid-template-columns: 1fr; }

.mzx .chart{ position: relative; width: 100%; }

.mzx .chart svg{ display: block; width: 100%; overflow: visible; }

.mzx .chart text{ font-family: var(--font); font-size: 11px; fill: hsl(var(--muted-foreground)); }

.mzx .chart .grid-l{ stroke: hsl(var(--border)); stroke-dasharray: 3 3; fill: none; }

.mzx .chart .ax{ stroke: hsl(var(--border)); }

.mzx .c-in{ stroke: #ACE601; }

.mzx .c-out{ stroke: var(--c-out); }

.mzx .c-sky{ stroke: #0ea5e9; }

.mzx .chart .line{ fill: none; stroke-width: 2; stroke-linecap: round; }

.mzx .chart .dotp{ fill: hsl(var(--card)); stroke-width: 2; }

.mzx .g-in stop{ stop-color: #ACE601; }

.mzx .g-out stop{ stop-color: var(--c-out); }

.mzx .bar-lime{ fill: #ACE601; }

.mzx .bar-2{ fill: var(--c-bar2); }

.mzx .bar-navy{ fill: var(--c-navy-bar); }

.mzx .donut-legend{ display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: -6px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .donut-legend span{ display: inline-flex; align-items: center; gap: 6px; }

.mzx .tip{
  position: absolute; z-index: 5; pointer-events: none; min-width: 110px; border-radius: 10px; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  opacity: 0; transition: opacity .12s; transform: translate(-50%, -100%); white-space: nowrap;
}

.mzx .tip.show{ opacity: 1; }

.mzx .tip b{ display: block; margin-bottom: 4px; font-weight: 600; }

.mzx .tip div{ display: flex; align-items: center; gap: 6px; color: hsl(var(--muted-foreground)); }

.mzx .tip div em{ margin-inline-start: auto; padding-inline-start: 12px; font-style: normal; font-weight: 600; color: hsl(var(--foreground)); }
/* Bottom row */
.mzx .row3{ margin-top: 12px; grid-template-columns: 1fr; }

.mzx .qa{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.mzx .qa a{
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 12px; border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--background) / .6); padding: 10px 12px; transition: all .2s;
}

.mzx .qa a:hover{ transform: translateY(-2px); border-color: hsl(var(--lime)); background: hsl(var(--lime) / .1); }

.mzx .qa a span:first-child{ display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: hsl(var(--navy) / .06); color: hsl(var(--navy)); transition: all .2s; }

.mzx.mz-dark .qa a span:first-child{ background: rgb(255 255 255 / .1); color: #fff; }

.mzx .qa a:hover span:first-child{ background: hsl(var(--navy)); color: hsl(var(--lime)); }

.mzx.mz-dark .qa a:hover span:first-child{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .qa svg{ width: 16px; height: 16px; }

.mzx .qa a span:last-child{ font-size: 12px; font-weight: 500; line-height: 1.25; }

.mzx .act{ display: flex; flex-direction: column; gap: 4px; }

.mzx .act li{ display: flex; gap: 10px; border-radius: 12px; padding: 6px 4px; transition: background .2s; }

.mzx .act li:hover{ background: hsl(var(--muted) / .6); }

.mzx .act .ic{ margin-top: 2px; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; }

.mzx .act .ic svg{ width: 14px; height: 14px; }

.mzx .ic.lime{ background: hsl(var(--lime) / .2); color: hsl(var(--navy)); }

.mzx.mz-dark .ic.lime{ color: hsl(var(--lime)); }

.mzx .ic.sky{ background: rgb(14 165 233 / .12); color: #0284c7; }

.mzx.mz-dark .ic.sky{ color: #38bdf8; }

.mzx .ic.emerald{ background: rgb(16 185 129 / .12); color: #059669; }

.mzx.mz-dark .ic.emerald{ color: #34d399; }

.mzx .ic.violet{ background: rgb(139 92 246 / .12); color: #7c3aed; }

.mzx.mz-dark .ic.violet{ color: #a78bfa; }

.mzx .ic.amber{ background: rgb(245 158 11 / .12); color: #d97706; }

.mzx.mz-dark .ic.amber{ color: #fbbf24; }

.mzx .ic.rose{ background: rgb(244 63 94 / .12); color: #e11d48; }

.mzx.mz-dark .ic.rose{ color: #fb7185; }

.mzx .act .t{ min-width: 0; flex: 1; }

.mzx .act .t b{ display: block; font-size: 12.5px; font-weight: 500; line-height: 1.375; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .act .t small{ display: block; font-size: 11px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mzx .act time{ flex-shrink: 0; padding-top: 2px; font-size: 10.5px; color: hsl(var(--muted-foreground) / .7); }
/* ---------- Breakpoints ---------- */
@media (min-width: 640px){
.mzx .topbar-in{ gap: 12px; padding-inline: 20px; }

.mzx .top-actions{ gap: 8px; }

.mzx .main{ padding-inline: 20px; }

.mzx .page-head{ flex-direction: row; align-items: flex-end; justify-content: space-between; }

.mzx h1{ font-size: 28px; }

.mzx .kpis{ gap: 12px; }

.mzx .card.pad{ padding: 20px; }

.mzx .user-meta{ display: block; }

.mzx .card-h{ flex-direction: row; align-items: flex-start; justify-content: space-between; }

.mzx .qa{ grid-template-columns: repeat(3, 1fr); }

}

@media (min-width: 768px){
.mzx .search{ display: block; }
 }

@media (min-width: 1024px){
.mzx .topbar-in{ padding-inline: 32px; }

.mzx .main{ padding-inline: 32px; }

.mzx .menu-btn{ display: none; }

.mzx .kpis{ grid-template-columns: repeat(4, 1fr); }

.mzx .charts{ grid-template-columns: repeat(2, 1fr); }

.mzx .charts .span2{ grid-column: span 2; }

.mzx .qa{ grid-template-columns: repeat(5, 1fr); }

}

@media (min-width: 1280px){
.mzx .pill-link{ display: flex; }

.mzx .row2{ grid-template-columns: repeat(3, 1fr); }

.mzx .row2 .span2{ grid-column: span 2; }

.mzx .row3{ grid-template-columns: repeat(2, 1fr); }

}
/* avoid English flash before Arabic text is applied */
.mzx html.i18n-pending body{ visibility: hidden; }
/* Components shared by the inner pages */
.mzx .eyebrow.demo-eb{ color: hsl(var(--muted-foreground) / .7); letter-spacing: .12em; }

.mzx .stack{ display: flex; flex-direction: column; gap: 12px; }

.mzx .mt12{ margin-top: 12px; }

.mzx .mt16{ margin-top: 16px; }

.mzx .muted{ color: hsl(var(--muted-foreground)); }
/* buttons */
.mzx .btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding-inline: 14px; border-radius: 12px;
  border: 1px solid transparent; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: all .2s;
}

.mzx .btn svg{ width: 14px; height: 14px; }

.mzx .btn-lime{ background: hsl(var(--lime)); color: hsl(203 76% 11%); box-shadow: 0 1px 3px 0 #0000001a; }

.mzx .btn-lime:hover{ background: hsl(var(--lime) / .88); }

.mzx .btn-out{ background: hsl(var(--card)); border-color: hsl(var(--border) / .8); color: hsl(var(--foreground)); box-shadow: 0 1px 2px 0 #0000000d; }

.mzx .btn-out:hover{ background: hsl(var(--muted)); }

.mzx .btn-dark{ background: hsl(var(--navy)); color: #fff; }

.mzx .btn-dark:hover{ background: hsl(var(--navy) / .9); }

.mzx.mz-dark .btn-dark{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .btn-sm{ height: 32px; padding-inline: 10px; font-size: 12px; }

.mzx .btn-block{ width: 100%; }

.mzx .ibtn{ display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: hsl(var(--muted-foreground)); transition: all .2s; flex-shrink: 0; }

.mzx .ibtn:hover{ background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.mzx .ibtn svg{ width: 14px; height: 14px; }

.mzx .ibtn.danger:hover{ background: rgb(244 63 94 / .1); color: #e11d48; }

.mzx .ibtn.sq{ width: 32px; height: 32px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--card)); border-radius: 10px; }
/* status pills */
.mzx .st{ flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; white-space: nowrap; line-height: 1.5; }

.mzx .st.sd::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.mzx .st-green{ background: rgb(16 185 129 / .12); color: #059669; }

.mzx.mz-dark .st-green{ color: #34d399; }

.mzx .st-amber{ background: rgb(245 158 11 / .14); color: #d97706; }

.mzx.mz-dark .st-amber{ color: #fbbf24; }

.mzx .st-rose{ background: rgb(244 63 94 / .12); color: #e11d48; }

.mzx.mz-dark .st-rose{ color: #fb7185; }

.mzx .st-gray{ background: hsl(var(--navy) / .07); color: hsl(var(--muted-foreground)); }

.mzx.mz-dark .st-gray{ background: rgb(255 255 255 / .08); }

.mzx .st-sky{ background: rgb(14 165 233 / .12); color: #0284c7; }

.mzx.mz-dark .st-sky{ color: #38bdf8; }

.mzx .st-violet{ background: rgb(139 92 246 / .12); color: #7c3aed; }

.mzx.mz-dark .st-violet{ color: #a78bfa; }

.mzx .tag{ display: inline-block; border-radius: 6px; background: hsl(var(--lime) / .2); color: hsl(var(--navy)); padding: 2px 7px; font-size: 10.5px; font-weight: 500; }

.mzx.mz-dark .tag{ color: hsl(var(--lime)); }

.mzx .tag.n{ background: hsl(var(--navy) / .07); color: hsl(var(--muted-foreground)); }

.mzx.mz-dark .tag.n{ background: rgb(255 255 255 / .08); }
/* toolbar, chips, search */
.mzx .toolbar{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }

.mzx .sbox{ position: relative; flex: 1; min-width: 200px; max-width: 420px; }

.mzx .sbox svg{ position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .sbox input{ width: 100%; height: 36px; border-radius: 12px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--card)); padding-inline: 34px 12px; font-size: 12.5px; box-shadow: 0 1px 2px 0 #0000000d; }

.mzx .sbox input:focus, .mzx .field input:focus, .mzx .field select:focus, .mzx .field textarea:focus, .mzx .compose input:focus{ outline: none; box-shadow: 0 0 0 1px hsl(var(--ring)); border-color: hsl(var(--ring)); }

.mzx .sbox input::placeholder{ color: hsl(var(--muted-foreground)); }

.mzx .chips{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-inline-start: auto; }

.mzx .chip{ border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 500; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); transition: all .2s; white-space: nowrap; }

.mzx .chip:hover{ color: hsl(var(--foreground)); }

.mzx .chip.on{ background: hsl(var(--navy)); color: #fff; }

.mzx.mz-dark .chip.on{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .count{ font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
/* tables */
.mzx .tcard{ padding: 0; overflow: hidden; }

.mzx .tscroll{ overflow-x: auto; }

.mzx table.tbl{ width: 100%; border-collapse: collapse; min-width: 720px; }

.mzx .tbl th{ padding: 12px 16px; text-align: start; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); white-space: nowrap; }

.mzx .tbl td{ padding: 12px 16px; border-top: 1px solid hsl(var(--border) / .6); font-size: 12.5px; vertical-align: middle; }

.mzx .tbl tbody tr{ transition: background .15s; }

.mzx .tbl tbody tr:hover{ background: hsl(var(--muted) / .5); }

.mzx .tbl .cell{ display: flex; align-items: center; gap: 10px; min-width: 0; }

.mzx .tbl .cell b{ display: block; font-size: 12.5px; font-weight: 600; }

.mzx .tbl .cell small{ display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }

.mzx .tbl .acts{ display: flex; justify-content: flex-end; gap: 2px; }

.mzx .tbl .num{ font-variant-numeric: tabular-nums; }

.mzx .av{ display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; font-size: 11px; font-weight: 600; background: hsl(var(--navy) / .08); color: hsl(var(--navy)); position: relative; }

.mzx.mz-dark .av{ background: rgb(255 255 255 / .1); color: #fff; }

.mzx .av.lg{ width: 44px; height: 44px; font-size: 14px; border-radius: 12px; }

.mzx .av.navy{ background: hsl(var(--navy)); color: #fff; }

.mzx.mz-dark .av.navy{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .av.lime{ background: hsl(var(--lime) / .3); color: hsl(var(--navy)); }

.mzx.mz-dark .av.lime{ color: hsl(var(--lime)); }

.mzx .av.violet{ background: #7c3aed; color: #fff; }

.mzx .av.sky{ background: #0ea5e9; color: #fff; }

.mzx .pres{ position: absolute; inset-inline-end: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #10b981; border: 2px solid hsl(var(--card)); }

.mzx .pres.off{ background: #94a3b8; }

.mzx .chan{ display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

.mzx .chan svg{ width: 14px; height: 14px; }

.mzx .cw{ color: #16a34a; }

.mzx .ci{ color: #db2777; }

.mzx .cm{ color: #2563eb; }

.mzx .ct{ color: #0ea5e9; }

.mzx .ce{ color: #64748b; }
/* progress */
.mzx .pbar{ height: 6px; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; }

.mzx .pbar i{ display: block; height: 100%; border-radius: 999px; background: hsl(var(--lime)); transition: width .4s; }

.mzx .pbar.navy i{ background: hsl(var(--navy)); }

.mzx.mz-dark .pbar.navy i{ background: hsl(var(--lime)); }

.mzx .pbar.warn i{ background: #f43f5e; }
/* switch */
.mzx .sw{ position: relative; width: 36px; height: 20px; border-radius: 999px; background: hsl(var(--border)); flex-shrink: 0; transition: background .2s; }

.mzx .sw::after{ content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .2s; }

.mzx .sw.on{ background: hsl(var(--navy)); }

.mzx.mz-dark .sw.on{ background: hsl(var(--lime)); }

.mzx .sw.on::after{ transform: translateX(16px); }

[dir="rtl"] .mzx .sw.on::after{ transform: translateX(-16px); }
/* forms + modal */
.mzx .field{ display: flex; flex-direction: column; gap: 6px; }

.mzx .field label{ font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }

.mzx .field input, .mzx .field select, .mzx .field textarea{
  width: 100%; height: 38px; border-radius: 12px; border: 1px solid hsl(var(--border) / .9); background: hsl(var(--background) / .6);
  padding-inline: 12px; font-size: 13px; color: hsl(var(--foreground));
}

.mzx .field textarea{ height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }

.mzx .field input[readonly]{ color: hsl(var(--muted-foreground)); }

.mzx .modal-bg{ position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(3 14 22 / .5); backdrop-filter: blur(2px); }

.mzx .modal{ width: 100%; max-width: 440px; border-radius: 18px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 20px; box-shadow: 0 20px 50px -12px #0006; animation: rise .25s both; }

.mzx .modal h3{ margin: 0 0 14px; font-size: 16px; font-weight: 600; }

.mzx .modal .fields{ display: flex; flex-direction: column; gap: 12px; }

.mzx .modal .foot{ display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.mzx .toast{ position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(-50%, 12px); z-index: 120; border-radius: 12px; background: hsl(var(--navy)); color: #fff; padding: 10px 16px; font-size: 12.5px; font-weight: 500; opacity: 0; transition: all .25s; box-shadow: 0 10px 30px -8px #0006; }

.mzx.mz-dark .toast{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

[dir="rtl"] .mzx .toast{ transform: translate(50%, 12px); }

.mzx .toast.show{ opacity: 1; transform: translate(-50%, 0); }

[dir="rtl"] .mzx .toast.show{ transform: translate(50%, 0); }

.mzx .note{ border-radius: 14px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card) / .7); padding: 10px 14px; font-size: 12px; color: hsl(var(--muted-foreground)); }
/* ---------- Inbox ---------- */
.mzx .inbox{ display: grid; gap: 12px; grid-template-columns: 1fr; }

.mzx .pane{ display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 16px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); box-shadow: 0 1px 2px 0 #0000000d; }

.mzx .inbox .pane{ height: 560px; }

.mzx .pane-h{ padding: 12px; border-bottom: 1px solid hsl(var(--border) / .6); }

.mzx .pane .sbox{ max-width: none; min-width: 0; }

.mzx .pane .sbox input{ height: 32px; font-size: 12px; background: hsl(var(--muted) / .6); box-shadow: none; }

.mzx .fchips{ display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }

.mzx .fchips .chip{ padding: 3px 9px; font-size: 11px; }

.mzx .convs{ flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }

.mzx .conv{ display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: start; border-radius: 12px; border: 1px solid transparent; padding: 10px; transition: all .15s; }

.mzx .conv:hover{ background: hsl(var(--muted) / .6); }

.mzx .conv.on{ background: hsl(var(--lime) / .18); border-color: hsl(var(--lime) / .5); }

.mzx .conv .b{ min-width: 0; flex: 1; }

.mzx .conv .b b{ display: block; font-size: 12.5px; font-weight: 600; }

.mzx .conv .b p{ font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0 4px; }

.mzx .conv .m{ display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.5px; color: hsl(var(--muted-foreground)); }

.mzx .conv .m span:first-child{ display: inline-flex; align-items: center; gap: 4px; }

.mzx .conv .m svg{ width: 12px; height: 12px; }

.mzx .pane-f{ padding: 8px 12px; border-top: 1px solid hsl(var(--border) / .6); font-size: 11px; color: hsl(var(--muted-foreground)); display: flex; justify-content: space-between; align-items: center; }

.mzx .thread-h{ display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid hsl(var(--border) / .6); flex-wrap: wrap; }

.mzx .thread-h .who{ min-width: 0; flex: 1; }

.mzx .thread-h .who b{ display: block; font-size: 13px; font-weight: 600; }

.mzx .thread-h .who small{ display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: hsl(var(--muted-foreground)); text-transform: capitalize; }

.mzx .thread-h .tools{ display: flex; align-items: center; gap: 6px; }

.mzx .aitog{ display: inline-flex; align-items: center; gap: 6px; border: 1px solid hsl(var(--border) / .8); border-radius: 10px; padding: 0 10px; height: 32px; font-size: 11.5px; font-weight: 500; }

.mzx .aitog svg{ width: 13px; height: 13px; }

.mzx .aitog .sw{ width: 28px; height: 16px; }

.mzx .aitog .sw::after{ width: 12px; height: 12px; }

.mzx .aitog .sw.on::after{ transform: translateX(12px); }

[dir="rtl"] .mzx .aitog .sw.on::after{ transform: translateX(-12px); }

.mzx .btn-resolve{ height: 32px; padding-inline: 12px; border-radius: 10px; font-size: 12px; background: hsl(var(--navy)); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

.mzx.mz-dark .btn-resolve{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .btn-resolve svg{ width: 14px; height: 14px; color: hsl(var(--lime)); }

.mzx.mz-dark .btn-resolve svg{ color: inherit; }

.mzx .msgs{ flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: hsl(var(--background) / .4); scrollbar-width: thin; }

.mzx .msg{ max-width: 72%; display: flex; flex-direction: column; gap: 3px; }

.mzx .msg.out{ align-self: flex-end; align-items: flex-end; }

.mzx .bubble{ border-radius: 16px; padding: 9px 14px; font-size: 12.5px; line-height: 1.5; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .7); border-end-start-radius: 4px; }

.mzx .msg.out .bubble{ background: hsl(var(--navy)); color: #fff; border-color: transparent; border-end-start-radius: 16px; border-end-end-radius: 4px; font-weight: 500; }

.mzx.mz-dark .msg.out .bubble{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .msg small{ font-size: 10px; color: hsl(var(--muted-foreground)); }

.mzx .demo-note{ text-align: center; font-size: 10.5px; color: hsl(var(--muted-foreground)); padding: 4px 12px; }

.mzx .compose{ display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid hsl(var(--border) / .6); }

.mzx .compose input{ flex: 1; height: 36px; border-radius: 12px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--background) / .6); padding-inline: 12px; font-size: 12.5px; }

.mzx .compose .send{ display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .compose .send svg{ width: 15px; height: 15px; }

.mzx .details{ overflow-y: auto; padding: 14px; gap: 14px; display: flex; flex-direction: column; scrollbar-width: thin; }

.mzx .d-top{ display: flex; gap: 10px; align-items: center; }

.mzx .d-top b{ display: block; font-size: 13.5px; font-weight: 600; }

.mzx .d-top small{ font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .d-list{ display: flex; flex-direction: column; gap: 8px; font-size: 12px; }

.mzx .d-list div{ display: flex; align-items: center; gap: 8px; }

.mzx .d-list svg{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .d-sec{ font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }

.mzx .d-sec svg{ width: 12px; height: 12px; }

.mzx .d-row{ display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; padding-top: 8px; margin-top: 8px; border-top: 1px solid hsl(var(--border) / .6); }

.mzx .d-row span:first-child{ color: hsl(var(--muted-foreground)); }

.mzx .d-row span:last-child{ font-weight: 500; }

.mzx .aibox{ border-radius: 14px; border: 1px solid hsl(var(--lime) / .45); background: linear-gradient(to bottom right, hsl(var(--lime) / .14), hsl(var(--card))); padding: 12px; }

.mzx .aibox .t{ display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; }

.mzx .aibox .t svg{ width: 14px; height: 14px; }

.mzx .aibox p{ font-size: 10.5px; color: hsl(var(--muted-foreground)); margin: 4px 0 8px; }

.mzx .sugg{ display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; border-radius: 10px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); padding: 8px 10px; font-size: 11.5px; line-height: 1.4; margin-bottom: 6px; transition: all .15s; }

.mzx .sugg:hover{ border-color: hsl(var(--lime)); background: hsl(var(--lime) / .08); }

.mzx .sugg svg{ width: 12px; height: 12px; flex-shrink: 0; color: hsl(var(--muted-foreground)); }

.mzx .notes textarea{ width: 100%; min-height: 64px; border-radius: 10px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--background) / .6); padding: 8px 10px; font-size: 12px; resize: vertical; }

.mzx .notes .btn{ margin-top: 8px; }
/* ---------- Channels ---------- */
.mzx .cgrid{ display: grid; gap: 16px; grid-template-columns: 1fr; }

.mzx .ch{
  padding: 20px;
  border-radius: 16px;
  border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--card));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mzx .ch:hover{
  border-color: hsl(var(--border));
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.mzx .ch-top{ display: flex; align-items: flex-start; gap: 12px; }

.mzx .ch-ico{
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  background: hsl(var(--muted) / .7) !important;
}

.mzx .ch-ico svg{ width: 22px; height: 22px; }

.mzx .ch-ico.g{ background: rgb(16 185 129 / .13) !important; color: #059669; }

.mzx .ch-ico.s{ background: rgb(14 165 233 / .13) !important; color: #0284c7; }

.mzx .ch-ico.b{ background: rgb(59 130 246 / .13) !important; color: #2563eb; }

.mzx .ch-ico.p{ background: rgb(236 72 153 / .13) !important; color: #db2777; }

.mzx .ch-top .t{ min-width: 0; flex: 1; }

.mzx .ch-top b{ display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 2px; }

.mzx .ch-top small{ font-size: 12px; line-height: 1.4; color: hsl(var(--muted-foreground)); display: block; }

.mzx .kv{
  margin-top: 16px;
  border-radius: 12px;
  background: hsl(var(--muted) / .55);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.mzx .kv div{ display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.mzx .kv span:first-child{ color: hsl(var(--muted-foreground)); font-size: 12px; }

.mzx .kv span:last-child{ font-weight: 500; font-size: 12px; text-align: end; }

.mzx .ch-act{ display: flex; gap: 8px; margin-top: 16px; align-items: center; }

.mzx .ch-act .btn{
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mzx .ch-act .btn svg{ width: 15px; height: 15px; }

.mzx .ch-act .ibtn.sq{
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mzx .ch-act .ibtn.sq svg{ width: 16px; height: 16px; }
/* ---------- Employees ---------- */
.mzx .egrid{ display: grid; gap: 12px; grid-template-columns: 1fr; }

.mzx .emp{ position: relative; padding: 16px; overflow: hidden; }

.mzx .emp.live::before{ content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: hsl(var(--lime)); }

.mzx .emp-top{ display: flex; gap: 10px; align-items: center; }

.mzx .emp-av{ display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 14px; font-weight: 600; color: hsl(var(--lime)); background: linear-gradient(135deg, #072032, #0f4a6b); }

.mzx .emp.off .emp-av{ background: hsl(var(--navy) / .12); color: hsl(var(--muted-foreground)); }

.mzx .emp-top .n{ display: flex; align-items: center; gap: 8px; flex: 1; }

.mzx .emp-top b{ font-size: 14px; font-weight: 600; }

.mzx .emp p.d{ margin: 8px 0 10px; font-size: 12px; line-height: 1.5; color: hsl(var(--muted-foreground)); min-height: 36px; }

.mzx .emp .tags{ display: flex; gap: 6px; flex-wrap: wrap; }

.mzx .stat2{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.mzx .stat2 div{ border-radius: 10px; background: hsl(var(--muted) / .6); padding: 8px 10px; }

.mzx .stat2 small{ display: block; font-size: 10px; color: hsl(var(--muted-foreground)); }

.mzx .stat2 b{ font-size: 16px; font-weight: 600; }

.mzx .emp-meta{ display: flex; justify-content: space-between; margin: 12px 0; font-size: 10.5px; color: hsl(var(--muted-foreground)); }

.mzx .emp-act{ display: flex; gap: 8px; }

.mzx .emp-act .btn{ flex: 1; height: 34px; }
/* ---------- Campaigns ---------- */
.mzx .two{ display: grid; gap: 12px; grid-template-columns: 1fr; }

.mzx .big-rate p{ font-size: 12.5px; color: hsl(var(--muted-foreground)); }

.mzx .big-rate b{ display: block; font-size: 26px; font-weight: 600; letter-spacing: -.025em; margin: 6px 0 10px; }
/* ---------- Templates ---------- */
.mzx .tgrid{ display: grid; gap: 12px; grid-template-columns: 1fr; }

.mzx .tpl{ padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.mzx .tpl-h{ display: flex; align-items: center; gap: 8px; }

.mzx .tpl-h svg{ width: 15px; height: 15px; }

.mzx .tpl-h b{ flex: 1; font-size: 12.5px; font-weight: 600; }

.mzx .tpl p{ font-size: 11.5px; line-height: 1.55; color: hsl(var(--muted-foreground)); flex: 1; }

.mzx .tpl-f{ display: flex; align-items: center; justify-content: space-between; }
/* ---------- Automation ---------- */
.mzx .wf{ padding: 16px; margin-bottom: 12px; }

.mzx .wf-h{ display: flex; align-items: flex-start; gap: 10px; }

.mzx .wf-ico{ display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: hsl(var(--navy) / .07); color: hsl(var(--muted-foreground)); flex-shrink: 0; }

.mzx .wf-ico svg{ width: 15px; height: 15px; }

.mzx .wf-h .t{ flex: 1; min-width: 0; }

.mzx .wf-h .t b{ font-size: 13.5px; font-weight: 600; margin-inline-end: 8px; }

.mzx .wf-h .t p{ font-size: 12px; color: hsl(var(--muted-foreground)); margin: 4px 0 2px; }

.mzx .wf-h .t small{ font-size: 11px; color: hsl(var(--muted-foreground)); }

.mzx .wf-r{ display: flex; align-items: center; gap: 10px; }

.mzx .flow{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

.mzx .node{ min-width: 118px; border-radius: 12px; border: 1px solid; padding: 8px 12px; }

.mzx .node small{ display: block; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

.mzx .node b{ display: block; font-size: 12px; font-weight: 600; }

.mzx .node span{ display: block; font-size: 10.5px; opacity: .7; }

.mzx .n-trigger{ background: hsl(var(--lime) / .14); border-color: hsl(var(--lime) / .4); }

.mzx .n-message{ background: rgb(14 165 233 / .1); border-color: rgb(14 165 233 / .3); }

.mzx .n-tag{ background: rgb(245 158 11 / .1); border-color: rgb(245 158 11 / .3); }

.mzx .n-delay{ background: hsl(var(--muted)); border-color: hsl(var(--border)); }

.mzx .n-ai{ background: hsl(var(--navy)); border-color: hsl(var(--navy)); color: #fff; }

.mzx.mz-dark .n-ai{ background: hsl(var(--lime)); color: hsl(203 76% 11%); border-color: transparent; }

.mzx .n-condition{ background: rgb(249 115 22 / .1); border-color: rgb(249 115 22 / .3); }

.mzx .n-assign{ background: rgb(139 92 246 / .1); border-color: rgb(139 92 246 / .3); }

.mzx .n-webhook{ background: rgb(100 116 139 / .1); border-color: rgb(100 116 139 / .3); }

.mzx .flow .arr{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

[dir="rtl"] .mzx .flow .arr{ transform: scaleX(-1); }
/* ---------- Team ---------- */
.mzx .roles h2{ margin-bottom: 12px; }

.mzx .role{ border-radius: 12px; background: hsl(var(--muted) / .55); padding: 10px 12px; margin-bottom: 8px; }

.mzx .role b{ font-size: 12.5px; font-weight: 600; display: block; }

.mzx .role p{ font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
/* ---------- Analytics ---------- */
.mzx .rtabs{ display: flex; gap: 4px; align-self: flex-end; }

.mzx .rtabs button{ font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 4px 8px; border-radius: 8px; }

.mzx .rtabs button.on{ background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px #0000000d, 0 0 0 1px hsl(var(--border) / .6); }
/* ---------- Subscription ---------- */
.mzx .plan-now{ padding: 20px; border-radius: 16px; border: 1px solid hsl(var(--lime) / .4); background: linear-gradient(to bottom right, hsl(var(--lime) / .14), hsl(var(--card)) 55%); }

.mzx .plan-now .lbl{ font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 6px; }

.mzx .plan-now .lbl svg{ width: 12px; height: 12px; }

.mzx .plan-now h2{ font-size: 24px; font-weight: 600; margin: 6px 0 2px; }

.mzx .plan-now .row{ display: flex; align-items: center; gap: 10px; }

.mzx .plan-now .gr{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; border-radius: 12px; background: hsl(var(--card) / .7); padding: 12px; font-size: 11.5px; }

.mzx .plan-now .gr small{ color: hsl(var(--muted-foreground)); display: block; }

.mzx .plan-now .gr b{ font-weight: 600; font-size: 12.5px; }

.mzx .usage h2{ display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.mzx .usage h2 svg{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .u{ margin-bottom: 12px; }

.mzx .u div{ display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }

.mzx .u div span:first-child{ color: hsl(var(--muted-foreground)); }

.mzx .u div span:last-child{ font-weight: 600; }

.mzx .warnbox{ border-radius: 10px; background: rgb(244 63 94 / .08); border: 1px solid rgb(244 63 94 / .2); color: #e11d48; font-size: 11.5px; padding: 8px 10px; }

.mzx .plans{ display: grid; gap: 10px; grid-template-columns: 1fr; }

.mzx .pl{ padding: 14px; display: flex; flex-direction: column; }

.mzx .pl.cur{ border-color: hsl(var(--lime) / .6); background: linear-gradient(to bottom, hsl(var(--lime) / .1), hsl(var(--card))); }

.mzx .pl .nm{ display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; }

.mzx .pl .nm svg{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .pl .pr{ font-size: 24px; font-weight: 600; letter-spacing: -.025em; margin: 4px 0 10px; }

.mzx .pl .pr small{ font-size: 11px; font-weight: 400; color: hsl(var(--muted-foreground)); }

.mzx .pl ul{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; }

.mzx .pl li{ display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .pl li svg{ width: 12px; height: 12px; color: hsl(var(--lime)); }

.mzx .pl .btn{ width: 100%; height: 34px; }

.mzx .pl .btn:disabled{ opacity: .5; cursor: default; }

.mzx .sec-h{ display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }

.mzx .sec-h small{ font-size: 11px; color: hsl(var(--muted-foreground)); }
/* ---------- Settings ---------- */
.mzx .stabs{ display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; }

.mzx .stabs button{ display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; color: hsl(var(--muted-foreground)); white-space: nowrap; }

.mzx .stabs button svg{ width: 14px; height: 14px; }

.mzx .stabs button.on{ background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px #0000000d, 0 0 0 1px hsl(var(--border) / .7); }

.mzx .sgrid{ display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }

.mzx .fgrid{ display: grid; gap: 14px; grid-template-columns: 1fr; }

.mzx .seg{ display: inline-flex; padding: 2px; border-radius: 10px; background: hsl(var(--muted)); gap: 2px; width: 100%; }

.mzx .seg button{ flex: 1; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); }

.mzx .seg button.on{ background: hsl(var(--navy)); color: #fff; }

.mzx.mz-dark .seg button.on{ background: hsl(var(--lime)); color: hsl(203 76% 11%); }

.mzx .kvl{ display: flex; flex-direction: column; gap: 14px; }

.mzx .kvl > div{ display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }

.mzx .kvl .lbl{ display: flex; align-items: center; gap: 8px; color: hsl(var(--muted-foreground)); font-size: 11.5px; }

.mzx .kvl .lbl svg{ width: 13px; height: 13px; }

.mzx .trow{ display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid hsl(var(--border) / .6); }

.mzx .trow:first-child{ border-top: 0; padding-top: 0; }

.mzx .trow b{ display: block; font-size: 13px; font-weight: 600; }

.mzx .trow small{ font-size: 11.5px; color: hsl(var(--muted-foreground)); }
/* ---------- Playground ---------- */
.mzx .pg{ display: grid; gap: 12px; grid-template-columns: 1fr; }

.mzx .pg-chat{ display: flex; flex-direction: column; height: 600px; padding: 0; overflow: hidden; }

.mzx .pg-bar{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid hsl(var(--border) / .6); }

.mzx .pg-bar select{ height: 32px; border-radius: 10px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--card)); padding-inline: 10px; font-size: 12px; }

.mzx .pg-bar .chipx{ display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; background: hsl(var(--muted)); padding: 4px 8px; font-size: 11px; color: hsl(var(--muted-foreground)); }

.mzx .pg-bar svg{ width: 12px; height: 12px; }

.mzx .empty{ margin: auto; text-align: center; max-width: 300px; padding: 20px; }

.mzx .empty svg{ width: 22px; height: 22px; color: hsl(var(--muted-foreground)); }

.mzx .empty b{ display: block; font-size: 13px; margin: 6px 0 4px; }

.mzx .empty p{ font-size: 11.5px; color: hsl(var(--muted-foreground)); }

.mzx .cfg h2{ display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 12.5px; }

.mzx .cfg h2 svg{ width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.mzx .cfg .r{ display: flex; justify-content: space-between; padding: 4px 0; font-size: 11.5px; }

.mzx .cfg .r span:first-child{ color: hsl(var(--muted-foreground)); }

.mzx .cfg .r span:last-child{ font-weight: 500; }

.mzx .ksrc{ display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; background: hsl(var(--muted) / .55); font-size: 11.5px; }

.mzx .ksrc small{ font-size: 9.5px; color: hsl(var(--muted-foreground)); }

.mzx .warn-card{ border-radius: 14px; border: 1px solid rgb(245 158 11 / .35); background: rgb(245 158 11 / .08); padding: 12px; font-size: 11.5px; color: #b45309; }

.mzx.mz-dark .warn-card{ color: #fbbf24; }

.mzx .warn-card b{ display: block; margin-bottom: 4px; }

.mzx .typing{ display: inline-flex; gap: 3px; }

.mzx .typing i{ width: 5px; height: 5px; border-radius: 50%; background: hsl(var(--muted-foreground)); animation: blink 1s infinite; }

.mzx .typing i:nth-child(2){ animation-delay: .15s; }

.mzx .typing i:nth-child(3){ animation-delay: .3s; }

@keyframes blink{ 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* breakpoints */
@media (min-width: 640px){
.mzx .cgrid, .mzx .egrid, .mzx .tgrid{ grid-template-columns: repeat(2, 1fr); }

.mzx .fgrid{ grid-template-columns: 1fr 1fr; }

.mzx .plans{ grid-template-columns: repeat(2, 1fr); }

}

@media (min-width: 1024px){
.mzx .inbox{ grid-template-columns: 300px 1fr; }

.mzx .inbox .pane{ height: 100%; min-height: 0; }

.mzx .inbox .details{ grid-column: 1 / -1; height: auto; }

.mzx .cgrid, .mzx .egrid, .mzx .tgrid{ grid-template-columns: repeat(3, 1fr); }

.mzx .plans{ grid-template-columns: repeat(5, 1fr); }

.mzx .two{ grid-template-columns: 1fr 1fr; }

.mzx .sgrid{ grid-template-columns: 2fr 1fr; }

.mzx .pg{ grid-template-columns: 1fr 300px; }

}

@media (min-width: 1280px){
.mzx .inbox{ grid-template-columns: 300px 1fr 290px; }

.mzx .inbox .details{ grid-column: auto; height: 100% !important; }

.mzx .split{ display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }

}

@media (max-width: 1279px){
.mzx .split > .roles{ margin-top: 12px; }
 }
/* mixed-direction text: let the first strong character decide */
.mzx .bubble, .mzx .conv .b p, .mzx .conv .m span, .mzx .kv span:last-child, .mzx .tbl td, .mzx .tpl p, .mzx .ksrc span, .mzx .d-list div, .mzx .act b{ unicode-bidi: plaintext; }

.mzx .conv .b{ display: block; }

.mzx .ch-ico{ background: hsl(var(--muted) / .7) !important; }

.mzx .ch-ico svg.brand{ width: 22px; height: 22px; }

.mzx .chan svg.brand{ width: 15px; height: 15px; }

.mzx .conv .m svg.brand{ width: 14px; height: 14px; }

.mzx .tpl-h svg.brand{ width: 18px; height: 18px; }
/* language dropdown */
.mzx .langmenu{ position: relative; }

.mzx .langbtn{ display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 12px; border-radius: 999px; border: 1px solid hsl(var(--border) / .7); background: hsl(var(--card)); font-size: 12px; font-weight: 600; box-shadow: 0 1px 2px 0 #0000000d; transition: all .2s; }

.mzx .langbtn:hover, .mzx .langmenu.open .langbtn{ border-color: hsl(var(--lime) / .7); }

.mzx .langbtn svg{ width: 16px; height: 16px; }

.mzx .langlist{ display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 190px; padding: 6px; border-radius: 18px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: 0 18px 40px -12px #0003; }

.mzx .langmenu.open .langlist{ display: block; animation: rise .18s both; }

.mzx .langlist button{ display: block; width: 100%; text-align: start; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: background .15s; }

.mzx .langlist button:hover{ background: hsl(var(--muted)); }

.mzx .langlist button.on{ background: hsl(var(--lime)); color: hsl(203 76% 11%); font-weight: 600; }

.mzx .seg{ flex-wrap: wrap; }

.mzx .seg button{ flex: 1 1 28%; }

/* ── Fitting the design's shell around the React dashboard (only while body.mzx-on) ─────────────────────────────── */
body.mzx-on [data-mzx-hidden] { display: none !important; }
body.mzx-on { --mzx-sbw: 0px; --mzx-top: 64px; }
@media (min-width: 1024px) {
  body.mzx-on { --mzx-sbw: 264px; }
  body.mzx-on.mzx-collapsed { --mzx-sbw: 76px; }
}
body.mzx-on #root main[data-mzx-main] {
  padding-left: 0 !important; padding-right: 0 !important;
  padding-inline-start: var(--mzx-sbw) !important;
  padding-top: calc(var(--mzx-top) + 12px) !important;
  transition: padding .3s ease-out;
  min-height: 100vh;
  box-sizing: border-box !important;
}

/* the shell is fixed: the sidebar on the reading-start side, the top bar across the rest */
.mzx.mzx-shell { position: relative; z-index: 1200; font-family: var(--font); color: hsl(var(--foreground)); line-height: 1.5; }
.mzx.mzx-shell .sidebar { position: fixed; top: 0; bottom: 0; height: 100vh; z-index: 1210; }
.mzx.mzx-shell .overlay { z-index: 1205; }
.mzx.mzx-shell .mzx-top { position: fixed; top: 0; inset-inline-end: 0; inset-inline-start: var(--mzx-sbw); z-index: 1100; transition: inset .3s ease-out; }
.mzx.mzx-shell .topbar { position: static; }
@media (min-width: 1024px) {
  .mzx.mzx-shell .sidebar { transform: none; }
}
.mzx .sb-link { cursor: pointer; }
.mzx .sb-nav::-webkit-scrollbar { width: 6px; }
.mzx .sb-nav::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .12); border-radius: 6px; }

/* search results */
.mzx .search { position: relative; }
.mzx .mzx-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 20; display: none; padding: 6px;
  border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); box-shadow: 0 18px 40px -18px rgb(7 32 50 / .35); }
.mzx .mzx-results:not(:empty) { display: block; }
.mzx .mzx-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mzx .mzx-results a:hover, .mzx .mzx-results a:focus { background: hsl(var(--muted)); outline: none; }
.mzx .mzx-results a svg { position: static; transform: none; width: 15px; height: 15px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-results .none { padding: 8px 10px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }

/* account menu */
.mzx .mzx-usermenu { position: relative; }
.mzx .mzx-drop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; display: none; min-width: 230px; padding: 6px;
  border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); box-shadow: 0 18px 40px -18px rgb(7 32 50 / .35); }
.mzx .mzx-usermenu.open .mzx-drop { display: block; }
.mzx .mzx-drop-h { padding: 8px 10px 10px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 4px; }
.mzx .mzx-drop-h b { display: block; font-size: 13px; }
.mzx .mzx-drop-h small { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; }
.mzx .mzx-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 13px; text-align: start; }
.mzx .mzx-drop button:hover { background: hsl(var(--muted)); }
.mzx .mzx-drop button svg { width: 15px; height: 15px; color: hsl(var(--muted-foreground)); }

/* pages the new design renders inside React's <main> */
.mzx.mzx-page { font-family: var(--font); color: hsl(var(--foreground)); background: hsl(var(--background)); line-height: 1.5; min-height: calc(100vh - var(--mzx-top)); }
.mzx.mzx-page .main { padding-top: 24px; }
.mzx .chart .donut-total { font-size: 20px; font-weight: 700; fill: hsl(var(--foreground)); }
.mzx .chart .donut-cap { font-size: 10.5px; }
.mzx .snap-h .sub { font-size: 12px; color: hsl(var(--muted-foreground)); }

/* the React pages sit on the design's background, with its fonts */
body.mzx-on { background: hsl(84 26% 97%); }
html[data-mz-mode="dark"] body.mzx-on { background: hsl(203 62% 7%); }
body.mzx-on #root main[data-mzx-main] { background: transparent; }
body.mzx-on #root .MuiTypography-root, body.mzx-on #root .MuiButton-root, body.mzx-on #root .MuiInputBase-root,
body.mzx-on #root .MuiTab-root, body.mzx-on #root .MuiChip-root, body.mzx-on #root .MuiTableCell-root, body.mzx-on #root .MuiMenuItem-root {
  font-family: "Inter", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
html[dir="rtl"] body.mzx-on #root .MuiTypography-root, html[dir="rtl"] body.mzx-on #root .MuiButton-root, html[dir="rtl"] body.mzx-on #root .MuiInputBase-root,
html[dir="rtl"] body.mzx-on #root .MuiTab-root, html[dir="rtl"] body.mzx-on #root .MuiChip-root, html[dir="rtl"] body.mzx-on #root .MuiTableCell-root,
html[dir="rtl"] body.mzx-on #root .MuiMenuItem-root {
  font-family: "Cairo", "Almarai", ui-sans-serif, system-ui, sans-serif;
}

/* grid cells may shrink below their content, so long names never push the page wider than the phone */
.mzx .grid > *, .mzx .row2 > *, .mzx .row3 > * { min-width: 0; }
.mzx .act li .t { min-width: 0; flex: 1; }
.mzx .act li .t b, .mzx .act li .t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx.mzx-page { overflow-x: hidden; }

/* pieces the new pages add to the design */
.mzx .mzx-kpis-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .mzx .mzx-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mzx .mzx-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 12px;
  background: hsl(var(--lime) / .14); font-size: 12.5px; font-weight: 500; }
.mzx .mzx-bulk > span { margin-inline-end: auto; }
.mzx .mzx-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .mzx-pager:empty { display: none; }
.mzx .mzx-listrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid hsl(var(--border) / .6); }
.mzx .mzx-listrow b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .mzx-listrow small { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .btn-danger { background: #e11d48; color: #fff; }
.mzx .btn-danger:hover { background: #be123c; }
.mzx .btn[disabled] { opacity: .5; pointer-events: none; }
.mzx .mzx-form-err { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgb(244 63 94 / .1); color: #e11d48; font-size: 12.5px; }
.mzx .toast.bad { background: #e11d48; color: #fff; }
.mzx .tbl input[type=checkbox] { width: 15px; height: 15px; accent-color: #072032; }
.mzx.mz-dark .tbl input[type=checkbox] { accent-color: #ACE601; }
.mzx .field small { margin-top: 2px; }
.mzx .field input[type=file] { height: auto; padding: 8px; }
/* dialogs and toasts above the shell, and dialogs that scroll when taller than the screen */
.mzx .modal-bg { z-index: 1400; padding: 16px; }
.mzx .modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.mzx .toast { z-index: 1500; }
/* channel cards: 3-column spacious grid matching daschat new design */
.mzx .cgrid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: 1fr !important;
}
@media (min-width: 640px) {
  .mzx .cgrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
@media (min-width: 1024px) {
  .mzx .cgrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}
.mzx .ch .kv span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the page fades in once when opened, not again each time its data refreshes */
.mzx.mzx-page .wrap { animation: none; }
.mzx.mzx-page .mzx-slot { animation: rise .45s cubic-bezier(.22, 1, .36, 1) both; }

/* ── new Inbox: Viewport Lock & Centered Layout (Zero Window Scroll) ────────── */
html:has(body.mzx-on[data-mzx-page="inbox"]),
body.mzx-on[data-mzx-page="inbox"],
body.mzx-on.mzx-inbox-on {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.mzx-on[data-mzx-page="inbox"] #root,
body.mzx-on.mzx-inbox-on #root {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.mzx-on[data-mzx-page="inbox"] #root main[data-mzx-main],
body.mzx-on.mzx-inbox-on #root main[data-mzx-main] {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  padding-top: var(--mzx-top, 64px) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx.mzx-page {
  flex: 1 1 0% !important;
  height: calc(100vh - var(--mzx-top, 64px)) !important;
  max-height: calc(100vh - var(--mzx-top, 64px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx.mzx-page .mzx-slot {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox-main {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 12px 24px 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox-main .wrap {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-width: 1600px !important;
  margin-inline: auto !important;
  width: 100% !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox-main .page-head {
  flex-shrink: 0 !important;
  margin-bottom: 8px !important;
}
body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox-main .page-head h1 {
  font-size: 20px !important;
  margin-bottom: 2px !important;
}
body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox-main .page-head .lede {
  font-size: 12px !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  gap: 12px !important;
}

@media (min-width: 1280px) {
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox {
    grid-template-columns: 310px minmax(0, 1fr) 290px !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .details {
    display: flex !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-info-btn,
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-close-info {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox {
    grid-template-columns: 310px minmax(0, 1fr) !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .details {
    display: none;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-info-open .mzx-inbox .details {
    display: flex !important;
    position: fixed !important;
    top: calc(var(--mzx-top) + 8px) !important;
    bottom: 8px !important;
    inset-inline-end: 8px !important;
    width: 300px !important;
    z-index: 1150 !important;
    box-shadow: 0 24px 60px -20px rgb(7 32 50 / .45) !important;
  }
}

@media (max-width: 767px) {
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox {
    grid-template-columns: 1fr !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox > .pane:nth-child(2),
  body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .details {
    display: none !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx-chat-open .mzx-inbox > .pane:first-child {
    display: none !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx-chat-open .mzx-inbox > .pane:nth-child(2) {
    display: flex !important;
  }
  body.mzx-on[data-mzx-page="inbox"] .mzx-info-open .mzx-inbox .details {
    display: flex !important;
    position: fixed !important;
    inset: calc(var(--mzx-top) + 8px) 8px 8px !important;
    z-index: 1150 !important;
  }
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox > .pane {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .pane-h,
body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .thread-h,
body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .pane-f,
body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .compose {
  flex-shrink: 0 !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .convs {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 56px !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .msgs {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.mzx-on[data-mzx-page="inbox"] .mzx .mzx-inbox .details {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
.mzx .mzx-back { display: none; }
@media (max-width: 767px) { .mzx .mzx-back { display: grid; } }
.mzx .mzx-close-info { align-self: flex-end; margin-bottom: -6px; }
.mzx .mzx-live { font-size: 11.5px; color: #d97706; }
.mzx .mzx-chsel { height: 24px; border-radius: 999px; border: 0; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: 11px; padding-inline: 8px; flex-shrink: 0; }
.mzx .fchips { align-items: center; }
/* conversation rows */
.mzx .conv { cursor: pointer; }
.mzx .conv .av { flex-shrink: 0; }
.mzx .mzx-conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mzx .mzx-conv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .mzx-conv-top time { flex-shrink: 0; font-size: 10.5px; color: hsl(var(--muted-foreground)); }
.mzx .conv .m { justify-content: flex-start; flex-wrap: wrap; }
.mzx .mzx-unread { margin-inline-start: auto; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 999px; background: hsl(var(--lime)); color: #072032; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }
.mzx .mzx-lbl { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.mzx .mzx-lbl button { font-size: 12px; line-height: 1; opacity: .7; } .mzx .mzx-lbl button:hover { opacity: 1; }
.mzx .mzx-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mzx .mzx-skel { display: flex; gap: 10px; padding: 10px; } .mzx .mzx-skel i { width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--muted)); }
.mzx .mzx-skel span { flex: 1; display: flex; flex-direction: column; gap: 6px; } .mzx .mzx-skel b, .mzx .mzx-skel em { height: 9px; border-radius: 6px; background: hsl(var(--muted)); width: 70%; } .mzx .mzx-skel em { width: 45%; }
.mzx .mzx-empty-sm { padding: 30px 12px; }
/* thread */
.mzx .mzx-inbox .msgs { min-height: 0; }
.mzx .mzx-older { align-self: center; }
.mzx .mzx-day { align-self: center; border-radius: 999px; background: hsl(var(--muted)); padding: 2px 10px; }
.mzx .bubble { word-break: break-word; }
.mzx .bubble .cap { margin-top: 6px; }
.mzx .mzx-media { display: block; max-width: 260px; max-height: 260px; border-radius: 10px; overflow: hidden; }
.mzx .mzx-media img { display: block; max-width: 100%; max-height: 260px; object-fit: cover; }
.mzx .bubble audio { max-width: 240px; height: 36px; }
.mzx .mzx-doc { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
.mzx .mzx-doc svg { width: 16px; height: 16px; }
.mzx .mzx-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .mzx .mzx-btns span { border: 1px solid currentColor; border-radius: 8px; padding: 2px 8px; font-size: 11.5px; opacity: .85; }
.mzx .mzx-window { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 8px 10px; border-radius: 12px; background: rgb(245 158 11 / .1); border: 1px solid rgb(245 158 11 / .3); font-size: 11.5px; }
.mzx .mzx-window svg { width: 14px; height: 14px; color: #d97706; flex-shrink: 0; } .mzx .mzx-window span { flex: 1; }
.mzx .compose textarea { flex: 1; min-height: 36px; max-height: 140px; resize: none; border-radius: 12px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--background) / .6); padding: 8px 12px; font: inherit; font-size: 12.5px; color: hsl(var(--foreground)); field-sizing: content; }
.mzx .compose textarea:focus { outline: none; box-shadow: 0 0 0 1px hsl(var(--ring)); }
.mzx .compose label.ibtn { cursor: pointer; }
/* menus (assign, labels) */
.mzx .mzx-menu { position: relative; }
.mzx .mzx-pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 30; display: none; min-width: 200px; max-height: 260px; overflow-y: auto; padding: 6px;
  border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); box-shadow: 0 18px 40px -18px rgb(7 32 50 / .35); }
.mzx .mzx-pop.open { display: block; }
.mzx .mzx-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; text-align: start; }
.mzx .mzx-pop button:hover { background: hsl(var(--muted)); }
.mzx .mzx-pop p { padding: 6px 10px; font-size: 12px; }
.mzx .details .mzx-pop { inset-inline-end: auto; inset-inline-start: 0; }
.mzx .mzx-note { position: relative; border-radius: 10px; background: hsl(var(--muted) / .6); padding: 8px 32px 8px 10px; margin-bottom: 6px; font-size: 12px; }
[dir="rtl"] .mzx .mzx-note, .mzx[dir="rtl"] .mzx-note { padding: 8px 10px 8px 32px; }
.mzx .mzx-note small { display: block; font-size: 10.5px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.mzx .mzx-note .ibtn { position: absolute; top: 4px; inset-inline-end: 4px; }
/* the old inbox add-ons draw their own screens over <main>; the new inbox replaces them */
body[data-mzx-page="inbox"] #mz-inbox-empty, body[data-mzx-page="inbox"] #mz-sidebar-channel-bar { display: none !important; }
/* campaigns */
.mzx .mzx-two { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .mzx .mzx-two { grid-template-columns: 1fr 1fr; } }
.mzx .mzx-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.mzx .mzx-steps span { display: inline-flex; align-items: center; gap: 8px; }
.mzx .mzx-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: hsl(var(--muted)); font-size: 11.5px; }
.mzx .mzx-steps span.on { color: hsl(var(--foreground)); } .mzx .mzx-steps span.on b { background: hsl(var(--lime)); color: #072032; }
.mzx .mzx-steps span.done b { background: hsl(var(--navy)); color: #fff; }
.mzx .mzx-steps i { flex: 0 0 48px; height: 2px; border-radius: 2px; background: hsl(var(--border)); }
.mzx .mzx-create { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1100px) { .mzx .mzx-create { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.mzx .mzx-tpl { text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mzx .mzx-tpl:hover { border-color: hsl(var(--lime)); box-shadow: 0 8px 24px -14px rgb(7 32 50 / .35); }
.mzx .mzx-egrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)) !important; }
.mzx .modal .stat2 { grid-template-columns: repeat(3, 1fr); }
.mzx .stat2 b { display: block; font-size: 17px; font-weight: 600; }
.mzx code { font-size: 11px; background: hsl(var(--muted)); border-radius: 5px; padding: 1px 4px; }
.mzx .link-sm { color: hsl(var(--muted-foreground)); font-size: 12px; }

/* ── custom file upload box ── */
.mzx .field-file { margin: 6px 0; }
.mzx .mzx-file-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed hsl(var(--border) / .9);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background: hsl(var(--muted) / .25);
  cursor: pointer;
  transition: all .2s;
}
.mzx .mzx-file-box:hover {
  border-color: hsl(var(--lime));
  background: hsl(var(--lime) / .06);
}
.mzx .mzx-file-box input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.mzx .mzx-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: hsl(var(--navy) / .08);
  color: hsl(var(--navy));
  margin-bottom: 8px;
}
.mzx.mz-dark .mzx-file-icon {
  background: hsl(var(--lime) / .15);
  color: hsl(var(--lime));
}
.mzx .mzx-file-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.mzx .mzx-file-sub {
  display: block;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin-top: 3px;
}
.mzx .mzx-file-name {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--lime) / .8);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.mzx .mzx-modal-wide { max-width: 640px; }

/* ── Multi-step Wizard Modal ── */
.mzx .mzx-modal-stepper {
  background: hsl(var(--muted) / .45);
  border: 1px solid hsl(var(--border) / .6);
  padding: 8px 14px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mzx .mzx-modal-stepper .step-node {
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all .2s ease;
}
.mzx .mzx-modal-stepper .step-node:hover {
  opacity: .85;
}
.mzx .mzx-modal-stepper .step-circ {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.mzx .mzx-modal-stepper .step-lbl {
  font-size: 11.5px;
  font-weight: 600;
}
.mzx .mzx-step-pane {
  animation: mzxFadeIn .2s ease-in-out;
}
@keyframes mzxFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── plugins / integrations grid ── */
.mzx .pgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.mzx .pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid hsl(var(--border) / .8);
  background: hsl(var(--card));
  box-shadow: 0 1px 3px 0 #0000000d;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mzx .pcard:hover {
  border-color: hsl(var(--lime) / .7);
  box-shadow: 0 8px 24px -12px rgb(7 32 50 / .2);
}
.mzx .pcard-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.mzx .pcard-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  flex-shrink: 0;
}
.mzx .pcard-icon.woo { background: #96588a18; color: #96588a; }
.mzx .pcard-icon.shopify { background: #95bf4718; color: #7ab52b; }
.mzx .pcard-icon.db { background: #0284c718; color: #0284c7; }
.mzx .pcard-icon.api { background: #8b5cf618; color: #8b5cf6; }
/* real brand logos (plugins page): marks in /mz-ui/brands, tiles from the landing page */
.mzx .pcard-icon.brand { background: #fff; border: 1px solid hsl(var(--border) / .8); }
.mzx .pcard-icon.brand img { width: 26px; height: 26px; object-fit: contain; display: block; }
.mzx .pcard-icon.brand.duo { gap: 2px; grid-auto-flow: column; padding: 0 6px; width: auto; }
.mzx .pcard-icon.brand.duo img { width: 20px; height: 20px; }
.mzx .pcard-icon.brand.wide { width: 72px; padding: 0; border: 0; background: transparent; overflow: hidden; }
.mzx .pcard-icon.brand.wide img { width: 72px; height: 44px; object-fit: cover; }
.mzx .pl-sec { margin: 28px 0 12px; }
.mzx .pl-sec .h2 { margin: 0; }
.mzx .pl-sec .sub { margin: 4px 0 0; }
.mzx .pl-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.mzx .pl-tile {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 412 / 256;
  transition: transform .15s, box-shadow .15s;
}
.mzx .pl-tile:hover, .mzx .pl-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px hsl(var(--lime)), 0 10px 22px -14px rgb(7 32 50 / .45); outline: 0; }
.mzx .pl-tile-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.mzx .pl-tile-drawn { background: #fff; border: 1px solid #e6ecdf; box-shadow: 0 2px 5px rgb(7 32 50 / .08); margin: 4%; width: 92%; height: 84%; aspect-ratio: auto; }
.mzx .pl-tile-mark { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; padding: 0 8px; }
.mzx .pl-tile-mark img { width: 22px; height: 22px; flex-shrink: 0; }
.mzx .pl-tile-mark b { font-size: 12.5px; font-weight: 700; color: #1f2937; line-height: 1.15; text-align: start; }
.mzx .pl-steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 7px; font-size: 13px; line-height: 1.6; }
.mzx .pl-steps code, .mzx .pl-guide code { font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: hsl(var(--muted)); direction: ltr; unicode-bidi: isolate; }
.mzx .pl-steps a { color: hsl(var(--primary)); font-weight: 600; text-decoration: underline; }
.mzx .pl-guide { display: block; }
.mzx .pl-modal-logo { width: 132px; height: auto; display: block; margin: -4px 0 8px; }
.mzx .pl-modal-mark { width: 34px; height: 34px; display: block; margin: 0 0 12px; }
.mzx .pl-code { border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; }
.mzx .pl-code-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: hsl(var(--muted) / .6); font-size: 12px; font-weight: 600; }
.mzx .pl-code pre { margin: 0; padding: 12px; font: 12px/1.55 Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; text-align: left; max-height: 180px; overflow: auto; }
.mzx .pl-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; color: hsl(var(--muted-foreground)); }
.mzx .pl-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: hsl(var(--lime-foreground, var(--primary))); }
.mzx .pcard-info { min-width: 0; flex: 1; }
.mzx .pcard-info b { display: block; font-size: 14px; font-weight: 600; }
.mzx .pcard-info small { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .pcard-desc {
  font-size: 12px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
  flex: 1;
}
.mzx .pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid hsl(var(--border) / .6);
}

/* ── subscription / billing page ── */
.mzx .plans {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}
.mzx .pl {
  min-height: 380px;
}
.mzx .plan-now .row h2 {
  font-size: 22px;
  font-weight: 700;
}
.mzx .plan-now .gr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  border-radius: 12px;
  background: hsl(var(--card) / .7);
  padding: 12px;
  font-size: 11.5px;
}
.mzx .plan-now .gr small { color: hsl(var(--muted-foreground)); display: block; }
.mzx .plan-now .gr b { font-weight: 600; font-size: 13px; }
.mzx .usage .u { margin-bottom: 12px; }
.mzx .usage .u div { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.mzx .usage .u div span { color: hsl(var(--muted-foreground)); }
.mzx .usage .u div b { font-weight: 600; }

/* ── Template Builder & WhatsApp Phone Simulator ── */
.mzx .bgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .mzx .bgrid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 360px);
  }
}
.mzx .bgrid.no-preview {
  grid-template-columns: 1fr !important;
}

/* Stepper */
.mzx .stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--card));
  margin-bottom: 20px;
  overflow-x: auto;
}
.mzx .step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .5;
  cursor: pointer;
  white-space: nowrap;
}
.mzx .step-node.active { opacity: 1; }
.mzx .step-node.done { opacity: .9; }
.mzx .step-circ {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.mzx .step-node.active .step-circ {
  background: hsl(var(--lime));
  color: #072032;
  box-shadow: 0 0 0 3px hsl(var(--lime) / .25);
}
.mzx .step-node.done .step-circ {
  background: #072032;
  color: #fff;
}
.mzx .step-lbl {
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.mzx .step-sep {
  flex: 1;
  min-width: 16px;
  height: 2px;
  margin: 0 10px;
  background: hsl(var(--border));
}
.mzx .step-sep.done { background: hsl(var(--lime)); }

/* Type Cards */
.mzx .type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.mzx .type-card {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px solid hsl(var(--border) / .8);
  background: hsl(var(--card));
  cursor: pointer;
  transition: all .2s;
  text-align: start;
}
.mzx .type-card:hover {
  border-color: hsl(var(--lime) / .7);
}
.mzx .type-card.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
}
.mzx .type-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.mzx .type-icon.std { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.mzx .type-icon.car { background: rgba(147, 51, 234, 0.12); color: #9333ea; }
.mzx .type-icon.cat { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.mzx .type-card b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.mzx .type-card small { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }

/* Guidelines Card */
.mzx .guide-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.2);
  margin-top: 18px;
  font-size: 12px;
}
.mzx .guide-card i { color: #0284c7; flex-shrink: 0; }
.mzx .guide-card b { display: block; font-weight: 600; margin-bottom: 4px; color: hsl(var(--foreground)); }
.mzx .guide-card ul { list-style: disc; padding-inline-start: 16px; margin: 0; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* Phone Mockup */
.mzx .phone-wrap {
  position: sticky;
  top: 80px;
  display: flex;
  justify-content: center;
}
.mzx .phone-shell {
  width: 330px;
  height: 600px;
  border-radius: 36px;
  border: 8px solid #1a2228;
  background: #e5ddd5;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
html[data-mz-mode="dark"] .mzx .phone-shell {
  background: #0b141a;
  border-color: #070c0e;
}
.mzx .phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  background: #005c4b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.mzx .phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
  background: #005c4b;
  color: #fff;
}
.mzx .phone-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.mzx .phone-biz { flex: 1; min-width: 0; }
.mzx .phone-biz b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.mzx .phone-biz small { display: block; font-size: 10px; opacity: .8; }
.mzx .phone-screen {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mzx .phone-date {
  align-self: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  font-size: 10px;
  font-weight: 600;
  color: #54656f;
  margin-bottom: 12px;
}
html[data-mz-mode="dark"] .mzx .phone-date {
  background: #182229;
  color: #8696a0;
}
.mzx .phone-msg {
  max-width: 90%;
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: #111b21;
}
html[data-mz-mode="dark"] .mzx .phone-msg {
  background: #202c33;
  color: #e9edef;
}
.mzx .phone-msg-hdr {
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 6px;
  color: #111b21;
}
html[data-mz-mode="dark"] .mzx .phone-msg-hdr { color: #e9edef; }
.mzx .phone-msg-media {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: #d1d7db;
  display: grid;
  place-items: center;
  color: #54656f;
  margin-bottom: 8px;
  font-size: 11px;
}
html[data-mz-mode="dark"] .mzx .phone-msg-media { background: #111b21; color: #8696a0; }
.mzx .phone-msg-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: #667781;
  margin-top: 4px;
}
html[data-mz-mode="dark"] .mzx .phone-msg-foot { color: #8696a0; }
.mzx .phone-msg-btns {
  margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-mz-mode="dark"] .mzx .phone-msg-btns { border-color: rgba(255,255,255,0.08); }
.mzx .phone-msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 6px;
  color: #00a884;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(0, 168, 132, 0.06);
}
.mzx .phone-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f0f2f5;
  border-top: 1px solid #e9edef;
}
html[data-mz-mode="dark"] .mzx .phone-input-bar { background: #202c33; border-color: #111b21; }
.mzx .phone-input-fake {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  background: #fff;
  padding: 0 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  color: #8696a0;
}
html[data-mz-mode="dark"] .mzx .phone-input-fake { background: #2a3942; }
.mzx .phone-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  display: grid;
  place-items: center;
}

/* ── Inbox Channel Icon Bar (Image 2 style with daschat rules) ──────────── */
.mzx .mzx-chbar {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  overflow-x: auto !important;
  padding: 6px 0 4px !important;
  margin-bottom: 6px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  flex-wrap: nowrap !important;
}
.mzx .mzx-chbar::-webkit-scrollbar {
  display: none !important;
}
.mzx .mzx-chbtn {
  flex: 0 0 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid hsl(var(--border) / 0.85) !important;
  background: hsl(var(--card)) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: hsl(var(--foreground)) !important;
  position: relative !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.mzx .mzx-chbtn:hover {
  background: hsl(var(--muted)) !important;
  border-color: hsl(var(--border)) !important;
  transform: translateY(-1px) !important;
}
.mzx .mzx-chbtn.active {
  border-color: hsl(var(--lime)) !important;
  background: hsl(var(--lime) / 0.14) !important;
  box-shadow: 0 0 0 2px hsl(var(--lime) / 0.35), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px) !important;
}
.mzx .mzx-chbtn.is-all.active {
  background: hsl(var(--lime)) !important;
  border-color: hsl(var(--lime)) !important;
  color: #072032 !important;
  box-shadow: 0 3px 12px rgba(172, 230, 1, 0.45) !important;
}
.mzx .mzx-chbtn svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}
/* ── The design's look on the existing React pages (appearance only; layout and behaviour are untouched) ──────────
   Tokens are the daschat ones. Scoped to body.mzx-on so the classic view (?mzui=old) is exactly as before. */
body.mzx-on {
  --rk-bg: 84 26% 97%; --rk-fg: 203 76% 11%; --rk-card: 0 0% 100%; --rk-muted: 84 22% 95%; --rk-muted-fg: 203 18% 42%;
  --rk-border: 203 18% 89%; --rk-navy: 203 76% 11%; --rk-lime: 75 82% 45%;
}
html[data-mz-mode="dark"] body.mzx-on {
  --rk-bg: 203 62% 7%; --rk-fg: 80 18% 96%; --rk-card: 203 46% 10%; --rk-muted: 203 36% 14%; --rk-muted-fg: 200 14% 66%;
  --rk-border: 203 30% 19%; --rk-navy: 203 62% 8%;
}
body.mzx-on { background: hsl(var(--rk-bg)) !important; color: hsl(var(--rk-fg)); }
body.mzx-on #root main[data-mzx-main] > div:not(.mzx) { background: transparent !important; }

/* surfaces: cards and panels */
body.mzx-on #root main .MuiPaper-root:not(.MuiAppBar-root):not(.MuiAlert-root):not(.MuiSnackbarContent-root),
body.mzx-on #root main .MuiCard-root {
  background-color: hsl(var(--rk-card));
  background-image: none;
  border: 1px solid hsl(var(--rk-border) / .7);
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 #0000000d;
  color: hsl(var(--rk-fg));
}
body.mzx-on .MuiPopover-paper, body.mzx-on .MuiMenu-paper, body.mzx-on .MuiDialog-paper, body.mzx-on .MuiAutocomplete-paper {
  background-color: hsl(var(--rk-card)) !important; background-image: none !important; color: hsl(var(--rk-fg));
  border: 1px solid hsl(var(--rk-border)); border-radius: 16px !important; box-shadow: 0 18px 40px -18px rgb(7 32 50 / .35) !important;
}
body.mzx-on .MuiDialog-paper { border-radius: 18px !important; }
body.mzx-on .MuiBackdrop-root:not(.MuiBackdrop-invisible) { background: rgb(7 32 50 / .45); backdrop-filter: blur(2px); }

/* text */
body.mzx-on #root main .MuiTypography-h4, body.mzx-on #root main .MuiTypography-h5 { font-weight: 600; letter-spacing: -.025em; color: hsl(var(--rk-fg)); }
body.mzx-on #root main .MuiTypography-h6, body.mzx-on #root main .MuiTypography-subtitle1 { font-weight: 600; letter-spacing: -.02em; }
body.mzx-on #root main .MuiTypography-body2:not([class*="Chip"]), body.mzx-on #root main .MuiTypography-caption { color: hsl(var(--rk-muted-fg)); }
body.mzx-on #root main .MuiDivider-root { border-color: hsl(var(--rk-border) / .8); }

/* buttons */
body.mzx-on .MuiButton-root { border-radius: 12px; text-transform: none; font-weight: 600; letter-spacing: 0; box-shadow: none; min-height: 36px; padding-inline: 14px; }
body.mzx-on .MuiButton-contained:not(.MuiButton-containedError):not(.MuiButton-containedSuccess):not(.MuiButton-containedWarning):not([style*="1877F2"]):not([style*="rgb(24, 119, 242)"]):not(.MuiAlert-action *) {
  background: hsl(var(--rk-lime)); color: hsl(203 76% 11%); box-shadow: 0 1px 3px 0 #0000001a;
}
body.mzx-on .MuiButton-contained:not(.MuiButton-containedError):not(.MuiButton-containedSuccess):not(.MuiButton-containedWarning):not([style*="1877F2"]):not([style*="rgb(24, 119, 242)"]):not(.MuiAlert-action *):hover { background: hsl(var(--rk-lime) / .88); box-shadow: 0 6px 20px -8px rgba(172, 230, 1, .9); }
body.mzx-on .MuiButton-outlined:not(.MuiButton-outlinedError) { background: hsl(var(--rk-card)); border-color: hsl(var(--rk-border) / .9); color: hsl(var(--rk-fg)); }
body.mzx-on .MuiButton-outlined:not(.MuiButton-outlinedError):hover { background: hsl(var(--rk-muted)); border-color: hsl(var(--rk-border)); }
body.mzx-on .MuiButton-text:not(.MuiButton-textError) { color: hsl(var(--rk-fg)); }
body.mzx-on #root main .MuiIconButton-root { border-radius: 10px; }

/* inputs */
body.mzx-on .MuiOutlinedInput-root { border-radius: 12px; background: hsl(var(--rk-bg) / .6); }
body.mzx-on .MuiOutlinedInput-notchedOutline { border-color: hsl(var(--rk-border) / .9); }
body.mzx-on .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline { border-color: hsl(var(--rk-border)); }
body.mzx-on .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline { border-color: hsl(var(--rk-lime)); border-width: 1px; box-shadow: 0 0 0 3px hsl(var(--rk-lime) / .18); }
body.mzx-on .MuiInputLabel-root.Mui-focused { color: hsl(var(--rk-fg)); }
body.mzx-on .MuiFilledInput-root { border-radius: 12px; }

/* tables and data grids */
body.mzx-on #root main .MuiTableCell-head, body.mzx-on #root main .MuiDataGrid-columnHeaderTitle {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--rk-muted-fg));
}
body.mzx-on #root main .MuiTableHead-root .MuiTableCell-root, body.mzx-on #root main .MuiDataGrid-columnHeaders,
body.mzx-on #root main .MuiDataGrid-columnHeader { background: hsl(var(--rk-muted) / .6) !important; }
body.mzx-on #root main .MuiTableCell-root, body.mzx-on #root main .MuiDataGrid-cell { border-color: hsl(var(--rk-border) / .6); font-size: 13px; }
body.mzx-on #root main .MuiTableRow-root:hover, body.mzx-on #root main .MuiDataGrid-row:hover { background: hsl(var(--rk-muted) / .5); }
body.mzx-on #root main .MuiDataGrid-root { border-color: hsl(var(--rk-border) / .7); border-radius: 16px; }

/* chips and tabs */
body.mzx-on #root main .MuiChip-root { border-radius: 999px; font-weight: 500; }
body.mzx-on #root main .MuiTabs-root { min-height: 36px; }
body.mzx-on #root main .MuiTabs-flexContainer { gap: 2px; }
body.mzx-on #root main .MuiTab-root { text-transform: none; font-weight: 500; min-height: 36px; border-radius: 999px; }
body.mzx-on #root main .MuiTab-root.Mui-selected { color: hsl(var(--rk-fg)); background: hsl(var(--rk-card)); box-shadow: 0 1px 2px 0 #0000000d, 0 0 0 1px hsl(var(--rk-border) / .6); }
body.mzx-on #root main .MuiTabs-indicator { background: hsl(var(--rk-lime)); height: 3px; border-radius: 3px; }

/* Steppers & wizard controls (e.g. create-meta-template) */
body.mzx-on .MuiStepper-root {
  background: hsl(var(--rk-card)) !important;
  border: 1px solid hsl(var(--rk-border) / .7) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
}
body.mzx-on .MuiStepLabel-label {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: hsl(var(--rk-muted-fg)) !important;
}
body.mzx-on .MuiStepLabel-label.Mui-active {
  color: hsl(var(--rk-fg)) !important;
}
body.mzx-on .MuiStepIcon-root {
  color: hsl(var(--rk-muted)) !important;
}
body.mzx-on .MuiStepIcon-root.Mui-active {
  color: hsl(var(--rk-lime)) !important;
}
body.mzx-on .MuiStepIcon-root.Mui-active .MuiStepIcon-text {
  fill: #072032 !important;
  font-weight: 700 !important;
}
body.mzx-on .MuiStepIcon-root.Mui-completed {
  color: hsl(var(--rk-navy)) !important;
}
html[data-mz-mode="dark"] body.mzx-on .MuiStepIcon-root.Mui-completed {
  color: hsl(var(--rk-lime)) !important;
}
body.mzx-on .MuiStepConnector-line {
  border-color: hsl(var(--rk-border)) !important;
}
body.mzx-on #root main .MuiCard-root:has(> * > svg) {
  border-radius: 16px !important;
  border: 1.5px solid hsl(var(--rk-border) / .8) !important;
}

/* switches, checkboxes, progress in the brand colour */
body.mzx-on .MuiSwitch-switchBase.Mui-checked { color: #fff; }
body.mzx-on .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track { background: hsl(var(--rk-navy)); opacity: 1; }
html[data-mz-mode="dark"] body.mzx-on .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track { background: hsl(var(--rk-lime)); }
body.mzx-on .MuiCheckbox-root.Mui-checked, body.mzx-on .MuiRadio-root.Mui-checked { color: hsl(var(--rk-navy)); }
html[data-mz-mode="dark"] body.mzx-on .MuiCheckbox-root.Mui-checked, html[data-mz-mode="dark"] body.mzx-on .MuiRadio-root.Mui-checked { color: hsl(var(--rk-lime)); }
body.mzx-on .MuiLinearProgress-bar { background: hsl(var(--rk-lime)); }

/* classic view permanently hidden */
.mzx .mzx-classic, .mzx-classic, .mzx.mzx-classic-bar, .mzx-classic-bar { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* the React pages' boxed title card, shown as the design's open page heading */
body.mzx-on #root main [data-mzx-pagehead] {
  background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
  padding-inline: 4px !important; padding-top: 12px !important; margin-bottom: 8px;
}
body.mzx-on #root main [data-mzx-pagehead] [data-mzx-title] {
  font-size: 26px !important; font-weight: 600 !important; line-height: 1.25; letter-spacing: -.025em; color: hsl(var(--rk-fg)) !important;
}
body.mzx-on #root main [data-mzx-pagehead] [data-mzx-title] ~ * { font-size: 14px; color: hsl(var(--rk-muted-fg)) !important; }
/* the icon tile next to the title is not part of the design's heading */
body.mzx-on #root main [data-mzx-pagehead] :is(div, span):has(> svg):not(:has(*:not(svg):not(path):not(g):not(circle):not(rect):not(line):not(polyline):not(polygon))):first-child {
  display: none !important;
}

/* ── Inbox: the design's three cards under a page heading ───────────────────────────────────────────── */
.mzx.mzx-inbox-head { padding: 12px 32px 0; font-family: var(--font); color: hsl(var(--foreground)); }
.mzx.mzx-inbox-head .page-head { margin-bottom: 12px; }
@media (max-width: 1023px) { .mzx.mzx-inbox-head { padding: 12px 20px 0; } }
@media (max-width: 639px) { .mzx.mzx-inbox-head { padding: 12px 12px 0; } }
body.mzx-on.mzx-inbox-on #root main[data-mzx-main] > div:not(.mzx) { padding-top: 0 !important; }
body.mzx-on #root [data-mzx-inbox] {
  gap: 12px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  overflow: visible !important; height: calc(100vh - var(--mzx-top) - 12px - 118px) !important; min-height: 420px;
  width: 100% !important; max-width: 100% !important;
}
body.mzx-on #root [data-mzx-inbox] > [data-mzx-pane] {
  background: hsl(var(--rk-card)) !important; border: 1px solid hsl(var(--rk-border) / .7) !important; border-radius: 16px !important;
  box-shadow: 0 1px 2px 0 #0000000d; overflow: hidden !important; min-height: 0;
}
body.mzx-on #root [data-mzx-pane="chat"] > div, body.mzx-on #root [data-mzx-pane="chat"] > div > div { background-color: hsl(var(--rk-card)) !important; background-image: none !important; }
/* conversation list */
body.mzx-on #root [data-mzx-pane="list"] {
  position: relative !important;
}
body.mzx-on #root [data-mzx-pane="list"] .convs,
body.mzx-on #root [data-mzx-pane="list"] [class*="MuiList-root"],
body.mzx-on #root [data-mzx-pane="list"] > div[style*="overflow"] {
  padding-bottom: 72px !important;
}
body.mzx-on #root [data-mzx-pane="list"] #mz-newc-wrap {
  position: absolute !important;
  bottom: 16px !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  z-index: 25 !important;
}
body.mzx-on #root [data-mzx-inbox] > #mz-newc-wrap {
  display: none !important;
}
body.mzx-on #root [data-mzx-pane="list"] #mz-sidebar-channel-bar { background: transparent !important; border-color: hsl(var(--rk-border) / .6) !important; }
body.mzx-on #root [data-mzx-pane="list"] .css-1jolx5d, body.mzx-on #root [data-mzx-pane="list"] .css-1fjqtah {
  margin: 4px 8px; border-radius: 14px; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
body.mzx-on #root [data-mzx-pane="list"] .css-1fjqtah:hover { background: hsl(var(--rk-muted) / .7) !important; }
body.mzx-on #root [data-mzx-pane="list"] .css-1jolx5d { background: hsl(var(--rk-lime) / .14) !important; border-color: hsl(var(--rk-lime) / .55); }
body.mzx-on #root [data-mzx-pane="list"] .MuiChip-root { height: 26px; font-size: 11.5px; }
body.mzx-on #root [data-mzx-pane="list"] .MuiOutlinedInput-root { border-radius: 12px; }
/* contact info pane */
body.mzx-on #root [data-mzx-pane="info"] .css-1xeityw { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
/* reply bar */
body.mzx-on #root [data-mzx-pane="chat"] .MuiInputBase-root:not(.MuiInputBase-adornedStart) { border-radius: 14px; }

/* ── Modern Professional Notifications & Toasts (MUI Snackbar & Alert Overhaul) ─────── */
@keyframes mzToastPop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.MuiSnackbar-root,
.notistack-SnackbarContainer,
body.mzx-on .MuiSnackbar-root,
body.mzx-on .notistack-SnackbarContainer {
  z-index: 1450 !important;
}

.MuiSnackbar-anchorOriginTopCenter,
.MuiSnackbar-anchorOriginTopRight,
.MuiSnackbar-anchorOriginTopLeft,
body.mzx-on .MuiSnackbar-anchorOriginTopCenter,
body.mzx-on .MuiSnackbar-anchorOriginTopRight,
body.mzx-on .MuiSnackbar-anchorOriginTopLeft {
  top: calc(var(--mzx-top, 64px) + 14px) !important;
}

/* Toast Base Pill Container */
.MuiSnackbarContent-root,
.MuiSnackbar-root .MuiAlert-root,
.notistack-MuiContent,
body.mzx-on .MuiSnackbarContent-root,
body.mzx-on .MuiSnackbar-root .MuiAlert-root,
body.mzx-on .notistack-MuiContent {
  border-radius: 9999px !important;
  font-family: var(--font, "Cairo", "Inter", -apple-system, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  padding: 8px 16px 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: min(92vw, 620px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  animation: mzToastPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  border-inline-start: 0 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Scrollbar elimination */
.MuiSnackbarContent-root::-webkit-scrollbar,
.MuiSnackbar-root .MuiAlert-root::-webkit-scrollbar,
.notistack-MuiContent::-webkit-scrollbar,
.MuiAlert-message::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Light Mode Toast */
.MuiSnackbar-root .MuiAlert-root,
.MuiSnackbarContent-root,
body.mzx-on .MuiSnackbar-root .MuiAlert-root,
body.mzx-on .MuiSnackbarContent-root {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

/* Dark Mode Toast */
html[data-mz-mode="dark"] .MuiSnackbar-root .MuiAlert-root,
html[data-mz-mode="dark"] .MuiSnackbarContent-root,
html[data-mz-mode="dark"] body.mzx-on .MuiSnackbar-root .MuiAlert-root,
html[data-mz-mode="dark"] body.mzx-on .MuiSnackbarContent-root {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.65), 0 4px 16px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Status Refinements (Soft Border Tint & Soft Shadow) */
.MuiSnackbar-root .MuiAlert-standardWarning,
.MuiSnackbar-root .MuiAlert-filledWarning,
body.mzx-on .MuiSnackbar-root .MuiAlert-standardWarning,
body.mzx-on .MuiSnackbar-root .MuiAlert-filledWarning {
  border-color: rgba(245, 158, 11, 0.28) !important;
  box-shadow: 0 16px 36px -6px rgba(245, 158, 11, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

.MuiSnackbar-root .MuiAlert-standardError,
.MuiSnackbar-root .MuiAlert-filledError,
body.mzx-on .MuiSnackbar-root .MuiAlert-standardError,
body.mzx-on .MuiSnackbar-root .MuiAlert-filledError {
  border-color: rgba(239, 68, 68, 0.28) !important;
  box-shadow: 0 16px 36px -6px rgba(239, 68, 68, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

.MuiSnackbar-root .MuiAlert-standardSuccess,
.MuiSnackbar-root .MuiAlert-filledSuccess,
body.mzx-on .MuiSnackbar-root .MuiAlert-standardSuccess,
body.mzx-on .MuiSnackbar-root .MuiAlert-filledSuccess {
  border-color: rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

.MuiSnackbar-root .MuiAlert-standardInfo,
.MuiSnackbar-root .MuiAlert-filledInfo,
body.mzx-on .MuiSnackbar-root .MuiAlert-standardInfo,
body.mzx-on .MuiSnackbar-root .MuiAlert-filledInfo {
  border-color: rgba(14, 165, 233, 0.28) !important;
  box-shadow: 0 16px 36px -6px rgba(14, 165, 233, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

/* Alert Icon: Soft Circular Badge */
.MuiAlert-icon,
body.mzx-on .MuiAlert-icon {
  margin: 0 !important;
  padding: 0 !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
}
.MuiAlert-icon svg,
body.mzx-on .MuiAlert-icon svg {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}

/* Status Icon Badges */
.MuiAlert-standardWarning .MuiAlert-icon,
.MuiAlert-filledWarning .MuiAlert-icon,
body.mzx-on .MuiAlert-standardWarning .MuiAlert-icon,
body.mzx-on .MuiAlert-filledWarning .MuiAlert-icon {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
}
.MuiAlert-standardError .MuiAlert-icon,
.MuiAlert-filledError .MuiAlert-icon,
body.mzx-on .MuiAlert-standardError .MuiAlert-icon,
body.mzx-on .MuiAlert-filledError .MuiAlert-icon {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}
.MuiAlert-standardSuccess .MuiAlert-icon,
.MuiAlert-filledSuccess .MuiAlert-icon,
body.mzx-on .MuiAlert-standardSuccess .MuiAlert-icon,
body.mzx-on .MuiAlert-filledSuccess .MuiAlert-icon {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
}
.MuiAlert-standardInfo .MuiAlert-icon,
.MuiAlert-filledInfo .MuiAlert-icon,
body.mzx-on .MuiAlert-standardInfo .MuiAlert-icon,
body.mzx-on .MuiAlert-filledInfo .MuiAlert-icon {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
}

/* Alert Message */
.MuiAlert-message,
body.mzx-on .MuiAlert-message {
  padding: 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  letter-spacing: -0.01em !important;
}
html[data-mz-mode="dark"] .MuiAlert-message,
html[data-mz-mode="dark"] body.mzx-on .MuiAlert-message {
  color: #f1f5f9 !important;
}

/* Alert Action / Buttons inside notification */
.MuiAlert-action,
body.mzx-on .MuiAlert-action {
  padding: 0 !important;
  margin-inline-start: 12px !important;
  margin-inline-end: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
.MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-action .MuiButton-root {
  min-height: 30px !important;
  height: 30px !important;
  border-radius: 9999px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Themed Action Buttons */
.MuiAlert-standardWarning .MuiAlert-action .MuiButton-root,
.MuiAlert-filledWarning .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-standardWarning .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-filledWarning .MuiAlert-action .MuiButton-root {
  background: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}
.MuiAlert-standardWarning .MuiAlert-action .MuiButton-root:hover,
.MuiAlert-filledWarning .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-standardWarning .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-filledWarning .MuiAlert-action .MuiButton-root:hover {
  background: #d97706 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

.MuiAlert-standardError .MuiAlert-action .MuiButton-root,
.MuiAlert-filledError .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-standardError .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-filledError .MuiAlert-action .MuiButton-root {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
}
.MuiAlert-standardError .MuiAlert-action .MuiButton-root:hover,
.MuiAlert-filledError .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-standardError .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-filledError .MuiAlert-action .MuiButton-root:hover {
  background: #dc2626 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
}

.MuiAlert-standardSuccess .MuiAlert-action .MuiButton-root,
.MuiAlert-filledSuccess .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-standardSuccess .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-filledSuccess .MuiAlert-action .MuiButton-root {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}
.MuiAlert-standardSuccess .MuiAlert-action .MuiButton-root:hover,
.MuiAlert-filledSuccess .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-standardSuccess .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-filledSuccess .MuiAlert-action .MuiButton-root:hover {
  background: #059669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45) !important;
}

.MuiAlert-standardInfo .MuiAlert-action .MuiButton-root,
.MuiAlert-filledInfo .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-standardInfo .MuiAlert-action .MuiButton-root,
body.mzx-on .MuiAlert-filledInfo .MuiAlert-action .MuiButton-root {
  background: #0ea5e9 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35) !important;
}
.MuiAlert-standardInfo .MuiAlert-action .MuiButton-root:hover,
.MuiAlert-filledInfo .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-standardInfo .MuiAlert-action .MuiButton-root:hover,
body.mzx-on .MuiAlert-filledInfo .MuiAlert-action .MuiButton-root:hover {
  background: #0284c7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45) !important;
}

.MuiAlert-action .MuiIconButton-root,
body.mzx-on .MuiAlert-action .MuiIconButton-root {
  width: 26px !important;
  height: 26px !important;
  padding: 4px !important;
  color: #64748b !important;
  opacity: 0.7 !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}
.MuiAlert-action .MuiIconButton-root:hover,
body.mzx-on .MuiAlert-action .MuiIconButton-root:hover {
  opacity: 1 !important;
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
html[data-mz-mode="dark"] .MuiAlert-action .MuiIconButton-root:hover,
html[data-mz-mode="dark"] body.mzx-on .MuiAlert-action .MuiIconButton-root:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* In-Page Inline Alerts (not inside snackbar) */
body.mzx-on #root main .MuiAlert-root:not(.MuiSnackbar-root *) {
  border-radius: 14px !important;
  padding: 12px 18px !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
  align-items: center !important;
  border-width: 1px !important;
  border-style: solid !important;
}
body.mzx-on #root main .MuiAlert-standardWarning:not(.MuiSnackbar-root *) {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html[data-mz-mode="dark"] body.mzx-on #root main .MuiAlert-standardWarning:not(.MuiSnackbar-root *) {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fde68a !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
body.mzx-on #root main .MuiAlert-standardError:not(.MuiSnackbar-root *) {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}
html[data-mz-mode="dark"] body.mzx-on #root main .MuiAlert-standardError:not(.MuiSnackbar-root *) {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}
body.mzx-on #root main .MuiAlert-standardSuccess:not(.MuiSnackbar-root *) {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}
html[data-mz-mode="dark"] body.mzx-on #root main .MuiAlert-standardSuccess:not(.MuiSnackbar-root *) {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
body.mzx-on #root main .MuiAlert-standardInfo:not(.MuiSnackbar-root *) {
  background: rgba(14, 165, 233, 0.08) !important;
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.28) !important;
}
html[data-mz-mode="dark"] body.mzx-on #root main .MuiAlert-standardInfo:not(.MuiSnackbar-root *) {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #7dd3fc !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

/* ── Internal React Setup Pages & Form Modernization (wa-meta-manual, channels, api, webhooks) ─ */

/* Full width & natural responsive padding matching daschat */
body.mzx-on #root main > div:not(.mzx) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 32px 64px !important;
  margin: 0 !important;
}
@media (max-width: 1023px) {
  body.mzx-on #root main > div:not(.mzx) {
    padding: 20px 20px 48px !important;
  }
}
@media (max-width: 639px) {
  body.mzx-on #root main > div:not(.mzx) {
    padding: 16px 12px 32px !important;
  }
}

/* Inbox page takes full available space with flush top */
body.mzx-on.mzx-inbox-on #root main > div:not(.mzx) {
  padding: 0 32px 24px !important;
  max-width: 100% !important;
  margin: 0 !important;
}
@media (max-width: 1023px) {
  body.mzx-on.mzx-inbox-on #root main > div:not(.mzx) {
    padding: 0 20px 20px !important;
  }
}
@media (max-width: 639px) {
  body.mzx-on.mzx-inbox-on #root main > div:not(.mzx) {
    padding: 0 12px 16px !important;
  }
}

/* Setup card width constraint only on dedicated single-form setup pages */
body.mzx-on[data-mzx-page="wa-meta-manual"] #root main .MuiPaper-root {
  max-width: 960px;
}

/* Page Header Category Badge */
body.mzx-on #root main [data-mzx-pagehead] {
  margin-bottom: 20px !important;
}
body.mzx-on #root main [data-mzx-pagehead]::before {
  content: attr(data-group);
  display: block;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--rk-muted-fg));
  margin-bottom: 6px;
}

/* Tab Pills Container (Embed Login | Manual Setup) */
body.mzx-on #root main .MuiPaper-root:has(> .MuiButton-root) {
  border-radius: 9999px !important;
  background: hsl(var(--rk-muted) / 0.5) !important;
  border: 1px solid hsl(var(--rk-border) / 0.8) !important;
  padding: 4px !important;
  display: inline-flex !important;
  margin-bottom: 8px !important;
  box-shadow: none !important;
}
body.mzx-on #root main .MuiPaper-root:has(> .MuiButton-root) .MuiButton-root {
  border-radius: 9999px !important;
  min-height: 32px !important;
  height: 32px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding-inline: 16px !important;
}
body.mzx-on #root main .MuiPaper-root:has(> .MuiButton-root) .MuiButton-contained {
  background: hsl(var(--rk-card)) !important;
  color: hsl(var(--rk-fg)) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px hsl(var(--rk-border) / 0.7) !important;
}
body.mzx-on #root main .MuiPaper-root:has(> .MuiButton-root) .MuiButton-text {
  color: hsl(var(--rk-muted-fg)) !important;
}
body.mzx-on #root main .MuiPaper-root:has(> .MuiButton-root) .MuiButton-text:hover {
  color: hsl(var(--rk-fg)) !important;
  background: hsl(var(--rk-muted) / 0.8) !important;
}

/* Prevent giant full-width buttons on setup pages: size them neatly and center them */
body.mzx-on[data-mzx-page="wa-meta-manual"] #root main .MuiButton-fullWidth,
body.mzx-on[data-mzx-page="wa-meta-manual"] #root main button[class*="MuiLoadingButton-fullWidth"] {
  width: auto !important;
  min-width: 240px !important;
  max-width: 360px !important;
  margin-inline: auto !important;
  display: flex !important;
  justify-content: center !important;
}

/* Facebook / Meta Connect Button */
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Facebook"]),
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="1877F2"],
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="rgb(24, 119, 242)"],
body.mzx-on #root main .MuiButton-root:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M24 12"]),
body.mzx-on #root main .MuiButton-root:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M12 2C6.48"]) {
  background: #1877F2 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 28px !important;
  width: auto !important;
  min-width: 260px !important;
  max-width: 340px !important;
  margin: 16px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.32) !important;
  transition: all 0.2s ease !important;
}
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Facebook"]):hover,
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="1877F2"]:hover,
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="rgb(24, 119, 242)"]:hover {
  background: #166fe5 !important;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.42) !important;
  transform: translateY(-1px) !important;
}
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Facebook"]):active,
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="1877F2"]:active,
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="rgb(24, 119, 242)"]:active {
  transform: translateY(0) !important;
}

/* Info and notice cards on setup pages */
body.mzx-on #root main .MuiPaper-root {
  border-radius: 16px !important;
  border: 1px solid hsl(var(--rk-border) / 0.8) !important;
  transition: border-color 0.15s ease !important;
}

/* Clean up input fields in manual setup */
body.mzx-on #root main .MuiTextField-root {
  margin-bottom: 4px !important;
}
body.mzx-on #root main .MuiOutlinedInput-root {
  border-radius: 12px !important;
  background: hsl(var(--rk-card)) !important;
}

/* ── Specific Channel Connect Buttons ─────────────────────────────────────── */

/* Google Sign-in / Gmail */
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M24 5.457"]),
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="EA4335"],
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Google"]) {
  background: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 24px !important;
  width: auto !important;
  min-width: 240px !important;
  max-width: 340px !important;
  margin: 16px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M24 5.457"]):hover,
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Google"]):hover {
  background: #f8fafd !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px) !important;
}
html[data-mz-mode="dark"] body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M24 5.457"]),
html[data-mz-mode="dark"] body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg[data-testid*="Google"]) {
  background: #1f2937 !important;
  color: #f3f4f6 !important;
  border-color: #374151 !important;
}

/* Microsoft Sign-in / Outlook */
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M14.5 12a3.5"]),
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="0078D4"] {
  background: #0078D4 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 24px !important;
  width: auto !important;
  min-width: 240px !important;
  max-width: 340px !important;
  margin: 16px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35) !important;
  transition: all 0.2s ease !important;
}
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M14.5 12a3.5"]):hover {
  background: #006abc !important;
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Telegram Connect Button */
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M12 2zm4.64 6.8"]),
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn)[style*="24A1DE"] {
  background: #24A1DE !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 24px !important;
  width: auto !important;
  min-width: 240px !important;
  max-width: 320px !important;
  margin: 16px auto 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.35) !important;
  transition: all 0.2s ease !important;
}
body.mzx-on #root main button:not(.mzx-chbtn):not(.mz-channel-pill-btn):has(svg path[d*="M12 2zm4.64 6.8"]):hover {
  background: #1d90c7 !important;
  box-shadow: 0 6px 18px rgba(36, 161, 222, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* WhatsApp QR Code Card */
body.mzx-on #root main .MuiPaper-root:has(canvas),
body.mzx-on #root main .MuiPaper-root:has(img[src*="qr"]) {
  border-radius: 20px !important;
  padding: 24px !important;
  text-align: center !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  max-width: 380px !important;
  margin: 0 auto !important;
}

/* Channel Cards & Device Grids */
body.mzx-on #root main .MuiCard-root {
  border-radius: 16px !important;
  border: 1px solid hsl(var(--rk-border) / 0.8) !important;
  transition: all 0.2s ease !important;
}
body.mzx-on #root main .MuiCard-root:hover {
  border-color: hsl(var(--rk-border)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Chatbot Accordions & Auto-Replies */
body.mzx-on #root main .MuiAccordion-root {
  border-radius: 14px !important;
  border: 1px solid hsl(var(--rk-border) / 0.7) !important;
  margin-bottom: 10px !important;
  background: hsl(var(--rk-card)) !important;
}
body.mzx-on #root main .MuiAccordion-root::before {
  display: none !important;
}

/* Webhook & REST API Code Boxes */
body.mzx-on #root main code,
body.mzx-on #root main pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
}

/* inbox list: one empty state per case (search/filter, channel not connected, nothing yet) */
.mzx .mzx-empty-ch{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; max-width: 280px; padding: 36px 16px; }
.mzx .mzx-empty-ch .mzx-empty-art{ width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 8px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-empty-ch .mzx-empty-art svg{ width: 30px; height: 30px; }
.mzx .mzx-empty-ch.is-off .mzx-empty-art{ filter: grayscale(.35); opacity: .9; }
.mzx .mzx-empty-ch b{ font-size: 14.5px; margin: 0; line-height: 1.5; }
.mzx .mzx-empty-ch p{ font-size: 12.5px; line-height: 1.7; margin: 0; }

/* ── Agent panel (/agent): the design's pages sit beside the shell (the classic agent screen is hidden) ── */
body.mzx-agent #mzxAgentMain {
  padding-inline-start: var(--mzx-sbw); padding-top: calc(var(--mzx-top) + 12px);
  min-height: 100vh; box-sizing: border-box; transition: padding .3s ease-out;
}
body.mzx-agent[data-mzx-page="inbox"] #mzxAgentMain {
  height: 100vh; max-height: 100vh; padding-top: var(--mzx-top, 64px); overflow: hidden; display: flex; flex-direction: column;
}
.mzx .mzx-kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .mzx .mzx-kpis3 { grid-template-columns: 1fr; } }
.mzx .mzx-task-tabs { margin-bottom: 14px; }
.mzx .mzx-task-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mzx .mzx-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mzx .mzx-task { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 16px; background: hsl(var(--card)); transition: border-color .2s, box-shadow .2s; }
.mzx .mzx-task:hover { border-color: hsl(var(--lime) / .6); box-shadow: 0 10px 28px -20px rgb(7 32 50 / .45); }
.mzx .mzx-task-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-task.is-done .mzx-task-ic { background: hsl(142 70% 45% / .14); color: hsl(142 64% 34%); }
.mzx .mzx-task-ic svg { width: 19px; height: 19px; }
.mzx .mzx-task-b { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mzx .mzx-task-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mzx .mzx-task-top b { font-size: 14.5px; }
.mzx .mzx-task-b p { margin: 0; font-size: 13px; line-height: 1.7; color: hsl(var(--muted-foreground)); white-space: pre-line; }
.mzx .mzx-task-b .mzx-task-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.mzx .mzx-task-note svg { flex: none; width: 15px; height: 15px; margin-top: 4px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-task.is-done .mzx-task-top b { color: hsl(var(--muted-foreground)); }
.mzx .mzx-task > .btn { flex: none; align-self: center; }
@media (max-width: 640px) { .mzx .mzx-task { flex-wrap: wrap; } .mzx .mzx-task > .btn { width: 100%; justify-content: center; } }

/* inbox channel bar: every channel fits on one line (no scroll); the buttons share the width and shrink, up to 32px */
.mzx .mzx-chbar { overflow: visible !important; gap: 4px !important; padding: 6px 1px 4px !important; }
.mzx .mzx-chbar .mzx-chbtn {
  flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; max-width: 32px !important;
  height: auto !important; min-height: 0 !important; max-height: 32px !important; aspect-ratio: 1 / 1;
  border-radius: 8px !important;
}
.mzx .mzx-chbar .mzx-chbtn svg, .mzx .mzx-chbar .mzx-chbtn img { width: 52% !important; height: 52% !important; max-width: 16px !important; max-height: 16px !important; }

/* inbox: the generic "#root main > div" page padding (20px 32px 64px) also hit the inbox's own <main><div class="wrap">,
   leaving a 64px empty band under the three columns; the inbox fills the screen down to its 14px bottom padding */
body.mzx-on[data-mzx-page="inbox"] #root .mzx-inbox-main > .wrap { padding-bottom: 0 !important; }

/* AI employee "Reset & re-initialize" confirmation */
.mzx .mzx-reset { display: grid; gap: 12px; }
.mzx .mzx-reset-warn { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: hsl(38 92% 50% / .12); color: hsl(28 80% 30%); font-size: 12.5px; line-height: 1.6; }
.mzx .mzx-reset-warn svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.mzx .mzx-reset-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mzx .mzx-reset-col { border-radius: 14px; padding: 12px 13px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.mzx .mzx-reset-col.is-reset { border-color: hsl(0 84% 60% / .25); background: hsl(0 84% 60% / .05); }
.mzx .mzx-reset-col.is-keep { border-color: hsl(var(--lime) / .45); background: hsl(var(--lime) / .08); }
.mzx .mzx-reset-col p { margin: 0 0 8px; font-size: 12px; font-weight: 800; }
.mzx .mzx-reset-col.is-reset p { color: hsl(0 72% 45%); }
.mzx .mzx-reset-col.is-keep p { color: hsl(84 80% 26%); }
.mzx .mzx-reset-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mzx .mzx-reset-col li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: hsl(var(--foreground)); }
.mzx .mzx-reset-col li svg { flex: none; width: 14px; height: 14px; }
.mzx .mzx-reset-col.is-reset li svg { color: hsl(0 72% 50%); }
.mzx .mzx-reset-col.is-keep li svg { color: hsl(84 80% 32%); }
@media (max-width: 560px) { .mzx .mzx-reset-cols { grid-template-columns: 1fr; } }

/* API keys and connection secrets: a text field drawn as dots (see the "secret" field in mz-ui.js) */
.mzx input.mzx-secret { -webkit-text-security: disc; text-security: disc; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }
.mzx input.mzx-secret::placeholder { font-family: inherit; letter-spacing: normal; -webkit-text-security: none; }

/* AI employee card: the provider rejects the saved key (every reply fails until a valid one is pasted) */
.mzx .mzx-keyalert { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 2px; padding: 12px; border-radius: 14px; border: 1px solid hsl(0 84% 60% / .3); background: hsl(0 84% 60% / .07); }
.mzx .mzx-keyalert > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: hsl(0 72% 50%); }
.mzx .mzx-keyalert b { display: block; font-size: 13px; color: hsl(0 72% 42%); }
.mzx .mzx-keyalert span { display: block; margin: 3px 0 9px; font-size: 12px; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* ---------- Website chat (Channels → Website chat) ---------- */
.mzx .wc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mzx .wc-pick { height: 38px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 12px; font-size: 13px; max-width: 220px; }
.mzx .wc-loading { display: grid; gap: 12px; }
.mzx .wc-loading .skel { display: block; height: 14px; border-radius: 7px; background: hsl(var(--muted)); }
.mzx .wc-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.mzx .wc-stat { display: flex; align-items: center; gap: 12px; padding: 14px; }
.mzx .wc-stat > div { flex: 1; min-width: 0; }
.mzx .wc-stat small { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .wc-stat b { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mzx .wc-stat em { display: block; font-style: normal; font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mzx .wc-stat em a { color: hsl(var(--foreground)); text-decoration: underline; }
.mzx .wc-stat-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--lime) / .16); color: hsl(var(--navy)); }
.mzx.mz-dark .wc-stat-ic { color: hsl(var(--lime)); }
.mzx .wc-stat-ic svg { width: 18px; height: 18px; }
.mzx .wc-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.mzx .wc-form { padding: 16px; }
.mzx .wc-tabs { margin-bottom: 6px; }
.mzx .wc-pane { display: flex; flex-direction: column; }
.mzx .wc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .wc-pane > .wc-row:first-child { border-top: 0; }
.mzx .wc-row-l { min-width: 0; flex: 1; }
.mzx .wc-row-l b { display: block; font-size: 13px; font-weight: 600; }
.mzx .wc-row-l small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.mzx .wc-row-c { flex: none; display: flex; justify-content: flex-end; max-width: 62%; }
.mzx .wc-row-c .seg { width: auto; min-width: 240px; flex-wrap: nowrap; }
.mzx .wc-row-c .seg button { white-space: nowrap; flex: 1 1 auto; padding-inline: 12px; }
.mzx .wc-row-c select { height: 34px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 10px; font-size: 12.5px; }
.mzx .wc-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.mzx .wc-sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #0000001a; transition: transform .15s; }
.mzx .wc-sw:hover { transform: scale(1.1); }
.mzx .wc-sw.on { box-shadow: 0 0 0 2px hsl(var(--card)), 0 0 0 4px hsl(var(--foreground)); }
.mzx .wc-custom { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed hsl(var(--border)); cursor: pointer; color: hsl(var(--muted-foreground)); }
.mzx .wc-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mzx .wc-custom svg { width: 13px; height: 13px; }
.mzx .wc-hex { width: 84px; height: 30px; border-radius: 9px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 8px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.mzx .wc-range { display: flex; align-items: center; gap: 10px; }
.mzx .wc-range input { width: 170px; accent-color: hsl(var(--navy)); }
.mzx.mz-dark .wc-range input { accent-color: hsl(var(--lime)); }
.mzx .wc-range output { min-width: 44px; font-size: 12px; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.mzx .wc-logo { display: flex; align-items: center; gap: 8px; }
.mzx .wc-logo img, .mzx .wc-logo-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid hsl(var(--border)); display: grid; place-items: center; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); }
.mzx .wc-logo-ph svg { width: 16px; height: 16px; }
.mzx .wc-logo label.btn { cursor: pointer; }
.mzx .wc-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: hsl(var(--muted)); font-size: 12px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.mzx .wc-note svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.mzx .wc-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mzx .wc-langs button, .mzx .wc-chips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font-size: 12.5px; font-weight: 500; color: hsl(var(--foreground)); }
.mzx .wc-langs button.on, .mzx .wc-chips button.on { background: hsl(var(--navy)); border-color: hsl(var(--navy)); color: #fff; }
.mzx.mz-dark .wc-langs button.on, .mzx.mz-dark .wc-chips button.on { background: hsl(var(--lime)); border-color: hsl(var(--lime)); color: hsl(203 76% 11%); }
.mzx .wc-langs .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--lime)); }
.mzx .wc-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mzx .wc-chips svg { width: 13px; height: 13px; }
.mzx .wc-fields { display: grid; gap: 14px; }
.mzx .wc-fields .field small { display: block; margin-top: 4px; font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .wc-clear { align-self: flex-start; margin-top: 12px; }
.mzx .wc-step { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .wc-pane > .wc-step:first-child { border-top: 0; }
.mzx .wc-step > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--lime)); color: hsl(203 76% 11%); font-size: 12px; font-weight: 700; }
.mzx .wc-step > div { flex: 1; min-width: 0; }
.mzx .wc-step b { display: block; font-size: 13px; font-weight: 600; }
.mzx .wc-step small { display: block; margin: 2px 0 10px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .wc-step textarea { width: 100%; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding: 10px 12px; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.mzx .wc-warn { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: hsl(32 90% 38%); }
.mzx .wc-warn svg { width: 14px; height: 14px; flex: none; }
.mzx .wc-code { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: hsl(203 76% 11%); }
.mzx .wc-code code { flex: 1; min-width: 0; background: none; padding: 0; border-radius: 0; color: #d9f99d; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; text-align: left; }
.mzx .wc-tips { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mzx .wc-tips li { padding: 10px 12px; border-radius: 12px; background: hsl(var(--muted)); font-size: 12px; line-height: 1.6; }
.mzx .wc-tips b { display: inline; font-size: 12px; margin-inline-end: 6px; }
.mzx .wc-tips span { color: hsl(var(--muted-foreground)); }
.mzx .wc-adv { margin: 4px 0 0; padding: 12px 0; border-top: 1px solid hsl(var(--border) / .6); font-size: 12.5px; }
.mzx .wc-adv summary { cursor: pointer; font-weight: 600; }
.mzx .wc-adv ul { margin: 10px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; color: hsl(var(--muted-foreground)); }
.mzx .wc-adv code { padding: 1px 6px; border-radius: 6px; background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: 11.5px; direction: ltr; unicode-bidi: isolate; }
.mzx .wc-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid hsl(0 84% 60% / .25); background: hsl(0 84% 60% / .05); }
.mzx .wc-danger b { display: block; font-size: 13px; }
.mzx .wc-danger small { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .wc-del { color: hsl(0 72% 45%); border-color: hsl(0 84% 60% / .35); }
.mzx .wc-pv { padding: 0; overflow: hidden; }
.mzx .wc-pv-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border) / .6); }
.mzx .wc-pv-h b { display: block; font-size: 13px; }
.mzx .wc-pv-h small { display: block; font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .wc-pv-h select { height: 32px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 8px; font-size: 12px; }
.mzx .wc-pv-box { height: 640px; background: #f3f5f0; }
.mzx .wc-pv-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.mzx .wc-empty { max-width: 640px; margin: 8px auto; padding: 32px 28px; text-align: center; }
.mzx .wc-empty-art { display: grid; place-items: center; margin-bottom: 14px; }
.mzx .wc-empty-art svg { border-radius: 18px; box-shadow: 0 16px 40px -16px hsl(var(--navy) / .6); }
.mzx .wc-empty h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.mzx .wc-empty p { margin: 0 auto 16px; max-width: 460px; font-size: 13.5px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.mzx .wc-empty ul { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; gap: 8px; width: fit-content; max-width: 100%; text-align: start; }
.mzx .wc-empty li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mzx .wc-empty li svg { flex: none; width: 16px; height: 16px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: hsl(var(--lime) / .18); }
@media (max-width: 640px) {
  .mzx .wc-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .mzx .wc-row-c { max-width: none; justify-content: flex-start; }
  .mzx .wc-row-c .seg { min-width: 0; width: 100%; }
  .mzx .wc-swatches, .mzx .wc-chips { justify-content: flex-start; }
  .mzx .wc-range input { flex: 1; width: auto; }
  .mzx .wc-range { width: 100%; }
  .mzx .wc-pv-box { height: 560px; }
}
@media (min-width: 1024px) { .mzx .wc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .mzx .wc-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .mzx .wc-side { position: sticky; top: calc(var(--mzx-top, 64px) + 16px); }
}

/* ---------- Admin → Platform account ---------- */
.mzx .pa-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.mzx .pa-site-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mzx .pa-site-h > div { flex: 1; min-width: 0; }
.mzx .pa-site-h b { display: block; font-size: 14px; }
.mzx .pa-site-h small { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.mzx .pa-pip { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: hsl(var(--lime) / .14); }
.mzx .pa-kv select { height: 30px; border-radius: 9px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 8px; font-size: 12px; max-width: 60%; }
.mzx .pa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mzx .pa-note { display: block; margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.mzx .pa-site { border-color: hsl(var(--lime) / .45); }
@media (min-width: 1024px) {
  .mzx .pa-grid { grid-template-columns: 1.2fr 1fr; }
  .mzx .pa-grid > .pa-site { grid-row: span 2; }
}

/* Pip (the support chat's robot) inside the dashboards: not over the inbox's reply box */
body[data-mzx-page="inbox"] .mz-pip { display: none !important; }

/* ---------- Notifications: the bell, the side panel and the pop-up ---------- */
.mzx .mzx-notif { position: relative; }
.mzx .mzx-notif .nbadge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px hsl(var(--card)); pointer-events: none; }
.mzx .mzx-notif .nbadge[hidden] { display: none; }
.mzx.ntf-wrap { position: fixed; inset: 0; z-index: 1300; pointer-events: none; background: transparent; }
.mzx.ntf-wrap.show { pointer-events: auto; }
.mzx .ntf-backdrop { position: absolute; inset: 0; background: rgba(7, 32, 50, .32); opacity: 0; transition: opacity .2s; }
.mzx.ntf-wrap.show .ntf-backdrop { opacity: 1; }
.mzx .ntf { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: -20px 0 50px -20px rgba(7, 32, 50, .45); transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.mzx.ntf-wrap[dir="rtl"] .ntf { transform: translateX(-100%); box-shadow: 20px 0 50px -20px rgba(7, 32, 50, .45); }
.mzx.ntf-wrap.show .ntf { transform: none; }
.mzx .ntf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; }
.mzx .ntf-h > div:first-child { display: flex; align-items: center; gap: 8px; }
.mzx .ntf-h b { font-size: 17px; font-weight: 700; }
.mzx .ntf-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: hsl(var(--lime)); color: hsl(203 76% 11%); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.mzx .ntf-h-act { display: flex; gap: 4px; }
.mzx .ntf-ib { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: hsl(var(--muted-foreground)); }
.mzx .ntf-ib:hover, .mzx .ntf-ib.on { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.mzx .ntf-ib svg { width: 17px; height: 17px; }
.mzx .ntf-tabs { display: flex; gap: 4px; margin: 0 18px; padding: 3px; border-radius: 12px; background: hsl(var(--muted)); }
.mzx .ntf-tabs button { flex: 1; height: 32px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.mzx .ntf-tabs button.on { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 3px rgba(7, 32, 50, .12); }
.mzx .ntf-cats { display: flex; gap: 6px; padding: 12px 18px 4px; overflow-x: auto; scrollbar-width: none; }
.mzx .ntf-cats::-webkit-scrollbar { display: none; }
.mzx .ntf-cats button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid hsl(var(--border)); font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.mzx .ntf-cats button svg { width: 13px; height: 13px; }
.mzx .ntf-cats button.on { background: hsl(var(--navy)); border-color: hsl(var(--navy)); color: #fff; }
.mzx.mz-dark .ntf-cats button.on { background: hsl(var(--lime)); border-color: hsl(var(--lime)); color: hsl(203 76% 11%); }
.mzx .ntf-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 18px; }
.mzx .ntf-day { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.mzx .ntf-item { position: relative; display: flex; gap: 12px; padding: 12px 34px 12px 10px; padding-inline: 10px 34px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.mzx .ntf-item:hover { background: hsl(var(--muted)); }
.mzx .ntf-item.unread { background: hsl(var(--lime) / .1); }
.mzx .ntf-item.unread::after { content: ""; position: absolute; top: 18px; inset-inline-end: 14px; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--lime)); box-shadow: 0 0 0 3px hsl(var(--lime) / .25); }
.mzx .ntf-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.mzx .ntf-ic svg { width: 18px; height: 18px; }
.mzx .ntf-ic.t-lime { background: hsl(var(--lime) / .18); color: hsl(83 80% 26%); }
.mzx .ntf-ic.t-amber { background: hsl(38 92% 50% / .15); color: hsl(32 90% 38%); }
.mzx .ntf-ic.t-red { background: hsl(0 84% 60% / .12); color: hsl(0 72% 46%); }
.mzx .ntf-ic.t-navy { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.mzx.mz-dark .ntf-ic.t-lime { color: hsl(var(--lime)); }
.mzx .ntf-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mzx .ntf-tx b { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.mzx .ntf-item.unread .ntf-tx b { font-weight: 700; }
.mzx .ntf-tx small { font-size: 12.5px; line-height: 1.5; color: hsl(var(--muted-foreground)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mzx .ntf-tx em { font-style: normal; font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.mzx .ntf-del { position: absolute; bottom: 10px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: hsl(var(--muted-foreground)); opacity: 0; transition: opacity .15s; }
.mzx .ntf-item:hover .ntf-del, .mzx .ntf-item:focus-within .ntf-del { opacity: 1; }
.mzx .ntf-del:hover { background: hsl(0 84% 60% / .12); color: hsl(0 72% 46%); }
.mzx .ntf-del svg { width: 14px; height: 14px; }
.mzx .ntf-more { display: block; margin: 10px auto 0; height: 34px; padding: 0 16px; border-radius: 10px; border: 1px solid hsl(var(--border)); font-size: 12.5px; font-weight: 600; }
.mzx .ntf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 60px 24px; }
.mzx .ntf-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: hsl(var(--lime) / .16); color: hsl(83 80% 30%); margin-bottom: 6px; }
.mzx.mz-dark .ntf-empty-ic { color: hsl(var(--lime)); }
.mzx .ntf-empty b { font-size: 15px; }
.mzx .ntf-empty small { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.mzx .ntf-skel { display: grid; gap: 12px; padding: 16px 10px; }
.mzx .ntf-skel span { height: 54px; border-radius: 14px; background: hsl(var(--muted)); }
.mzx .ntf-prefs { padding: 0 18px 18px; overflow-y: auto; }
.mzx .ntf-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
.mzx .ntf-back svg { width: 15px; height: 15px; }
.mzx .ntf-pt { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.mzx .ntf-ps { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin: 0 0 14px; }
.mzx .ntf-pref { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .ntf-pref b { flex: 1; font-size: 13.5px; font-weight: 600; }
.mzx .ntf-pop { position: fixed; top: 76px; inset-inline-end: 20px; z-index: 1250; width: min(360px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: hsl(var(--card)); color: hsl(var(--foreground)); text-align: start; box-shadow: 0 20px 50px -18px rgba(7, 32, 50, .5), 0 0 0 1px hsl(var(--border) / .7); opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s; cursor: pointer; }
.mzx .ntf-pop.show { opacity: 1; transform: none; }
.mzx .ntf-pop-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mzx .ntf-pop-tx b { font-size: 13.5px; }
.mzx .ntf-pop-tx small { font-size: 12.5px; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mzx .ntf, .mzx .ntf-backdrop, .mzx .ntf-pop { transition: none; } }

/* ---------- Payments (Admin → Payments) and Billing (subscriber) ---------- */
.mzx .bl-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.mzx .bl-kpi { display: flex; flex-direction: column; gap: 3px; padding: 16px; position: relative; min-width: 0; }
.mzx .bl-kpi small { font-size: 11.5px; color: hsl(var(--muted-foreground)); padding-inline-end: 44px; }
.mzx .bl-kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mzx .bl-kpi em { font-style: normal; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .bl-kpi em .up { color: hsl(142 70% 35%); font-weight: 700; } .mzx .bl-kpi em .down { color: hsl(0 72% 48%); font-weight: 700; }
.mzx .bl-kpi .skel { display: block; height: 12px; border-radius: 6px; background: hsl(var(--muted)); margin: 4px 0; }
.mzx .bl-kic { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.mzx .bl-kic.lime { background: hsl(var(--lime) / .18); color: hsl(83 80% 26%); } .mzx .bl-kic.amber { background: hsl(38 92% 50% / .15); color: hsl(32 90% 38%); }
.mzx.mz-dark .bl-kic.lime { color: hsl(var(--lime)); }
.mzx .bl-kic svg { width: 17px; height: 17px; }
.mzx .bl-two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; align-items: start; }
.mzx .bl-chart { height: 220px; position: relative; }
.mzx .bl-gw { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid hsl(var(--border) / .6); font-size: 13px; }
.mzx .bl-gw:first-of-type { border-top: 0; }
.mzx .bl-gw i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: hsl(var(--muted)); position: relative; overflow: hidden; }
.mzx .bl-gw i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: hsl(var(--lime)); border-radius: inherit; }
.mzx .bl-tablecard { padding: 0; overflow: hidden; margin-bottom: 12px; }
.mzx .bl-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-bottom: 1px solid hsl(var(--border) / .6); }
.mzx .bl-filters select, .mzx .bl-filters input[type=date] { height: 36px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); padding-inline: 10px; font-size: 12.5px; }
.mzx .bl-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 36px; padding-inline: 12px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.mzx .bl-search svg { width: 15px; height: 15px; color: hsl(var(--muted-foreground)); flex: none; }
.mzx .bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: hsl(var(--foreground)); font-size: 13px; }
.mzx .bl-table-wrap { overflow-x: auto; }
.mzx .bl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mzx .bl-table th { text-align: start; padding: 10px 14px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / .5); white-space: nowrap; }
.mzx .bl-table td { padding: 12px 14px; border-top: 1px solid hsl(var(--border) / .6); vertical-align: middle; }
.mzx .bl-table td small { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .bl-table tr[data-a="open"] { cursor: pointer; } .mzx .bl-table tr[data-a="open"]:hover td { background: hsl(var(--muted) / .45); }
.mzx .bl-table .num { text-align: end; white-space: nowrap; }
.mzx .bl-ref { color: hsl(0 72% 48%) !important; }
.mzx .ltr { direction: ltr; unicode-bidi: isolate; }
.mzx .bl-rowact { white-space: nowrap; text-align: end; } .mzx .bl-rowact .ibtn { display: inline-grid; vertical-align: middle; } .mzx .bl-rowact .ibtn + .ibtn { margin-inline-start: 4px; }
.mzx .bl-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mzx .bl-paid { background: hsl(142 70% 40% / .14); color: hsl(142 72% 28%); } .mzx .bl-pending { background: hsl(38 92% 50% / .16); color: hsl(30 85% 35%); }
.mzx .bl-refunded { background: hsl(0 84% 60% / .12); color: hsl(0 72% 42%); } .mzx .bl-partial { background: hsl(25 95% 53% / .14); color: hsl(22 85% 38%); }
.mzx .bl-cancelled { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); } .mzx .bl-failed { background: hsl(0 84% 60% / .12); color: hsl(0 72% 42%); }
.mzx.mz-dark .bl-paid { color: hsl(142 70% 60%); } .mzx.mz-dark .bl-pending { color: hsl(38 92% 62%); } .mzx.mz-dark .bl-refunded, .mzx.mz-dark .bl-failed { color: hsl(0 84% 70%); }
.mzx .bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid hsl(var(--border) / .6); font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.mzx .bl-pager > div { display: flex; align-items: center; gap: 8px; }
.mzx .bl-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; }
.mzx .bl-empty > svg { width: 30px; height: 30px; color: hsl(var(--muted-foreground)); } .mzx .bl-empty small { color: hsl(var(--muted-foreground)); font-size: 12.5px; margin-bottom: 6px; }
.mzx .bl-skel { display: grid; gap: 10px; padding: 16px; } .mzx .bl-skel span { height: 40px; border-radius: 10px; background: hsl(var(--muted)); }
.mzx .bl-cardh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.mzx .card.pad .bl-cardh { padding: 0 0 12px; }
.mzx .bl-cardh b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; } .mzx .bl-cardh b svg { width: 16px; height: 16px; }
.mzx .bl-cardrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .bl-cardrow > div { flex: 1; min-width: 0; } .mzx .bl-cardrow b { display: block; font-size: 14px; } .mzx .bl-cardrow small { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .bl-brand { flex: none; width: 46px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: hsl(203 76% 11%); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.mzx .bl-small { font-size: 12px; } .mzx .bl-secure { display: flex; align-items: center; gap: 6px; margin-top: 12px; } .mzx .bl-secure svg { width: 13px; height: 13px; flex: none; }
.mzx .bl-panel { width: min(480px, 100%); }
.mzx .bl-pad { padding: 0 18px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.mzx .bl-amount { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; } .mzx .bl-amount b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.mzx .bl-refline { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin: 0 0 8px; }
.mzx .bl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.mzx .btn.bl-warn { color: hsl(0 72% 45%); border-color: hsl(0 84% 60% / .35); }
.mzx .bl-sec { margin: 20px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.mzx .bl-kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid hsl(var(--border) / .5); font-size: 13px; }
.mzx .bl-kv span { color: hsl(var(--muted-foreground)); flex: none; } .mzx .bl-kv b { font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.mzx .bl-kv a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mzx .bl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: hsl(0 72% 45%); } .mzx .bl-link svg { width: 14px; height: 14px; }
.mzx .bl-tl { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid hsl(var(--border)); }
.mzx .bl-tl li { position: relative; padding: 0 0 12px 14px; padding-inline: 14px 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mzx .bl-tl li::before { content: ""; position: absolute; top: 5px; inset-inline-start: -6px; width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--lime)); box-shadow: 0 0 0 3px hsl(var(--card)); }
.mzx .bl-tl span { color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; } .mzx .bl-tl small { font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .bl-other { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; width: 100%; padding: 9px 0; border-bottom: 1px solid hsl(var(--border) / .5); font-size: 12.5px; text-align: start; }
@media (min-width: 900px) { .mzx .bl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mzx .bl-kpis.bl-kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mzx .bl-two { grid-template-columns: 1.6fr 1fr; } }
@media (max-width: 640px) { .mzx .bl-kpis { grid-template-columns: minmax(0, 1fr); } .mzx .bl-filters > * { flex: 1 1 45%; } }

/* ---------- AI credit: sidebar box, employee card usage, key guide ---------- */
/* sidebar: under the plan */
.mzx .sb-ai { display: block; margin-top: 8px; border-radius: 12px; background: rgb(255 255 255 / .06); padding: 11px 12px; color: inherit; text-decoration: none; transition: background .15s; }
.mzx .sb-ai:hover { background: rgb(255 255 255 / .1); }
.mzx .sb-ai-title { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: #fff; }
.mzx .sb-ai-title svg { width: 14px; height: 14px; color: hsl(var(--lime)); flex-shrink: 0; }
.mzx .sb-ai-title span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .sb-ai p { margin-top: 4px; font-size: 10.5px; line-height: 1.6; color: rgb(255 255 255 / .55); }
.mzx .sb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #94a3b8; box-shadow: 0 0 0 3px rgb(148 163 184 / .2); }
.mzx .sb-dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .22); }
.mzx .sb-dot.amber { background: #f59e0b; box-shadow: 0 0 0 3px rgb(245 158 11 / .22); }
.mzx .sb-dot.red { background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / .25); animation: aiPulse 1.6s infinite; }
.mzx .sb-ai-bar.green > i { background: #22c55e; }
.mzx .sb-ai-bar.amber > i { background: #f59e0b; }
.mzx .sb-ai-bar.red > i { background: #ef4444; }
.mzx .sidebar.collapsed .sb-ai { display: none; }
@keyframes aiPulse { 50% { box-shadow: 0 0 0 6px rgb(239 68 68 / 0); } }

/* AI employee card */
.mzx .ai-use { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid hsl(var(--border) / .8); background: hsl(var(--muted) / .35); }
.mzx .ai-use.red { border-color: #fecaca; background: #fef2f2; }
.mzx.mz-dark .ai-use.red { border-color: rgb(239 68 68 / .4); background: rgb(239 68 68 / .1); }
.mzx .ai-use-h { display: flex; align-items: center; gap: 8px; }
.mzx .ai-use-h .ibtn { margin-inline-start: auto; width: 28px; height: 28px; }
.mzx .ai-use-h small { font-size: 11px; }
.mzx .ai-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.mzx .ai-chip svg { width: 13px; height: 13px; }
.mzx .ai-chip.green { background: #dcfce7; color: #15803d; }
.mzx .ai-chip.amber { background: #fef3c7; color: #b45309; }
.mzx .ai-chip.red { background: #fee2e2; color: #b91c1c; }
.mzx .ai-chip.gray { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .ai-use-nums { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mzx .ai-use-nums b { font-size: 20px; font-weight: 800; line-height: 1; }
.mzx .ai-use-nums b.green { color: #15803d; }
.mzx .ai-use-nums b.amber { color: #b45309; }
.mzx .ai-use-nums b.red { color: #b91c1c; }
.mzx .ai-use-nums span { font-size: 12px; color: hsl(var(--muted-foreground)); }
.mzx .ai-use-nums em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; }
.mzx .ai-bar { margin-top: 8px; height: 8px; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; }
.mzx .ai-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .4s; }
.mzx .ai-bar.green > i { background: linear-gradient(90deg, #22c55e, #84cc16); }
.mzx .ai-bar.amber > i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.mzx .ai-bar.red > i { background: linear-gradient(90deg, #ef4444, #dc2626); }
.mzx .ai-bar.gray > i { background: hsl(var(--muted-foreground)); }
.mzx .ai-use-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.mzx .ai-use-note.strong { color: #991b1b; font-weight: 600; }
.mzx.mz-dark .ai-use-note.strong { color: #fca5a5; }
.mzx .ai-use-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mzx .ai-use.none .btn { margin-top: 10px; }

/* employee form: "Don't have a key yet?" */
.mzx .aikg-callout { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f4fbe3; border: 1px solid #dcefa8; }
.mzx.mz-dark .aikg-callout { background: rgb(172 230 1 / .08); border-color: rgb(172 230 1 / .3); }
.mzx .aikg-callout > div { flex: 1; min-width: 0; }
.mzx .aikg-callout b { display: block; font-size: 13px; }
.mzx .aikg-callout small { display: block; font-size: 11.5px; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.mzx .aikg-callout-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: hsl(var(--lime)); color: #072032; flex-shrink: 0; }
.mzx .aikg-callout-ico svg { width: 18px; height: 18px; }

/* the guide window (same look as the WhatsApp "How to?" window) */
.mzx .aikg-bg { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; background: rgb(7 32 50 / .45); backdrop-filter: blur(3px); animation: aikgIn .18s ease-out; }
.mzx .aikg { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 30px 80px -30px rgb(7 32 50 / .6); }
.mzx .aikg-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid hsl(var(--border) / .7); }
.mzx .aikg-h b { font-size: 15px; font-weight: 700; flex: 1; }
.mzx .aikg-q { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid hsl(var(--border)); }
.mzx .aikg-q svg { width: 16px; height: 16px; }
.mzx .aikg-time { font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); border-radius: 999px; padding: 3px 9px; }
.mzx .aikg-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #e8f7c4; color: #072032; border: 0; cursor: pointer; }
.mzx .aikg-x svg { width: 16px; height: 16px; }
.mzx .aikg-stage { padding: 22px 22px 0; background: linear-gradient(180deg, #e8f1f0, #f3f8f2); }
.mzx.mz-dark .aikg-stage { background: linear-gradient(180deg, rgb(255 255 255 / .04), rgb(255 255 255 / .02)); }
.mzx .aikg-browser { max-width: 400px; margin: 0 auto; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 -2px 0 #0b1f2e inset, 0 18px 40px -18px rgb(7 32 50 / .45); border: 6px solid #0b1f2e; border-bottom: 0; overflow: hidden; color: #0f172a; }
.mzx .aikg-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.mzx .aikg-bar > i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mzx .aikg-bar > i:nth-child(1) { background: #f87171; } .mzx .aikg-bar > i:nth-child(2) { background: #fbbf24; } .mzx .aikg-bar > i:nth-child(3) { background: #34d399; }
.mzx .aikg-bar span { margin-inline-start: 8px; flex: 1; font: 10.5px/1.6 Menlo, Consolas, monospace; color: #475569; background: #fff; border-radius: 6px; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .aikg-screen { height: 190px; padding: 18px; display: grid; place-items: center; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; text-align: left; }
.mzx .aikg-form, .mzx .aikg-dialog { width: 230px; display: grid; gap: 8px; }
.mzx .aikg-form b, .mzx .aikg-dialog b, .mzx .aikg-page b { font-size: 14px; font-weight: 700; }
.mzx .aikg-dialog { width: 290px; padding: 14px; border-radius: 12px; box-shadow: 0 12px 30px -12px rgb(15 23 42 / .35); border: 1px solid #e2e8f0; }
.mzx .aikg-dialog small { font-size: 10.5px; color: #64748b; line-height: 1.5; }
.mzx .aikg-in { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid #cbd5e1; font-size: 11px; color: #94a3b8; }
.mzx .aikg-g i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.mzx .aikg-or { font-size: 9.5px; color: #94a3b8; text-align: center; }
.mzx .aikg-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 7px; background: #0f172a; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mzx .aikg-hl { position: relative; box-shadow: 0 0 0 3px hsl(var(--lime)); animation: aikgPulse 1.5s ease-in-out infinite; }
.mzx .aikg-page { width: 100%; height: 100%; display: grid; align-content: start; gap: 10px; }
.mzx .aikg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mzx .aikg-card { display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0; }
.mzx .aikg-card small { font-size: 10px; color: #64748b; }
.mzx .aikg-card strong { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.mzx .aikg-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #334155; }
.mzx .aikg-toggle { width: 26px; height: 15px; border-radius: 999px; background: #cbd5e1; position: relative; }
.mzx .aikg-toggle.on { background: #10a37f; }
.mzx .aikg-toggle.on::after { content: ""; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.mzx .aikg-tbl { display: grid; gap: 8px; }
.mzx .aikg-tbl i { height: 22px; border-radius: 6px; background: linear-gradient(90deg, #f1f5f9, #f8fafc); }
.mzx .aikg-key { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 9px; border-radius: 8px; border: 1px solid #cbd5e1; font: 10.5px/1.4 Menlo, Consolas, monospace; color: #0f172a; }
.mzx .aikg-key span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .aikg-body { padding: 18px 22px 6px; }
.mzx .aikg-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mzx .aikg-dots i { width: 22px; height: 5px; border-radius: 999px; background: hsl(var(--border)); }
.mzx .aikg-dots i.done { background: hsl(var(--lime) / .55); }
.mzx .aikg-dots i.on { width: 34px; background: hsl(var(--lime)); }
.mzx .aikg-dots span { margin-inline-start: auto; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mzx .aikg-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.mzx .aikg-body p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.mzx .aikg-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 22px 18px; }
.mzx .aikg-foot .btn[disabled] { opacity: .45; pointer-events: none; }
@keyframes aikgPulse { 50% { box-shadow: 0 0 0 6px hsl(var(--lime) / .35); } }
@keyframes aikgIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mzx .aikg-hl, .mzx .sb-dot.red, .mzx .aikg-bg { animation: none; } }


/* the notifications / payment side panels: their full-screen layer is see-through (every .mzx element paints the page
   background, which turned the whole page behind the panel into a blank colour) */
.mzx.ntf-wrap { background: transparent !important; }

/* ---------- Inbox: several conversations at once ---------- */
.mzx .fchips .mzx-selbtn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; }
.mzx .fchips .mzx-selbtn svg { width: 12px; height: 12px; }
.mzx .fchips.mzx-bulk-on { overflow: visible; padding-bottom: 4px; }
.mzx .fchips.mzx-bulk-on { display: block; }
.mzx .mzx-bulk { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: 100%; min-width: 0; padding: 4px 6px; border-radius: 12px; background: hsl(var(--navy)); color: #fff; animation: mzx-bulk-in .18s ease-out; }
.mzx.mz-dark .mzx-bulk { background: hsl(203 50% 22%); }
@keyframes mzx-bulk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mzx .mzx-bulk .ibtn { flex: none; color: #fff; width: 28px; height: 28px; min-width: 28px; border-radius: 8px; background: transparent !important; border: 0 !important; box-shadow: none !important; display: grid; place-items: center; }
.mzx .mzx-bulk .ibtn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.mzx .mzx-bulk .ibtn:disabled { opacity: .35; cursor: default; }
.mzx .mzx-bulk .ibtn.danger:not(:disabled) { color: #fca5a5; }
.mzx .mzx-bulk .ibtn svg { width: 15px; height: 15px; }
.mzx .mzx-bulk-n { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: hsl(var(--lime)); color: hsl(203 76% 11%); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.mzx .mzx-bulk-all { font-size: 11px; font-weight: 700; color: hsl(var(--lime)); padding: 2px 6px; border-radius: 6px; }
.mzx .mzx-bulk-all:hover { background: rgba(255, 255, 255, .1); }
.mzx .mzx-bulk-act { display: flex; flex-wrap: nowrap; align-items: center; gap: 1px; margin-inline-start: auto; }
.mzx .mzx-bulk .mzx-menu { position: relative; }
.mzx .mzx-bulk .mzx-pop { color: hsl(var(--foreground)); top: 34px; right: 0; left: auto; min-width: 190px; z-index: 30; }
.mzx[dir="rtl"] .mzx-bulk .mzx-pop, [dir="rtl"] .mzx .mzx-bulk .mzx-pop { left: 0; right: auto; }
.mzx .conv.mzx-selmode { border-color: transparent; }
.mzx .conv.mzx-picked { background: hsl(var(--lime) / .16); border-color: hsl(var(--lime) / .55); }
.mzx .conv .av.mzx-check { display: grid; place-items: center; background: hsl(var(--card)); border: 2px solid hsl(var(--border)); color: hsl(203 76% 11%); transition: background .15s, border-color .15s; }
.mzx .conv.mzx-picked .av.mzx-check { background: hsl(var(--lime)); border-color: hsl(var(--lime)); }
.mzx .conv .av.mzx-check svg { width: 18px; height: 18px; stroke-width: 3; }
.mzx .conv.mzx-selmode:hover .av.mzx-check { border-color: hsl(var(--lime)); }
/* the selection check: smaller than an avatar, centred where the avatar was */
.mzx .conv .av.mzx-check { width: 26px; height: 26px; min-width: 26px; margin: 7px; border-width: 2px; }
.mzx .conv .av.mzx-check svg { width: 14px; height: 14px; }

/* ---------- tables: multi-select and bulk actions ---------- */
/* the checkbox column */
.mzx .tbl th.tsel, .mzx .tbl td.tsel, .mzx .bl-table th.tsel, .mzx .bl-table td.tsel { width: 40px; padding-inline-end: 0 !important; }
.mzx .tsel input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; display: inline-grid; place-items: center; vertical-align: middle;
  border: 1.6px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s;
}
.mzx .tsel input[type="checkbox"]:hover { border-color: hsl(var(--lime)); }
.mzx .tsel input[type="checkbox"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px hsl(var(--lime) / .35); }
.mzx .tsel input[type="checkbox"]:checked, .mzx .tsel input[type="checkbox"]:indeterminate { background: hsl(var(--lime)); border-color: hsl(var(--lime)); }
.mzx .tsel input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #072032; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.mzx .tsel input[type="checkbox"]:indeterminate::after { content: ""; width: 9px; height: 2.2px; border-radius: 2px; background: #072032; }
.mzx .tsel input[type="checkbox"]:disabled { opacity: .4; cursor: default; }
/* selected rows */
.mzx .tbl tr.is-sel > td, .mzx .bl-table tr.is-sel > td { background: hsl(var(--lime) / .1); }
.mzx.mz-dark .tbl tr.is-sel > td, .mzx.mz-dark .bl-table tr.is-sel > td { background: hsl(var(--lime) / .08); }
/* the bar above a table (same look as the Inbox bar) */
.mzx .mzx-bulk.mzx-tbulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin: 0 0 10px; padding: 6px 8px; border-radius: 14px;
  background: hsl(203 76% 11%); color: #fff; box-shadow: 0 12px 30px -18px rgb(7 32 50 / .7); animation: mzx-bulk-in .16s ease-out; position: sticky; top: 8px; z-index: 5; }
.mzx .mzx-tbulk .mzx-tbulk-l { font-size: 12.5px; font-weight: 600; color: rgb(255 255 255 / .8); margin-inline-end: 6px; }
.mzx .mzx-tbulk .mzx-bulk-act { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; }
.mzx .mzx-tbulk-b { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: rgb(255 255 255 / .08);
  color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s; }
.mzx .mzx-tbulk-b:hover { background: rgb(255 255 255 / .16); }
.mzx .mzx-tbulk-b svg { width: 15px; height: 15px; }
.mzx .mzx-tbulk-b.danger { color: #fecaca; }
.mzx .mzx-tbulk-b.danger:hover { background: rgb(239 68 68 / .28); color: #fff; }
@media (max-width: 640px) {
  .mzx .mzx-tbulk-b span { display: none; }
  .mzx .mzx-tbulk-b { width: 34px; padding: 0; justify-content: center; }
}
/* contact messages: a short preview that opens the full message */
.mzx .tmsg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 12.5px; line-height: 1.55; color: inherit; text-align: start; cursor: pointer; }
.mzx .tmsg:hover { color: hsl(var(--primary)); }
.mzx .tmsg-full { white-space: pre-wrap; font-size: 13.5px; line-height: 1.75; max-height: 50vh; overflow: auto; padding: 12px; border-radius: 12px; background: hsl(var(--muted) / .5); }

/* AI employee card: whose money the AI credit is (the customer's own account at the AI provider, never MazayaChat) */
.mzx .ai-use-paid { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; padding: 9px 11px; border-radius: 11px; background: hsl(var(--muted)); font-size: 12px; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.mzx .ai-use-paid svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: hsl(142 70% 35%); }
.mzx.mz-dark .ai-use-paid svg { color: hsl(142 70% 55%); }
.mzx .ai-use-act { flex-wrap: wrap; align-items: center; }
.mzx .ai-link { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.mzx .ai-link:hover { color: hsl(var(--foreground)); }

/* ---------- tables: every cell lines up with the page direction ---------- */
/* Cells keep the right reading order for their own text (unicode-bidi: plaintext above), but their alignment comes from
   the page: without this, in Arabic a cell starting with Latin letters or digits (a plan name, an email, a number)
   jumped to the left while the cells around it stayed on the right. */
[dir="rtl"] .mzx .tbl th, [dir="rtl"] .mzx .tbl td, .mzx[dir="rtl"] .tbl th, .mzx[dir="rtl"] .tbl td { text-align: right; }
[dir="ltr"] .mzx .tbl th, [dir="ltr"] .mzx .tbl td, .mzx[dir="ltr"] .tbl th, .mzx[dir="ltr"] .tbl td { text-align: left; }
/* phone numbers keep their digits left to right, on the same side as the rest of the column */
[dir="rtl"] .mzx .tbl td[dir="ltr"], .mzx[dir="rtl"] .tbl td[dir="ltr"] { text-align: right !important; }
[dir="ltr"] .mzx .tbl td[dir="ltr"], .mzx[dir="ltr"] .tbl td[dir="ltr"] { text-align: left !important; }
.mzx .tbl th.tsel, .mzx .tbl td.tsel, .mzx .bl-table th.tsel, .mzx .bl-table td.tsel { text-align: center !important; }
/* payments and invoices tables: the same rule (amounts stay on the far side) */
[dir="rtl"] .mzx .bl-table th, [dir="rtl"] .mzx .bl-table td { text-align: right; }
[dir="ltr"] .mzx .bl-table th, [dir="ltr"] .mzx .bl-table td { text-align: left; }
[dir="rtl"] .mzx .bl-table .num { text-align: left; }
[dir="ltr"] .mzx .bl-table .num { text-align: right; }

/* ── API tools: paste box, review cards, shared auth button ───────────────────────────────────────────────────── */
.mzx .pcard-foot .mzx-pfoot-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mzx textarea.mzx-paste { width: 100%; min-height: 240px; padding: 12px 14px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: inherit; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; resize: vertical; text-align: start; }
.mzx textarea.mzx-paste:focus { outline: none; box-shadow: 0 0 0 1px hsl(var(--ring)); border-color: hsl(var(--ring)); }
.mzx .mzx-tc-list { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.mzx .mzx-tc { border: 1px solid hsl(var(--border) / .8); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: hsl(var(--card, var(--background))); }
.mzx .mzx-tc.has-err { border-color: hsl(0 72% 51% / .6); }
.mzx .mzx-tc-h { display: flex; align-items: center; gap: 8px; }
.mzx .mzx-tc-m { font: 600 10.5px/1 ui-monospace, Menlo, Consolas, monospace; padding: 4px 7px; border-radius: 6px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-tc-m.m-GET { background: hsl(152 60% 40% / .14); color: hsl(152 60% 30%); }
.mzx .mzx-tc-m.m-POST { background: hsl(32 90% 50% / .16); color: hsl(28 80% 36%); }
.mzx.mz-dark .mzx-tc-m.m-GET { color: hsl(152 55% 62%); }
.mzx.mz-dark .mzx-tc-m.m-POST { color: hsl(32 90% 66%); }
.mzx .mzx-tc input, .mzx .mzx-tc select, .mzx .mzx-tc textarea { width: 100%; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: inherit; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; }
.mzx .mzx-tc input:focus, .mzx .mzx-tc select:focus, .mzx .mzx-tc textarea:focus { outline: none; box-shadow: 0 0 0 1px hsl(var(--ring)); border-color: hsl(var(--ring)); }
.mzx .mzx-tc .mzx-tc-name { flex: 1; font-weight: 600; }
.mzx .mzx-tc .mzx-tc-desc { min-height: 70px; resize: vertical; line-height: 1.55; }
.mzx .mzx-tc .mzx-tc-body { min-height: 80px; margin-top: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; resize: vertical; }
.mzx .mzx-tc-x { border: 0; background: transparent; color: hsl(var(--muted-foreground)); font-size: 20px; line-height: 1; cursor: pointer; width: 28px; height: 28px; border-radius: 8px; }
.mzx .mzx-tc-x:hover { background: hsl(var(--muted)); color: hsl(0 72% 51%); }
.mzx .mzx-tc-more summary { cursor: pointer; font-size: 12px; color: hsl(var(--muted-foreground)); user-select: none; }
.mzx .mzx-tc-grid { display: grid; grid-template-columns: 96px 1fr; gap: 8px; margin-top: 8px; }
.mzx .mzx-tc-err { margin: 0; font-size: 12px; color: hsl(0 72% 45%); }
.mzx .mzx-tc-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; background: hsl(var(--muted)); }
.mzx .mzx-tc-note.warn { background: hsl(38 92% 50% / .12); }

/* customer insights page */
.mzx .ins-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mzx .ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.mzx .ins-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.mzx .ins-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .ins-bar .t { height: 10px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; }
.mzx .ins-bar .t i { display: block; height: 100%; border-radius: 99px; background: #ACE601; }
.mzx .ins-cols { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; }
.mzx .ins-cols i { flex: 1; min-height: 2px; border-radius: 4px 4px 0 0; background: #ACE601; }
.mzx .ins-cols i:hover { background: hsl(var(--navy)); }
.mzx .ins-axis { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; margin-top: 4px; }
.mzx .ins-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.mzx .ins-list li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.6; }
.mzx .ins-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ACE601; margin-top: 8px; }
.mzx .ins-sum { font-size: 15px; line-height: 1.9; margin: 4px 0 6px; }
.mzx .ins-h { font-size: 13px; font-weight: 700; margin: 14px 0 4px; }
.mzx .ins-sent { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 8px 0; gap: 2px; }
.mzx .ins-sent i { display: block; height: 100%; }

/* WhatsApp groups in the inbox */
.mzx .mzx-gbox { margin: 14px 0; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 14px; }
.mzx .mzx-gmembers { display: grid; gap: 6px; max-height: 260px; overflow: auto; margin: 8px 0 10px; }
.mzx .mzx-gm, .mzx .mzx-gitem { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; }
.mzx .mzx-gm .av, .mzx .mzx-gitem .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--muted)); font-size: 12px; font-weight: 700; flex: none; }
.mzx .mzx-gm .gn, .mzx .mzx-gitem .gn { flex: 1; min-width: 0; display: grid; }
.mzx .mzx-gm .gn b, .mzx .mzx-gitem .gn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .mzx-gm .gn small, .mzx .mzx-gitem .gn small { font-size: 11px; opacity: .65; }
.mzx .mzx-gm .gact { display: inline-flex; gap: 2px; }
.mzx .mzx-gbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.mzx .mzx-glist-h { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; }
.mzx .mzx-glist-h input { flex: 1; }
.mzx .mzx-glist { display: grid; gap: 4px; max-height: 340px; overflow: auto; }
.mzx .mzx-gpick { margin-top: 8px; }
.mzx .mzx-gcl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 120px; overflow: auto; }
.mzx .mzx-gc { display: grid; text-align: start; padding: 6px 10px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: transparent; cursor: pointer; font: inherit; }
.mzx .mzx-gc b { font-size: 12px; }
.mzx .mzx-gc small { font-size: 10.5px; opacity: .65; }
.mzx .mzx-gc.on { background: #ACE601; border-color: #ACE601; color: #072032; }

/* customer groups (across channels) */
.mzx .mzx-gitem .gdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mzx .mzx-gcolors { display: flex; flex-wrap: wrap; gap: 8px; }
.mzx .mzx-gcolor { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.mzx .mzx-gcolor.on { border-color: hsl(var(--navy)); box-shadow: 0 0 0 2px #fff inset; }
.mzx .mzx-glbl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: inline-block; margin-inline-end: 4px; }
.mzx .mzx-gsend { margin-top: 16px; padding-top: 14px; border-top: 1px solid hsl(var(--border)); }
.mzx .mzx-gpc { border: 1px solid transparent; background: transparent; width: 100%; font: inherit; cursor: pointer; text-align: start; }
.mzx .mzx-gpc.on { background: #ACE601; color: #072032; }
.mzx .mzx-pop button small { opacity: .6; margin-inline-start: 6px; }

/* phone app QR */
.mzx .mzx-qr { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0; }
.mzx .mzx-qr svg { width: 230px; height: 230px; background: #fff; padding: 8px; border-radius: 16px; }

/* download link in the account menu */
.mzx .mzx-drop-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 13.5px; }
.mzx .mzx-drop-link:hover { background: hsl(var(--muted)); }
.mzx .mzx-drop-link svg { width: 16px; height: 16px; }

/* chips with an icon (Groups, select): same size and line as the plain chips */
.mzx .chip { display: inline-flex; align-items: center; gap: 5px; line-height: 1.3; }
.mzx .chip svg, .mzx .chip i[data-lucide] { width: 13px; height: 13px; flex: none; stroke-width: 2; }

/* ── scheduled messages ── */
.mzx .mzx-chbtn[hidden], .mzx #iSchedBtn[hidden] { display: none !important; }
.mzx .mzx-sched .bubble { background: hsl(var(--navy) / .08); color: hsl(var(--foreground)); border: 1.5px dashed hsl(var(--navy) / .45); font-weight: 500; }
.mzx.mz-dark .mzx-sched .bubble { background: hsl(var(--lime) / .08); border-color: hsl(var(--lime) / .5); }
.mzx .mzx-sch-meta { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; color: hsl(var(--muted-foreground)); }
.mzx .mzx-sch-meta svg { width: 12px; height: 12px; }
.mzx .mzx-sch-ibtn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: hsl(var(--muted-foreground)); background: transparent; cursor: pointer; }
.mzx .mzx-sch-ibtn:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.mzx .mzx-sch-ibtn svg { width: 13px; height: 13px; }
.mzx .mzx-sch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mzx .mzx-sch-head h3 { margin: 0; }
.mzx .mzx-sch-act { display: flex; align-items: center; gap: 8px; }
.mzx .mzx-sch-tabs { margin-bottom: 10px; }
.mzx .mzx-sch-list { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding-inline-end: 2px; }
.mzx .mzx-sch-card { border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 12px 14px; background: hsl(var(--card)); display: flex; flex-direction: column; gap: 8px; }
.mzx .mzx-sch-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mzx .mzx-sch-when { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.mzx .mzx-sch-when svg { width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-sch-st { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-sch-st svg { width: 12px; height: 12px; }
.mzx .mzx-sch-st.ok { background: hsl(142 60% 40% / .14); color: hsl(142 60% 30%); }
.mzx .mzx-sch-st.warn { background: hsl(38 92% 50% / .16); color: hsl(32 90% 32%); }
.mzx .mzx-sch-st.bad { background: hsl(0 80% 55% / .13); color: hsl(0 70% 42%); }
.mzx.mz-dark .mzx-sch-st.ok { color: hsl(142 60% 62%); } .mzx.mz-dark .mzx-sch-st.warn { color: hsl(38 92% 65%); } .mzx.mz-dark .mzx-sch-st.bad { color: hsl(0 85% 70%); }
.mzx .mzx-sch-text { font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; unicode-bidi: plaintext; }
.mzx .mzx-sch-err { margin: 0; font-size: 11.5px; color: hsl(0 70% 45%); }
.mzx .mzx-sch-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mzx .mzx-sch-btns .btn.danger { color: hsl(0 70% 45%); }
.mzx .mzx-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mzx .mzx-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 5px 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border) / .7); }
[dir="rtl"] .mzx .mzx-tag { padding: 3px 9px 3px 5px; }
.mzx .mzx-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.mzx .mzx-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.mzx .mzx-tag.is-sent { background: hsl(142 60% 40% / .12); border-color: hsl(142 60% 40% / .35); }
.mzx .mzx-tag.is-failed { background: hsl(0 80% 55% / .1); border-color: hsl(0 80% 55% / .35); }
.mzx .mzx-tag-x { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; line-height: 1; color: hsl(var(--muted-foreground)); background: transparent; cursor: pointer; padding: 0; }
.mzx .mzx-tag-x:hover { background: hsl(0 80% 55% / .15); color: hsl(0 70% 45%); }
.mzx .mzx-tag-add { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px dashed hsl(var(--border)); color: hsl(var(--muted-foreground)); background: transparent; cursor: pointer; }
.mzx .mzx-tag-add:hover { color: hsl(var(--foreground)); border-color: hsl(var(--foreground) / .4); }
.mzx .mzx-tag-add svg { width: 12px; height: 12px; }
.mzx .mzx-pick { margin-top: 8px; border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: hsl(var(--muted) / .4); }
.mzx .mzx-pick[hidden], .mzx .mzx-pick [hidden] { display: none !important; }
.mzx .mzx-pick input, .mzx .mzx-pick select { width: 100%; }
.mzx #pNew { display: flex; flex-direction: column; gap: 6px; }
.mzx .mzx-pick-list { max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; margin-top: 6px; }
.mzx .mzx-pick-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; text-align: start; cursor: pointer; background: transparent; }
.mzx .mzx-pick-row:hover { background: hsl(var(--card)); }
.mzx .mzx-pick-row b { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .mzx-pick-row small { font-size: 11px; color: hsl(var(--muted-foreground)); direction: ltr; }
.mzx .mzx-sch-warn { display: block; margin-top: 6px; color: hsl(32 90% 36%); line-height: 1.5; }
.mzx .mzx-sch-attrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mzx .mzx-sch-ed textarea { min-height: 96px; }
.mzx .mzx-quick { margin-top: 6px; }
@media (max-width: 640px) { .mzx .mzx-sch-head { flex-wrap: wrap; } .mzx .mzx-sch-list { max-height: 52vh; } }
.mzx .conv .mzx-conv-sch { display: flex; align-items: center; gap: 5px; color: hsl(var(--navy)); font-weight: 600; }
.mzx.mz-dark .conv .mzx-conv-sch { color: hsl(var(--lime)); }
.mzx .conv .mzx-conv-sch svg { width: 12px; height: 12px; flex-shrink: 0; }
.mzx .mzx-sch-ed .field { margin-bottom: 16px; }
.mzx .mzx-sch-ed .field > label { display: block; margin-bottom: 6px; }
.mzx .mzx-sch-ed textarea, .mzx .mzx-sch-ed input { font-family: inherit; }
.mzx .mzx-sch-ed small { display: block; margin-top: 6px; }
.mzx .mzx-sch-ed .mzx-sch-warn { margin: 8px 0 0; }
.mzx .mzx-sch-prev { margin-top: 10px; padding: 12px; border-radius: 12px; background: hsl(var(--muted) / .55); border: 1px solid hsl(var(--border) / .7); display: flex; flex-direction: column; gap: 8px; }
.mzx .mzx-sch-prev[hidden] { display: none; }
.mzx .mzx-sch-prev-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.mzx .mzx-sch-prev-h svg { width: 13px; height: 13px; }
.mzx .mzx-sch-prev .msg { max-width: 100%; }
.mzx .mzx-sch-prev .bubble img, .mzx .mzx-sch-prev .bubble video, .mzx .mzx-sch-msg .bubble img, .mzx .mzx-sch-msg .bubble video { max-width: 240px; max-height: 220px; border-radius: 10px; display: block; }
.mzx .mzx-sch-msg { max-width: 100%; align-self: flex-start; }
.mzx .mzx-sch-msg .bubble img, .mzx .mzx-sch-msg .bubble video { max-height: 140px; }
.mzx .conv .mzx-conv-rcp { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mzx .conv .mzx-conv-rcp svg { width: 11px; height: 11px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-mini { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzx .mzx-sched .bubble[data-a] { cursor: pointer; }
.mzx .mzx-sch-rcp { max-width: 100%; justify-content: flex-end; gap: 5px; margin-top: 2px; }
.mzx .mzx-sch-rcp-l { font-size: 10.5px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-tag.is-me { border-color: hsl(var(--lime)); background: hsl(var(--lime) / .16); }
.mzx .mzx-sch-ibtn b { font-size: 10px; margin-inline-start: 3px; }
.mzx .mzx-sch-ibtn:has(b) { width: auto; padding: 0 7px; }
.mzx .mzx-sch-side { margin-top: 6px; padding: 10px 12px; gap: 8px; }
.mzx .mzx-sch-side .mzx-sch-msg .bubble { font-size: 12px; }
.mzx .mzx-sm-detail { display: flex; flex-direction: column; gap: 18px; padding: 18px; overflow-y: auto; }
.mzx .mzx-sm-sec { display: flex; flex-direction: column; gap: 8px; }
.mzx .mzx-sm-sec .msg { max-width: 560px; }
.mzx .mzx-sm-sec .msg.out { align-self: flex-start; }
.mzx .mzx-sm-sec .bubble img, .mzx .mzx-sm-sec .bubble video { max-width: 280px; max-height: 260px; border-radius: 10px; display: block; }
.mzx .mzx-tag-open { cursor: pointer; }
.mzx .mzx-tag-open:hover { text-decoration: underline; }
.mzx .thread-h .tools .btn { white-space: nowrap; }
.mzx .conv .m svg { width: 12px; height: 12px; vertical-align: -2px; }

/* ── WhatsApp Cloud API page ── */
.mzx .mzx-wa-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mzx .mzx-wa-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 960px) { .mzx .mzx-wa-grid { grid-template-columns: 1fr; } }
.mzx .mzx-wa-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid; flex-wrap: wrap; }
.mzx .mzx-wa-banner > div { flex: 1; min-width: 200px; }
.mzx .mzx-wa-banner p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; }
.mzx .mzx-wa-banner > svg { width: 22px; height: 22px; flex-shrink: 0; }
.mzx .mzx-wa-banner.warn { background: hsl(38 92% 50% / .12); border-color: hsl(38 92% 50% / .4); color: hsl(32 90% 28%); }
.mzx .mzx-wa-banner.bad { background: hsl(0 80% 55% / .1); border-color: hsl(0 80% 55% / .4); color: hsl(0 70% 38%); }
.mzx.mz-dark .mzx-wa-banner.warn { color: hsl(38 92% 70%); } .mzx.mz-dark .mzx-wa-banner.bad { color: hsl(0 85% 72%); }
.mzx .mzx-wa-hero { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, hsl(142 60% 40% / .1), hsl(var(--card)) 60%); }
.mzx .mzx-wa-hero-top { display: flex; align-items: center; gap: 14px; }
.mzx .mzx-wa-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); flex-shrink: 0; }
.mzx .mzx-wa-num { font-size: 22px; font-weight: 700; letter-spacing: .01em; unicode-bidi: plaintext; }
.mzx .mzx-wa-vname { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.mzx .mzx-wa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mzx .mzx-wa-chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-wa-chip.ok { background: hsl(142 60% 40% / .14); color: hsl(142 60% 28%); }
.mzx .mzx-wa-chip.warn { background: hsl(38 92% 50% / .16); color: hsl(32 90% 30%); }
.mzx .mzx-wa-chip.bad { background: hsl(0 80% 55% / .13); color: hsl(0 70% 40%); }
.mzx.mz-dark .mzx-wa-chip.ok { color: hsl(142 60% 65%); } .mzx.mz-dark .mzx-wa-chip.warn { color: hsl(38 92% 68%); } .mzx.mz-dark .mzx-wa-chip.bad { color: hsl(0 85% 72%); }
.mzx .mzx-wa-hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.mzx .mzx-wa-checks { display: flex; flex-direction: column; gap: 4px; }
.mzx .mzx-wa-chk { display: flex; gap: 11px; padding: 10px 12px; border-radius: 12px; align-items: flex-start; }
.mzx .mzx-wa-chk > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.mzx .mzx-wa-chk b { font-size: 13px; font-weight: 600; }
.mzx .mzx-wa-chk p { margin: 2px 0 0; font-size: 12px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.mzx .mzx-wa-chk.ok > svg { color: hsl(142 60% 38%); }
.mzx .mzx-wa-chk.warn { background: hsl(38 92% 50% / .1); } .mzx .mzx-wa-chk.warn > svg { color: hsl(32 90% 42%); }
.mzx .mzx-wa-chk.bad { background: hsl(0 80% 55% / .08); } .mzx .mzx-wa-chk.bad > svg { color: hsl(0 70% 48%); }
.mzx .mzx-wa-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid hsl(var(--border) / .6); }
.mzx .mzx-wa-row:first-of-type { border-top: 0; }
.mzx .mzx-wa-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--muted)); flex-shrink: 0; }
.mzx .mzx-wa-ic svg { width: 16px; height: 16px; }
.mzx .mzx-wa-kv { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mzx .mzx-wa-kv small { font-size: 11px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-wa-kv b { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.mzx .mzx-wa-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mzx .mzx-wa-danger .btn.danger { color: hsl(0 70% 45%); border-color: hsl(0 70% 55% / .4); }
.mzx .mzx-gd { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.mzx .mzx-gd-step { display: flex; gap: 12px; align-items: flex-start; }
.mzx .mzx-gd-n { width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--navy)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.mzx.mz-dark .mzx-gd-n { background: hsl(var(--lime)); color: hsl(203 76% 11%); }
.mzx .mzx-gd-step b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.mzx .mzx-gd-step b svg { width: 15px; height: 15px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-gd-step p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.mzx .mzx-gd-path { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mzx .mzx-gd-path span { padding: 4px 10px; border-radius: 8px; background: hsl(var(--muted)); font-size: 12px; font-weight: 600; }
.mzx .mzx-gd-path i { font-style: normal; color: hsl(var(--muted-foreground)); }
[dir="rtl"] .mzx .mzx-gd-path i { transform: scaleX(-1); }
.mzx .mzx-gd-note { font-size: 11.5px !important; margin-top: 6px !important; }
.mzx .mzx-gd-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mzx .mzx-gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: 62vh; overflow-y: auto; }
@media (max-width: 560px) { .mzx .mzx-gd-grid { grid-template-columns: 1fr; } }
.mzx .mzx-gd-card { position: relative; border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 12px; background: hsl(var(--card)); display: flex; flex-direction: column; gap: 10px; }
.mzx .mzx-gd-card .mzx-gd-n { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.mzx .mzx-gd-card p { margin: 0; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.5; }
.mzx .mzx-gd-art { height: 168px; border-radius: 12px; background: hsl(172 40% 94%); display: grid; place-items: center; overflow: hidden; }
.mzx.mz-dark .mzx-gd-art { background: hsl(203 30% 16%); }
.mzx .mzx-gd-card .mzx-gd-links { justify-content: center; margin-top: 0; }
.mzx .pulse { animation: mzxPulse 1.6s ease-in-out infinite; }
@keyframes mzxPulse { 0%, 100% { box-shadow: 0 0 0 0 hsl(142 70% 45% / .55); } 50% { box-shadow: 0 0 0 6px hsl(142 70% 45% / 0); } }
.mzx .mzx-ph { width: 118px; height: 156px; border: 4px solid #1f2933; border-radius: 18px; background: #fff; overflow: hidden; position: relative; font-size: 8px; color: #1f2933; text-align: start; direction: ltr; }
.mzx .mzx-ph-top { height: 26px; background: #0b8f7f; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-weight: 700; }
.mzx .mzx-ph-dots { display: inline-flex; flex-direction: column; gap: 2px; padding: 3px 4px; border-radius: 50%; }
.mzx .mzx-ph-dots b { width: 3px; height: 3px; border-radius: 50%; background: #fff; display: block; }
.mzx .mzx-ph-menu { position: absolute; top: 24px; inset-inline-end: 6px; width: 84px; background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: 3px 0; z-index: 2; }
.mzx .mzx-ph-menu span { display: block; padding: 4px 7px; }
.mzx .mzx-ph-menu .hl { background: hsl(142 70% 45% / .2); font-weight: 700; }
.mzx .mzx-ph-rows { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.mzx .mzx-ph-rows u { display: block; height: 8px; border-radius: 4px; background: #e5eaee; text-decoration: none; }
.mzx .mzx-ph-dev { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-bottom: 1px solid #eef1f3; gap: 4px; }
.mzx .mzx-ph-dev span { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.mzx .mzx-ph-dev svg { width: 11px; height: 11px; }
.mzx .mzx-ph-dev em { font-style: normal; background: #e5484d; color: #fff; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.mzx .mzx-br { width: 100%; max-width: 230px; border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15); overflow: hidden; direction: ltr; text-align: start; color: #1f2933; }
.mzx .mzx-br-bar { background: #e9edf0; padding: 6px 8px; display: flex; align-items: center; gap: 4px; font-size: 9px; }
.mzx .mzx-br-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c3ccd3; }
.mzx .mzx-br-bar span { margin-inline-start: 6px; background: #fff; border-radius: 6px; padding: 2px 8px; flex: 1; }
.mzx .mzx-br-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 10px; }
.mzx .mzx-br-body.warn { background: hsl(38 92% 50% / .12); padding: 16px 12px; }
.mzx .mzx-br-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: #f3f5f7; }
.mzx .mzx-br-row em, .mzx .mzx-br-btns em { font-style: normal; background: #e5484d; color: #fff; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.mzx .mzx-br-row small { color: #1a9d4a; font-weight: 700; }
.mzx .mzx-br-btns em.lime { background: hsl(75 90% 46%); color: #1f2933; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 10px; }
.mzx .mzx-br-btns em svg { width: 11px; height: 11px; }
.mzx .mzx-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.mzx .mzx-tabs span { font-size: 9px; padding: 4px 7px; border-radius: 6px; background: #f3f5f7; }
.mzx .mzx-tabs span.on { background: hsl(142 70% 45% / .2); font-weight: 700; }
.mzx .mzx-route { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9px; }
.mzx .mzx-route em { font-style: normal; background: #f3f5f7; border: 1px solid #dfe5ea; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.mzx .mzx-br-row.pulse { border-radius: 8px; }
.mzx .mzx-ph-chat { padding: 10px 8px; display: flex; justify-content: flex-end; }
.mzx .mzx-ph-chat em { font-style: normal; background: #d9fdd3; padding: 4px 8px; border-radius: 8px; }
.mzx .mzx-gd-foot { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.mzx .mzx-gd-foot svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.mzx .mzx-wa-fixlink { margin-top: 8px; }
.mzx .mzx-gd-more { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: hsl(var(--muted) / .6); font-size: 12px; line-height: 1.7; }
.mzx .mzx-gd-more b { display: block; margin-bottom: 4px; font-size: 12.5px; }
.mzx .mzx-gd-more ul { margin: 0; padding-inline-start: 18px; color: hsl(var(--muted-foreground)); }

/* inbox: nine channel buttons and the filter chips fit the list column without squeezing or a scrollbar */
.mzx .mzx-inbox .mzx-chbar { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; overflow: visible !important; padding: 6px 1px 4px !important; justify-content: flex-start !important; }
.mzx .mzx-inbox .mzx-chbar .mzx-chbtn { flex: 0 0 32px !important; width: 32px !important; min-width: 32px !important; max-width: 32px !important; height: 32px !important; min-height: 32px !important; max-height: 32px !important; aspect-ratio: auto !important; }
.mzx .mzx-inbox .mzx-chbar .mzx-chbtn svg, .mzx .mzx-inbox .mzx-chbar .mzx-chbtn img { width: 16px !important; height: 16px !important; }
.mzx .mzx-inbox .pane-h .fchips { flex-wrap: wrap !important; overflow: visible !important; scrollbar-width: none !important; padding-bottom: 4px !important; row-gap: 6px; }
.mzx .mzx-inbox .pane-h .fchips::-webkit-scrollbar { display: none !important; }
.mzx .mzx-inbox .pane-h .fchips .chip { flex: 0 0 auto; }

/* inbox (round 2): all nine channel buttons on ONE row, and the groups menu opens inside the list column */
.mzx .mzx-inbox .mzx-chbar { flex-wrap: nowrap !important; gap: 4px !important; justify-content: space-between !important; }
.mzx .mzx-inbox .mzx-chbar .mzx-chbtn { flex: 1 1 0 !important; width: auto !important; min-width: 26px !important; max-width: 36px !important; height: 32px !important; }
.mzx .mzx-inbox .pane-h .fchips .mzx-pop { inset-inline-end: auto !important; inset-inline-start: 0 !important; max-width: min(280px, 82vw); }
.mzx .mzx-inbox .pane-h .fchips .mzx-pop button { white-space: normal; text-align: start; }

/* inbox (round 3): the groups menu is a panel under the filter chips, as wide as the list column (no clipping in either language) */
.mzx .mzx-inbox .pane-h { position: relative; }
.mzx .mzx-inbox .pane-h .fchips .mzx-menu { position: static !important; }
.mzx .mzx-inbox .pane-h .fchips .mzx-pop {
  position: absolute !important; top: calc(100% + 2px) !important; left: 10px !important; right: 10px !important;
  inset-inline-start: auto !important; inset-inline-end: auto !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  max-height: 300px; z-index: 40;
}
.mzx .mzx-inbox .pane-h .fchips .mzx-pop button { width: 100%; }

/* admin: feature switches */
.mzx .mzx-ft-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.mzx .mzx-ft { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mzx .mzx-ft-txt { min-width: 0; }
.mzx .mzx-ft-txt .sub { max-width: 560px; line-height: 1.7; }
.mzx .mzx-ft-sw { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mzx .mzx-ft-st { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mzx .mzx-ft-st.on { background: hsl(142 60% 40% / .14); color: hsl(142 60% 28%); }
.mzx .mzx-ft-st.off { background: hsl(0 80% 55% / .12); color: hsl(0 70% 42%); }
.mzx.mz-dark .mzx-ft-st.on { color: hsl(142 60% 65%); } .mzx.mz-dark .mzx-ft-st.off { color: hsl(0 85% 72%); }
@media (max-width: 640px) { .mzx .mzx-ft { flex-direction: column; align-items: flex-start; } }

/* inbox (round 4): the groups menu — clean rows (dot or icon, name, count), full width of the list column */
.mzx .mzx-inbox .pane-h #iGroupMenu { padding: 6px !important; gap: 2px; }
.mzx .mzx-inbox .pane-h #iGroupMenu.open { display: flex !important; flex-direction: column; }
.mzx .mzx-inbox .pane-h #iGroupMenu button { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 10px 12px !important; border-radius: 10px; font-size: 13px !important; font-weight: 500; line-height: 1.4; text-align: start; white-space: normal; direction: inherit; }
.mzx .mzx-inbox .pane-h #iGroupMenu button svg { width: 16px !important; height: 16px !important; flex: 0 0 16px; color: hsl(var(--muted-foreground)); }
.mzx .mzx-inbox .pane-h #iGroupMenu button .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; display: inline-block; }
.mzx .mzx-inbox .pane-h #iGroupMenu button small { margin-inline-start: auto !important; opacity: 1 !important; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.mzx .mzx-inbox .pane-h #iGroupMenu button + button { border-top: 1px solid hsl(var(--border) / .5); border-radius: 0; }
.mzx .mzx-inbox .pane-h #iGroupMenu button:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.mzx .mzx-inbox .pane-h #iGroupMenu button:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
/* the physical left/right must come after the logical insets above, otherwise they cancel each other */
.mzx .mzx-inbox .pane-h .fchips .mzx-pop { inset-inline-start: auto !important; inset-inline-end: auto !important; left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; min-width: 0 !important; }
