/* Dashboard Online Mexico: desktop and responsive mobile composition. */

.cb-app-shell {
  --om-lime: #d2d826;
  --om-lime-2: #c3ca1e;
  --om-lime-rgb: 210, 216, 38;
  --om-black: #0c0d0b;
  --om-sidebar: #111310;
  --om-paper: #f4f3ec;
  --om-paper-2: #ecebe2;
  --om-white: #fff;
  --om-ink: #16170f;
  --om-muted: #7c7e72;
  --om-muted-2: #a6a89b;
  --om-line: #e5e4da;
  --om-line-2: #d7d6ca;
  --om-blue: #3b82f6;
  --om-green: #25d366;
  --om-amber: #f59e0b;
  --om-rose: #f43f5e;
  --om-violet: #8b5cf6;
  --bg: var(--om-paper);
  --surface: var(--om-white);
  --surface-2: #f8f8f3;
  --surface-3: var(--om-paper-2);
  --ink: var(--om-ink);
  --ink-2: #34362e;
  --muted: var(--om-muted);
  --muted-2: var(--om-muted-2);
  --border: var(--om-line);
  --border-strong: var(--om-line-2);
  --primary: var(--om-lime);
  --primary-deep: #16170f;
  --primary-50: rgba(var(--om-lime-rgb), 0.12);
  --primary-100: rgba(var(--om-lime-rgb), 0.2);
  --accent: var(--om-lime);
  --accent-soft: rgba(var(--om-lime-rgb), 0.11);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow-sm: 0 8px 22px rgba(22, 23, 15, 0.045);
  --shadow-md: 0 16px 38px rgba(22, 23, 15, 0.09);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  grid-template-columns: 256px minmax(0, 1fr);
  background: var(--om-paper);
  color: var(--om-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.cb-app-shell[data-collapsed="true"] {
  grid-template-columns: 82px minmax(0, 1fr);
}

.cb-app-shell .cb-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: auto;
  height: 100vh;
  padding: 20px 14px 14px;
  color: #fff;
  background: var(--om-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.cb-app-shell .cb-brand {
  min-height: 50px;
  padding: 0 8px 18px;
}

.cb-app-shell .cb-brand .sb-logo-full {
  display: block;
  width: auto;
  height: 28px;
}

.cb-app-shell .cb-brand .sb-logo-mini {
  display: none;
}

.cb-app-shell .cb-brand .sb-logo-full.is-custom {
  max-width: 188px;
  height: 44px;
  max-height: 44px;
  padding: 5px 8px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.cb-app-shell .cb-brand .sb-logo-mini img {
  width: 42px;
  height: 34px;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.cb-app-shell[data-collapsed="true"] .cb-brand .sb-logo-full {
  display: none;
}

.cb-app-shell[data-collapsed="true"] .cb-brand .sb-logo-mini {
  display: block;
}

.cb-app-shell .sb-lang-mobile {
  display: none;
}

.cb-app-shell .cb-sidebar-nav {
  gap: 2px;
  padding: 4px 0;
}

.cb-app-shell .cb-sidebar-nav-primary {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.cb-app-shell .cb-sidebar-nav-account {
  flex: 0 0 auto;
  overflow: visible;
}

.cb-app-shell .sb-section {
  padding: 12px 10px 6px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cb-app-shell .cb-sidebar a {
  min-height: 42px;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.cb-app-shell .cb-sidebar a:not(.is-active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cb-app-shell .cb-sidebar a.is-active {
  position: relative;
  color: #fff;
  background: rgba(var(--om-lime-rgb), 0.14);
  box-shadow: none;
}

.cb-app-shell .cb-sidebar a.is-active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--om-lime);
}

.cb-app-shell .cb-sidebar-icon {
  width: 19px;
  height: 19px;
  color: currentColor !important;
  stroke-width: 2;
}

.cb-app-shell .cb-sidebar-subnav {
  margin: 2px 0 2px 14px;
  padding: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.cb-app-shell .cb-sidebar-sub-item {
  min-height: 36px !important;
  padding: 8px 12px 8px 14px !important;
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 10px !important;
}

.cb-app-shell .cb-sidebar-sub-item .cb-sidebar-icon {
  width: 16px;
  height: 16px;
}

.cb-app-shell .cb-sidebar-sub-item:not(.is-active):hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.cb-app-shell .cb-sidebar-sub-item.is-active {
  color: #fff !important;
  background: rgba(var(--om-lime-rgb), 0.14) !important;
}

.cb-app-shell .cb-sidebar-sub-item.is-active::before {
  display: none;
}

.cb-app-shell .sb-foot {
  margin-top: 12px;
  padding: 12px 0 0;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10.5px;
}

.cb-app-shell .cb-sidebar .sb-upgrade {
  display: block;
  min-height: 0;
  margin: 0 0 9px;
  padding: 13px;
  color: #fff;
  border: 1px solid rgba(var(--om-lime-rgb), 0.28);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(var(--om-lime-rgb), 0.18), rgba(var(--om-lime-rgb), 0.04));
  white-space: normal;
}

.cb-app-shell .cb-sidebar .sb-upgrade strong,
.cb-app-shell .cb-sidebar .sb-upgrade span {
  display: block;
}

.cb-app-shell .cb-sidebar .sb-upgrade strong {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

.cb-app-shell .cb-sidebar .sb-upgrade span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10.5px;
}

.cb-app-shell .cb-sidebar .sb-upgrade i {
  display: block;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.cb-app-shell .cb-sidebar .sb-upgrade b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--om-lime);
}

.cb-app-shell .cb-sidebar .sb-user {
  display: flex;
  min-height: 0;
  gap: 10px;
  padding: 8px;
  color: #fff;
  border-radius: 12px;
}

.cb-app-shell .cb-sidebar .sb-user:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cb-app-shell .sb-user img,
.cb-app-shell .sb-user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  object-fit: cover;
  color: var(--om-black);
  border-radius: 50%;
  background: var(--om-lime);
  font-size: 13px;
  font-weight: 800;
}

.cb-app-shell .sb-user-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.cb-app-shell .sb-user-copy strong {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-app-shell .sb-user-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-app-shell .sb-user > svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.42);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-app-shell[data-collapsed="true"] .sb-section {
  display: none;
}

.cb-app-shell .sb-giro-badge {
  margin-bottom: 10px;
  padding: 9px 10px !important;
  color: #fff;
  border-color: rgba(var(--om-lime-rgb), 0.26) !important;
  border-radius: 12px !important;
  background: rgba(var(--om-lime-rgb), 0.1) !important;
}

.cb-app-shell .cb-main {
  min-width: 0;
}

.cb-app-shell .cb-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  gap: 16px;
  padding: 10px 28px;
  background: rgba(244, 243, 236, 0.9);
  border-bottom: 1px solid var(--om-line);
  backdrop-filter: blur(14px);
}

.cb-app-shell .cb-topbar .tb-burger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--om-line-2);
  border-radius: 10px;
  background: var(--om-white);
}

.cb-app-shell .cb-topbar .tb-title-wrap {
  min-width: 240px;
}

.cb-app-shell .cb-topbar .tb-title {
  color: var(--om-ink);
  font-size: 21px;
  font-weight: 800;
}

.cb-app-shell .cb-topbar .tb-title-wrap > div:last-child {
  margin-top: 2px !important;
  color: var(--om-muted) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px !important;
  letter-spacing: 0;
  text-transform: none;
}

.cb-app-shell .cb-search {
  width: min(300px, 25vw);
  max-width: 300px;
  height: 42px;
  margin-left: auto;
  padding: 0 15px;
  border: 1px solid var(--om-line-2);
  border-radius: 999px;
  background: var(--om-white);
  box-shadow: none;
}

.cb-app-shell .cb-search:focus-within {
  border-color: var(--om-ink);
  box-shadow: 0 0 0 4px rgba(var(--om-lime-rgb), 0.25);
}

.cb-app-shell .cb-topbar-actions {
  gap: 9px;
  margin-left: 0;
}

.cb-app-shell .cb-topbar .cb-lang-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border-color: var(--om-line-2);
  border-radius: 999px;
  background: var(--om-white);
}

.cb-app-shell .cb-topbar .cb-lang-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
}

