/* Elinom Connect — public product page + customer workspace + admin chrome */

:root {
  --cx-ink: #0b1220;
  --cx-muted: #475569;
  --cx-line: #dbe3f0;
  --cx-bg: #f4f7fb;
  --cx-card: #ffffff;
  --cx-accent: #4f46e5;
  --cx-accent-2: #0ea5e9;
  --cx-good: #059669;
  --cx-warn: #d97706;
  --cx-bad: #dc2626;
}

body.connect-public {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--cx-bg);
  color: var(--cx-ink);
}

.cx-hero {
  position: relative;
  margin: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, #0b1220 0%, #1e1b4b 48%, #0ea5e9 120%);
  color: #fff;
}
.cx-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.cx-hero-badge {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-hero h1 {
  font-size: 3rem;
  line-height: 1.12;
  margin: 1rem 0 1rem;
  font-weight: 900;
}
.cx-hero h1 span {
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-hero p {
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 34rem;
}
.cx-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.cx-btn-primary {
  background: linear-gradient(120deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.cx-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cx-btn-danger {
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  color: #fff;
}
.cx-btn-record {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.55);
}
.cx-btn-record.is-recording {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}
.cx-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.45rem;
  color: #fecaca;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.cx-rec-badge[hidden] {
  display: none;
}
.cx-rec-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}
.cx-rec-player {
  width: min(220px, 100%);
  height: 32px;
}
.cx-chip-rec {
  background: #fee2e2;
  color: #991b1b;
}
.cx-settings-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 0;
}
.cx-kpi {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.cx-kpi strong {
  display: block;
  font-size: 1.05rem;
}
.cx-kpi span {
  color: #bfdbfe;
  font-size: 0.82rem;
}
.cx-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.2rem 1.4rem;
}
.cx-kicker {
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.cx-card {
  background: var(--cx-card);
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.cx-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.02rem;
}
.cx-card p,
.cx-muted {
  color: var(--cx-muted);
  line-height: 1.6;
}
.cx-soon {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border-radius: 99px;
  padding: 0.15rem 0.5rem;
}
.cx-footer-support {
  background: #0b1220;
  color: #dbeafe;
  padding: 2rem 1.4rem;
}
.cx-footer-support a {
  color: #93c5fd;
}

body.connect-app {
  margin: 0;
  background: #eef2f7;
  color: var(--cx-ink);
  font-family: Inter, "Segoe UI", sans-serif;
}
body.connect-app .cx-login-gate[hidden],
body.connect-app .cx-shell[hidden] {
  display: none !important;
}
/* Platform command palette is for ERP/marketing chrome, not this workspace. */
body.connect-app #us-trigger,
body.connect-app .us-trigger,
body.connect-app #us-overlay,
body.connect-app #us-palette,
body.connect-app #navbar[data-erp-injected-global-nav] {
  display: none !important;
}
.cx-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.cx-side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.16) 0%, transparent 28%),
    #0b1220;
  color: #e2e8f0;
  padding: 0.85rem 0.7rem 0.7rem;
  z-index: 20;
}
.cx-side-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0b1220;
}
.cx-side-scroll::-webkit-scrollbar {
  width: 8px;
  height: 0;
}
.cx-side-scroll::-webkit-scrollbar-track {
  background: #0b1220;
}
.cx-side-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 99px;
}
.cx-side-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0 0 0.45rem;
}
.cx-side-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.55rem;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-align: left;
}
.cx-side-toggle i {
  width: 1.15rem;
  text-align: center;
  color: #e2e8f0;
  font-size: 0.9rem;
}
.cx-side-toggle:hover,
.cx-side-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.cx-side-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.cx-side-group.is-collapsed .cx-side-toggle::after {
  transform: rotate(-45deg) translateY(1px);
}
.cx-side-items {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin: 0.1rem 0 0.15rem 0.7rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(148, 163, 184, 0.28);
}
.cx-side-group.is-collapsed .cx-side-items {
  display: none;
}
.cx-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.cx-user-menu {
  position: relative;
}
.cx-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 14rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #fff;
  color: #312e81;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}