.cb-app-shell .cb-topbar .cb-lang-btn.is-active {
  background: rgba(var(--om-lime-rgb), 0.25);
}

.cb-app-shell .cb-topbar .tb-icon,
.cb-app-shell .cb-topbar .tb-icon[style] {
  width: 42px;
  height: 42px;
  color: var(--om-ink);
  border: 1px solid var(--om-line-2);
  border-radius: 50% !important;
  background: var(--om-white) !important;
  box-shadow: none;
}

.cb-app-shell .cb-topbar .tb-icon[style] > span {
  color: var(--om-ink) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.cb-app-shell .cb-topbar .tb-user {
  display: none;
}

.om-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 17px;
  color: #fff;
  border-radius: 999px;
  background: var(--om-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.om-topbar-cta svg {
  width: 16px;
  height: 16px;
}

.cb-app-shell .cb-content {
  display: block;
  width: 100%;
  max-width: 1500px;
  padding: 26px 28px 50px;
}

.om-dashboard {
  width: 100%;
}

.om-mobile-head,
.om-quick-actions {
  display: none;
}

.om-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.om-kpi {
  position: relative;
  min-width: 0;
  min-height: 168px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: var(--om-white);
  transition: transform 0.18s, box-shadow 0.18s;
}

.om-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.32);
}

.om-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.om-kpi-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
}

.om-kpi-icon svg {
  width: 20px;
  height: 20px;
}

.om-kpi-lime .om-kpi-icon {
  color: #1a1f08;
  background: var(--om-lime);
}

.om-kpi-blue .om-kpi-icon {
  color: var(--om-blue);
  background: rgba(59, 130, 246, 0.13);
}

.om-kpi-green .om-kpi-icon {
  color: #188849;
  background: rgba(37, 211, 102, 0.14);
}

.om-kpi-violet .om-kpi-icon {
  color: var(--om-violet);
  background: rgba(139, 92, 246, 0.14);
}

.om-kpi-delta {
  max-width: 145px;
  padding: 4px 8px;
  overflow: hidden;
  color: #188849;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-kpi > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  color: var(--om-ink);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.om-kpi > p {
  position: relative;
  z-index: 1;
  margin: 3px 0 0;
  color: var(--om-muted);
  font-size: 12.5px;
}

.om-kpi-spark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92px;
  height: 42px;
  color: var(--om-lime-2);
  opacity: 0.42;
}

.om-kpi-blue .om-kpi-spark {
  color: var(--om-blue);
}

.om-kpi-green .om-kpi-spark {
  color: #188849;
}

.om-kpi-violet .om-kpi-spark {
  color: var(--om-violet);
}

.om-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.om-dashboard-grid-lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.om-dashboard-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: var(--om-white);
}

.om-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 0;
}

.om-card-head h2 {
  margin: 0;
  color: var(--om-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.om-card-head p {
  margin: 3px 0 0;
  color: var(--om-muted);
  font-size: 12px;
}

.om-card-head a {
  display: inline-flex;
  align-items: center;
  color: var(--om-ink);
  border-bottom: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.om-chart-card {
  min-height: 348px;
  padding-bottom: 14px;
}

.om-chart-legend {
  display: flex;
  gap: 18px;
  padding: 18px 20px 4px;
}

.om-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--om-muted);
  font-size: 12px;
  font-weight: 600;
}

.om-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.om-chart-legend .is-revenue,
.om-chart-bars .is-revenue {
  background: var(--om-lime);
}

.om-chart-legend .is-appointments,
.om-chart-bars .is-appointments {
  background: #2a2d25;
}

.om-week-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  height: 245px;
  padding: 28px 24px 12px;
  background-image: linear-gradient(to bottom, transparent 24%, var(--om-line) 25%, transparent 26%, transparent 49%, var(--om-line) 50%, transparent 51%, transparent 74%, var(--om-line) 75%, transparent 76%);
}

.om-chart-day {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.om-chart-bars {
  display: flex;
  width: 65%;
  max-width: 48px;
  height: calc(100% - 24px);
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.om-chart-bars i {
  display: block;
  width: 50%;
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  transform-origin: bottom;
  animation: omGrowBar 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.om-chart-day > span {
  color: var(--om-muted);
  font-size: 11px;
  font-weight: 700;
}

.om-chart-empty {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 100%;
  margin: 0;
  color: var(--om-muted);
  font-size: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}

@keyframes omGrowBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.om-goal-card {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  align-items: center;
  padding-bottom: 18px;
}

.om-goal-card .om-card-head {
  width: 100%;
}

.om-goal-ring {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin-top: 16px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--om-lime) var(--om-goal), var(--om-paper-2) 0);
}

.om-goal-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--om-white);
}

.om-goal-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.om-goal-ring strong {
  font-size: 29px;
  letter-spacing: -0.04em;
}

.om-goal-ring span,
.om-goal-values span,
.om-goal-meta span {
  color: var(--om-muted);
  font-size: 11px;
}

.om-goal-values {
  display: flex;
  margin-top: 10px;
  align-items: baseline;
  gap: 5px;
}

.om-goal-values strong {
  font-size: 20px;
}

.om-goal-meta {
  display: grid;
  width: calc(100% - 36px);
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--om-line);
}

.om-goal-meta > div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.om-goal-meta > div + div {
  border-left: 1px solid var(--om-line);
}

.om-goal-meta strong {
  font-size: 15px;
}

.om-appointment-list,
.om-activity-list {
  padding: 8px 0 6px;
}

.om-appointment,
.om-activity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--om-line);
  transition: background 0.14s;
}

.om-appointment:first-child,
.om-activity:first-child {
  border-top: 0;
}

.om-appointment:hover,
.om-activity:hover {
  background: var(--om-paper);
}

.om-appointment-time {
  display: grid;
  min-width: 52px;
  text-align: center;
}

.om-appointment-time strong {
  font-size: 13.5px;
}

.om-appointment-time small,
.om-appointment-info small,
.om-activity-copy small {
  color: var(--om-muted);
  font-size: 11.5px;
}

.om-appointment-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 3px;
  background: var(--om-lime-2);
}

.om-appointment-bar.is-1 {
  background: var(--om-blue);
}

.om-appointment-bar.is-2 {
  background: var(--om-violet);
}

.om-appointment-bar.is-3 {
  background: var(--om-amber);
}

.om-appointment .cb-appt-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  filter: none;
}

.om-appointment-info,
.om-activity-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.om-appointment-info strong,
.om-activity-copy strong {
  overflow: hidden;
  color: var(--om-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-appointment-info small,
.om-activity-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.om-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.om-status.is-green {
  color: #188849;
  background: rgba(37, 211, 102, 0.13);
}

.om-status.is-blue {
  color: #2563d6;
  background: rgba(59, 130, 246, 0.13);
}

.om-status.is-amber {
  color: #aa6b08;
  background: rgba(245, 158, 11, 0.15);
}

.om-status.is-rose {
  color: #d6294a;
  background: rgba(244, 63, 94, 0.13);
}

.om-status.is-gray {
  color: var(--om-muted);
  background: var(--om-paper-2);
}

.om-activity-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
}

.om-activity-icon svg {
  width: 17px;
  height: 17px;
}

.om-activity-icon.is-green {
  color: #188849;
  background: rgba(37, 211, 102, 0.14);
}

.om-activity-icon.is-blue {
  color: var(--om-blue);
  background: rgba(59, 130, 246, 0.13);
}

.om-activity-icon.is-violet {
  color: var(--om-violet);
  background: rgba(139, 92, 246, 0.14);
}

.om-activity time {
  margin-left: auto;
  color: var(--om-muted-2);
  font-size: 10.5px;
  white-space: nowrap;
}

.om-dashboard-empty {
  display: grid;
  min-height: 150px;
  padding: 30px 20px;
  place-content: center;
  text-align: center;
}

.om-dashboard-empty strong {
  font-size: 14px;
}

.om-dashboard-empty p {
  margin: 4px 0 0;
  color: var(--om-muted);
  font-size: 12px;
}

@media (max-width: 1240px) {
  .cb-app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .om-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
  }

  .cb-app-shell .cb-topbar .tb-title-wrap {
    min-width: 190px;
  }
}