.cx-user-btn i {
  font-size: 0.75rem;
  color: #4f46e5;
}
.cx-user-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-user-btn:hover,
.cx-user-btn:focus-visible,
.cx-user-btn[aria-expanded="true"] {
  background: #eef2ff;
  border-color: #a5b4fc;
}
.cx-user-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 160px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 30;
}
.cx-user-dropdown[hidden] {
  display: none !important;
}
.cx-user-dropdown button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cx-user-dropdown button:hover {
  background: #eef2ff;
  color: #3730a3;
}
.cx-side-brand {
  margin: 0 0.55rem 1rem;
  padding: 0.28rem 0.35rem 0.2rem;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #f472b6, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-side-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cx-side a,
.cx-side button.cx-nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 0.42rem 0.55rem;
  font-size: 0.86rem;
  cursor: pointer;
  text-align: left;
}
.cx-side a i,
.cx-side button.cx-nav i {
  width: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
}
.cx-side button.cx-nav.active,
.cx-side a.active {
  background: rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
  font-weight: 600;
}
.cx-side button.cx-nav.active i,
.cx-side a.active i {
  color: #c7d2fe;
}
.cx-main {
  padding: 1.2rem 1.3rem 2rem;
}
.cx-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--cx-line);
}
.cx-top-title {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 0;
}
.cx-menu-btn,
.cx-menu-backdrop {
  display: none;
}
.cx-top h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.cx-top .cx-muted {
  margin: 0.2rem 0 0;
}
.cx-top-link {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  color: #312e81;
  border: 1px solid #c7d2fe;
  font-size: 0.86rem;
  box-shadow: none;
}
.cx-home {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.cx-home-copy,
.cx-home-meta {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-home-copy h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
  color: #0f172a;
}
.cx-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}
.cx-home-links .cx-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  background: #fff;
  color: #312e81;
  border: 1px solid #c7d2fe;
  box-shadow: none;
}
.cx-home-links .cx-btn-primary {
  background: linear-gradient(120deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
  color: #fff;
  border: 0;
}
.cx-home-meta .cx-msg-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cx-line);
  font-size: 0.88rem;
}
.cx-home-meta .cx-msg-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cx-home-kpis {
  margin-bottom: 0.9rem;
}
.cx-home-kpis .cx-stat-card {
  border-top: 3px solid #4f46e5;
}
.cx-home-charts {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.cx-home-charts .cx-chart-wide {
  grid-column: 1 / -1;
}
.cx-revenue .cx-facts {
  margin-bottom: 0.75rem;
}
.cx-revenue .cx-fact {
  box-shadow: none;
  background: #f8fafc;
}
.cx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.cx-stat {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.cx-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 7.2rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-stat-card b {
  font-size: 1.7rem;
  line-height: 1.1;
  color: #312e81;
}
.cx-stat-card small {
  margin-top: auto;
  color: #64748b;
  font-size: 0.75rem;
}
.cx-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.9rem 0;
}
.cx-chart-card {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-chart-card h2 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.cx-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cx-bar-row {
  display: grid;
  grid-template-columns: 6.2rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.82rem;
  color: #334155;
}
.cx-bar-track {
  height: 8px;
  border-radius: 99px;
  background: #e0e7ff;
  overflow: hidden;
}
.cx-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}
.cx-donut-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cx-donut {
  width: 128px;
  height: 128px;
}
.cx-donut-track,
.cx-donut-value {
  fill: none;
  stroke-width: 10;
}
.cx-donut-track { stroke: #e0e7ff; }
.cx-donut-value {
  stroke: #4f46e5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 48px 48px;
}
.cx-donut text {
  fill: #312e81;
  font-size: 16px;
  font-weight: 800;
}
.cx-setup-step {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: #312e81;
}
.cx-setup-track { margin-bottom: 0.7rem; }
.cx-stat b {
  display: block;
  font-size: 1.4rem;
}
.cx-page-lead {
  margin: 0 0 0.9rem;
  max-width: 46rem;
}
.cx-panel {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin: 0 0 0.9rem;
}
.cx-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.cx-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.cx-split .cx-panel {
  margin: 0;
}
.cx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.85rem;
}
.cx-panel input,
.cx-panel select,
.cx-panel textarea,
.cx-toolbar input,
.cx-toolbar select {
  box-sizing: border-box;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.cx-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.cx-chip-off {
  background: #f1f5f9;
  color: #64748b;
}
.cx-msg-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.cx-msg-channel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-msg-channel.is-on {
  border-color: #c7d2fe;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.08);
}
.cx-msg-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cx-msg-head div {
  flex: 1 1 auto;
  min-width: 0;
}
.cx-msg-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}
.cx-msg-head p {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
}
.cx-msg-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}
.cx-msg-mark-wa {
  background: #312e81;
}
.cx-msg-channel label,
.cx-msg-compose-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.cx-msg-channel input:not([type="checkbox"]),
.cx-msg-compose input,
.cx-msg-compose select,
.cx-msg-compose textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}
.cx-msg-channel input:not([type="checkbox"]):focus,
.cx-msg-compose input:focus,
.cx-msg-compose select:focus,
.cx-msg-compose textarea:focus {
  outline: 2px solid #c7d2fe;
  outline-offset: 1px;
  border-color: #6366f1;
  background: #fff;
}
.cx-msg-channel label.cx-msg-switch {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
}
.cx-msg-switch input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #4f46e5;
}
.cx-msg-save {
  margin: 0.85rem 0 0.95rem;
}
.cx-msg-save .cx-btn-primary,
.cx-msg-compose-bar .cx-btn-primary {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
}
.cx-msg-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 0.9rem;
  align-items: start;
}
.cx-msg-compose-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cx-msg-compose-form label:nth-child(n + 3),
.cx-msg-compose-bar {
  grid-column: 1 / -1;
}
.cx-msg-compose textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.cx-msg-compose-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cx-msg-result {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
}
.cx-msg-result:empty {
  display: none;
}
.cx-msg-result.is-error {
  background: #fff1f2;
  color: #9f1239;
}
.cx-msg-network .cx-msg-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cx-line);
  font-size: 0.88rem;
}
.cx-msg-network .cx-msg-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cx-msg-row span {
  color: #64748b;
}
.cx-msg-row b {
  color: #312e81;
  text-align: right;
}
.cx-toolbar input,
.cx-toolbar select {
  min-width: 11rem;
  flex: 1 1 11rem;
}
.cx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.cx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  background: #fff;
}
.cx-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.cx-table th,
.cx-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--cx-line);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}
.cx-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-table tr:last-child td {
  border-bottom: 0;
}
.cx-empty {
  color: var(--cx-muted);
  text-align: center;
}
.cx-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.9rem;
}
.cx-fact {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-fact b {
  display: block;
  color: #312e81;
  font-size: 1.05rem;
}
.cx-fact span {
  color: #64748b;
  font-size: 0.78rem;
}
.cx-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.cx-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}
.cx-steps .cx-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.78rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.cx-steps .is-current {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.cx-steps .is-current .cx-step-index,
.cx-steps .is-done .cx-step-index {
  background: #4f46e5;
  color: #fff;
}
.cx-steps .is-done {
  color: #334155;
}
body.connect-app .cx-panel .cx-btn,
body.connect-app .cx-toolbar .cx-btn,
body.connect-app .cx-table .cx-btn,
body.connect-app .cx-actions .cx-btn,
body.connect-app .cx-page-actions .cx-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  background: #fff;
  color: #312e81;
  border: 1px solid #c7d2fe;
  box-shadow: none;
}
body.connect-app .cx-panel .cx-btn-primary,
body.connect-app .cx-toolbar .cx-btn-primary,
body.connect-app .cx-table .cx-btn-primary,
body.connect-app .cx-actions .cx-btn-primary,
body.connect-app .cx-page-actions .cx-btn-primary {
  background: linear-gradient(120deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
  color: #fff;
  border: 0;
}
body.connect-app .cx-table .cx-btn-danger,
body.connect-app .cx-actions .cx-btn-danger {
  background: #fff;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.cx-panel .cx-settings-form {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}
.cx-panel .cx-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.cx-panel .cx-settings-form label:has(textarea),
.cx-panel .cx-settings-form .cx-check-grid,
.cx-panel .cx-settings-form > p,
.cx-panel .cx-settings-form > button,
.cx-panel .cx-settings-form > .cx-check-row,
.cx-panel .cx-settings-form #cxPermitBox,
.cx-panel .cx-settings-form #cxProhibitBox {
  grid-column: 1 / -1;
}
.cx-attr-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.cx-attr-form input {
  min-width: 7rem;
  flex: 1 1 7rem;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
}
.cx-dialler-stage {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0 0 1.25rem;
  box-sizing: border-box;
  background: none;
}
.cx-phone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  width: 100%;
  max-width: 980px;
  align-items: start;
}
.cx-dialler,
.cx-dial-card {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.cx-dialler {
  max-width: 26rem;
  justify-self: start;
}
.cx-dial-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.cx-dial-card h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.cx-dial-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cx-dial-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.cx-dial-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: #e0e7ff;
  color: #312e81;
  font-size: 0.78rem;
  font-weight: 800;
}
.cx-dial-pill strong {
  font-weight: 800;
}
.cx-dial-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem;
}
.cx-dialler-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
}
.cx-dial-field {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.cx-dial-field select,
.cx-dialler-stage #cxDialInput,
.cx-dialler-stage .cx-notes-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}
.cx-dial-field select {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
}
.cx-dialler-stage #cxDialInput {
  min-height: 3.15rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cx-notes-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
}
.cx-notes-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
}
.cx-notes-row .cx-btn {
  flex: 0 0 auto;
  align-self: stretch;
  white-space: nowrap;
  margin: 0;
  padding: 0.7rem 0.95rem;
}
.cx-rename {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.cx-rename[hidden] {
  display: none !important;
}
.cx-rename input {
  flex: 1 1 8rem;
  min-width: 8rem;
  box-sizing: border-box;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.cx-purchase[hidden] {
  display: none !important;
}
.cx-purchase {
  margin: 0.8rem 0 0.2rem;
  padding: 0.85rem;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f8fafc;
}
#cxDialNotice:empty {
  display: none;
}
.cx-purchase p {
  margin: 0;
  font-weight: 700;
  color: #312e81;
}
.cx-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  padding: 0 0 0.2rem;
}
.cx-keys button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 0.2rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #e8eef6 100%);
  color: #0f172a;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 #c5ceda,
    0 4px 6px rgba(15, 23, 42, 0.1);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