@media (max-width: 980px) {
  .cb-app-shell,
  .cb-app-shell[data-collapsed="true"] {
    grid-template-columns: 1fr;
  }

  .cb-app-shell .cb-sidebar {
    position: fixed;
    width: 264px;
  }

  .cb-app-shell[data-collapsed="true"] .sb-section {
    display: block;
  }

  .cb-app-shell .cb-brand .sb-logo-full,
  .cb-app-shell[data-collapsed="true"] .cb-brand .sb-logo-full {
    display: block;
  }

  .cb-app-shell .cb-brand .sb-logo-mini,
  .cb-app-shell[data-collapsed="true"] .cb-brand .sb-logo-mini {
    display: none;
  }

  .cb-app-shell .sb-lang-mobile {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
  }

  .cb-app-shell .sb-lang-mobile .cb-lang-switch {
    padding: 2px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }

  .cb-app-shell .sb-lang-mobile .cb-lang-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .cb-app-shell .sb-lang-mobile .cb-lang-btn.is-active {
    background: rgba(var(--om-lime-rgb), 0.25);
  }

  .cb-app-shell .cb-content {
    padding: 20px 16px 104px;
  }

  .cb-app-shell .cb-topbar {
    padding: 10px 16px;
  }

  .cb-app-shell .cb-topbar .tb-title-wrap {
    min-width: 0;
  }

  .cb-app-shell .om-topbar-cta span {
    display: none;
  }

  .cb-app-shell .om-topbar-cta {
    width: 42px;
    padding: 0;
  }

  .om-dashboard-grid,
  .om-dashboard-grid-lists {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    border-top: 1px solid var(--om-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 28px rgba(22, 23, 15, 0.08);
    backdrop-filter: blur(14px);
  }

  .bottom-nav .bn-item {
    color: var(--om-muted-2);
    border-radius: 12px;
  }

  .bottom-nav .bn-item.is-active {
    color: var(--om-ink);
    background: transparent;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--om-paper);
  }

  .cb-app-shell .cb-topbar {
    display: none;
  }

  .cb-app-shell .cb-content {
    padding: 0 0 104px;
  }

  .om-mobile-head {
    position: relative;
    display: block;
    padding: 18px 20px 23px;
    overflow: hidden;
    color: #fff;
    border-radius: 0 0 26px 26px;
    background: var(--om-black);
  }

  .om-mobile-head::before {
    content: "";
    position: absolute;
    top: -55%;
    right: -10%;
    width: 65%;
    height: 175%;
    background: radial-gradient(circle, rgba(var(--om-lime-rgb), 0.2), transparent 62%);
    pointer-events: none;
  }

  .om-mobile-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .om-mobile-user > img,
  .om-mobile-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    object-fit: cover;
    color: var(--om-black);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: var(--om-lime);
    font-size: 16px;
    font-weight: 800;
  }

  .om-mobile-user small,
  .om-mobile-user strong {
    display: block;
  }

  .om-mobile-user small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11.5px;
  }

  .om-mobile-user strong {
    color: #fff;
    font-size: 15.5px;
  }

  .om-mobile-bell {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    margin-left: auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }

  .om-mobile-bell svg {
    width: 18px;
    height: 18px;
  }

  .om-mobile-bell span {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--om-black);
    border-radius: 50%;
    background: var(--om-rose);
  }

  .om-mobile-search {
    position: relative;
    display: flex;
    height: 44px;
    margin-top: 16px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
  }

  .om-mobile-search svg {
    width: 18px;
    height: 18px;
  }

  .om-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 0;
  }

  .om-kpi {
    min-height: 142px;
    padding: 14px;
    border-radius: 16px;
  }

  .om-kpi:hover {
    transform: none;
    box-shadow: none;
  }

  .om-kpi-secondary {
    display: none;
  }

  .om-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .om-kpi-icon svg {
    width: 17px;
    height: 17px;
  }

  .om-kpi-delta {
    position: absolute;
    bottom: 12px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 0;
    color: #188849;
    background: none;
    font-size: 10.5px;
  }

  .om-kpi > strong {
    margin-top: 10px;
    font-size: clamp(19px, 6vw, 23px);
  }

  .om-kpi > p {
    max-width: 120px;
    font-size: 11px;
  }

  .om-kpi-spark {
    display: none;
  }

  .om-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 20px 0;
  }

  .om-quick-actions > * {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--om-ink-soft, #4c4e44);
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
  }

  .om-quick-actions > * > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--om-ink);
    border: 1px solid var(--om-line);
    border-radius: 16px;
    background: var(--om-white);
  }

  .om-quick-actions > * > span.is-lime {
    color: #14170a;
    border-color: var(--om-lime);
    background: var(--om-lime);
  }

  .om-quick-actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .om-dashboard-grid {
    margin-top: 18px;
    padding: 0 20px;
  }

  .om-chart-card {
    display: none;
  }

  .om-goal-card {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns: 78px 1fr;
    gap: 4px 14px;
    padding: 17px;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-radius: 20px;
    background: var(--om-black);
  }

  .om-goal-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -15%;
    width: 58%;
    height: 180%;
    background: radial-gradient(circle, rgba(var(--om-lime-rgb), 0.22), transparent 62%);
  }

  .om-goal-card .om-card-head {
    grid-column: 2;
    align-self: end;
    padding: 0;
  }

  .om-goal-card .om-card-head h2 {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 600;
  }

  .om-goal-card .om-card-head p {
    display: none;
  }

  .om-goal-ring {
    width: 74px;
    height: 74px;
    grid-row: 1 / span 3;
    margin: 0;
    align-self: center;
  }

  .om-goal-ring::after {
    inset: 8px;
    background: var(--om-black);
  }

  .om-goal-ring strong {
    color: #fff;
    font-size: 16px;
  }

  .om-goal-ring span {
    display: none;
  }

  .om-goal-values {
    position: relative;
    z-index: 1;
    grid-column: 2;
    margin: 0;
  }

  .om-goal-values strong {
    color: #fff;
    font-size: 20px;
  }

  .om-goal-values span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
  }

  .om-goal-meta {
    position: relative;
    z-index: 1;
    width: auto;
    grid-column: 2;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .om-goal-meta > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    text-align: left;
  }

  .om-goal-meta > div + div {
    display: none;
  }

  .om-goal-meta strong {
    color: var(--om-lime);
    font-size: 11px;
  }

  .om-goal-meta span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 10.5px;
  }

  .om-dashboard-grid-lists {
    display: flex;
    margin-top: 18px;
    flex-direction: column;
    gap: 18px;
  }

  .om-dashboard-card {
    border-radius: 16px;
  }

  .om-dashboard-grid-lists .om-dashboard-card {
    border: 0;
    background: transparent;
  }

  .om-dashboard-grid-lists .om-card-head {
    padding: 0 0 11px;
  }

  .om-dashboard-grid-lists .om-card-head h2 {
    font-size: 15px;
  }

  .om-dashboard-grid-lists .om-card-head p {
    display: none;
  }

  .om-appointment-list {
    display: grid;
    gap: 10px;
    padding: 0;
  }

  .om-appointment {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--om-line) !important;
    border-radius: 15px;
    background: var(--om-white);
  }

  .om-appointment-time {
    min-width: 44px;
  }

  .om-appointment .cb-appt-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .om-status {
    padding: 4px 7px;
    font-size: 0;
  }

  .om-status i {
    width: 7px;
    height: 7px;
  }

  .om-activity-list {
    overflow: hidden;
    border: 1px solid var(--om-line);
    border-radius: 16px;
    background: var(--om-white);
  }

  .om-activity {
    padding: 12px 13px;
  }

  .om-activity time {
    display: none;
  }

  .bottom-nav {
    min-height: 76px;
    align-items: flex-start;
    justify-content: space-around;
    padding: 10px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav .bn-item {
    gap: 3px;
    font-size: 9.5px;
  }

  .bottom-nav .bn-item svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav .bn-item.bn-fab {
    flex: 0 0 58px;
    margin-top: -25px;
  }

  .bottom-nav .bn-item.bn-fab svg {
    width: 54px;
    height: 54px;
    padding: 14px;
    color: #14170a;
    border-radius: 18px;
    background: var(--om-lime);
    box-shadow: 0 10px 22px -8px rgba(var(--om-lime-rgb), 0.8);
  }

  .bottom-nav .bn-item.bn-fab span {
    display: none;
  }
}