.cx-keys button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e0e7ff 100%);
  border-color: #c7d2fe;
}
.cx-keys button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
.cx-keys button:active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #e8eef6 0%, #dbe3f0 100%);
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.16),
    0 1px 0 #c5ceda;
}
.cx-key-digit {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
}
.cx-key-sub {
  min-height: 0.65rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}
.cx-callbar,
.cx-dial-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.cx-dial-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin-top: 0;
}
.cx-dialler-stage .cx-btn {
  min-height: 2.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #c5ceda;
  font-size: 0.88rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #e8eef6 100%);
  color: #1e293b;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 #c5ceda,
    0 4px 8px rgba(15, 23, 42, 0.1);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
.cx-dialler-stage .cx-callbar-main {
  flex-wrap: nowrap;
}
.cx-dialler-stage .cx-callbar-main .cx-btn {
  border-radius: 999px;
  min-height: 3.05rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.cx-dialler-stage .cx-callbar .cx-btn,
.cx-dialler-stage #cxCrmActions a.cx-btn {
  flex: 1 1 7.5rem;
}
.cx-dialler-stage .cx-callbar-main .cx-btn {
  flex: 1 1 0;
  min-width: 0;
}
.cx-dialler-stage .cx-btn:hover {
  filter: brightness(1.03);
}
.cx-dialler-stage .cx-btn:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}
.cx-dialler-stage .cx-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 5px rgba(15, 23, 42, 0.2),
    0 0 0 #c5ceda;
}
.cx-dialler-stage .cx-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #e2e8f0;
}
.cx-dialler-stage .cx-btn-primary {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 55%, #4338ca 100%);
  color: #fff;
  border-color: #3730a3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 3px 0 #312e81,
    0 5px 10px rgba(49, 46, 129, 0.28);
}
.cx-dialler-stage .cx-btn-primary:active:not(:disabled) {
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.35), 0 0 0 #312e81;
}
.cx-dialler-stage .cx-btn-ghost,
.cx-dialler-stage .cx-notes-row .cx-btn,
.cx-dialler-stage #cxCrmActions a.cx-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef6 100%);
  color: #312e81;
  border: 1px solid #c5ceda;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 #c5ceda,
    0 4px 8px rgba(15, 23, 42, 0.1);
}
.cx-dialler-stage .cx-btn-danger {
  background: linear-gradient(180deg, #fca5a5 0%, #ef4444 48%, #dc2626 100%);
  color: #fff;
  border-color: #b91c1c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 3px 0 #991b1b,
    0 5px 10px rgba(153, 27, 27, 0.24);
}
.cx-dialler-stage .cx-btn-danger:active:not(:disabled) {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.3), 0 0 0 #991b1b;
}
.cx-dialler-stage #cxAnswer {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 48%, #059669 100%);
  color: #fff;
  border-color: #047857;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 3px 0 #065f46,
    0 5px 10px rgba(6, 95, 70, 0.24);
}
.cx-dialler-stage #cxAnswer:active:not(:disabled) {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.3), 0 0 0 #065f46;
}
.cx-dialler-stage .cx-btn-record {
  background: linear-gradient(180deg, #fff 0%, #ffe4e6 100%);
  color: #9f1239;
  border: 1px solid #fecdd3;
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 #fda4af,
    0 4px 8px rgba(159, 18, 57, 0.1);
}
.cx-dialler-stage .cx-btn-record.is-recording {
  background: linear-gradient(180deg, #fca5a5 0%, #dc2626 100%);
  color: #fff;
  border-color: #b91c1c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 3px 0 #991b1b,
    0 5px 10px rgba(153, 27, 27, 0.24);
}
.cx-dialler-crm {
  min-height: 0;
  margin: 0 0 0.35rem;
  color: #334155;
  text-align: left;
}
.cx-dialler-crm:empty {
  display: none;
}
.cx-chip {
  display: inline-block;
  border-radius: 99px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
}
.cx-login-gate {
  display: grid;
  grid-template-columns: minmax(16rem, 0.86fr) minmax(18rem, 1.14fr);
  min-height: 100vh;
  margin: 0;
  max-width: none;
  background: #0b1220;
}
.cx-login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  min-height: 100vh;
  padding: 2.4rem 2.2rem;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.18) 0%, transparent 36%),
    #0b1220;
  color: #cbd5e1;
}
.cx-login-brand .cx-side-brand {
  margin: 0;
  font-size: 1.8rem;
}
.cx-login-brand p:last-child {
  max-width: 22rem;
  margin: 0;
  line-height: 1.6;
}
.cx-login-gate-inner {
  display: flex;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  background: #eef2f7;
  padding: 2.4rem clamp(1.4rem, 5vw, 4.5rem);
}
.cx-login-panel {
  width: min(100%, 26rem);
}
.cx-login-gate h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  background: none;
}
.cx-login-panel .cx-muted {
  margin: 0 0 1.3rem;
  font-size: 1rem;
}
.cx-login-gate #cxLoginBtn {
  min-width: 9rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.cx-login-back {
  display: inline-block;
  margin-top: 1.1rem;
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}
.cx-login-back:hover,
.cx-login-back:focus-visible {
  text-decoration: underline;
}
@media (max-width: 800px) {
  .cx-login-gate {
    grid-template-columns: 1fr;
  }
  .cx-login-brand,
  .cx-login-gate-inner {
    min-height: 0;
  }
  .cx-login-brand {
    justify-content: flex-start;
    min-height: 0;
    padding: 1.6rem 1.25rem 1.2rem;
  }
  .cx-login-gate-inner {
    padding: 1.5rem 1.25rem 2.4rem;
  }
}
.cx-help-menu,
.cx-phone-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 0.45rem;
  z-index: 80;
}
.cx-help-menu a,
.cx-phone-menu a,
.cx-phone-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
#navHelpWrap,
#navConnectWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
#navNotifWrap #navHelpBtn,
#navNotifWrap #navConnectBtn {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0.35rem 0.45rem;
  min-width: 2rem;
}
.cx-agent-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 12rem;
}
.cx-check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.cx-agent-form .cx-check-row {
  flex-direction: row;
}
.cx-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0.85rem;
}
.cx-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.cx-session-table {
  margin-top: 1.2rem;
}
@media (max-width: 900px) {
  .cx-hero-inner,
  .cx-grid,
  .cx-stats,
  .cx-chart-grid,
  .cx-shell {
    grid-template-columns: 1fr;
  }
  .cx-bar-row {
    grid-template-columns: 5.4rem 1fr auto;
  }
  .cx-hero h1 {
    font-size: 2rem;
  }
  .cx-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin: 0 0 0.15rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
    background: #fff;
    color: #312e81;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .cx-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }
  .cx-menu-backdrop:not([hidden]) {
    display: block;
  }
  .cx-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
  .cx-shell.is-menu-open .cx-side {
    transform: none;
  }
  body.connect-app:has(.cx-shell.is-menu-open) {
    overflow: hidden;
  }
  .cx-split,
  .cx-panel .cx-settings-form,
  .cx-stats {
    grid-template-columns: 1fr;
  }
  .cx-dialler-stage {
    min-height: 0;
    padding: 0 0 1rem;
  }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .cx-top-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cx-top-actions .cx-top-link {
    order: -1;
  }
  .cx-user-btn {
    width: 100%;
  }
  .cx-home,
  .cx-home-charts,
  .cx-stats.cx-home-kpis,
  .cx-revenue .cx-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cx-home-charts .cx-chart-wide {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .cx-top-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cx-top-actions .cx-top-link {
    order: -1;
  }
  .cx-user-btn {
    width: 100%;
  }
  .cx-home,
  .cx-home-charts,
  .cx-stats.cx-home-kpis,
  .cx-revenue .cx-facts,
  .cx-msg-channels,
  .cx-msg-bottom,
  .cx-msg-compose-form {
    grid-template-columns: 1fr;
  }
  .cx-msg-compose-form label:nth-child(n + 3),
  .cx-msg-compose-bar {
    grid-column: auto;
  }
}

.cx-settings-form {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}
.cx-settings-form input,
.cx-settings-form select,
.cx-settings-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
}
.cx-primary-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem 0.8rem;
}
.cx-primary-nav .cx-nav {
  width: 100%;
}
.cx-bottom-nav {
  display: none;
}
.cx-market-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.cx-market-filters select,
.cx-market-filters input,
.cx-market-filters button {
  min-width: 9rem;
}
@media (max-width: 900px) {
  .cx-market-filters > * {
    width: 100%;
    min-width: 0;
  }
}
.cx-onboard .is-current {
  font-weight: 800;
  color: var(--cx-accent);
}
.cx-grid a.cx-card {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 900px) {
  .cx-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--cx-line);
    z-index: 1000;
  }
  .cx-bottom-nav .cx-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
    font-size: 0.68rem;
    padding: 0.55rem 0.2rem;
    background: transparent;
    border: 0;
  }
  .cx-primary-nav {
    display: none;
  }
  .cx-main {
    padding-bottom: 5.5rem;
    z-index: 0;
  }
  .cx-bottom-nav {
    z-index: 30;
  }
  .cx-shell {
    padding-bottom: 4.2rem;
    isolation: isolate;
  }
}
.cx-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
}
.cx-dialler-audio {
  min-height: 0;
  margin: 0.55rem 0 0;
  color: #312e81;
  font-size: 0.86rem;
  font-weight: 700;
}
.cx-dialler-audio:empty {
  display: none;
}
.cx-ai-saved {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}
.cx-ai-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.9rem;
}
.cx-ai-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
}
.cx-ai-status h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
  color: #0f172a;
}
.cx-ai-status p {
  margin: 0;
  max-width: 36rem;
  color: #475569;
  line-height: 1.45;
}
.cx-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.cx-ai-after {
  background: #fef3c7;
  color: #92400e;
}
.cx-ai-on {
  background: #d1fae5;
  color: #065f46;
}
.cx-ai-off {
  background: #f1f5f9;
  color: #475569;
}
.cx-ai-kpis {
  margin-bottom: 0.9rem;
}
.cx-ai-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.92fr) minmax(0, 1.08fr);
  gap: 0.9rem;
  align-items: start;
}
.cx-ai-layout .cx-panel {
  margin: 0;
}
.cx-ai .cx-settings-form {
  grid-template-columns: 1fr;
}
.cx-ai .cx-settings-form input:not([type="checkbox"]),
.cx-ai .cx-settings-form select,
.cx-ai .cx-settings-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
}
.cx-ai .cx-settings-form input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #4f46e5;
}
.cx-ai .cx-settings-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.cx-ai .cx-settings-form label.cx-check-row {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8fafc;
}
.cx-ai .cx-settings-form .cx-page-actions {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}
.cx-ai-empty {
  margin: 0;
  padding: 1.2rem 0.4rem;
  text-align: center;
  color: #64748b;
}
.cx-ai .cx-session-table {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .cx-ai-kpis,
  .cx-ai-layout {
    grid-template-columns: 1fr;
  }
  .cx-ai-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cx-ai-status {
    flex-direction: column;
  }
}
.cx-agents .cx-agent-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.cx-agents .cx-agent-form > label,
.cx-agents .cx-span,
.cx-agents .cx-field-heading,
.cx-agents #cxPermitBox,
.cx-agents #cxProhibitBox {
  min-width: 0;
}
.cx-agents .cx-span,
.cx-agents .cx-field-heading,
.cx-agents #cxPermitBox,
.cx-agents #cxProhibitBox,
.cx-agents .cx-agent-form > .cx-page-actions {
  grid-column: 1 / -1;
}
.cx-agents .cx-field-heading {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #312e81;
}
.cx-agents .cx-agent-form input:not([type="checkbox"]),
.cx-agents .cx-agent-form select,
.cx-agents .cx-agent-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
}
.cx-agents .cx-agent-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.cx-agents .cx-agent-form input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #4f46e5;
}
.cx-agents .cx-agent-form label.cx-check-row {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8fafc;
}
.cx-agents .cx-check-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}
.cx-agents .cx-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0;
}
.cx-agents .cx-agent-grid {
  margin-top: 0;
}
.cx-agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
@media (max-width: 720px) {
  .cx-agents .cx-agent-form,
  .cx-agents .cx-check-grid,
  .cx-agents .cx-check-pair {
    grid-template-columns: 1fr;
  }
}
.cx-dialler-stage .cx-rec-badge {
  margin-left: 0;
  color: #be123c;
}
@media (min-width: 760px) and (max-width: 900px), (min-width: 1100px) {
  .cx-phone {
    grid-template-columns: minmax(17.5rem, 22.5rem) minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .cx-dialler-stage .cx-notes-row {
    flex-wrap: wrap;
  }
  .cx-dialler-stage .cx-notes-row .cx-btn {
    flex: 1 1 100%;
  }
  .cx-dial-head {
    align-items: flex-start;
  }
}
.wa-channel-chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #e0e7ff;
  color: #3730a3;
}