@media (max-width: 390px) {
  .om-mobile-head,
  .om-kpi-grid,
  .om-quick-actions,
  .om-dashboard-grid {
    padding-right: 14px;
    padding-left: 14px;
  }

  .om-quick-actions > * > span {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-chart-bars i {
    animation: none;
  }
}

/* Shared application system: every private module uses the dashboard language. */
.cb-app-shell,
.cb-app-shell button,
.cb-app-shell input,
.cb-app-shell select,
.cb-app-shell textarea {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.cb-app-shell .cb-content > * {
  min-width: 0;
}

.cb-app-shell .cb-card,
.cb-app-shell .card,
.cb-app-shell .cb-integration-card,
.cb-app-shell .cb-automation-card,
.cb-app-shell .cb-empty-state {
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: var(--om-white);
  box-shadow: none;
}

.cb-app-shell .cb-card {
  padding: 22px;
}

.cb-app-shell .cb-card h2,
.cb-app-shell .cb-card h3,
.cb-app-shell .cb-integration-card h3,
.cb-app-shell .cb-automation-card h3 {
  color: var(--om-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.cb-app-shell .cb-card h2 {
  margin-bottom: 18px;
  font-size: 17px;
}

.cb-app-shell .cb-muted-text,
.cb-app-shell .cb-card p,
.cb-app-shell .cb-empty-state p {
  color: var(--om-muted);
  line-height: 1.55;
}

.cb-app-shell .cb-toolbar {
  min-height: 72px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: var(--om-white);
  box-shadow: none;
}

.cb-app-shell .cb-toolbar-meta {
  gap: 10px;
}

.cb-app-shell .cb-input,
.cb-app-shell .cb-field input,
.cb-app-shell .cb-field select,
.cb-app-shell .cb-field textarea,
.cb-app-shell .cb-settings-form input,
.cb-app-shell .cb-settings-form select,
.cb-app-shell .cb-settings-form textarea {
  min-height: 44px;
  color: var(--om-ink);
  border: 1px solid var(--om-line-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-size: 13.5px;
}

.cb-app-shell .cb-toolbar > .cb-input,
.cb-app-shell .cb-toolbar-meta > .cb-input {
  width: min(520px, 100%);
  flex: 1 1 260px;
}

.cb-app-shell .cb-input:focus,
.cb-app-shell .cb-field input:focus,
.cb-app-shell .cb-field select:focus,
.cb-app-shell .cb-field textarea:focus {
  border-color: var(--om-ink);
  box-shadow: 0 0 0 4px rgba(var(--om-lime-rgb), 0.22);
  outline: none;
}

.cb-app-shell .cb-field {
  color: var(--om-muted);
  font-size: 12px;
  font-weight: 700;
}

.cb-app-shell .cb-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1;
  text-transform: none;
}

.cb-app-shell .cb-btn-primary {
  color: #16170f;
  border-color: var(--om-lime);
  background: var(--om-lime);
}

.cb-app-shell .cb-btn-primary:hover {
  color: #16170f;
  border-color: var(--om-lime-2);
  background: var(--om-lime-2);
  box-shadow: none;
  transform: translateY(-1px);
}

.cb-app-shell .cb-btn-soft,
.cb-app-shell .cb-btn-ghost {
  color: var(--om-ink);
  border-color: var(--om-line-2);
  background: #fff;
}

.cb-app-shell .cb-btn-soft:hover,
.cb-app-shell .cb-btn-ghost:hover {
  color: var(--om-ink);
  border-color: var(--om-ink);
  background: var(--om-paper);
  box-shadow: none;
}

.cb-app-shell .cb-btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11.5px;
}

.cb-app-shell .cb-btn-icon {
  width: 40px;
  flex: 0 0 40px;
  padding: 0;
  font-size: 20px;
}

.cb-app-shell .cb-table-wrap {
  padding: 0;
  overflow: auto;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: var(--om-white);
  box-shadow: none;
}

.cb-app-shell .cb-table {
  min-width: 760px;
}

.cb-app-shell .cb-table th {
  padding: 13px 18px;
  color: var(--om-muted);
  border-bottom: 1px solid var(--om-line);
  background: #f9f9f5;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.cb-app-shell .cb-table td {
  height: 68px;
  padding: 14px 18px;
  color: var(--om-ink);
  border-bottom: 1px solid var(--om-line);
  background: #fff;
  font-size: 13px;
}

.cb-app-shell .cb-table tbody tr:hover td {
  background: rgba(var(--om-lime-rgb), 0.055);
}

.cb-app-shell .cb-person {
  gap: 11px;
}

.cb-app-shell .cb-person-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--om-ink);
  border-radius: 12px;
  background: var(--om-paper-2);
  font-size: 12px;
  font-weight: 800;
}

.cb-app-shell .cb-person strong {
  color: var(--om-ink);
  font-size: 13px;
  font-weight: 750;
}

.cb-app-shell .cb-person small,
.cb-app-shell .cb-table-sub,
.cb-app-shell .cb-message-detail {
  color: var(--om-muted);
  font-size: 10.5px;
}

.cb-app-shell .cb-row-actions {
  gap: 6px;
}

.cb-app-shell .cb-row-actions button {
  width: 34px;
  height: 34px;
  color: var(--om-ink);
  border: 1px solid var(--om-line-2);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.cb-app-shell .cb-row-actions button:hover {
  color: var(--om-ink);
  border-color: var(--om-ink);
  background: var(--om-paper);
  box-shadow: none;
}

.cb-app-shell .cb-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.cb-app-shell .cb-badge-success {
  color: #148247;
  background: #e1f7e9;
}

.cb-app-shell .cb-badge-warning {
  color: #9a6500;
  background: #fff2cf;
}

.cb-app-shell .cb-badge-danger,
.cb-app-shell .cb-badge-error {
  color: #b4233c;
  background: #ffe5e9;
}

.cb-app-shell .cb-badge-neutral,
.cb-app-shell .cb-badge:not([class*="cb-badge-"]) {
  color: #5d6055;
  background: #eeeeE7;
}

.cb-app-shell .cb-pagination {
  color: var(--om-muted);
  font-size: 12px;
}

.cb-app-shell .cb-pagination button {
  width: 36px;
  height: 36px;
  color: var(--om-ink);
  border: 1px solid var(--om-line-2) !important;
  border-radius: 10px !important;
  background: #fff;
}

.cb-app-shell .cb-pagination button.is-active {
  color: var(--om-ink) !important;
  border-color: var(--om-lime) !important;
  background: var(--om-lime) !important;
}

.cb-app-shell .cb-tabs {
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--om-line);
  border-radius: 14px;
  background: #fff;
}

.cb-app-shell .cb-tabs button,
.cb-app-shell .cb-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--om-muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cb-app-shell .cb-tabs button.is-active,
.cb-app-shell .cb-tab.is-active {
  color: var(--om-ink);
  background: rgba(var(--om-lime-rgb), 0.22);
}

.cb-app-shell .cb-two-col {
  gap: 18px;
}

.cb-app-shell .cb-integration-grid,
.cb-app-shell .cb-automation-grid {
  gap: 18px;
}

.cb-app-shell .cb-integration-card,
.cb-app-shell .cb-automation-card {
  padding: 22px;
}

.cb-app-shell .cb-integration-card:hover,
.cb-app-shell .cb-automation-tile:hover {
  border-color: var(--om-line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cb-app-shell .cb-integration-icon,
.cb-app-shell .cb-automation-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--om-ink);
  border: 0;
  border-radius: 13px;
  background: rgba(var(--om-lime-rgb), 0.26);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
}

.cb-app-shell .cb-settings-actions {
  position: sticky;
  bottom: 18px;
  z-index: 4;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--om-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.cb-app-shell .cb-check,
.cb-app-shell .cb-radio-pill {
  border-color: var(--om-line);
  border-radius: 12px;
  background: #f9f9f5;
}

.cb-app-shell .cb-check {
  min-height: 52px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  color: var(--om-ink);
  border-bottom: 1px solid var(--om-line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.cb-app-shell .cb-check:last-of-type {
  border-bottom: 0;
}

.cb-app-shell .cb-check input[type="checkbox"] {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 28px;
  min-height: 28px;
  order: 2;
  margin: 0 0 0 auto;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: #d7d7cf;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 15, 0.04);
  cursor: pointer;
  transition: background 0.18s ease;
}

.cb-app-shell .cb-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(22, 23, 15, 0.2);
  transition: transform 0.18s ease;
}

.cb-app-shell .cb-check input[type="checkbox"]:checked {
  background: var(--om-lime);
}

.cb-app-shell .cb-check input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.cb-app-shell .cb-check input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(var(--om-lime-rgb), 0.32);
  outline-offset: 2px;
}

.cb-app-shell .cb-upload,
.cb-app-shell .cb-mini-calendar {
  color: var(--om-ink);
  border-color: var(--om-line-2);
  border-radius: 14px;
  background: #f9f9f5;
}

.cb-app-shell [data-cb-calendar-panel][hidden] {
  display: none !important;
}

.cb-app-shell .cb-table tbody tr[hidden] {
  display: none !important;
}

.cb-app-shell .cb-header-popover {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}

.cb-brand-uploader {
  display: grid;
  gap: 14px;
}

.cb-brand-logo-preview {
  display: grid;
  width: 100%;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  color: var(--om-muted);
  border: 1.5px dashed var(--om-line-2);
  border-radius: 16px;
  background: #f9f9f5;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.cb-brand-logo-preview:hover,
.cb-brand-logo-preview.is-dragging {
  border-color: var(--om-lime-2);
  background: rgba(var(--om-lime-rgb), 0.1);
}

.cb-brand-logo-preview img {
  display: block;
  max-width: min(100%, 280px);
  max-height: 100px;
  object-fit: contain;
}

.cb-brand-logo-preview > span {
  display: grid;
  place-items: center;
  gap: 5px;
}

.cb-brand-logo-preview svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-brand-logo-preview strong {
  color: var(--om-ink);
  font-size: 13px;
}

.cb-brand-logo-preview small {
  font-size: 10px;
}

.cb-brand-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-brand-uploader .cb-muted-text,
.cb-brand-uploader .cb-form-status-msg {
  margin: 0;
}

.cb-app-shell .cb-kpi-grid,
.cb-app-shell .cb-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cb-app-shell .cb-kpi,
.cb-app-shell .cb-report-kpis .cb-kpi {
  display: flex;
  min-width: 0;
  min-height: 142px;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.cb-app-shell .cb-kpi-icon,
.cb-app-shell .cb-report-kpis .cb-kpi-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--om-ink);
  border-radius: 12px;
  background: rgba(var(--om-lime-rgb), 0.25);
}

.cb-app-shell .cb-kpi strong,
.cb-app-shell .cb-report-kpis .cb-kpi strong {
  color: var(--om-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cb-app-shell .cb-kpi strong::after {
  content: none;
}

.cb-app-shell .cb-kpi p,
.cb-app-shell .cb-report-kpis .cb-kpi p {
  margin-top: 5px;
  color: var(--om-muted);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.cb-app-shell .cb-kpi small,
.cb-app-shell .cb-report-kpis .cb-kpi small {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 8px;
  color: #148247;
  border-radius: 999px;
  background: #e1f7e9;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
}

.cb-app-shell .cb-report-kpis .cb-kpi:nth-child(2) .cb-kpi-icon {
  color: var(--om-blue);
  background: #e8f0ff;
}

.cb-app-shell .cb-report-kpis .cb-kpi:nth-child(3) .cb-kpi-icon {
  color: #148247;
  background: #e1f7e9;
}

.cb-app-shell .cb-report-kpis .cb-kpi:nth-child(4) .cb-kpi-icon {
  color: var(--om-violet);
  background: #f0eaff;
}

.cb-app-shell .cb-report-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: #fff;
}

.cb-app-shell .cb-report-title,
.cb-app-shell .cb-exp-section-title,
.cb-app-shell .cb-exp-panel-title,
.cb-app-shell .cb-crm-toolbar h2 {
  color: var(--om-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: none;
}

.cb-app-shell .cb-bar-fill {
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--om-lime), var(--om-lime-2));
}

.cb-app-shell .cb-trend-dot--blue {
  background: var(--om-ink);
}

.cb-app-shell .cb-trend-dot--green {
  background: var(--om-lime);
}

.cb-app-shell .cb-exp-section,
.cb-app-shell .cb-ai-agent-status-item,
.cb-app-shell .cb-crm-column,
.cb-app-shell .cb-crm-card {
  border: 1px solid var(--om-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.cb-app-shell .cb-exp-section {
  padding: 20px;
}

.cb-app-shell .cb-ai-agent-form {
  width: 100%;
  max-width: 1100px;
}

.cb-app-shell .cb-ai-agent-status-item {
  padding: 16px;
  background: #f9f9f5;
}

.cb-app-shell .cb-subnav {
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--om-line);
  border-radius: 14px;
  background: #fff;
}

.cb-app-shell .cb-subnav-item {
  min-height: 38px;
  padding: 0 14px;
  color: var(--om-muted);
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}

.cb-app-shell .cb-subnav-item.is-active {
  color: var(--om-ink);
  background: rgba(var(--om-lime-rgb), 0.22);
}

.cb-app-shell .cb-crm-toolbar {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--om-line);
  border-radius: 18px;
  background: #fff;
}

.cb-app-shell .cb-crm-board {
  gap: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.cb-app-shell .cb-crm-column {
  background: #f9f9f5;
}

.cb-app-shell .cb-crm-card:hover {
  border-color: var(--om-line-2);
  box-shadow: 0 10px 24px rgba(22, 23, 15, 0.07);
}

.cb-app-shell .cb-modal {
  background: rgba(12, 13, 11, 0.54);
  backdrop-filter: blur(4px);
}

.cb-app-shell .cb-modal-panel,
.cb-app-shell .cb-modal-box,
.cb-app-shell .cb-crm-card-modal-inner {
  border: 1px solid var(--om-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 13, 11, 0.22);
}

.cb-app-shell .cb-modal-close {
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
}

/* Calendar containment and responsive behavior. */
.cb-app-shell .cb-calendar-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.cb-app-shell .cb-calendar-side,
.cb-app-shell .cb-calendar-panel {
  min-width: 0;
}

.cb-app-shell .cb-calendar-panel {
  padding: 18px;
  overflow: hidden;
}

.cb-app-shell .cb-calendar-panel > .cb-toolbar {
  min-height: 58px;
  margin: -18px -18px 18px;
  border: 0;
  border-bottom: 1px solid var(--om-line);
  border-radius: 0;
}

.cb-app-shell .cb-calendar-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.cb-app-shell .cb-calendar-grid {
  border-color: var(--om-line);
  border-radius: 14px;
  background: #fff;
}

.cb-app-shell .cb-calendar-grid > *,
.cb-app-shell .cb-month-cell,
.cb-app-shell .cb-month-header {
  border-color: var(--om-line);
}

.cb-app-shell .cb-calendar-grid > strong,
.cb-app-shell .cb-month-header {
  background: #f9f9f5;
}

.cb-app-shell .cb-event,
.cb-app-shell .cb-event-purple {
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--om-ink);
}

.cb-app-shell .cb-segmented {
  padding: 4px;
  border-radius: 999px;
  background: var(--om-paper);
}

.cb-app-shell .cb-segmented button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--om-muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 750;
}

.cb-app-shell .cb-segmented button.is-active {
  color: var(--om-ink);
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 23, 15, 0.08);
}

/* Unified message inbox. */
.om-inbox {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  height: max(620px, calc(100vh - 130px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--om-line);
  border-radius: 20px;
  background: #fff;
}

.om-inbox-sidebar {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--om-line);
  background: #fbfbf8;
}

.om-inbox-toolbar,
.om-chat-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--om-line);
}

.om-inbox-toolbar {
  justify-content: space-between;
}

.om-inbox-toolbar > div {
  display: grid;
  gap: 2px;
}

.om-inbox-toolbar strong {
  color: var(--om-ink);
  font-size: 15px;
  font-weight: 800;
}

.om-inbox-toolbar span,
.om-chat-head span {
  color: var(--om-muted);
  font-size: 10.5px;
}

.om-inbox-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 9px;
  margin: 12px;
  padding: 0 13px;
  color: var(--om-muted);
  border: 1px solid var(--om-line);
  border-radius: 999px;
  background: #fff;
}

.om-inbox-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.om-inbox-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.om-thread-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 10px;
}

.om-thread {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px 10px;
  color: var(--om-ink);
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.om-thread:hover,
.om-thread.is-active {
  background: rgba(var(--om-lime-rgb), 0.16);
}

.om-thread[hidden] {
  display: none;
}

.om-thread-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--om-ink);
  border-radius: 14px;
  background: var(--om-paper-2);
  font-size: 12px;
  font-weight: 800;
}

.om-thread-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--om-green);
}

.om-thread-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.om-thread-copy > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.om-thread-copy strong {
  overflow: hidden;
  flex: 1;
  font-size: 12.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-thread-copy time,
.om-thread-copy small {
  color: var(--om-muted);
  font-size: 9.5px;
}

.om-thread-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-chat-shell,
.om-chat-panel {
  min-width: 0;
  min-height: 0;
}

.om-chat-panel {
  display: none;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.om-chat-panel.is-active {
  display: grid;
}

.om-chat-head {
  background: #fff;
}

.om-chat-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.om-chat-head strong {
  overflow: hidden;
  color: var(--om-ink);
  font-size: 13.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-chat-action {
  margin-left: auto;
}

.om-chat-delete {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #dc3545;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s, background .15s, border-color .15s;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
}
.om-chat-delete:hover {
  opacity: 1;
  background: #fff0f0;
  border-color: #dc3545;
}
.om-chat-delete svg {
  display: block;
  pointer-events: none;
}

.om-chat-back {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 11px;
  background: #fff;
}

.om-chat-back svg,
.om-chat-compose svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.om-chat-body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 14px 14px, rgba(22, 23, 15, 0.025) 1px, transparent 1px),
    #f6f5ef;
  background-size: 28px 28px;
}

.om-message-row {
  display: flex;
  margin-bottom: 10px;
}

.om-message-row.is-outgoing {
  justify-content: flex-end;
}

.om-message-bubble {
  max-width: min(72%, 560px);
  padding: 11px 13px 8px;
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(22, 23, 15, 0.04);
}

.is-outgoing .om-message-bubble {
  border-color: rgba(var(--om-lime-rgb), 0.6);
  border-radius: 15px 15px 4px;
  background: #eff2a8;
}

.om-message-bubble p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.om-message-bubble span {
  display: block;
  margin-top: 5px;
  color: #77796f;
  font-size: 8.5px;
  text-align: right;
}

.om-message-bubble button {
  margin-top: 7px;
  padding: 0;
  color: #b4233c;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.om-message-error {
  display: block;
  margin-top: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 9.5px;
  line-height: 1.4;
  word-break: break-word;
}

.om-chat-compose {
  padding: 12px 16px;
  border-top: 1px solid var(--om-line);
  background: #fff;
}

.om-chat-compose > button {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 17px;
  color: var(--om-muted);
  border: 1px solid var(--om-line-2);
  border-radius: 999px;
  background: #f9f9f5;
  font-size: 12px;
  text-align: left;
}

.om-chat-compose svg {
  color: var(--om-ink);
}

.om-chat-compose-form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 17px;
  border: 1px solid var(--om-line-2);
  border-radius: 999px;
  background: #f9f9f5;
}

.om-chat-compose-form textarea {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  appearance: none;
  background: transparent;
  color: var(--om-muted);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  max-height: 28px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.om-chat-compose-form textarea:focus {
  color: var(--om-ink);
}

.om-chat-compose-form button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--om-ink);
}

.om-chat-compose-form button svg {
  width: 18px;
  height: 18px;
  color: var(--om-ink);
}

.om-chat-compose-form button:disabled {
  opacity: 0.5;
}

.om-chat-compose-form.is-template-required {
  background: #fff7ed;
  border-color: #fdba74;
  cursor: pointer;
}

.om-chat-compose-form.is-template-required textarea {
  cursor: pointer;
  color: #9a3412;
}

/* Keep the private navigation above its backdrop and remove blur interference. */
.cb-mobile-backdrop {
  z-index: 100001;
  background: rgba(12, 13, 11, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cb-mobile-nav-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

@media (max-width: 980px) {
  .cb-app-shell .cb-kpi-grid,
  .cb-app-shell .cb-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-app-shell[data-mobile-open="true"] .cb-sidebar {
    z-index: 100002;
    box-shadow: 18px 0 48px rgba(12, 13, 11, 0.22);
    filter: none;
    opacity: 1;
    pointer-events: auto;
  }

  .cb-app-shell .cb-calendar-layout {
    display: block;
  }

  .cb-app-shell .cb-calendar-side {
    display: none;
  }

  .cb-app-shell .cb-calendar-grid {
    min-width: 760px;
  }

  .cb-app-shell .cb-calendar-grid--day {
    width: 100%;
    min-width: 0;
    grid-template-columns: 58px minmax(210px, 1fr);
  }

  .cb-app-shell .cb-calendar-month {
    min-width: 620px;
  }
}

@media (max-width: 700px) {
  .cb-app-shell .cb-kpi-grid,
  .cb-app-shell .cb-report-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cb-app-shell .cb-kpi,
  .cb-app-shell .cb-report-kpis .cb-kpi {
    min-height: 118px;
    padding: 16px;
  }

  .cb-app-shell .cb-report-header,
  .cb-app-shell .cb-crm-toolbar {
    align-items: stretch;
    padding: 15px;
  }

  .cb-app-shell .cb-report-header .cb-inline-actions,
  .cb-app-shell .cb-crm-toolbar .cb-btn {
    width: 100%;
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-topbar {
    display: flex;
    min-height: 62px;
    padding: 9px 13px;
    background: rgba(244, 243, 236, 0.96);
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-topbar .tb-title-wrap {
    min-width: 0;
    flex: 1;
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-topbar .tb-title {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-topbar .tb-title-wrap > div:last-child {
    display: none;
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-topbar-actions .tb-icon:not(:last-of-type) {
    display: none;
  }

  .cb-app-shell:not(.cb-screen-dashboard) .cb-content {
    padding: 14px 12px 104px;
  }

  .cb-app-shell .cb-toolbar {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .cb-app-shell .cb-toolbar > *,
  .cb-app-shell .cb-toolbar-meta,
  .cb-app-shell .cb-toolbar-right {
    width: 100%;
  }

  .cb-app-shell .cb-toolbar > .cb-input,
  .cb-app-shell .cb-toolbar-meta > .cb-input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  .cb-app-shell .cb-patient-toolbar {
    gap: 10px;
  }

  .cb-app-shell .cb-patient-toolbar .cb-btn {
    width: 100%;
  }

  .cb-app-shell .cb-toolbar-right {
    justify-content: space-between;
  }

  .cb-app-shell .cb-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cb-app-shell .cb-table {
    min-width: 0;
  }

  .cb-app-shell .cb-table tbody tr {
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid var(--om-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
  }

  .cb-app-shell .cb-table td {
    gap: 16px;
    padding: 7px 0;
    font-size: 12px;
  }

  .cb-app-shell .cb-table td::before {
    color: var(--om-muted);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .cb-app-shell .cb-table td:first-child {
    align-items: flex-start;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--om-line) !important;
  }

  .cb-app-shell .cb-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .cb-app-shell .cb-card {
    padding: 17px;
    border-radius: 16px;
  }

  .cb-app-shell .cb-calendar-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .cb-app-shell .cb-calendar-panel > .cb-toolbar {
    margin: -12px -12px 12px;
    padding: 10px;
  }

  .cb-app-shell .cb-calendar-panel .cb-btn {
    width: 100%;
  }

  .cb-app-shell .cb-segmented {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .cb-app-shell .cb-calendar-grid--day {
    grid-template-columns: 52px minmax(190px, 1fr);
  }

  .cb-app-shell .cb-month-cell {
    min-height: 64px;
  }

  .om-inbox {
    display: block;
    height: calc(100dvh - 182px);
    min-height: 520px;
    border-radius: 16px;
  }

  .om-inbox-sidebar {
    height: 100%;
    border-right: 0;
  }

  .om-inbox[data-chat-open="true"] .om-inbox-sidebar {
    display: none;
  }

  .om-chat-shell {
    display: none;
    height: 100%;
  }

  .om-inbox[data-chat-open="true"] .om-chat-shell {
    display: block;
  }

  .om-chat-back {
    display: grid;
  }

  .om-chat-head {
    min-height: 66px;
    padding: 10px;
  }

  .om-chat-head .om-thread-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .om-chat-action {
    width: 38px;
    min-width: 38px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .om-chat-action::before {
    content: "+";
    font-size: 19px;
  }

  .om-chat-body {
    padding: 16px 12px;
  }

  .om-message-bubble {
    max-width: 86%;
  }

  .om-inbox-toolbar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .om-thread-list {
    padding-right: 5px;
    padding-left: 5px;
  }

  .om-thread {
    padding: 11px 8px;
  }

  .cb-app-shell .cb-settings-actions {
    bottom: 88px;
  }
}

/* ── WhatsApp Wizard ───────────────────────────────────────────── */
.cb-wa-wizard {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.cb-wa-wizard__card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.cb-wa-wizard__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.cb-wa-wizard__close:hover { color: #374151; }
.cb-wa-wizard__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.cb-wa-wizard__icon { font-size: 26px; }
.cb-wa-wizard__title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.cb-wa-wizard__steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.cb-wa-wizard__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.cb-wa-wizard__dot.is-active {
  background: var(--cb-primary, #2563eb);
  color: #fff;
}
.cb-wa-wizard__dot.is-done {
  background: #22c55e;
  color: #fff;
}
.cb-wa-wizard__line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
}
.cb-wa-wizard__desc {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.5;
}
.cb-wa-wizard__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.cb-wa-wizard__input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.cb-wa-wizard__input:focus { border-color: var(--cb-primary, #2563eb); }
.cb-wa-wizard__phone-row {
  display: flex;
  gap: 8px;
}
.cb-wa-wizard__cc {
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  cursor: pointer;
}
.cb-wa-wizard__cc:focus { border-color: var(--cb-primary, #2563eb); }
.cb-wa-wizard__phone-row .cb-wa-wizard__input { flex: 1; }
.cb-wa-wizard__hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 6px 0 20px;
}
.cb-wa-wizard__row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.cb-wa-wizard__row .cb-btn { flex: 1; }
.cb-wa-wizard__next,
.cb-wa-wizard__step > .cb-btn-primary {
  width: 100%;
  margin-top: 20px;
}
.cb-wa-wizard__code {
  letter-spacing: 6px;
  font-size: 22px;
  text-align: center;
  font-weight: 700;
}
.cb-wa-wizard__err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  color: #991b1b;
  font-size: .84rem;
  line-height: 1.45;
}
.cb-wa-wizard__err strong { display: block; margin-bottom: 4px; }
.cb-wa-wizard__err-hint { margin: 4px 0 0; color: #b45309; font-size: .82rem; }
/* Logo picker */
.cb-wa-wizard__opt { font-weight: 400; color: #6b7280; font-size: .78rem; margin-left: 4px; }
.cb-wa-wizard__logo-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.cb-wa-wizard__logo-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1.5px dashed #d1d5db; border-radius: 8px; padding: 7px 14px;
  font-size: .83rem; color: #374151; transition: border-color .15s, color .15s;
}
.cb-wa-wizard__logo-btn:hover { border-color: var(--cb-primary, #2563eb); color: var(--cb-primary, #2563eb); }
.cb-wa-wizard__logo-preview { position: relative; flex-shrink: 0; }
.cb-wa-wizard__logo-preview img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; display: block; }
.cb-wa-wizard__logo-clear {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  border-radius: 50%; background: #ef4444; color: #fff; border: none;
  font-size: 11px; cursor: pointer; line-height: 18px; padding: 0; text-align: center;
}
