/* ═══════════════════════════════════════════════════════════════
   The Bunny Tech Agent Dashboard — Website Brand Theme
   Brand: Primary/Secondary #5D39FF
   Fonts: Krona One (headlines), Raleway (body)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Raleway:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --primary: #5D39FF;
  --primary-light: #7E62FF;
  --primary-dark: #4A2FE0;
  --primary-glow: rgba(93, 57, 255, 0.18);
  --primary-subtle: rgba(93, 57, 255, 0.1);

  --secondary: #5D39FF;
  --secondary-light: #5D39FF;
  --secondary-dark: #5D39FF;

  --tertiary: #111111;
  --tertiary-light: #2B2B2B;

  --neutral: #625D6B;
  --neutral-light: #B8B2C4;
  --neutral-dark: #34303B;

  /* Light Backgrounds */
  --bg-body: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7F5FF;
  --bg-input: #FFFFFF;
  --bg-elevated: #F5F3FF;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #393242;
  --text-muted: #72697C;

  /* Borders */
  --border: #1E1A1A;
  --border-light: rgba(30, 26, 26, 0.12);
  --border-focus: var(--primary);

  /* Status */
  --success: #047857;
  --success-bg: #D1FAE5;
  --success-border: #6EE7B7;
  --warning: #B45309;
  --warning-bg: #FEF3C7;
  --warning-border: #FCD34D;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --danger-border: #FCA5A5;
  --info: #4338CA;
  --info-bg: #E0E7FF;
  --info-border: #A5B4FC;
  --neutral-badge-bg: #F3F4F6;
  --neutral-badge-border: #D1D5DB;

  /* Shadows */
  --shadow-sm: 0 12px 30px rgba(41, 17, 148, 0.06);
  --shadow-md: 0 18px 44px rgba(41, 17, 148, 0.1);
  --shadow-lg: 0 28px 70px rgba(17, 17, 17, 0.14);
  --shadow-glow: 0 14px 32px rgba(93, 57, 255, 0.22);

  /* Layout */
  --sidebar-width: 250px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-layout,
.main-content,
.content-body {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Krona One', sans-serif;
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: #FFFFFF;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #FFFFFF;
  color: var(--text-primary);
}

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #F9FAFB;
  border-left: 1px solid var(--border);
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-brand-logo {
  font-family: 'Krona One', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-brand-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-md);
  font-size: 22px;
}

.auth-brand-logo .logo-img {
  height: 70px;
  width: auto;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-side-panel {
  width: 100%;
  max-width: 520px;
  padding: 28px;
  border-radius: 28px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(41, 17, 148, 0.08);
}

.auth-side-intro h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.auth-side-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-feature-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.78);
}

.auth-feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff1ea;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(93, 57, 255, 0.14);
}

.auth-feature-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-container h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-form-container .subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-page-minimal {
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #ffffff;
}

.auth-minimal-shell {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-minimal {
  max-width: 410px;
  width: 100%;
}

.auth-form-minimal-wide {
  max-width: 480px;
}

.auth-brand-logo-minimal {
  justify-content: center;
  margin-bottom: 34px;
}

.auth-minimal-heading {
  text-align: center;
  margin-bottom: 32px;
}

.auth-minimal-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
}

.auth-minimal-heading .subtitle {
  max-width: 360px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.auth-form-minimal .form-group {
  margin-bottom: 20px;
}

.auth-form-minimal .alert {
  margin-bottom: 22px;
  text-align: left;
}

.auth-input {
  min-height: 48px;
  padding: 13px 15px;
}

.auth-otp-input {
  letter-spacing: 0.08em;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.auth-field-grid .form-group {
  min-width: 0;
}

.auth-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.auth-password-row .form-label {
  margin-bottom: 0;
}

.auth-password-row a,
.auth-minimal-footer a {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 650;
}

.auth-submit {
  height: 50px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
}

.auth-submit:hover {
  background: #111827;
  transform: translateY(-1px);
}

.auth-secondary-action {
  margin-top: 12px;
}

.auth-secondary-button {
  min-height: 46px;
  border-radius: 8px;
}

.auth-minimal-footer {
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-page-minimal {
    padding: 24px;
  }

  .auth-minimal-shell {
    min-height: calc(100vh - 48px);
  }

  .auth-brand-logo-minimal {
    margin-bottom: 28px;
  }

  .auth-minimal-heading {
    margin-bottom: 28px;
  }

  .auth-minimal-heading h2 {
    font-size: 27px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .auth-left {
    min-height: 180px;
    padding: 24px;
  }

  .auth-features {
    display: none;
  }

  .auth-right {
    padding: 24px;
  }

  .auth-side-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-side-intro h2 {
    font-size: 28px;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 18px 0 44px rgba(41, 17, 148, 0.07);
  overflow-x: hidden;
}

.sidebar-brand {
  height: 72px;
  padding: 0 18px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 800;
}

.sidebar-brand .brand-logo-img {
  height: 42px;
  width: auto;
}

.sidebar-brand .brand-text {
  font-family: 'Krona One', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-primary);
}

.sidebar-brand .brand-badge {
  font-size: 10px;
  background: rgba(41, 17, 148, 0.08);
  color: var(--secondary);
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  margin-left: auto;
}

.sidebar-mobile-meta {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

.nav-section {
  margin-bottom: 20px;
  min-width: 0;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition-fast);
  margin-bottom: 6px;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

.nav-item:hover {
  background: rgba(41, 17, 148, 0.06);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(41, 17, 148, 0.08);
  color: var(--secondary);
  font-weight: 800;
  box-shadow: none;
}

.nav-item .nav-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(93, 57, 255, 0.08), rgba(93, 57, 255, 0.02));
  border: 0;
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-item .nav-icon-svg {
  overflow: hidden;
}

.nav-item .nav-icon-svg-markup {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(93, 57, 255, 0.16), rgba(93, 57, 255, 0.08));
  color: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(93, 57, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 14px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(93, 57, 255, 0.035));
  overflow-x: hidden;
  min-width: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  min-width: 0;
}

.sidebar-user:hover {
  background: var(--bg-elevated);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

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

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  padding: 0 24px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  min-height: 72px;
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(41, 17, 148, 0.055);
}

.header-shell {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.header-left,
.header-right,
.header-primary-actions,
.header-secondary-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left {
  flex: 0 0 auto;
}

.header-right {
  flex: 1 1 auto;
  margin-left: auto;
  justify-content: flex-end;
  gap: 10px;
}

.header-primary-actions,
.header-secondary-actions {
  gap: 10px;
}

.header-secondary-actions {
  flex-shrink: 0;
}

.header-shell-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow: none;
}

.header-shell-toggle:hover {
  border-color: rgba(93, 57, 255, 0.24);
  background: rgba(248, 246, 255, 0.96);
  color: var(--primary);
}

.header-credits-card {
  min-width: 186px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(93, 57, 255, 0.14);
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

.header-credits-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.header-credits-value {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2f22a3;
}

.header-credits-currency-symbol {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.header-action-button,
.header-icon-button:not(.ai-bunny-trigger),
.header-account-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.header-action-button {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.header-action-button:hover,
.header-icon-button:not(.ai-bunny-trigger):hover,
.header-account-button:hover {
  background: rgba(248, 246, 255, 0.96);
}

.header-action-button:hover {
  color: var(--primary-dark);
}

.header-action-button i,
.header-icon-button i,
.header-account-button i {
  font-size: 18px;
}

.header-shell .ai-bunny-trigger-header {
  height: 40px;
  padding-inline: 14px;
  border-radius: 12px;
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

.header-shell .ai-bunny-trigger-header::after {
  display: none;
}

.header-shell .ai-bunny-trigger-label {
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.header-shell .ai-bunny-trigger-header:hover {
  transform: none;
  background: rgba(248, 246, 255, 0.96);
  box-shadow: none;
}

.header-shell .ai-bunny-trigger-icon {
  width: 20px;
  height: 20px;
  background: rgba(93, 57, 255, 0.08);
  color: var(--primary);
}

.header-shell .ai-bunny-trigger-icon i {
  font-size: 12px;
}

.header-icon-button:not(.ai-bunny-trigger) {
  position: relative;
  width: 40px;
  padding: 0;
}

.header-notification-group,
.header-account-group {
  position: relative;
}

.header-notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d39ff 0%, #7e62ff 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: none;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast);
  z-index: 85;
}

.header-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-dropdown-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
}

.header-dropdown-title {
  font-family: 'Krona One', sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-primary);
}

.header-dropdown-copy {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.header-dropdown-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
}

.header-dropdown-link:hover {
  color: var(--primary-dark);
}

.header-notification-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding-right: 2px;
}

.header-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: rgba(250, 249, 255, 0.9);
  color: inherit;
}

.header-notification-item:hover {
  color: inherit;
  border-color: rgba(93, 57, 255, 0.22);
  background: rgba(244, 241, 255, 0.98);
}

.header-notification-tone {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--info);
  box-shadow: 0 0 0 5px rgba(67, 56, 202, 0.08);
}

.header-notification-tone.success {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(4, 120, 87, 0.08);
}

.header-notification-tone.warning {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.08);
}

.header-notification-tone.primary {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(93, 57, 255, 0.08);
}

.header-notification-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.header-notification-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.header-notification-message,
.header-notification-time {
  font-size: 12px;
}

.header-notification-message {
  color: var(--text-secondary);
  line-height: 1.45;
}

.header-notification-time {
  color: var(--text-muted);
  font-weight: 700;
}

.header-notification-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 12px 16px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
}

.header-notification-empty i {
  font-size: 24px;
  color: var(--success);
}

.header-account-button {
  min-width: 0;
  max-width: 220px;
  justify-content: flex-start;
  padding: 0 10px 0 6px;
}

.header-account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffefe8 0%, #efe8ff 100%);
  color: #2f22a3;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(93, 57, 255, 0.12);
}

.header-account-avatar.large {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.header-account-copy,
.header-account-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.header-account-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-account-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.header-account-caret {
  margin-left: 2px;
  color: var(--text-muted);
}

.header-account-dropdown {
  width: min(300px, calc(100vw - 40px));
}

.header-account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.header-account-link:hover {
  color: var(--primary);
  background: rgba(93, 57, 255, 0.08);
}

.header-account-link.danger:hover {
  color: var(--danger);
  background: rgba(185, 28, 28, 0.08);
}

.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-bunny-trigger-header {
  flex-shrink: 0;
  height: 40px;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 243, 0.98);
  border: 2px solid rgba(17, 17, 17, 0.85);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.wallet-pill strong {
  color: var(--text-primary);
}

.wallet-pill-low {
  background: rgba(93, 57, 255, 0.12);
  border-color: rgba(93, 57, 255, 0.4);
  color: #a16207;
}

.wallet-pill-note {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kyc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 17, 148, 0.08);
  border: 2px solid rgba(41, 17, 148, 0.34);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.kyc-pill strong {
  color: var(--text-primary);
}

.content-body {
  padding: 32px 40px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.route-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 250;
}

.route-loader.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.route-loader-minimal {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.route-loader-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.1));
}

.route-loader-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(37, 99, 235, 0.14);
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: routeLoaderSpin 0.8s linear infinite;
}

@keyframes routeLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .route-loader {
    padding: 18px;
  }

  .route-loader-logo {
    width: 42px;
    height: 42px;
  }

  .route-loader-spinner {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-loader-spinner {
    animation: none;
  }
}

/* ── Mobile Toggle ──────────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .content-body {
    padding: 28px 32px;
  }
}

@media (max-width: 1024px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .app-layout::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 90;
  }

  body.sidebar-open .app-layout::after {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    transform: translateX(-100%);
    width: min(84vw, 320px);
    max-width: 320px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .content-body {
    padding: 20px;
  }

  .content-header {
    padding: 0 20px;
    min-height: 68px;
  }

  .header-shell {
    gap: 12px;
    min-height: 68px;
  }

  .header-right {
    gap: 8px;
  }

  .header-credits-card {
    min-width: 176px;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .content-body {
    padding: 16px;
  }

  .content-header {
    padding: 0 16px;
    min-height: 64px;
  }

  .header-shell {
    min-height: 64px;
    gap: 10px;
  }

  .header-left {
    gap: 0;
  }

  .header-mobile-hide {
    display: none !important;
  }

  .header-right {
    gap: 8px;
  }

  .header-secondary-actions {
    gap: 8px;
  }

  .header-dropdown {
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 32px));
  }

  .header-account-button {
    padding-right: 8px;
  }

  .card {
    padding: 18px;
  }

  .card-header {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1 1 100%;
  }

  .table-container,
  .premium-table-container,
  .voice-library-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-container table,
  .premium-data-table,
  .voice-library-table-element {
    min-width: 680px;
  }

  .voice-library-card {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .sidebar-brand {
    padding: 0 14px;
  }

  .sidebar-brand .brand-logo-img {
    max-width: 150px;
    height: auto;
  }

  .content-body {
    padding: 14px;
  }

  .content-header {
    padding: 0 14px;
    min-height: 60px;
  }

  .header-shell {
    min-height: 60px;
  }

  .header-shell-toggle,
  .header-icon-button:not(.ai-bunny-trigger),
  .header-account-button {
    height: 38px;
  }

  .header-shell-toggle,
  .header-icon-button:not(.ai-bunny-trigger) {
    width: 38px;
  }

  .header-account-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .section-header {
    gap: 12px;
    margin-bottom: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 17, 148, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-size: 15px;
  font-weight: 400;
  font-family: 'Krona One', sans-serif;
  line-height: 1.4;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.workspace-main,
.workspace-sidebar {
  min-width: 0;
}

.workspace-main > .card,
.workspace-main > form > .card,
.workspace-sidebar > .card {
  width: 100%;
}

.workspace-stack {
  display: grid;
  gap: 24px;
}

.workspace-sidebar {
  position: sticky;
  top: 96px;
}

.workspace-note-list {
  display: grid;
  gap: 12px;
}

.workspace-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 2px solid rgba(17, 17, 17, 0.08);
}

.workspace-note-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.workspace-note-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(93, 57, 255, 0.22);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
  background: rgba(41, 17, 148, 0.08);
  border: 2px solid rgba(17, 17, 17, 0.08);
}

.stat-card .stat-icon.blue {
  color: var(--text-primary);
}

.stat-card .stat-icon.green {
  color: var(--text-primary);
}

.stat-card .stat-icon.orange {
  color: var(--text-primary);
}

.stat-card .stat-icon.red {
  color: var(--text-primary);
}

.stat-card .stat-value {
  font-family: 'Krona One', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  padding: 28px;
  background: #ffffff;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 57, 255, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-hero-title {
  margin: 16px 0 10px;
  font-family: 'Krona One', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-primary);
}

.dashboard-hero-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(17, 17, 17, 0.08);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.dashboard-trend-panel {
  border-radius: 22px;
  background: #ffffff;
  color: var(--text-primary);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(17, 17, 17, 0.08);
}

.chart-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chart-summary {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(41, 17, 148, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  border: 1px solid rgba(41, 17, 148, 0.12);
}

.mini-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.mini-chart-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.mini-chart-value {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-bar {
  width: 100%;
  min-height: 0;
  border-radius: 14px 14px 6px 6px;
  background: var(--secondary);
  box-shadow: none;
  transition: height 0.5s ease;
}

.mini-chart-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.chart-empty {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
}

.intent-overview {
  padding: 24px;
}

.intent-stack {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-elevated);
  margin: 8px 0 18px;
}

.intent-segment.high {
  background: #10b981;
}

.intent-segment.medium {
  background: #f59e0b;
}

.intent-segment.low {
  background: #ef4444;
}

.intent-list {
  display: grid;
  gap: 12px;
}

.intent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #ffffff;
}

.intent-row-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.intent-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.intent-dot.high {
  background: #10b981;
}

.intent-dot.medium {
  background: #f59e0b;
}

.intent-dot.low {
  background: #ef4444;
}

.intent-dot.unknown {
  background: #94a3b8;
}

.dashboard-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-stat-card {
  padding: 20px;
}

.dashboard-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dashboard-stat-icon.blue {
  color: var(--secondary);
  background: rgba(41, 17, 148, 0.1);
}

.dashboard-stat-icon.green {
  color: var(--primary-dark);
  background: rgba(93, 57, 255, 0.12);
}

.dashboard-stat-icon.amber {
  color: var(--primary-dark);
  background: rgba(93, 57, 255, 0.12);
}

.dashboard-stat-icon.purple {
  color: var(--secondary);
  background: rgba(41, 17, 148, 0.1);
}

.dashboard-stat-icon.rose {
  color: var(--primary-dark);
  background: rgba(93, 57, 255, 0.12);
}

.dashboard-stat-icon.slate {
  color: var(--text-primary);
  background: rgba(17, 17, 17, 0.08);
}

.dashboard-stat-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(93, 57, 255, 0.08);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(93, 57, 255, 0.14);
}

.stat-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
}

.stat-delta span {
  font-weight: 500;
}

.delta-positive {
  color: var(--success);
}

.delta-negative {
  color: var(--danger);
}

.delta-neutral {
  color: var(--text-secondary);
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-bottom: 32px;
}

.trend-card,
.pipeline-card {
  padding: 24px;
}

.pipeline-card {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-sm);
}

.pipeline-card .card-title,
.pipeline-card .pipeline-label,
.pipeline-card .pipeline-item-top strong {
  color: var(--text-primary);
}

.pipeline-card .text-muted,
.pipeline-card .form-hint,
.pipeline-card .pipeline-item-top span {
  color: var(--text-muted);
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 240px;
}

.trend-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.trend-chart-value {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
}

.trend-chart-track {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: end;
  border-radius: 16px;
  padding: 0 0 2px;
  background: rgba(148, 163, 184, 0.08);
}

.trend-chart-bar {
  width: 100%;
  border-radius: 14px;
  box-shadow: none;
}

.trend-chart-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.chart-empty-light {
  min-height: 220px;
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.pipeline-list {
  display: grid;
  gap: 16px;
}

.pipeline-item {
  display: grid;
  gap: 10px;
}

.pipeline-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pipeline-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.pipeline-bar {
  height: 10px;
  border-radius: 999px;
  background: #ece8f2;
  overflow: hidden;
}

.pipeline-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.pipeline-fill.high {
  background: #10b981;
}

.pipeline-fill.medium {
  background: #f59e0b;
}

.pipeline-fill.low {
  background: #ef4444;
}

.pipeline-fill.unknown {
  background: #94a3b8;
}

.pipeline-footnote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.pipeline-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #ffffff;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid rgba(17, 17, 17, 0.92);
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: none;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--secondary);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 2px solid rgba(17, 17, 17, 0.92);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.92);
  color: var(--text-primary);
}

.btn-tertiary {
  background: var(--secondary);
  color: white;
  border-color: rgba(17, 17, 17, 0.92);
}

.btn-tertiary:hover {
  background: var(--secondary);
  color: white;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-color: transparent;
  border-radius: 14px;
}

.btn-ghost:hover {
  background: rgba(93, 57, 255, 0.08);
  color: var(--text-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #FFFFFF;
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Toggle */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d8d0e5;
  border-radius: 11px;
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle input:checked+.toggle-slider {
  background: var(--secondary);
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(17, 17, 17, 0.08);
  background: var(--bg-card);
  position: relative;
  scrollbar-gutter: stable both-edges;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary);
  background: rgba(93, 57, 255, 0.08);
  border-bottom: 2px solid rgba(17, 17, 17, 0.08);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: var(--bg-card-hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

.voice-library-card {
  padding: 12px 20px;
}

.voice-library-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.voice-library-table-element thead th {
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: transparent;
}

.voice-library-table-element tbody td {
  padding: 10px 14px;
}

.voice-library-table-element tbody td strong {
  display: inline-block;
  margin-bottom: 2px;
}

.voice-library-table-element .text-muted.text-sm {
  font-size: 12px;
  line-height: 1.35;
}

.voice-library-table-element audio {
  max-width: 180px !important;
  height: 36px;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}

.badge-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.badge-neutral {
  background: var(--neutral-badge-bg);
  border-color: var(--neutral-badge-border);
  color: var(--neutral-dark);
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown var(--transition-base) ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: var(--success-bg);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background: var(--danger-bg);
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background: var(--warning-bg);
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background: var(--info-bg);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 97, 255, 0.15);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Empty States ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-state .empty-icon {
  font-size: 44px;
  margin-bottom: 14px;
  color: var(--neutral-light);
}

.empty-state h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── Transcript ─────────────────────────────────────────────── */
.transcript-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 14px;
}

.transcript-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.transcript-msg.agent {
  flex-direction: row;
}

.transcript-msg.user {
  flex-direction: row-reverse;
}

.transcript-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.transcript-msg.agent .transcript-avatar {
  background: var(--primary-glow);
  color: var(--primary);
}

.transcript-msg.user .transcript-avatar {
  background: var(--warning-bg);
  color: var(--warning);
}

.transcript-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.6;
}

.transcript-msg.agent .transcript-bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.transcript-msg.user .transcript-bubble {
  background: var(--primary-subtle);
  color: var(--text-primary);
  border-top-right-radius: 4px;
}

/* ── Analysis Grid ──────────────────────────────────────────── */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.analysis-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
}

.analysis-item .analysis-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.analysis-item .analysis-value {
  font-size: 14px;
  color: var(--text-primary);
}

/* ── Webhook Builder ────────────────────────────────────────── */
.webhook-builder {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 14px;
}

.webhook-method-url {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.webhook-method-url select {
  width: 110px;
  flex-shrink: 0;
}

.webhook-method-url input {
  flex: 1;
}

.variables-hint {
  background: var(--primary-subtle);
  border: 1px solid rgba(0, 97, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.variables-hint .hint-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.variables-hint code {
  background: rgba(0, 97, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary-dark);
  margin: 2px;
  display: inline-block;
}

/* ── Charts ──────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 0 8px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.85;
}

.chart-bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Grid Utilities ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Flex Utilities ─────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

/* ── Spacing ────────────────────────────────────────────────── */
.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.p-32 {
  padding: 32px;
}

/* ── Text Utilities ─────────────────────────────────────────── */
.text-sm {
  font-size: 13px;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-primary {
  color: var(--primary);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.font-bold {
  font-weight: 700;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Workflow Card ──────────────────────────────────────────── */
.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.workflow-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.workflow-card .workflow-status {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-right: 5px;
}

.workflow-card .workflow-status.active {
  background: var(--success);
}

.workflow-card .workflow-status.inactive {
  background: var(--neutral-light);
}

.workflow-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.workflow-stats .stat {
  font-size: 12px;
  color: var(--text-muted);
}

.workflow-stats .stat strong {
  color: var(--text-primary);
}

.workflow-assistant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.workflow-chat-panel,
.workflow-draft-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.workflow-chat-header {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.workflow-chat-stream {
  min-height: 460px;
  max-height: 620px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.workflow-chat-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(0, 97, 255, 0.03), rgba(255, 255, 255, 0.7));
}

.workflow-chat-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workflow-chat-message.user {
  align-items: flex-end;
}

.workflow-chat-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.workflow-chat-bubble {
  width: min(100%, 720px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.workflow-chat-message.assistant .workflow-chat-bubble {
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), #ffffff);
}

.workflow-chat-message.user .workflow-chat-bubble {
  background: linear-gradient(180deg, rgba(0, 97, 255, 0.07), rgba(0, 97, 255, 0.03));
  border-color: rgba(0, 97, 255, 0.16);
}

.workflow-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.workflow-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-mini-list {
  display: grid;
  gap: 8px;
}

.workflow-mini-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  color: var(--text-secondary);
}

.workflow-draft-line {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-bunny-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(37, 99, 235, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.ai-bunny-trigger::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 18%, rgba(96, 165, 250, 0.26) 50%, rgba(255, 255, 255, 0.16) 82%, transparent 100%);
  transform: translateX(0) skewX(-18deg);
  animation: aiBunnyShine 2.2s ease-in-out infinite;
  pointer-events: none;
}

.ai-bunny-trigger:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #f8fbff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}

.ai-bunny-trigger:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  outline-offset: 2px;
}

.ai-bunny-trigger-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
}

.ai-bunny-trigger-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.ai-bunny-trigger-icon i {
  font-size: 13px;
  line-height: 1;
}

@keyframes aiBunnyShine {
  0%, 42% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  76%, 100% {
    transform: translateX(430%) skewX(-18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-bunny-trigger::after {
    animation: none;
    opacity: 0;
  }
}

.ai-bunny-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 90;
}

.ai-bunny-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ai-bunny-panel {
  position: fixed;
  top: 84px;
  right: 18px;
  width: min(440px, calc(100vw - 36px));
  height: calc(100vh - 102px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  transform: translateX(calc(100% + 24px));
  transition: transform var(--transition-base), opacity var(--transition-base);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  overflow: hidden;
}

.ai-bunny-panel.open {
  transform: translateX(0);
  opacity: 1;
}

body.ai-bunny-panel-open {
  overflow: hidden;
}

.ai-bunny-panel-header,
.ai-bunny-panel-footer {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.ai-bunny-panel-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 12px;
}

.ai-bunny-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-bunny-panel-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f4f6fb;
}

.ai-bunny-panel-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
}

.ai-bunny-panel-tab.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ai-bunny-panel-tab:disabled {
  cursor: default;
  opacity: 0.8;
}

.ai-bunny-panel-controls {
  display: flex;
  align-items: center;
}

.ai-bunny-icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--text-secondary);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ai-bunny-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 61, 245, 0.16);
  color: #4f36dd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ai-bunny-icon-button i {
  font-size: 18px;
}

.ai-bunny-icon-button-muted {
  background: #fafbff;
}

.ai-bunny-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ai-bunny-tab-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.ai-bunny-tab-panel.active {
  display: flex;
}

.ai-bunny-tab-panel[data-tab-panel="chat"].active {
  flex: 1;
  min-height: 0;
}

.ai-bunny-section-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.ai-bunny-tab-panel[data-tab-panel="chat"] .ai-bunny-section-card {
  flex: 1;
  min-height: 0;
}

.ai-bunny-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-bunny-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-bunny-section-copy {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ai-bunny-chat-stream {
  min-height: 72px;
  max-height: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 8px;
  padding-right: 2px;
}

.ai-bunny-chat-empty {
  padding: 6px 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.ai-bunny-chat-empty-centered {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
}

.ai-bunny-chat-empty-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f36dd;
  font-size: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, rgba(112, 82, 255, 0.18), rgba(78, 205, 196, 0.18));
  border: 1px solid rgba(91, 61, 245, 0.1);
  box-shadow: 0 12px 30px rgba(91, 61, 245, 0.12);
}

.ai-bunny-chat-empty-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.ai-bunny-chat-empty-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 290px;
}

.ai-bunny-chat-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.ai-bunny-quick-action {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ai-bunny-quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 61, 245, 0.2);
  color: #4f36dd;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.ai-bunny-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-bunny-message.user {
  align-items: flex-end;
}

.ai-bunny-message-role {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

.ai-bunny-message-bubble {
  width: min(100%, 360px);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  line-height: 1.5;
  color: var(--text-secondary);
  font-size: 13px;
}

.ai-bunny-message.assistant .ai-bunny-message-bubble {
  background: #f8faff;
}

.ai-bunny-message.pending .ai-bunny-message-bubble {
  background: linear-gradient(180deg, #f8faff, #eef4ff);
  border-color: rgba(37, 99, 235, 0.12);
  color: #31529b;
}

.ai-bunny-message.pending .ai-bunny-message-bubble::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(49, 82, 155, 0.16), rgba(49, 82, 155, 0.8), rgba(49, 82, 155, 0.16));
  background-size: 200% 100%;
  vertical-align: middle;
  animation: aiBunnyPendingPulse 1.1s linear infinite;
}

.ai-bunny-message.user .ai-bunny-message-bubble {
  background: #f3f5fb;
  border-color: rgba(15, 23, 42, 0.06);
}

.ai-bunny-draft-card {
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fbfcff;
}

.ai-bunny-insights-grid {
  display: grid;
  gap: 10px;
}

.ai-bunny-draft-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-bunny-composer {
  display: block;
}

.ai-bunny-composer-shell {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #ffffff;
  padding: 8px 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ai-bunny-input {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  min-height: 22px;
  max-height: 120px;
  font: inherit;
  color: var(--text-primary);
  line-height: 1.5;
  padding: 4px 2px 8px;
}

.ai-bunny-input::placeholder {
  color: var(--text-muted);
}

.ai-bunny-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-bunny-composer-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-bunny-usage-line {
  margin-top: 8px;
  padding: 0 2px;
  line-height: 1.5;
}

.ai-bunny-send-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #5b3df5, #4a32d4);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(91, 61, 245, 0.28);
}

@keyframes aiBunnyPendingPulse {
  0% {
    background-position: 100% 0;
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: -100% 0;
    opacity: 0.45;
  }
}

.ai-bunny-history-list {
  display: grid;
  gap: 10px;
}

.ai-bunny-history-empty {
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: #fafbfe;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ai-bunny-history-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.ai-bunny-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.ai-bunny-history-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--text-secondary);
  font-weight: 700;
}

.ai-bunny-history-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-bunny-history-preview {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ai-bunny-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ai-bunny-history-actions {
  display: flex;
  justify-content: flex-end;
}

.ai-bunny-result-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.ai-bunny-result-group-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.ai-bunny-result-group-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.ai-bunny-result-group-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.ai-bunny-result-list {
  display: grid;
  gap: 10px;
}

.ai-bunny-result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.ai-bunny-result-card:hover {
  border-color: rgba(91, 61, 245, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ai-bunny-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-bunny-result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-bunny-result-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f6fb;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ai-bunny-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ai-bunny-result-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1080px) {
  .workflow-assistant-shell {
    grid-template-columns: 1fr;
  }

  .workflow-chat-stream {
    max-height: none;
  }

  .ai-bunny-panel {
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
  }
}

/* ── Agent Card ─────────────────────────────────────────────── */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.agent-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agent-card .agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2563eb;
  margin-bottom: 14px;
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.agent-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(93, 57, 255, 0.16), rgba(93, 57, 255, 0.08));
  z-index: 0;
}

.agent-card .agent-avatar i {
  position: relative;
  z-index: 1;
}

.agent-card .agent-name {
  font-family: 'Krona One', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 3px;
}

.agent-card .agent-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.agent-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.agent-stat-pill {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border: 1px solid var(--border-light);
}

.agent-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.agent-card .agent-prompt-preview {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
}

.agent-card .agent-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .dashboard-top-grid,
  .dashboard-hero,
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-footnote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-hero {
    padding: 22px;
  }

  .dashboard-hero-title {
    font-size: 22px;
  }

  .mini-chart {
    gap: 8px;
  }

  .intent-row {
    padding: 11px 12px;
  }

  .trend-chart {
    gap: 8px;
  }
}

.section-header h1 {
  font-size: 24px;
  line-height: 1.3;
}


.section-header h2 {
  font-size: 20px;
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header h1 {
    font-size: 22px;
  }
}

.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.campaign-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 97, 255, 0.06), rgba(16, 185, 129, 0.05)),
    #ffffff;
}

.campaign-toolbar-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.campaign-toolbar-copy h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.campaign-toolbar-copy p {
  color: var(--text-secondary);
  max-width: 720px;
}

.campaign-data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.campaign-data-hero {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(0, 97, 255, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 97, 255, 0.09), rgba(124, 58, 237, 0.06)), #fff;
}

.campaign-data-hero h2 { margin: 8px 0; font-size: 24px; }
.campaign-data-hero p { color: var(--text-secondary); max-width: 720px; }
.campaign-data-hero-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); font-size: 25px; box-shadow: 0 10px 24px rgba(0, 97, 255, .2); }

.campaign-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; margin-top: 18px; }
.campaign-source-card { display: grid; gap: 9px; min-height: 160px; padding: 18px; color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: .18s ease; }
.campaign-source-card:hover, .campaign-source-card.active { border-color: rgba(0, 97, 255, .45); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .08); }
.campaign-source-card.active { box-shadow: inset 3px 0 0 var(--primary), 0 12px 26px rgba(15, 23, 42, .07); }
.campaign-source-card > span { color: var(--text-muted); font-size: 13px; }
.campaign-source-head { display: flex; align-items: center; justify-content: space-between; }
.campaign-source-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary); background: var(--primary-subtle); border-radius: 10px; }
.channel-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.channel-pills span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; color: var(--text-secondary); background: var(--bg-elevated); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.campaign-data-empty { grid-column: 1 / -1; }
.campaign-data-table-head { display: flex; justify-content: space-between; gap: 16px; }
.campaign-attribute-list { display: flex; flex-wrap: wrap; gap: 5px 12px; max-width: 520px; font-size: 12px; color: var(--text-secondary); }

.campaign-copilot { position: sticky; top: 92px; display: grid; gap: 16px; padding: 22px; border: 1px solid rgba(124, 58, 237, .2); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(124, 58, 237, .045), #fff 180px); box-shadow: 0 16px 38px rgba(15, 23, 42, .08); }
.campaign-copilot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.campaign-copilot-head h2 { margin-top: 6px; font-size: 21px; }
.campaign-draft-safety { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: #047857; background: rgba(16, 185, 129, .11); font-size: 11px; font-weight: 800; white-space: nowrap; }
.campaign-check-list { max-height: 155px; overflow: auto; display: grid; gap: 7px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elevated); }
.campaign-check-list label { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; background: #fff; cursor: pointer; }
.campaign-check-list label span { display: grid; gap: 1px; }
.campaign-check-list small { color: var(--text-muted); }
.campaign-channel-select label { cursor: pointer; }
.campaign-channel-select input { position: absolute; opacity: 0; }
.campaign-channel-select span { display: grid; place-items: center; gap: 5px; padding: 10px 5px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px; font-weight: 700; text-transform: capitalize; }
.campaign-channel-select span i { font-size: 19px; }
.campaign-channel-select input:checked + span { color: var(--primary); border-color: var(--primary); background: var(--primary-subtle); }
.campaign-channel-checkboxes { display: flex; gap: 9px; flex-wrap: wrap; }
.campaign-channel-checkboxes label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elevated); cursor: pointer; }
.btn-block { width: 100%; justify-content: center; }
.campaign-ai-result { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.campaign-ai-summary h3 { margin: 9px 0 5px; }
.campaign-ai-summary p { color: var(--text-secondary); font-size: 13px; }
.campaign-ai-count { display: flex; align-items: baseline; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--primary-subtle); }
.campaign-ai-count strong { color: var(--primary); font-size: 24px; }
.campaign-ai-count span { color: var(--text-secondary); font-size: 12px; }
.campaign-match-list { display: grid; gap: 6px; max-height: 245px; overflow: auto; }
.campaign-match { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border-light); border-radius: 9px; }
.campaign-match div { display: grid; }
.campaign-match span { color: var(--text-muted); font-size: 11px; }
.campaign-match b { color: #047857; font-size: 11px; }
.campaign-safe-note { text-align: center; color: #047857; font-size: 11px; }

.campaign-review-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 22px; border: 1px solid rgba(16, 185, 129, .22); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(0, 97, 255, .04)), #fff; }
.campaign-review-banner h2 { margin: 9px 0 4px; font-size: 21px; }
.campaign-review-banner p { color: var(--text-secondary); }
.campaign-review-form { margin-bottom: 22px; padding: 22px; }
.campaign-targeting-note { margin-bottom: 18px; padding: 14px 16px; border-left: 3px solid #7c3aed; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: rgba(124, 58, 237, .06); }
.campaign-targeting-note strong { color: #6d28d9; }
.campaign-targeting-note p { margin: 6px 0; color: var(--text-secondary); }
.campaign-targeting-note small { color: var(--text-muted); }
.campaign-runtime-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elevated); color: var(--text-secondary); font-size: 13px; }

@media (max-width: 1100px) {
  .campaign-data-layout { grid-template-columns: 1fr; }
  .campaign-copilot { position: static; }
}

.toolbar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 18px 28px;
  background: rgba(15, 23, 42, 0.42);
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  width: min(860px, 100%);
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 22px;
  margin: 7px 0 4px;
}

.modal-header p {
  color: var(--text-secondary);
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.modal-empty {
  padding: 28px 20px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.docs-sidebar-title {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-nav-link {
  padding: 9px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.docs-nav-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.docs-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.docs-hero,
.docs-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.docs-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(0, 97, 255, 0.08), rgba(199, 63, 0, 0.04)),
    #ffffff;
}

.docs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-hero h2 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.docs-hero p {
  max-width: 760px;
  color: var(--text-secondary);
}

.docs-hero-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.docs-panel {
  padding: 22px;
}

.docs-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.docs-panel-header h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.docs-panel-header p,
.docs-endpoint p {
  color: var(--text-secondary);
}

.copy-field {
  display: flex;
  gap: 8px;
}

.copy-field .form-control {
  min-width: 0;
}

.docs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.docs-steps div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.docs-steps strong {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
}

.docs-endpoint {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border-light);
}

.docs-endpoint:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
}

.method.get {
  background: rgba(0, 97, 255, 0.1);
  color: var(--primary);
}

.method.post {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.docs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.docs-columns-offset {
  margin-top: 18px;
}

.docs-columns h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.docs-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 97, 255, 0.14);
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--text-secondary);
}

.docs-callout i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 1px;
}

.docs-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text-secondary);
}

.docs-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.docs-module {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.docs-module i {
  color: var(--primary);
  font-size: 20px;
}

.docs-module strong {
  font-size: 14px;
}

.docs-module span {
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 980px) {
  .campaign-toolbar,
  .docs-hero,
  .docs-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .docs-sidebar-title {
    width: 100%;
  }

  .docs-steps,
  .docs-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-actions,
  .docs-hero-actions,
  .modal-actions {
    width: 100%;
  }

  .page-actions .btn,
  .docs-hero-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 18px 12px;
  }

  .modal-shell {
    padding: 18px;
  }

  .docs-hero h2 {
    font-size: 24px;
  }
}

.admin-standard-shell {
  display: grid;
  gap: 20px;
}

.admin-standard-hero {
  position: relative;
  padding: 22px 24px;
  border-radius: 24px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  background: #FFFFFF;
  box-shadow: 0 14px 30px rgba(41, 17, 148, 0.08);
  overflow: hidden;
}

.admin-standard-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary);
}

.admin-standard-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-standard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 57, 255, 0.1);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-standard-title {
  margin: 8px 0 6px;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.admin-standard-copy {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.admin-standard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-standard-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
}

.admin-standard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-standard-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 243, 0.92);
  border: 2px solid rgba(17, 17, 17, 0.08);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.admin-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.admin-standard-panel {
  padding: 24px;
}

.admin-standard-stack {
  display: grid;
  gap: 16px;
}

.admin-standard-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(17, 17, 17, 0.07);
  background: #ffffff;
}

@media (max-width: 1024px) {
  .admin-standard-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .admin-standard-hero {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .admin-standard-title {
    font-size: 28px;
  }

  .admin-standard-actions .btn {
    width: 100%;
  }
}

/* ── Filters ────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-items: flex-end;
}

.filters-bar .form-control {
  width: auto;
  min-width: 130px;
}

.filters-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
}

.filters-bar form>div {
  flex-shrink: 0;
}

.filters-bar form>.btn,
.filters-bar form>a {
  flex-shrink: 0;
  align-self: flex-end;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.tab {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ── Summary Box ────────────────────────────────────────────── */
.summary-box {
  background: rgba(93, 57, 255, 0.06);
  border: 2px solid rgba(93, 57, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.summary-box .summary-title {
  font-family: 'Krona One', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-box .summary-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Code Blocks ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Tags ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Loading ────────────────────────────────────────────────── */
@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Phosphor Icons ──────────────────────────────────────────── */
i[class^='ph-'],
i[class*=' ph-'] {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-icon i {
  font-size: 18px;
}

.stat-icon i {
  font-size: 20px;
  display: block;
  line-height: 1;
}

.feature-icon i {
  font-size: 18px;
}

.logo-icon i {
  font-size: 20px;
}

.empty-icon i {
  font-size: 44px;
}

.brand-icon i {
  font-size: 16px;
}

.alert i {
  font-size: 15px;
  flex-shrink: 0;
}

.badge i {
  font-size: 11px;
}

/* ── Admin Console ─────────────────────────────────────────── */
.admin-console {
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 24px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: #ffffff;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 2px solid rgba(93, 57, 255, 0.18);
  color: var(--secondary);
  background: rgba(93, 57, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.admin-hero h1 {
  font-size: 34px;
  margin: 0;
}

.admin-hero p {
  max-width: 680px;
  margin-top: 6px;
  color: var(--text-secondary);
}

.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-metric-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 12px;
}

.admin-metric {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.admin-metric.primary {
  border-color: rgba(93, 57, 255, 0.16);
  background: #ffffff;
}

.admin-metric-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 17, 148, 0.08);
  color: var(--secondary);
  font-size: 20px;
}

.admin-metric-value {
  font-family: 'Krona One', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  white-space: nowrap;
}

.admin-metric-label {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.admin-main,
.admin-side {
  display: grid;
  gap: 22px;
}

.admin-section {
  display: grid;
  gap: 14px;
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.admin-section-title h2 {
  font-size: 20px;
}

.admin-section-title p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 3px;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text-primary);
  min-height: 132px;
}

.admin-action-card:hover {
  border-color: rgba(93, 57, 255, 0.16);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.admin-action-card > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 17, 148, 0.08);
  border: 2px solid rgba(17, 17, 17, 0.06);
  color: var(--secondary);
  font-size: 20px;
}

.admin-action-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.admin-action-card span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-control-card {
  min-height: 100%;
}

.admin-inline-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.admin-inline-kpis span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 2px solid rgba(17, 17, 17, 0.07);
  border-radius: 14px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  font-size: 12px;
}

.admin-list-card .card-header {
  margin-bottom: 6px;
}

.admin-list {
  display: grid;
  gap: 6px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: var(--text-primary);
}

.admin-list-row:hover {
  background: rgba(93, 57, 255, 0.08);
  color: var(--text-primary);
}

.admin-list-row strong,
.admin-list-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row small {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 17, 148, 0.08);
  color: var(--secondary);
  font-weight: 800;
}

.admin-avatar.icon {
  background: var(--bg-elevated);
  border: 2px solid rgba(17, 17, 17, 0.08);
}

.admin-empty {
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
  border: 2px dashed rgba(17, 17, 17, 0.14);
  border-radius: 18px;
}

.admin-health-list {
  display: grid;
  gap: 10px;
}

.admin-health-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}

.admin-health-list > div:last-child {
  border-bottom: 0;
}

.admin-health-list span {
  color: var(--text-muted);
}

.admin-health-list strong {
  text-align: right;
}

/* ── Rich Multi Select ─────────────────────────────────────── */
.rich-multiselect-source {
  display: none !important;
}

.rich-multiselect {
  position: relative;
}

.rich-multiselect-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
}

.rich-multiselect-trigger:focus {
  outline: 2px solid var(--primary-subtle);
  border-color: var(--border-focus);
}

.rich-multiselect-values {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.rich-multiselect-placeholder {
  color: var(--text-muted);
  padding-left: 2px;
}

.rich-multiselect-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 220px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.rich-multiselect-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-multiselect-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.rich-multiselect.open .rich-multiselect-menu {
  display: block;
}

.rich-multiselect-search {
  width: 100%;
  height: 38px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.rich-multiselect-options {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.rich-multiselect-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.rich-multiselect-option:hover {
  background: var(--bg-card-hover);
}

.rich-multiselect-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #fff;
  font-size: 12px;
}

.rich-multiselect-option.selected .rich-multiselect-check {
  background: var(--primary);
  border-color: var(--primary);
}

.rich-multiselect-option strong,
.rich-multiselect-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-multiselect-option small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

@media (max-width: 1200px) {
  .admin-layout,
  .admin-metric-strip,
  .admin-control-grid,
  .admin-three-col {
    grid-template-columns: 1fr 1fr;
  }

  .admin-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-hero,
  .admin-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-hero-actions,
  .admin-metric-strip,
  .admin-layout,
  .admin-control-grid,
  .admin-two-col,
  .admin-three-col,
  .admin-side {
    grid-template-columns: 1fr;
  }

  .admin-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-hero-actions .btn {
    flex: 1;
  }
}

/* ── Soft Dashboard Refresh ─────────────────────────────────── */
.dashboard-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 22px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-page-header {
  margin-bottom: 22px;
}

.dashboard-page-header h1 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.dashboard-command-panel-prominent {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.82fr);
  gap: 28px;
  padding: 32px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(147, 197, 253, 0.2), transparent 34%),
    linear-gradient(135deg, #2f1b98 0%, #5d39ff 58%, #7658ff 100%);
  box-shadow: 0 26px 64px rgba(61, 37, 177, 0.25);
}

.dashboard-command-panel-prominent::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.dashboard-command-panel-prominent .dashboard-command-main,
.dashboard-command-panel-prominent .dashboard-spotlight-grid {
  position: relative;
  z-index: 1;
}

.dashboard-command-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-command-panel-prominent .dashboard-command-main h2 {
  max-width: 720px;
  margin-top: 14px;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.04em;
}

.dashboard-command-panel-prominent .dashboard-command-main > div > p {
  max-width: 680px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.dashboard-command-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-hero-primary,
.dashboard-hero-secondary {
  min-height: 44px;
  border: 0;
}

.dashboard-hero-primary {
  color: #3620a7;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(25, 12, 93, 0.2);
}

.dashboard-hero-primary:hover {
  color: #27156f;
  background: #f6f3ff;
}

.dashboard-hero-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.dashboard-hero-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-command-panel-prominent .dashboard-command-metrics div {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dashboard-command-panel-prominent .dashboard-command-metrics span {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-command-panel-prominent .dashboard-command-metrics strong {
  color: #ffffff;
  font-size: 26px;
}

.dashboard-spotlight-grid {
  display: grid;
  gap: 11px;
  align-content: center;
}

.dashboard-spotlight-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 18px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(25, 12, 93, 0.13);
}

.dashboard-spotlight-card.primary {
  background: #ffffff;
  transform: scale(1.015);
}

.dashboard-spotlight-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: rgba(93, 57, 255, 0.1);
  font-size: 21px;
}

.dashboard-spotlight-card small,
.dashboard-spotlight-card strong,
.dashboard-spotlight-card p {
  display: block;
}

.dashboard-spotlight-card small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-spotlight-card strong {
  margin-top: 2px;
  font-family: 'Krona One', sans-serif;
  font-size: 19px;
  line-height: 1.2;
}

.dashboard-spotlight-card p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.dashboard-command-panel-prominent + .dashboard-summary-grid .dashboard-stat-card {
  border: 0;
  box-shadow: 0 16px 38px rgba(41, 17, 148, 0.085);
}

.dashboard-command-panel-prominent + .dashboard-summary-grid .dashboard-stat-card:hover {
  box-shadow: 0 22px 48px rgba(41, 17, 148, 0.14);
}

.dashboard-command-panel-prominent + .dashboard-summary-grid .stat-value {
  font-size: 31px;
}

.dashboard-command-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.dashboard-command-main h2 {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.dashboard-command-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.dashboard-command-metrics div {
  padding: 13px 14px;
  border: 2px solid rgba(17, 17, 17, 0.07);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-command-metrics span,
.dashboard-ring-card span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-command-metrics strong {
  display: block;
  margin-top: 3px;
  font-family: 'Krona One', sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.dashboard-ring-grid {
  display: grid;
  gap: 10px;
}

.dashboard-ring-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 2px solid rgba(17, 17, 17, 0.07);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-ring-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-ring-meter {
  --value: 0;
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(41, 17, 148, 0.14);
  border: 8px solid var(--ring-color);
}

.dashboard-ring-meter::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.dashboard-ring-meter span {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-family: 'Krona One', sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.dashboard-summary-grid {
  gap: 18px;
}

.dashboard-stat-card {
  background: #ffffff;
}

.dashboard-stat-chip {
  border: 1px solid rgba(93, 57, 255, 0.14);
  background: rgba(255, 245, 239, 0.92);
}

.dashboard-insights-grid {
  gap: 18px;
}

.trend-card,
.pipeline-card {
  background: rgba(255, 255, 255, 0.96);
}

.trend-chart {
  min-height: 256px;
  padding: 16px;
  border: 2px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.trend-chart-track {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(17, 17, 17, 0.05);
  background: repeating-linear-gradient(to top, transparent 0 39px, rgba(114, 105, 124, 0.12) 40px);
}

.trend-chart-bar.chart-bar {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  cursor: default;
  border-radius: 10px 10px 6px 6px;
  background: var(--secondary);
  box-shadow: none;
  transition: height 850ms cubic-bezier(.22, 1, .36, 1), opacity var(--transition-fast);
}

.trend-chart-bar.chart-bar:hover {
  opacity: 1;
}

.pipeline-bar {
  height: 11px;
  background: #EEF2F7;
}

.pipeline-fill {
  transition: width 900ms cubic-bezier(.22, 1, .36, 1);
}

.pipeline-note {
  background: #ffffff;
}

.table-container,
.filters-bar {
  box-shadow: var(--shadow-sm);
}

.table-container {
  background: rgba(255, 255, 255, 0.96);
}

thead th {
  background: #F8FAFC;
}

tbody tr:hover {
  background: #F8FAFC;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none !important;
}

.prompt-optimizer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.prompt-optimizer-heading .form-label {
  margin: 0;
}

.ai-optimize-btn {
  flex-shrink: 0;
}

.ai-optimize-btn .ph-circle-notch {
  animation: softSpin 900ms linear infinite;
}

.prompt-optimizer-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.prompt-optimizer-footer .form-hint {
  margin-top: 0;
}

.prompt-optimizer-status {
  min-height: 18px;
  flex: 0 0 auto;
  max-width: 280px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.prompt-optimizer-status.success {
  color: var(--success);
}

.prompt-optimizer-status.warning {
  color: var(--warning);
}

.prompt-optimizer-status.error {
  color: var(--danger);
}

.prompt-optimizer-status.loading {
  color: var(--primary);
}

.callbacks-toolbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.callbacks-toolbar form {
  width: auto;
  display: grid;
  grid-template-columns: 214px max-content max-content;
  gap: 10px;
  align-items: end;
  flex: 0 0 auto;
}

.callback-status-chips {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  min-width: 0;
}

.callback-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: all var(--transition-fast);
}

.callback-status-chip strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(41, 17, 148, 0.08);
  color: var(--text-primary);
  font-size: 11px;
  line-height: 1;
}

.callback-status-chip:hover,
.callback-status-chip.active {
  border-color: rgba(93, 57, 255, 0.22);
  background: rgba(93, 57, 255, 0.08);
  color: var(--primary-dark);
}

.callbacks-toolbar .btn {
  min-height: 42px;
}

.callbacks-toolbar select.form-control {
  min-height: 42px;
}

/* ── Settings Branding ─────────────────────────────────────── */
.branding-settings-section {
  display: grid;
  gap: 14px;
}

.branding-settings-header {
  padding: 0;
  margin-bottom: 0;
}

.branding-preview-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FBFCFE, #F7FAFC);
}

.branding-logo-frame {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #DDE4ED;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  overflow: hidden;
}

.settings-brand-logo-image {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.branding-logo-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.branding-logo-meta .badge {
  width: fit-content;
}

.branding-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: end;
}

.branding-upload-form .btn {
  min-height: 42px;
}

@keyframes softSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .dashboard-command-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-ring-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-command-panel {
    padding: 18px;
  }

  .dashboard-command-panel-prominent {
    padding: 22px;
  }

  .dashboard-command-actions .btn {
    flex: 1 1 150px;
  }

  .dashboard-command-main h2 {
    font-size: 24px;
  }

  .dashboard-ring-grid {
    grid-template-columns: 1fr;
  }

  .prompt-optimizer-heading,
  .prompt-optimizer-footer,
  .callbacks-toolbar form {
    align-items: stretch;
  }

  .callbacks-toolbar {
    grid-template-columns: 1fr;
  }

  .callbacks-toolbar form {
    grid-template-columns: 1fr;
  }

  .prompt-optimizer-status {
    max-width: none;
    text-align: left;
  }

  .callback-status-chips {
    align-items: stretch;
  }

  .callback-status-chip {
    flex: 1 1 140px;
  }

  .branding-preview-card,
  .branding-upload-form {
    grid-template-columns: 1fr;
  }

  .branding-logo-frame {
    height: 96px;
  }
}

/* ── Premium Filters and Tables ─────────────────────────────── */
.premium-filter-panel {
  margin-bottom: 22px;
  padding: 18px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-panel-header h2 {
  margin-top: 5px;
  font-size: 20px;
  letter-spacing: 0;
}

.filter-panel-count {
  min-width: 104px;
  padding: 10px 12px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: right;
}

.filter-panel-count strong,
.filter-panel-count span {
  display: block;
}

.filter-panel-count strong {
  font-family: 'Krona One', sans-serif;
  font-size: 22px;
  line-height: 1;
}

.filter-panel-count span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  transition: all var(--transition-fast);
}

.filter-chip strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(41, 17, 148, 0.08);
  color: var(--text-primary);
  font-size: 11px;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: rgba(93, 57, 255, 0.2);
  background: rgba(93, 57, 255, 0.08);
  color: var(--primary-dark);
}

.premium-filter-panel form,
.filter-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-field {
  min-width: 0;
}

.filter-field .form-label {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-field .form-control {
  min-height: 42px;
  border-color: rgba(17, 17, 17, 0.12);
  background-color: rgba(255, 255, 255, 0.92);
}

.filter-field-wide {
  grid-column: span 2;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  grid-column: 4;
  justify-self: end;
}

.filter-actions .btn {
  min-height: 42px;
}

.premium-table-card {
  padding: 16px;
  background: #ffffff;
}

.premium-table-header {
  margin-bottom: 12px;
  padding: 2px 4px 0;
}

.premium-table-container {
  border-radius: var(--radius-lg);
  border: 1px solid #e6e1dc;
  box-shadow: none;
}

.premium-data-table thead th {
  padding: 13px 16px;
  background: rgba(93, 57, 255, 0.08);
  color: var(--secondary);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.premium-data-table tbody td {
  padding: 14px 16px;
}

.premium-data-table tbody tr {
  background: #FFFFFF;
}

.premium-data-table tbody tr:hover {
  background: #ffffff;
}

.table-primary-text {
  color: var(--text-primary);
  font-weight: 750;
  line-height: 1.3;
}

.call-log-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.call-log-summary-card {
  min-height: 132px;
  background: #ffffff;
}

.call-log-filter-panel {
  position: relative;
  overflow: hidden;
}

.call-log-table .call-log-col-customer {
  min-width: 210px;
}

.call-log-table .call-log-col-intent {
  min-width: 128px;
}

.call-log-table .call-log-col-channel {
  min-width: 150px;
}

.call-log-table .call-log-col-duration,
.admin-calls-table .admin-calls-col-duration {
  min-width: 88px;
  white-space: nowrap;
}

.call-log-table .call-log-col-cost {
  min-width: 92px;
  white-space: nowrap;
}

.call-log-table .call-log-col-analysis,
.admin-calls-table .admin-calls-col-analysis {
  min-width: 110px;
  white-space: nowrap;
}

.call-log-table .call-log-col-date,
.admin-calls-table .admin-calls-col-date {
  min-width: 160px;
  line-height: 1.45;
}

.call-log-table .call-log-col-actions {
  min-width: 82px;
  white-space: nowrap;
}

.admin-calls-table .admin-calls-col-actions {
  min-width: 126px;
  white-space: nowrap;
}

.intent-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 62px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}

.intent-score-value {
  font-family: 'Krona One', sans-serif;
  font-size: 15px;
}

.intent-score-scale {
  font-size: 10px;
  opacity: 0.8;
}

.intent-score-label {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.intent-high {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.18);
}

.intent-medium {
  color: #A16207;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
}

.intent-low {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.18);
}

.intent-neutral {
  color: #64748B;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.channel-cell {
  display: grid;
  gap: 6px;
}

.channel-cell .text-xs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.voice-library-filter-panel {
  margin-bottom: 20px;
}

.voice-library-card {
  padding: 16px;
}

.voice-library-table {
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
}

@media (max-width: 1180px) {
  .premium-filter-panel form,
  .filter-panel-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .filter-actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .filter-panel-header {
    flex-direction: column;
  }

  .filter-panel-count {
    width: 100%;
    text-align: left;
  }

  .premium-filter-panel form,
  .filter-panel-grid {
    grid-template-columns: 1fr;
  }

  .filter-field-wide {
    grid-column: auto;
  }

  .filter-actions {
    grid-column: auto;
    justify-self: stretch;
    justify-content: stretch;
  }

  .filter-actions .btn {
    flex: 1;
  }
}

/* ── Knowledge Base Create/List ─────────────────────────────── */
.knowledge-create-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
}

.knowledge-create-card {
  padding: 24px;
}

.knowledge-create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.knowledge-create-guide {
  background: #ffffff;
}

.knowledge-guide-list {
  display: grid;
  gap: 12px;
}

.knowledge-guide-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 2px solid rgba(17, 17, 17, 0.07);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.knowledge-guide-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 19px;
}

.knowledge-guide-item strong {
  display: block;
  color: var(--text-primary);
  line-height: 1.25;
}

.knowledge-guide-item p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.knowledge-list-card {
  min-height: 0;
}

/* ── Compact Empty States and Dense Dashboard ───────────────── */
.compact-empty-state {
  padding: 34px 20px;
}

.compact-empty-state .empty-icon {
  margin-bottom: 10px;
}

.callbacks-empty-card {
  min-height: 0;
}

.callbacks-empty-card .compact-empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-summary-grid {
  align-items: stretch;
  grid-auto-flow: row dense;
}

.dashboard-stat-card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
}

.dashboard-stat-card .stat-delta {
  margin-top: auto;
  padding-top: 14px;
}

@media (min-width: 1181px) {
  .dashboard-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-summary-grid > .dashboard-stat-card:nth-last-child(1):nth-child(4n + 1) {
    grid-column: span 4;
  }

  .dashboard-summary-grid > .dashboard-stat-card:nth-last-child(2):nth-child(4n + 1),
  .dashboard-summary-grid > .dashboard-stat-card:nth-last-child(1):nth-child(4n + 2) {
    grid-column: span 2;
  }

  .dashboard-summary-grid > .dashboard-stat-card:nth-last-child(3):nth-child(4n + 1) {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .knowledge-create-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .knowledge-create-actions .btn {
    flex: 1;
  }

  .callbacks-empty-card .compact-empty-state {
    min-height: 180px;
  }
}

/* ── Final Website Match Overrides ─────────────────────────── */
body,
.app-layout,
.main-content,
.content-body,
.sidebar,
.content-header,
.card,
.table-container,
.dashboard-hero,
.dashboard-trend-panel,
.dashboard-command-panel,
.dashboard-stat-card,
.trend-card,
.pipeline-card,
.trend-chart,
.pipeline-note,
.premium-filter-panel,
.premium-table-card,
.filter-panel-count,
.admin-hero,
.admin-standard-hero,
.admin-standard-item,
.admin-metric,
.admin-action-card,
.workspace-note,
.summary-box,
.hero-chip,
.wallet-pill,
.kyc-pill,
.sidebar-user:hover,
.branding-preview-card,
.branding-logo-frame,
.knowledge-create-guide,
.knowledge-guide-item {
  background: #ffffff !important;
  background-image: none !important;
}

.sidebar,
.content-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.content-header {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
}

/* Keep the workspace header above page content and the desktop sidebar shadow. */
.content-header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  width: auto;
  z-index: 120;
}

.content-body {
  padding-top: calc(32px + 72px);
}

.btn,
.btn-primary,
.btn-primary:hover,
.btn-tertiary,
.btn-tertiary:hover {
  background: #5D39FF !important;
  color: #ffffff !important;
  border: 3px solid #111111 !important;
  border-radius: 999px !important;
  box-shadow: 3px 4px 0 #111111 !important;
}

.btn {
  min-height: 56px !important;
  padding: 0 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.btn:hover,
.btn-primary:hover,
.btn-tertiary:hover {
  transform: none !important;
}

.btn-secondary,
.btn-secondary:hover,
.btn-ghost {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border: 3px solid #111111 !important;
  border-radius: 999px !important;
  box-shadow: 3px 4px 0 #111111 !important;
}

.dashboard-stat-chip {
  background: #efeff4 !important;
  border: 1px solid #ddddee !important;
  color: #111111 !important;
}

.premium-data-table thead th,
thead th {
  background: #f1f1f1 !important;
  color: #111111 !important;
}

.nav-section-title,
.nav-item.active,
.docs-sidebar-title,
.docs-nav-link,
.docs-kicker,
.filter-panel-kicker {
  color: #111111 !important;
}

.nav-item.active {
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
}

.btn-sm {
  min-height: 42px !important;
  padding: 0 20px !important;
  font-size: 13px !important;
}

.btn-danger.btn-sm,
.btn-secondary.btn-sm,
.btn-ghost.btn-sm {
  min-height: 38px !important;
  padding: 0 18px !important;
  box-shadow: 2px 3px 0 #111111 !important;
}

.btn-primary.btn-sm,
.btn-tertiary.btn-sm,
.btn-danger.btn-sm {
  box-shadow: 2px 3px 0 #111111 !important;
}

#settingsTabs {
  border-bottom: 0 !important;
}

#adminUserTabs,
.admin-user-tabs {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#settingsTabs .tab,
.tabs .tab {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#settingsTabs .tab.active,
.tabs .tab.active {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

.docs-layout,
.docs-sidebar,
.docs-hero,
.docs-panel,
.docs-callout,
.docs-module,
.docs-steps div,
.docs-endpoint,
.code-block,
code,
pre {
  background: #ffffff !important;
  background-image: none !important;
}

.docs-kicker,
.filter-panel-kicker,
.dashboard-stat-chip,
.summary-box .summary-title {
  color: #111111 !important;
}

.dashboard-stat-icon,
.stat-card .stat-icon,
.admin-metric-icon,
.admin-action-card > i,
.admin-avatar,
.filter-chip strong,
.callback-status-chip strong,
.hero-chip i,
.brand-badge,
.wallet-pill-note {
  background: #efeff4 !important;
  color: #5D39FF !important;
  border-color: #ddddee !important;
}

.summary-box,
.wallet-pill-low,
.callback-status-chip:hover,
.callback-status-chip.active,
.filter-chip:hover,
.filter-chip.active,
.docs-callout,
.variables-hint,
.pipeline-note,
.workspace-note,
.alert-info,
.alert-warning,
.alert-success,
.alert-danger {
  background: #f6f6fb !important;
  background-image: none !important;
  color: #111111 !important;
}

.wallet-pill,
.wallet-pill strong,
.wallet-pill-note,
.header-meta,
.text-sm,
.text-secondary {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0 !important;
}

.wallet-pill {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2f2f39 !important;
}

.wallet-pill strong {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #111111 !important;
}

.wallet-pill-note {
  background: transparent !important;
  color: #5D39FF !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 0 !important;
}

.workspace-note-copy,
.summary-box .summary-text,
.alert,
.docs-panel-header p,
.docs-endpoint p,
.docs-callout,
.form-hint {
  color: #111111 !important;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: #d7d7df !important;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: #c7c7d2 !important;
}

@media (max-width: 1024px) {
  .content-header {
    left: 0;
    height: auto !important;
    min-height: 68px !important;
    flex-wrap: wrap;
  }

  .content-body {
    padding-top: calc(20px + 68px);
  }

  .workspace-layout,
  .dashboard-insights-grid,
  .knowledge-create-layout {
    grid-template-columns: 1fr !important;
  }

  .workspace-sidebar {
    position: static !important;
    top: auto !important;
    order: 0 !important;
  }

  .workspace-sidebar > .card,
  .workspace-sidebar > .workspace-note,
  .workspace-main > .card,
  .workspace-main > form > .card {
    width: 100%;
  }

  .stats-grid,
  .call-log-summary-grid,
  .dashboard-summary-grid,
  .dashboard-insights-grid {
    grid-template-columns: 1fr !important;
  }

  .premium-filter-panel form,
  .filter-panel-grid,
  .callbacks-toolbar,
  .callbacks-toolbar form {
    grid-template-columns: 1fr !important;
  }

  .filter-field-wide,
  .filter-actions {
    grid-column: auto !important;
  }

  .filter-actions {
    justify-self: stretch;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .filter-actions .btn {
    flex: 1 1 160px;
  }

  .filter-panel-count {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .content-header {
    height: auto !important;
    min-height: 64px !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    flex-wrap: nowrap;
  }

  .content-body {
    padding-top: calc(16px + 64px) !important;
  }

  .sidebar {
    z-index: 140;
  }

  .app-layout::after {
    z-index: 130;
  }

  .header-mobile-hide {
    display: none !important;
  }

  .sidebar-mobile-meta {
    display: grid;
    gap: 10px;
    padding: 14px 14px 4px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .sidebar-mobile-meta .wallet-pill,
  .sidebar-mobile-meta .kyc-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-mobile-welcome {
    padding: 0 2px;
  }

  .header-shell {
    width: 100%;
    min-height: 64px;
  }

  .header-left,
  .header-right,
  .header-account-button {
    min-width: 0;
  }

  .header-account-button {
    max-width: none;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header > .btn,
  .section-header > a.btn {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
  }

  .workspace-layout {
    gap: 16px !important;
  }

  .workspace-stack,
  .workspace-note-list {
    gap: 16px;
  }

  .webhook-method-url {
    flex-direction: column;
  }

  .webhook-method-url select,
  .webhook-method-url input {
    width: 100%;
  }

  .variables-hint code {
    white-space: normal;
    word-break: break-word;
  }

  .table-container,
  .premium-table-container,
  .voice-library-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 14px;
  }

  .table-container table,
  .premium-data-table,
  .voice-library-table-element {
    width: max-content;
    min-width: 100%;
  }

  .table-container table {
    min-width: 720px;
  }

  .premium-data-table,
  .voice-library-table-element,
  .call-log-table {
    min-width: 760px;
  }

  .card > .table-container:last-child,
  .premium-table-card > .table-container:last-child {
    margin-top: 6px;
  }
}

/* Campaign pages use the same full-width rhythm as Call Logs. */
.campaign-page,
.campaign-detail-page {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 22px;
}

.campaign-page-header,
.campaign-detail-topbar {
  gap: 18px;
  margin-bottom: 0;
}

.campaign-page-header h1,
.campaign-detail-topbar h1 {
  font-family: 'Krona One', sans-serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.campaign-page-header p,
.campaign-detail-topbar p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.campaign-header-actions,
.campaign-detail-actions {
  gap: 12px;
  justify-content: flex-end;
}

.campaign-data-button,
.campaign-create-button,
.campaign-detail-actions .btn {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.campaign-data-button {
  box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, 0.08) !important;
}

.campaign-create-button {
  padding: 0 20px !important;
  box-shadow: 0 10px 22px rgba(93, 57, 255, 0.2) !important;
}

.campaign-ai-hero {
  min-height: 154px;
  padding: 24px 28px;
  border-radius: 20px;
}

.campaign-ai-hero-mark {
  width: 50px;
  height: 50px;
  font-size: 23px;
}

.campaign-ai-hero-copy { gap: 16px; }
.campaign-ai-hero h2 { font-size: 21px; letter-spacing: 0; }
.campaign-ai-hero p { max-width: 620px; font-size: 14px; line-height: 1.55; }

.campaign-filter-tabs { gap: 8px; }
.campaign-filter { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 12px; }
.campaign-filter i { font-size: 16px; }

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

.campaign-kpi-card {
  min-height: 106px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.035) !important;
}

.campaign-kpi-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 16px; }
.campaign-kpi-card p { font-size: 13px; }
.campaign-kpi-card strong { font-family: inherit; font-size: clamp(18px, 1.65vw, 24px); letter-spacing: -0.03em; }
.campaign-kpi-card small { margin-top: 4px; font-size: 12px; }

.campaign-reports-panel {
  min-height: 310px;
  padding: 18px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.04) !important;
}

.campaign-reports-head { margin-bottom: 2px; }
.campaign-reports-head h2 { font-size: 20px; }
.campaign-date-control { min-height: 38px; border-radius: 12px; font-size: 13px; }
.campaign-reports-table { margin-top: 16px; border-radius: 18px; }
.campaign-reports-table th { padding: 14px 18px; font-size: 11px; }
.campaign-reports-table td { padding: 18px; font-size: 14px; }

.campaign-detail-page { display: grid; }
.campaign-detail-actions { display: flex; align-items: center; flex-wrap: wrap; }
.campaign-detail-actions form { margin: 0; }

.campaign-draft-surface,
.campaign-draft-form,
.campaign-detail-breakdown {
  margin: 0;
  padding: 18px;
  border: 1.5px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.04) !important;
}

.campaign-draft-surface {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.campaign-draft-surface h2 { margin: 8px 0 4px; font-size: 20px; letter-spacing: 0; }
.campaign-draft-surface p { font-size: 14px; line-height: 1.5; }
.campaign-draft-form { display: grid; gap: 16px; }
.campaign-draft-form .card-header { margin-bottom: 0; }
.campaign-draft-form .card-title { font-family: inherit; font-size: 16px; font-weight: 800; }
.campaign-targeting-note { margin: 0; border-left-width: 3px; font-size: 13px; }
.campaign-review-form .form-control { min-height: 42px; border-width: 1.5px; border-radius: 12px; }
.campaign-review-form textarea.form-control { min-height: auto; }
.campaign-review-form .form-label { font-size: 12px; }
.campaign-review-form .modal-actions { justify-content: flex-start; padding-top: 0; }
.campaign-review-form .modal-actions .btn { min-height: 42px !important; padding: 0 18px !important; border-radius: 12px !important; box-shadow: none !important; }

.campaign-detail-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.campaign-detail-kpis .stat-card {
  min-height: 106px;
  padding: 16px 18px;
  border: 1.5px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.035);
}

.campaign-detail-kpis .stat-card .stat-icon { width: 40px; height: 40px; margin-bottom: 12px; border-width: 1px; }
.campaign-detail-kpis .stat-card .stat-value { font-family: inherit; font-size: 24px; font-weight: 800; }
.campaign-detail-kpis .stat-card .stat-label { font-size: 13px; font-weight: 700; }

.campaign-detail-breakdown { display: grid; gap: 14px; }
.campaign-detail-breakdown .card-header { margin-bottom: 0; }
.campaign-detail-breakdown .card-title { font-family: inherit; font-size: 16px; font-weight: 800; }
.campaign-detail-breakdown .analysis-grid { gap: 12px; }
.campaign-detail-breakdown .analysis-item { border-radius: 14px; }

.campaign-detail-filters {
  margin: 0;
  padding: 16px 18px;
  border: 1.5px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.035);
}

.campaign-detail-filters .form-control { height: 42px; border-width: 1.5px; border-radius: 12px; }
.campaign-detail-filters .btn { min-height: 42px !important; padding: 0 16px !important; border-radius: 12px !important; box-shadow: none !important; }

.campaign-detail-table-wrap {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  box-shadow: none !important;
}

.campaign-detail-table-wrap thead th { padding: 14px 18px; background: #ffffff !important; color: var(--text-secondary); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; border-bottom: 1px solid rgba(17,17,17,.08); }
.campaign-detail-table-wrap tbody td { padding: 18px; border-bottom: 1px solid rgba(17,17,17,.06); vertical-align: middle; font-size: 14px; }
.campaign-detail-table-wrap tbody tr:last-child td { border-bottom: 0; }
.campaign-detail-page .pagination { margin-top: 0; }

@media (max-width: 1280px) { .campaign-kpi-grid, .campaign-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .campaign-page-header, .campaign-detail-topbar { flex-direction: column; }.campaign-header-actions, .campaign-detail-actions { width: 100%; justify-content: flex-start; }.campaign-data-button, .campaign-create-button { flex: 1 1 180px; }.campaign-ai-hero { min-height: 184px; padding: 20px; }.campaign-ai-visual { opacity: .35; }.campaign-draft-surface { flex-direction: column; }.campaign-kpi-grid, .campaign-detail-kpis { grid-template-columns: 1fr; }.campaign-reports-panel { padding: 16px; border-radius: 22px; }.campaign-detail-page { gap: 16px; } }

/* ── Campaigns page ────────────────────────────────────────── */
.campaign-page {
  display: grid;
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.campaign-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.campaign-page-header h1 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.045em;
}

.campaign-page-header p {
  max-width: 680px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.campaign-header-actions,
.campaign-filter-tabs,
.campaign-channel-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.campaign-data-button,
.campaign-create-button,
.campaign-filter,
.campaign-date-control,
.campaign-empty-action {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.campaign-data-button,
.campaign-create-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(41, 17, 148, 0.08);
}

.campaign-data-button {
  color: var(--text-primary) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #e8e7f0, 0 12px 24px rgba(41, 17, 148, 0.05) !important;
}

.campaign-data-button i { color: var(--primary); font-size: 21px; }

.campaign-create-button {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #4a25e4, #6a2cff) !important;
  box-shadow: 0 16px 30px rgba(93, 57, 255, 0.3) !important;
}

.campaign-create-button::after {
  content: '';
  position: absolute;
  inset: auto -10% -55% 35%;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.campaign-create-button > * { position: relative; z-index: 1; }
.campaign-create-button i { font-size: 20px; }
.campaign-create-button small { position: absolute; z-index: 1; right: 18px; bottom: 8px; color: rgba(255,255,255,.78); font-size: 9px; letter-spacing: .04em; }
.campaign-data-button:hover, .campaign-create-button:hover { transform: translateY(-2px); }

.campaign-ai-hero {
  position: relative;
  min-height: 176px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 30px 36px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 76% 46%, rgba(255,255,255,.75), transparent 24%),
    linear-gradient(103deg, #fbf9ff 4%, #f2edff 55%, #e9e0ff 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .2), 0 14px 32px rgba(93,57,255,.06) !important;
}

.campaign-ai-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 690px;
}

.campaign-ai-hero-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #5d39ff;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 24px rgba(93,57,255,.12);
  font-size: 28px;
}

.campaign-ai-hero h2 { font-size: 25px; letter-spacing: -0.035em; }
.campaign-ai-hero p { margin-top: 9px; color: #5f5875; font-size: 14px; line-height: 1.65; }

.campaign-ai-visual { position: absolute; right: 24px; top: 0; width: 370px; height: 100%; pointer-events: none; }
.campaign-visual-card { position: absolute; display: grid; place-items: center; width: 72px; height: 58px; border-radius: 11px; color: #b69bff; background: rgba(255,255,255,.62); box-shadow: 0 10px 22px rgba(88,55,173,.08); font-size: 25px; }
.campaign-visual-card.card-one { left: 60px; top: 61px; transform: rotate(-4deg); }
.campaign-visual-card.card-two { left: 137px; top: 30px; width: 62px; height: 42px; font-size: 18px; }
.campaign-visual-spark { position: absolute; color: #a98aff; font-size: 22px; }
.campaign-visual-spark.spark-one { left: 245px; top: 26px; }.campaign-visual-spark.spark-two { left: 31px; bottom: 26px; font-size: 16px; }
.campaign-visual-bot { position: absolute; right: 25px; bottom: 17px; width: 112px; height: 116px; }
.bot-face { position: absolute; inset: 25px 12px 10px; display: grid; place-items: center; border-radius: 42% 42% 38% 38%; color: #bdaaff; background: linear-gradient(145deg, #ffffff, #e3d8ff); box-shadow: inset -8px -10px 18px rgba(93,57,255,.12), 0 13px 24px rgba(61,36,165,.17); font-size: 40px; }.bot-ear { position: absolute; top: 0; width: 28px; height: 58px; border: 7px solid #ffffff; border-radius: 60% 60% 20% 20%; background: #d7c6ff; transform: rotate(-17deg); }.bot-ear.left { left: 18px; }.bot-ear.right { right: 18px; transform: rotate(17deg); }.bot-headset { position: absolute; right: 0; top: 44px; color: #7050ed; font-size: 28px; }

.campaign-filter-tabs { gap: 14px; }
.campaign-filter { min-height: 43px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 12px; color: #554f66; background: #ffffff !important; box-shadow: inset 0 0 0 1px #e6e5ed; font-size: 13px; }.campaign-filter i { font-size: 18px; color: var(--primary); }.campaign-filter.active { color: #4b2ce7; background: #fbfaff !important; box-shadow: inset 0 0 0 1.5px #9a82ff, 0 7px 16px rgba(93,57,255,.07); }.campaign-filter:hover { transform: translateY(-1px); }

.campaign-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.campaign-kpi-card { min-height: 132px; display: grid; grid-template-columns: 60px minmax(0,1fr); align-items: center; gap: 16px; padding: 20px; border-radius: 16px; background: #ffffff !important; box-shadow: inset 0 0 0 1px #ebebf1, 0 12px 28px rgba(31,22,79,.035) !important; }.campaign-kpi-icon { width: 56px; height: 56px; display:grid; place-items:center; border-radius:50%; font-size: 25px; }.campaign-kpi-icon.purple { color:#6841ff; background:#f0eaff; }.campaign-kpi-icon.mint { color:#1a9c70; background:#dcfaed; }.campaign-kpi-icon.blue { color:#2c7df5; background:#e6f0ff; }.campaign-kpi-icon.peach { color:#f07821; background:#fff0df; }.campaign-kpi-card p { color:#5b556b; font-size:12px; font-weight:800; }.campaign-kpi-card strong { display:block; margin-top:3px; font-family:'Krona One',sans-serif; font-size:27px; letter-spacing:-.04em; }.campaign-kpi-card small { display:block; margin-top:7px; color:#888298; font-size:11px; }.campaign-dot { display:inline-block; width:7px; height:7px; margin:0 4px 1px 6px; border-radius:50%; }.campaign-dot.active { background:#13be78; }.campaign-dot.draft { background:#9f96ad; }

.campaign-reports-panel { min-height: 330px; padding: 20px 28px 26px; border-radius: 16px; background: #ffffff !important; box-shadow: inset 0 0 0 1px #e9e8ef, 0 14px 32px rgba(31,22,79,.035) !important; }.campaign-reports-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }.campaign-reports-head h2 { font-size:18px; }.campaign-date-control { min-height:38px; display:inline-flex; align-items:center; gap:9px; padding:0 13px; border-radius:10px; color:#5c566a; background:#ffffff; box-shadow:inset 0 0 0 1px #e6e5ed; font-size:12px; }.campaign-date-control .ph-caret-down { font-size:11px; }
.campaign-empty-state { min-height: 260px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }.campaign-empty-graphic { position:relative; width:240px; height:130px; margin-bottom:4px; }.campaign-empty-chart { position:absolute; left:35px; top:18px; width:150px; height:104px; display:grid; place-items:center; border-radius:13px; color:#c0afff; background:linear-gradient(135deg,#faf8ff,#eee9ff); box-shadow:inset 0 0 0 1px #e0d7ff; font-size:50px; }.campaign-empty-donut { position:absolute; right:31px; top:10px; display:grid; place-items:center; width:58px; height:58px; border-radius:50%; color:#b49eff; background:#f7f3ff; font-size:36px; }.campaign-empty-search { position:absolute; right:8px; bottom:10px; display:grid; place-items:center; width:52px; height:52px; border-radius:50%; color:#ffffff; background:#6638f3; box-shadow:0 10px 18px rgba(93,57,255,.28); font-size:27px; }.campaign-empty-state h3 { font-size:19px; }.campaign-empty-state p { margin-top:6px; color:#837d91; font-size:13px; }.campaign-empty-action { margin-top:16px; min-height:40px; padding:0 15px; border-radius:10px; color:#ffffff; background:#5d39ff !important; box-shadow:0 10px 20px rgba(93,57,255,.2); }

.campaign-reports-table { margin-top:22px; box-shadow: inset 0 0 0 1px #efedf3 !important; border-radius:12px; }.campaign-reports-table table { min-width:720px; }.campaign-reports-table th { padding:13px 16px; color:#837d91 !important; background:#faf9fc !important; font-size:11px; }.campaign-reports-table td { padding:16px; }.campaign-reports-table td:first-child span { display:block; margin-top:3px; color:#90899a; font-size:11px; }.campaign-channel-tags { gap:5px; }.campaign-channel-tags span { display:inline-flex; align-items:center; gap:4px; padding:4px 7px; border-radius:999px; font-size:10px; text-transform:capitalize; }.campaign-channel-tags .voice { color:#5e3cff; background:#eeeaff; }.campaign-channel-tags .sms { color:#2777d6; background:#eaf2ff; }.campaign-channel-tags .whatsapp { color:#12945f; background:#e2faef; }.campaign-status { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; text-transform:capitalize; }.campaign-status.running,.campaign-status.scheduled,.campaign-status.queued { color:#176b50; background:#ddf8eb; }.campaign-status.draft,.campaign-status.paused { color:#715d14; background:#fff3cc; }.campaign-status.completed { color:#3563b0; background:#e9f1ff; }.campaign-status.failed,.campaign-status.cancelled { color:#a63843; background:#fff0f0; }.campaign-report-link { display:inline-flex; align-items:center; gap:6px; font-weight:800; font-size:12px; }.campaign-filter-empty { padding:32px; text-align:center; color:#827b90; }

@media (max-width: 1050px) { .campaign-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.campaign-ai-visual { opacity:.62; }.campaign-page-header { flex-direction:column; }.campaign-header-actions { width:100%; } }
@media (max-width: 680px) { .campaign-page { gap:20px; }.campaign-page-header h1 { font-size:30px; }.campaign-header-actions { display:grid; grid-template-columns:1fr; }.campaign-data-button,.campaign-create-button { width:100%; }.campaign-ai-hero { padding:24px; min-height:206px; }.campaign-ai-hero-copy { align-items:flex-start; gap:14px; }.campaign-ai-hero-mark { width:46px; height:46px; font-size:22px; }.campaign-ai-hero h2 { font-size:21px; }.campaign-ai-hero p { font-size:12px; }.campaign-ai-visual { right:-34px; opacity:.35; }.campaign-filter-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }.campaign-filter { flex:0 0 auto; }.campaign-kpi-grid { grid-template-columns:1fr; gap:12px; }.campaign-kpi-card { min-height:108px; }.campaign-reports-panel { padding:18px; }.campaign-reports-head { align-items:flex-start; flex-direction:column; }.campaign-empty-state { min-height:280px; } }

/* Final navigation and dashboard emphasis overrides. */
.sidebar,
.sidebar-brand,
.sidebar-footer,
.sidebar-mobile-meta,
.content-header {
  border: 0 !important;
}

.sidebar {
  box-shadow: 18px 0 44px rgba(41, 17, 148, 0.07) !important;
}

.content-header {
  box-shadow: 0 12px 28px rgba(41, 17, 148, 0.055) !important;
}

.header-action-button,
.header-icon-button:not(.ai-bunny-trigger),
.header-account-button,
.header-shell .ai-bunny-trigger-header,
.sidebar-brand .brand-badge,
.nav-item .nav-icon {
  border: 0 !important;
}

.dashboard-command-panel.dashboard-command-panel-prominent {
  border: 0 !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(147, 197, 253, 0.2), transparent 34%),
    linear-gradient(135deg, #2f1b98 0%, #5d39ff 58%, #7658ff 100%) !important;
  background-image:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(147, 197, 253, 0.2), transparent 34%),
    linear-gradient(135deg, #2f1b98 0%, #5d39ff 58%, #7658ff 100%) !important;
  box-shadow: 0 26px 64px rgba(61, 37, 177, 0.25) !important;
}

.dashboard-command-panel-prominent .dashboard-hero-primary {
  color: #3620a7 !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(25, 12, 93, 0.2) !important;
}

.dashboard-command-panel-prominent .dashboard-hero-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 560px) {
  .content-header {
    padding: 0 14px !important;
    min-height: 60px !important;
  }

  .content-body {
    padding: calc(14px + 60px) 14px 14px !important;
  }

  .header-shell {
    min-height: 60px;
  }

  .header-dropdown,
  .header-account-dropdown {
    width: min(300px, calc(100vw - 28px));
  }

  .sidebar-mobile-meta {
    padding: 12px 12px 4px;
  }

  .sidebar-mobile-meta .wallet-pill,
  .sidebar-mobile-meta .kyc-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .card,
  .premium-table-card,
  .voice-library-card {
    padding: 16px !important;
  }

  .card > .table-container:last-child,
  .premium-table-card > .table-container:last-child {
    margin-top: 6px;
  }
}

/* Final Campaigns alignment: inherit Call Logs page sizing and density. */
.campaign-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 22px !important;
}

.campaign-page-header {
  gap: 18px !important;
}

.campaign-page-header h1 {
  font-size: 28px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.campaign-page-header p {
  margin-top: 8px !important;
  color: var(--text-secondary) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.campaign-data-button,
.campaign-create-button {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}

.campaign-data-button { box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, 0.08) !important; }
.campaign-create-button { padding: 0 20px !important; box-shadow: 0 10px 22px rgba(93, 57, 255, 0.2) !important; }
.campaign-create-button small { display: none; }

.campaign-ai-hero {
  min-height: 154px !important;
  padding: 24px 28px !important;
  border-radius: 20px !important;
}
.campaign-ai-hero-copy { gap: 16px !important; }
.campaign-ai-hero-mark { width: 50px !important; height: 50px !important; font-size: 23px !important; }
.campaign-ai-hero h2 { font-size: 21px !important; letter-spacing: 0 !important; }
.campaign-ai-hero p { max-width: 620px !important; font-size: 14px !important; line-height: 1.55 !important; }

.campaign-filter-tabs { gap: 8px !important; }
.campaign-filter { min-height: 38px !important; padding: 0 14px !important; border-radius: 12px !important; font-size: 12px !important; }
.campaign-filter i { font-size: 16px !important; }

.campaign-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
.campaign-kpi-card { min-height: 106px !important; grid-template-columns: 46px minmax(0, 1fr) !important; gap: 14px !important; padding: 16px 18px !important; border-radius: 20px !important; box-shadow: 0 10px 26px rgba(17, 17, 17, 0.035) !important; }
.campaign-kpi-icon { width: 46px !important; height: 46px !important; font-size: 20px !important; border-radius: 16px !important; }
.campaign-kpi-card p { font-size: 13px !important; }
.campaign-kpi-card strong { font-family: inherit !important; font-size: clamp(18px, 1.65vw, 24px) !important; letter-spacing: -0.03em !important; }
.campaign-kpi-card small { margin-top: 4px !important; font-size: 12px !important; }

.campaign-reports-panel { min-height: 310px !important; padding: 18px !important; border-radius: 26px !important; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.04) !important; }
.campaign-reports-head h2 { font-size: 20px !important; }
.campaign-date-control { min-height: 38px !important; border-radius: 12px !important; font-size: 13px !important; }
.campaign-reports-table { margin-top: 16px !important; border-radius: 18px !important; }
.campaign-reports-table th { padding: 14px 18px !important; font-size: 11px !important; }
.campaign-reports-table td { padding: 18px !important; font-size: 14px !important; }

@media (max-width: 1280px) { .campaign-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 768px) { .campaign-page-header { flex-direction: column !important; }.campaign-header-actions { width: 100% !important; justify-content: flex-start !important; }.campaign-data-button, .campaign-create-button { flex: 1 1 180px !important; }.campaign-ai-hero { min-height: 184px !important; padding: 20px !important; }.campaign-kpi-grid { grid-template-columns: 1fr !important; }.campaign-reports-panel { padding: 16px !important; border-radius: 22px !important; } }

/* Campaign header actions intentionally use the shared application CTA style. */
.campaign-header-actions .campaign-data-button,
.campaign-header-actions .campaign-create-button {
  min-height: 56px !important;
  padding: 0 30px !important;
  border: 3px solid #111111 !important;
  border-radius: 999px !important;
  box-shadow: 3px 4px 0 #111111 !important;
  font-size: 15px !important;
}

.campaign-header-actions .campaign-data-button {
  color: var(--text-primary) !important;
  background: #ffffff !important;
}

.campaign-header-actions .campaign-create-button {
  color: #ffffff !important;
  background: #5D39FF !important;
}

.campaign-header-actions .campaign-create-button::after {
  display: none;
}

/* Campaign Data follows the same full-width operational layout as Campaigns and Call Logs. */
.campaign-data-page {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 22px;
}

.campaign-data-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-data-topbar h1 {
  font-family: 'Krona One', sans-serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.campaign-data-topbar p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.campaign-data-upload-cta {
  min-height: 56px !important;
  padding: 0 30px !important;
  border: 3px solid #111111 !important;
  border-radius: 999px !important;
  box-shadow: 3px 4px 0 #111111 !important;
  font-size: 15px !important;
}

.campaign-data-ai-banner {
  position: relative;
  min-height: 154px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 24px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 76% 46%, rgba(255,255,255,.75), transparent 24%),
    linear-gradient(103deg, #fbf9ff 4%, #f2edff 55%, #e9e0ff 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .2), 0 14px 32px rgba(93,57,255,.06) !important;
}

.campaign-data-ai-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.campaign-data-ai-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #5d39ff;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 24px rgba(93,57,255,.12);
  font-size: 23px;
}

.campaign-data-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #5d39ff;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 0 0 1px rgba(93,57,255,.18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.campaign-data-ai-banner h2 { margin-top: 10px; font-size: 21px; letter-spacing: 0; }
.campaign-data-ai-banner p { margin-top: 7px; color: #5f5875; font-size: 14px; line-height: 1.55; }

.campaign-data-ai-visual { position: absolute; top: 0; right: 24px; width: 370px; height: 100%; pointer-events: none; }
.data-visual-table,.data-visual-card { position: absolute; display: grid; place-items: center; color: #c4b1ff; background: rgba(255,255,255,.58); box-shadow: 0 10px 22px rgba(88,55,173,.08); }.data-visual-table { left: 66px; top: 50px; width: 132px; height: 72px; border-radius: 11px; font-size: 36px; }.data-visual-card { left: 150px; top: 92px; width: 64px; height: 44px; border-radius: 11px; font-size: 23px; }.data-visual-spark { position:absolute; color:#ae91ff; font-size:18px; }.data-visual-spark.one { left:42px; top:22px; }.data-visual-spark.two { left:246px; top:36px; font-size:23px; }
.data-visual-bot { position:absolute; right:28px; bottom:14px; width:112px; height:116px; }.data-bot-face { position:absolute; inset:25px 12px 10px; display:grid; place-items:center; border-radius:42% 42% 38% 38%; color:#bdaaff; background:linear-gradient(145deg,#fff,#e3d8ff); box-shadow:inset -8px -10px 18px rgba(93,57,255,.12),0 13px 24px rgba(61,36,165,.17); font-size:40px; }.data-bot-ear { position:absolute; top:0; width:28px; height:58px; border:7px solid #fff; border-radius:60% 60% 20% 20%; background:#d7c6ff; transform:rotate(-17deg); }.data-bot-ear.left { left:18px; }.data-bot-ear.right { right:18px; transform:rotate(17deg); }.data-bot-headphones { position:absolute; right:0; top:44px; color:#7050ed; font-size:28px; }

.campaign-data-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.campaign-data-kpi {
  min-height: 106px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.08), 0 10px 26px rgba(17,17,17,.035) !important;
}

.campaign-data-kpi-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:16px; font-size:20px; }.campaign-data-kpi-icon.purple { color:#6841ff; background:#f0eaff; }.campaign-data-kpi-icon.mint { color:#1a9c70; background:#dcfaed; }.campaign-data-kpi-icon.blue { color:#2c7df5; background:#e6f0ff; }.campaign-data-kpi-icon.peach { color:#f07821; background:#fff0df; }
.campaign-data-kpi p { color:var(--text-secondary); font-size:13px; font-weight:700; }.campaign-data-kpi strong { display:block; margin-top:3px; font-size:clamp(18px,1.65vw,24px); font-weight:800; line-height:1.05; letter-spacing:-.03em; }

.campaign-data-surface,
.campaign-data-preview {
  overflow: hidden;
  border: 1.5px solid rgba(17,17,17,.08);
  border-radius: 26px;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(17,17,17,.04) !important;
}

.campaign-data-table-head,
.campaign-data-source-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.15fr) minmax(100px, .8fr) minmax(100px, .7fr) minmax(150px, 1fr) minmax(120px, .8fr) minmax(88px, .55fr);
  align-items: center;
  gap: 16px;
}

.campaign-data-table-head {
  padding: 14px 24px;
  color: var(--text-secondary);
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.campaign-data-source-row {
  min-height: 76px;
  padding: 14px 24px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(17,17,17,.06);
}

.campaign-data-source-row:last-child { border-bottom: 0; }
.campaign-data-source-row:hover,.campaign-data-source-row.active { background: #faf9ff; }
.campaign-data-file { display:flex; align-items:center; gap:12px; min-width:0; }.campaign-data-file > i { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:#5d39ff; background:#f0eaff; font-size:20px; }.campaign-data-file span { display:grid; min-width:0; }.campaign-data-file strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.campaign-data-file small { margin-top:3px; color:var(--text-muted); font-size:11px; font-weight:600; }.campaign-data-status { display:inline-flex; align-items:center; gap:6px; width:max-content; min-height:28px; padding:0 10px; border-radius:999px; font-size:11px; font-weight:800; text-transform:capitalize; }.campaign-data-status.ready { color:#159950; background:#eaf8ef; }.campaign-data-status.processing { color:#d97706; background:#fff3e3; }.campaign-data-status.failed { color:#dc2626; background:#fdecec; }.campaign-data-row-stage { display:block; max-width:150px; margin-top:4px; overflow:hidden; color:var(--text-muted); font-size:10px; font-weight:650; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }.campaign-data-row-actions { display:flex; justify-content:flex-end; }.campaign-data-delete { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:32px; padding:0 9px; border:1px solid #f3c3c3; border-radius:10px; color:#ca3a3a; background:#fff; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }.campaign-data-delete:hover:not(:disabled) { color:#fff; background:#d84949; border-color:#d84949; }.campaign-data-delete:disabled { cursor:not-allowed; opacity:.45; }

.campaign-data-index-progress { padding:16px 18px; border:1.5px solid rgba(93,57,255,.2); border-radius:18px; background:linear-gradient(100deg,#fbf9ff,#f4efff); box-shadow:0 10px 26px rgba(93,57,255,.06); }.campaign-data-index-progress.failed { border-color:rgba(220,38,38,.25); background:#fff8f8; }.campaign-data-index-progress-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.campaign-data-index-progress-head strong { display:block; font-size:14px; }.campaign-data-index-progress-head span,.campaign-data-index-progress > small { display:block; margin-top:4px; color:var(--text-secondary); font-size:12px; line-height:1.4; }.campaign-data-index-progress-head b { color:#5d39ff; font-size:18px; }.campaign-data-index-track { height:8px; overflow:hidden; margin-top:12px; border-radius:999px; background:#e7defd; }.campaign-data-index-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6c43ff,#9c7fff); transition:width .35s ease; }
#campaignDataUploadError.form-error { margin-bottom:14px; padding:10px 12px; border-radius:10px; color:#b42318; background:#fff0f0; font-size:12px; font-weight:700; }

.campaign-data-empty-state { min-height: 350px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; text-align:center; }.campaign-data-empty-graphic { position:relative; width:154px; height:126px; }.data-empty-file { position:absolute; left:38px; top:12px; width:72px; height:92px; display:grid; place-items:center; border-radius:13px; color:#b99eff; background:linear-gradient(135deg,#faf8ff,#eee9ff); box-shadow:inset 0 0 0 1px #dfd5ff; font-size:43px; }.data-empty-upload { position:absolute; right:0; bottom:10px; width:52px; height:52px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#6638f3; box-shadow:0 10px 18px rgba(93,57,255,.28); font-size:26px; }.data-empty-spark { position:absolute; color:#bfafff; font-size:18px; }.data-empty-spark.one { left:10px; top:20px; }.data-empty-spark.two { right:15px; top:6px; }.campaign-data-empty-state h2 { margin-top:4px; font-size:20px; }.campaign-data-empty-state p { margin-top:6px; color:var(--text-muted); font-size:14px; }.campaign-data-dropzone { width:min(500px,100%); min-height:70px; display:flex; align-items:center; justify-content:center; gap:10px; margin-top:24px; padding:14px; border:1.5px dashed #ae9bff; border-radius:14px; color:var(--text-secondary); background:#fff; cursor:pointer; font:inherit; font-size:13px; font-weight:700; }.campaign-data-dropzone i { font-size:20px; }.campaign-data-dropzone b { color:#5d39ff; }
.campaign-data-dropzone.dragging { color:#5d39ff; background:#faf8ff; border-color:#5d39ff; }

.campaign-data-preview { padding:18px; }.campaign-data-preview-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; }.campaign-data-preview-head h2 { font-size:16px; font-weight:800; }.campaign-data-preview-head p,.campaign-data-preview-head > span { margin-top:4px; color:var(--text-muted); font-size:12px; }.campaign-data-preview-table { border:1px solid rgba(17,17,17,.08); border-radius:18px; box-shadow:none !important; }.campaign-data-preview-table thead th { padding:14px 18px; background:#fff !important; color:var(--text-secondary); font-size:11px; font-weight:800; letter-spacing:.08em; border-bottom:1px solid rgba(17,17,17,.08); }.campaign-data-preview-table tbody td { padding:18px; border-bottom:1px solid rgba(17,17,17,.06); font-size:14px; }.campaign-data-preview-table tbody tr:last-child td { border-bottom:0; }
.campaign-data-detail-view { padding:22px; }.campaign-data-back { display:inline-flex; align-items:center; gap:7px; margin-bottom:12px; color:#5d39ff; font-size:12px; font-weight:800; }.campaign-data-back:hover { color:#4223d7; }.campaign-data-detail-view .campaign-data-preview-head h2 { font-size:22px; }.campaign-data-detail-view .campaign-data-preview-head p { font-size:13px; }.campaign-data-detail-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:var(--text-muted); font-size:12px; }.campaign-data-detail-meta span { padding:6px 9px; border-radius:10px; background:#f8f7fb; }.campaign-data-detail-meta strong { color:var(--text-primary); }

@media (max-width: 1280px) { .campaign-data-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.campaign-data-ai-visual { opacity:.5; } }
@media (max-width: 768px) { .campaign-data-topbar { flex-direction:column; }.campaign-data-upload-cta { width:100%; }.campaign-data-ai-banner { min-height:184px; padding:20px; }.campaign-data-ai-visual { right:-34px; opacity:.32; }.campaign-data-kpis { grid-template-columns:1fr; }.campaign-data-surface { border-radius:22px; overflow-x:auto; }.campaign-data-table-head,.campaign-data-source-row { min-width:820px; }.campaign-data-empty-state { min-width:0; }.campaign-data-table-head:has(+ .campaign-data-empty-state) { display:none; }.campaign-data-preview { border-radius:22px; padding:16px; }.campaign-data-preview-head { flex-direction:column; } }

/* Dashboard operational overview — compact cards and a full-width live workspace layout. */
.dashboard-reference-page { display:grid; width:100%; max-width:none; gap:20px; }
.dashboard-reference-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.dashboard-reference-header h1 { color:#111428; font-family:inherit; font-size:29px; font-weight:800; line-height:1.2; letter-spacing:-.035em; }
.dashboard-reference-header p { margin-top:6px; color:#6d7080; font-size:13px; line-height:1.5; }
.dashboard-reference-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.dashboard-reference-range { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 14px; border:1px solid #e3e2ed; border-radius:9px; color:#6655b5; background:#fff; font-size:12px; font-weight:700; white-space:nowrap; }
.dashboard-reference-range i { color:#6e54ee; font-size:16px; }
.dashboard-reference-new-agent { min-height:42px !important; padding:0 17px !important; border:1px solid #5d39ff !important; border-radius:9px !important; box-shadow:0 9px 18px rgba(93,57,255,.18) !important; font-size:12px !important; }
.dashboard-reference-notice { display:flex; align-items:center; gap:12px; padding:13px 16px; border:1px solid #f0dca7; border-radius:14px; background:#fffaf0; color:#6b5224; }.dashboard-reference-notice > i { font-size:22px; color:#c58a17; }.dashboard-reference-notice div { display:grid; gap:2px; }.dashboard-reference-notice strong { font-size:13px; }.dashboard-reference-notice span { font-size:12px; }.dashboard-reference-notice a { display:inline-flex; align-items:center; gap:5px; margin-left:auto; color:#7050ed; font-size:12px; font-weight:800; white-space:nowrap; }

.dashboard-reference-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dashboard-reference-kpi { min-height:121px; padding:18px 20px 16px; border:1px solid #ecebf2; border-radius:15px; color:inherit; background:#fff; box-shadow:0 8px 22px rgba(22,24,49,.035); transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.dashboard-reference-kpi:hover { transform:translateY(-2px); border-color:#ddd5ff; box-shadow:0 14px 28px rgba(70,49,164,.1); }
.dashboard-reference-kpi-top { display:flex; align-items:center; gap:10px; }.dashboard-reference-kpi-top p { color:#54576a; font-size:11px; font-weight:700; }.dashboard-reference-icon { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; color:#6848f6; background:#f1edff; font-size:18px; }
.dashboard-reference-kpi-value { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }.dashboard-reference-kpi-value strong { color:#12152a; font-size:24px; font-weight:800; letter-spacing:-.04em; line-height:1; white-space:nowrap; }.dashboard-reference-kpi-value svg { width:80px; height:35px; overflow:visible; }.dashboard-reference-kpi-value path { fill:none; stroke:#8567ff; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.dashboard-reference-kpi small { display:flex; align-items:center; gap:4px; margin-top:10px; color:#87899a; font-size:10px; font-weight:700; }.dashboard-reference-kpi small.positive { color:#1fa86b; }.dashboard-reference-kpi small.negative { color:#e16161; }.dashboard-reference-kpi small span { color:#87899a; font-weight:600; }
.dashboard-reference-kpi-split { color:#858797; font-size:11px; font-weight:650; text-align:right; }.dashboard-reference-kpi-split b { color:#4d4f62; font-weight:800; }

.dashboard-reference-main-grid { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(330px,.98fr); gap:18px; align-items:stretch; }.dashboard-reference-chart-card,.dashboard-reference-insights { border:1px solid #ecebf2; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(22,24,49,.03); }.dashboard-reference-chart-card { min-height:342px; padding:18px 18px 12px; }.dashboard-reference-chart-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.dashboard-reference-chart-card h2,.dashboard-reference-insights h2 { color:#202238; font-size:14px; font-weight:800; }.dashboard-reference-chart-card header p { margin-top:4px; color:#848697; font-size:11px; }.dashboard-reference-period { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 10px; border:1px solid #e6e5ee; border-radius:8px; color:#5c6071; font-size:11px; font-weight:700; white-space:nowrap; }.dashboard-reference-legend { display:flex; align-items:center; justify-content:center; gap:19px; margin-top:20px; color:#696b7b; font-size:10px; font-weight:700; }.dashboard-reference-legend span { display:inline-flex; align-items:center; gap:6px; }.dashboard-reference-legend i { width:16px; height:4px; border-radius:999px; }.dashboard-reference-legend .conversations i { background:#6948ff; }.dashboard-reference-legend .calls i { background:#4498f8; }.dashboard-reference-legend .chats i { background:#44c987; }
.dashboard-reference-main-grid.dashboard-reference-main-grid-single { grid-template-columns:minmax(0,1fr); }
.dashboard-reference-chart-wrap { position:relative; min-height:238px; }.dashboard-reference-chart { display:block; width:100%; height:238px; overflow:visible; }.dashboard-reference-grid-lines line { stroke:#efeff4; stroke-width:1; }.dashboard-reference-fill { fill:url(#dashboardConversationFill); }.dashboard-reference-line { fill:none; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }.dashboard-reference-line.conversation { stroke:#6948ff; }.dashboard-reference-line.call { stroke:#4498f8; }.dashboard-reference-line.chat { stroke:#44c987; }.dashboard-reference-point { fill:#fff; stroke:#6948ff; stroke-width:2; }.dashboard-reference-chart text { fill:#88899a; font-size:10px; font-family:inherit; font-weight:650; }.dashboard-reference-chart-empty { position:absolute; inset:0; display:grid; place-items:center; color:#8b8d9e; font-size:12px; font-weight:700; }

.dashboard-reference-insights { padding:18px; }.dashboard-reference-insights h2 { margin:2px 3px 12px; }.dashboard-reference-insight { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:63px; padding:9px; border:1px solid #f0eff4; border-radius:12px; }.dashboard-reference-insight + .dashboard-reference-insight { margin-top:9px; }.dashboard-reference-insight .dashboard-reference-icon { width:34px; height:34px; border-radius:10px; font-size:17px; }.dashboard-reference-insight p { color:#646677; font-size:10px; font-weight:700; }.dashboard-reference-insight strong { display:block; margin-top:2px; color:#15172b; font-size:18px; font-weight:800; letter-spacing:-.03em; line-height:1; }.dashboard-reference-insight small { display:block; margin-top:5px; color:#8a8c9b; font-size:9px; font-weight:650; }.dashboard-reference-insight small.positive { color:#1fa86b; }.dashboard-reference-insight small.negative { color:#e16161; }.dashboard-reference-health { color:#1eaa67 !important; font-size:11px !important; letter-spacing:0 !important; }.dashboard-reference-health i { margin-left:3px; }.dashboard-reference-bars { display:flex; align-items:flex-end; gap:4px; height:42px; padding:2px 0; }.dashboard-reference-bars i { display:block; width:5px; min-height:8px; border-radius:4px 4px 1px 1px; background:linear-gradient(180deg,#af9aff,#7150f2); opacity:.72; }.dashboard-reference-bars.soft i { background:linear-gradient(180deg,#d8ceff,#aa94ff); }
.dashboard-reference-insight { color:inherit; transition:background .15s ease,border-color .15s ease; }.dashboard-reference-insight:hover { border-color:#ded7ff; background:#fbfaff; }.dashboard-reference-insight > i { color:#aaa5bd; font-size:15px; }
.dashboard-quick-actions .dashboard-reference-insight { min-height:70px; }.dashboard-quick-actions .dashboard-reference-insight h3 { color:#242638; font-family:inherit; font-size:13px; font-weight:800; line-height:1.25; }.dashboard-quick-actions .dashboard-reference-insight p { margin-top:4px; color:#858797; font-size:11px; font-weight:650; line-height:1.35; }

.dashboard-live-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.72fr); gap:18px; align-items:stretch; }
.dashboard-live-card { overflow:hidden; border:1px solid #ecebf2; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(22,24,49,.03); }
.dashboard-live-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:19px 20px 15px; border-bottom:1px solid #f0eff4; }.dashboard-live-card-head h2 { color:#202238; font-size:16px; font-weight:800; }.dashboard-live-card-head p { margin-top:4px; color:#858797; font-size:12px; line-height:1.5; }
.dashboard-activity-tabs { display:flex; align-items:center; gap:3px; padding:3px; border:1px solid #e8e6ef; border-radius:10px; background:#fafafd; }.dashboard-activity-tabs button { min-height:29px; padding:0 11px; border:0; border-radius:7px; color:#747687; background:transparent; font:inherit; font-size:11px; font-weight:750; cursor:pointer; }.dashboard-activity-tabs button.active { color:#fff; background:#6848f6; box-shadow:0 4px 10px rgba(104,72,246,.2); }
.dashboard-activity-list { min-height:260px; }.dashboard-activity-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:82px; padding:13px 20px; color:inherit; border-bottom:1px solid #f2f1f5; transition:background .15s ease; }.dashboard-activity-row:hover { background:#fbfaff; }.dashboard-activity-row[hidden] { display:none !important; }
.dashboard-activity-avatar { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; color:#5e3ce5; background:#efeaff; font-size:12px; font-weight:850; }.dashboard-activity-avatar.call { color:#2775c8; background:#eaf4ff; font-size:18px; }.dashboard-activity-copy { display:grid; min-width:0; gap:4px; }.dashboard-activity-title { display:flex; align-items:center; gap:7px; min-width:0; }.dashboard-activity-title strong { max-width:42%; overflow:hidden; color:#202238; font-size:13px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }.dashboard-activity-type,.dashboard-activity-status { display:inline-flex; align-items:center; min-height:20px; padding:0 7px; border-radius:999px; font-size:9px; font-style:normal; font-weight:800; text-transform:capitalize; }.dashboard-activity-type { color:#6b4be8; background:#f1edff; }.dashboard-activity-status { color:#727486; background:#f0f0f4; }.dashboard-activity-status.active,.dashboard-activity-status.completed { color:#15935b; background:#e8f8ef; }.dashboard-activity-status.ringing,.dashboard-activity-status.in-progress,.dashboard-activity-status.initiated,.dashboard-activity-status.scheduled { color:#b46c13; background:#fff2dd; }.dashboard-activity-status.failed,.dashboard-activity-status.abandoned,.dashboard-activity-status.no-answer,.dashboard-activity-status.cancelled { color:#ca4141; background:#fff0f0; }.dashboard-activity-copy > span:not(.dashboard-activity-title) { overflow:hidden; color:#66697a; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.dashboard-activity-copy small { color:#9697a5; font-size:10px; font-weight:650; }.dashboard-activity-time { display:flex; align-items:center; gap:8px; color:#9697a5; font-size:10px; font-weight:700; white-space:nowrap; }.dashboard-activity-time i { color:#7254ef; font-size:14px; }
.dashboard-activity-empty { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:30px; color:#8b8d9d; text-align:center; }.dashboard-activity-empty > i { font-size:32px; color:#8b70f4; }.dashboard-activity-empty strong { color:#383a4c; font-size:14px; }.dashboard-activity-empty span { font-size:11px; }.dashboard-activity-filter-empty[hidden] { display:none !important; }.dashboard-activity-card > footer { display:flex; justify-content:flex-end; padding:12px 20px; background:#fcfcfe; }.dashboard-activity-card > footer a { display:inline-flex; align-items:center; gap:6px; color:#6747ed; font-size:11px; font-weight:800; }
.dashboard-activity-footer-links { display:flex; align-items:center; gap:16px; }.dashboard-live-grid { scroll-margin-top:84px; }
.dashboard-outcome-card { display:flex; flex-direction:column; gap:16px; padding:21px; background:linear-gradient(145deg,#fbfaff 0%,#f5f2ff 100%); border-color:#e2dbff; }.dashboard-outcome-card > header { display:flex; align-items:center; gap:12px; }.dashboard-outcome-mark { width:46px; height:46px; display:grid; place-items:center; flex:0 0 auto; border-radius:15px; color:#fff; background:linear-gradient(145deg,#7657ff,#5531df); box-shadow:0 10px 20px rgba(94,56,227,.23); font-size:21px; }.dashboard-outcome-card header span:not(.dashboard-outcome-mark) { color:#7352ed; font-size:9px; font-weight:850; letter-spacing:.12em; }.dashboard-outcome-card h2 { margin-top:3px; color:#202238; font-size:16px; font-weight:800; }.dashboard-outcome-card header p { margin-top:3px; color:#858797; font-size:11px; }
.dashboard-outcome-overview { display:flex; align-items:center; gap:17px; padding:14px; border:1px solid rgba(104,72,246,.13); border-radius:14px; background:rgba(255,255,255,.72); }.dashboard-outcome-ring { --outcome-value:0; width:92px; height:92px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:conic-gradient(#28b878 calc(var(--outcome-value) * 1%),#e9e6f2 0); position:relative; }.dashboard-outcome-ring::after { content:''; position:absolute; inset:9px; border-radius:50%; background:#fff; }.dashboard-outcome-ring > span { position:relative; z-index:1; display:grid; justify-items:center; }.dashboard-outcome-ring strong { color:#202238; font-size:20px; font-weight:850; line-height:1; }.dashboard-outcome-ring small { margin-top:5px; color:#858797; font-size:9px; font-weight:750; }.dashboard-outcome-resolved { display:grid; min-width:0; }.dashboard-outcome-resolved strong { color:#202238; font-size:25px; font-weight:850; line-height:1; }.dashboard-outcome-resolved span { margin-top:5px; color:#56596b; font-size:11px; font-weight:750; }.dashboard-outcome-resolved small { margin-top:5px; color:#9697a5; font-size:9px; }
.dashboard-outcome-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.dashboard-outcome-stats > div { display:flex; align-items:center; gap:9px; min-width:0; padding:11px; border:1px solid rgba(30,26,26,.07); border-radius:12px; background:rgba(255,255,255,.8); }.dashboard-outcome-stats > div > i { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; font-size:17px; }.dashboard-outcome-stats span { display:grid; min-width:0; }.dashboard-outcome-stats strong { color:#242638; font-size:16px; font-weight:850; line-height:1; }.dashboard-outcome-stats strong em { margin-left:2px; color:#9697a5; font-size:9px; font-style:normal; }.dashboard-outcome-stats small { margin-top:5px; overflow:hidden; color:#7f8191; font-size:9px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.dashboard-outcome-stats .success > i { color:#15935b; background:#e7f8ef; }.dashboard-outcome-stats .failed > i { color:#ca4141; background:#fff0f0; }.dashboard-outcome-stats .score > i { color:#6747ed; background:#efeaff; }.dashboard-outcome-stats .analyzed > i { color:#2775c8; background:#eaf4ff; }
.dashboard-outcome-note { display:flex; align-items:flex-start; gap:6px; margin:0; color:#858797; font-size:9px; line-height:1.45; }.dashboard-outcome-note i { margin-top:1px; color:#7254ef; font-size:12px; }

@media (max-width:1040px) { .dashboard-reference-main-grid,.dashboard-live-grid { grid-template-columns:1fr; }.dashboard-reference-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard-reference-insights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.dashboard-reference-insights h2 { grid-column:1/-1; margin-bottom:0; }.dashboard-reference-insight + .dashboard-reference-insight { margin-top:0; } }
@media (max-width:680px) { .dashboard-reference-page { width:100%; max-width:calc(100vw - 28px); min-width:0; box-sizing:border-box; }.dashboard-reference-header,.dashboard-reference-header > div:first-child,.dashboard-reference-kpi { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }.dashboard-reference-header { flex-direction:column; }.dashboard-reference-header p { max-width:100%; white-space:normal; overflow-wrap:anywhere; }.dashboard-reference-actions { width:100%; flex-direction:column; align-items:stretch; justify-content:stretch; }.dashboard-reference-range,.dashboard-reference-new-agent { width:100%; max-width:100%; flex:none; box-sizing:border-box; justify-content:center; }.dashboard-reference-kpis,.dashboard-reference-insights { grid-template-columns:minmax(0,1fr); }.dashboard-reference-kpi { overflow:hidden; }.dashboard-reference-kpi-value { min-width:0; align-items:flex-end; }.dashboard-reference-kpi-split { display:none; }.dashboard-reference-insights h2 { grid-column:auto; }.dashboard-reference-chart-card { min-width:0; padding:15px 12px 8px; overflow:hidden; }.dashboard-reference-chart-card > header,.dashboard-live-card-head { flex-direction:column; }.dashboard-reference-legend { justify-content:flex-start; gap:11px; overflow:auto; white-space:nowrap; }.dashboard-reference-chart { width:680px; }.dashboard-reference-chart-wrap { max-width:100%; overflow-x:auto; }.dashboard-reference-notice { align-items:flex-start; flex-wrap:wrap; }.dashboard-reference-notice a { margin-left:34px; }.dashboard-activity-tabs { width:100%; box-sizing:border-box; }.dashboard-activity-tabs button { flex:1; }.dashboard-activity-row { grid-template-columns:38px minmax(0,1fr); padding:12px 14px; }.dashboard-activity-avatar { width:38px; height:38px; }.dashboard-activity-time { grid-column:2; justify-content:flex-start; }.dashboard-activity-title strong { max-width:55%; }.dashboard-outcome-card { padding:18px; } }

/* Keep dashboard type and top actions in the same scale as the operational pages. */
.dashboard-reference-page { font-family:inherit; }
.dashboard-reference-header h1 { font-family:'Krona One', sans-serif; font-size:28px; line-height:1.25; letter-spacing:0; }
.dashboard-reference-header p { font-size:16px; }
.dashboard-reference-range { min-height:46px; padding:0 16px; border-radius:14px; color:var(--text-primary); font-size:13px; }
.dashboard-reference-new-agent { min-height:56px !important; padding:0 30px !important; border:3px solid #111111 !important; border-radius:999px !important; box-shadow:3px 4px 0 #111111 !important; font-size:15px !important; }
.dashboard-reference-kpi-top p { font-size:13px; }.dashboard-reference-kpi-value strong { font-size:clamp(18px,1.65vw,24px); }.dashboard-reference-kpi small { font-size:12px; }.dashboard-reference-chart-card h2,.dashboard-reference-insights h2 { font-size:16px; }.dashboard-reference-chart-card header p { font-size:13px; }.dashboard-reference-period { min-height:38px; padding:0 12px; border-radius:12px; font-size:13px; }.dashboard-reference-legend { font-size:12px; }.dashboard-reference-insight p { font-size:12px; }.dashboard-reference-insight small { font-size:11px; }

/* Campaign creation modes and WhatsApp approval review. */
.campaign-creation-modal { width:min(860px,calc(100vw - 32px)); max-height:calc(100vh - 48px); overflow:auto; }.campaign-creation-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.campaign-creation-choice { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:96px; padding:14px; border:1.5px solid rgba(93,57,255,.16); border-radius:16px; color:var(--text-primary); background:#fff; font:inherit; text-align:left; cursor:pointer; }.campaign-creation-choice:hover,.campaign-creation-choice.active { border-color:#7657ff; background:#faf9ff; }.campaign-creation-choice > span { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:#6544ed; background:#efeaff; font-size:21px; }.campaign-creation-choice strong { display:block; font-size:14px; }.campaign-creation-choice small { display:block; margin-top:4px; color:var(--text-secondary); font-size:12px; font-weight:600; line-height:1.4; }.campaign-creation-choice > i { color:#7253f5; font-size:17px; }.campaign-manual-form { display:grid; gap:15px; margin-top:20px; padding-top:18px; border-top:1px solid rgba(17,17,17,.08); }.campaign-manual-form-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }.campaign-manual-form-head strong { font-size:16px; }.campaign-manual-form-head span { color:var(--text-muted); font-size:12px; }.campaign-source-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.campaign-source-selector label { display:flex; align-items:flex-start; gap:9px; padding:11px; border:1px solid rgba(17,17,17,.1); border-radius:12px; cursor:pointer; }.campaign-source-selector input { margin-top:3px; accent-color:#5d39ff; }.campaign-source-selector span { display:grid; min-width:0; }.campaign-source-selector strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.campaign-source-selector small { margin-top:3px; color:var(--text-muted); font-size:11px; }.campaign-whatsapp-builder { padding:14px; border:1px solid rgba(93,57,255,.16); border-radius:15px; background:#faf9ff; }.campaign-template-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }.campaign-template-heading strong { display:block; font-size:13px; }.campaign-template-heading span:not(.campaign-template-status) { display:block; margin-top:3px; color:var(--text-secondary); font-size:11px; line-height:1.4; }.campaign-template-status { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:999px; color:#b36a12; background:#fff1d9; font-size:10px; font-weight:800; text-transform:capitalize; white-space:nowrap; }.campaign-template-status.approved { color:#138d50; background:#e8f8ee; }.campaign-template-status.received,.campaign-template-status.pending { color:#7350ed; background:#eeeaff; }.campaign-template-status.rejected { color:#c94040; background:#fff0f0; }.campaign-template-approval-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding:18px; border:1.5px solid rgba(93,57,255,.17); border-radius:18px; background:linear-gradient(100deg,#fbfaff,#f4f0ff); }.campaign-template-approval-card h3 { margin-top:9px; font-size:17px; }.campaign-template-approval-card p { max-width:640px; margin-top:5px; color:var(--text-secondary); font-size:13px; line-height:1.5; }.campaign-template-approval-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }.campaign-template-approval-actions .btn { min-height:42px !important; padding:0 18px !important; border-radius:12px !important; box-shadow:none !important; }
.campaign-manual-form-head > div:first-child { display:grid; gap:3px; }.campaign-stepper { display:flex; align-items:center; gap:7px; }.campaign-stepper span { width:23px; height:23px; display:grid; place-items:center; border-radius:50%; color:#8a8798; background:#f0eff4; font-size:11px; font-weight:800; }.campaign-stepper span.active { color:#fff; background:#6544ed; }.campaign-stepper i { width:22px; height:2px; background:#e2e0e8; }.campaign-manual-step { display:grid; gap:15px; }.campaign-manual-step-title { display:grid; gap:3px; }.campaign-manual-step-title strong { font-size:15px; }.campaign-manual-step-title span { color:var(--text-muted); font-size:12px; }.campaign-step-actions { display:flex; justify-content:space-between; gap:12px; padding-top:2px; }.campaign-step-actions [data-manual-next],.campaign-step-actions [data-manual-submit] { margin-left:auto; }
.campaign-creation-modal [hidden] { display:none !important; }
.campaign-ai-source-step { display:grid; gap:15px; margin-top:20px; padding-top:18px; border-top:1px solid rgba(17,17,17,.08); }.campaign-ai-source-error { margin-top:8px; color:#c94040; font-size:12px; font-weight:700; }.campaign-creation-modal[data-screen="choice"] .campaign-manual-form,.campaign-creation-modal[data-screen="choice"] .campaign-ai-source-step { display:none !important; }.campaign-creation-modal[data-screen="manual"] .campaign-creation-options,.campaign-creation-modal[data-screen="manual"] .campaign-ai-source-step { display:none !important; }.campaign-creation-modal[data-screen="ai"] .campaign-creation-options,.campaign-creation-modal[data-screen="ai"] .campaign-manual-form { display:none !important; }.campaign-manual-form[data-current-step="1"] [data-manual-step="2"],.campaign-manual-form[data-current-step="1"] [data-manual-step="3"],.campaign-manual-form[data-current-step="2"] [data-manual-step="1"],.campaign-manual-form[data-current-step="2"] [data-manual-step="3"],.campaign-manual-form[data-current-step="3"] [data-manual-step="1"],.campaign-manual-form[data-current-step="3"] [data-manual-step="2"] { display:none !important; }.campaign-manual-form[data-current-step="1"] [data-manual-prev],.campaign-manual-form[data-current-step="1"] [data-manual-submit],.campaign-manual-form[data-current-step="2"] [data-manual-submit],.campaign-manual-form[data-current-step="3"] [data-manual-next] { display:none !important; }.campaign-method-back { width:max-content; display:inline-flex; align-items:center; gap:5px; margin-bottom:5px; padding:0; border:0; color:#6544ed; background:transparent; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
@media (max-width:720px) { .campaign-creation-options,.campaign-source-selector { grid-template-columns:1fr; }.campaign-manual-form-head,.campaign-template-approval-card { align-items:flex-start; flex-direction:column; }.campaign-template-approval-actions { width:100%; justify-content:flex-start; }.campaign-creation-modal { width:min(100vw - 20px,860px); } }

/* Keep AI Bunny simple and typographically consistent with the application. */
.ai-bunny-panel,.ai-bunny-panel button,.ai-bunny-panel textarea { font-family:'Raleway',-apple-system,BlinkMacSystemFont,sans-serif; }.ai-bunny-chat-empty-campaign { min-height:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:10px; padding:22px 18px; text-align:left; }.ai-bunny-chat-empty-campaign .ai-bunny-chat-empty-mark { width:44px; height:44px; border-radius:14px; font-size:20px; box-shadow:none; }.ai-bunny-chat-empty-campaign .ai-bunny-chat-empty-title { font-family:inherit; font-size:20px; font-weight:800; line-height:1.25; }.ai-bunny-chat-empty-campaign .ai-bunny-chat-empty-copy { max-width:none; font-size:13px; line-height:1.55; }.ai-bunny-chat-empty-campaign .ai-bunny-chat-empty-actions { width:100%; justify-content:flex-start; margin-top:2px; }.ai-bunny-quick-action.campaign { min-height:40px; display:inline-flex; align-items:center; gap:7px; padding:0 15px; border-color:rgba(93,57,255,.24); color:#5d39ff; background:#f8f6ff; font-size:13px; font-weight:700; }

/* Campaign review: shared raised buttons and channel-specific settings. */
.campaign-detail-actions .btn,.campaign-review-form .modal-actions .btn,.campaign-template-approval-actions .btn,.campaign-approved-template-card .btn { min-height:56px !important; padding:0 30px !important; border:3px solid #111 !important; border-radius:999px !important; box-shadow:3px 4px 0 #111 !important; font-family:inherit !important; font-size:15px !important; font-weight:700 !important; }
.campaign-report-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; white-space:nowrap; }.campaign-report-actions form { display:flex; }.campaign-delete-button { width:32px; height:32px; display:grid; place-items:center; flex:0 0 auto; border:1px solid #f0bcbc; border-radius:9px; color:#c83f3f; background:#fff7f7; font:inherit; font-size:15px; cursor:pointer; transition:color .15s ease,background .15s ease,border-color .15s ease; }.campaign-delete-button:hover:not(:disabled) { color:#fff; background:#d84949; border-color:#d84949; }.campaign-delete-button:disabled { color:#aaa6b1; background:#f4f3f6; border-color:#e5e3e9; cursor:not-allowed; opacity:.7; }.campaign-detail-actions .campaign-delete-detail { color:#b42318 !important; background:#fff5f4 !important; border-color:#b42318 !important; box-shadow:3px 4px 0 #7f1d1d !important; }.campaign-detail-actions .campaign-delete-detail:hover { color:#fff !important; background:#b42318 !important; }
.campaign-start-blocked { opacity:.5; cursor:not-allowed; filter:grayscale(.25); }
.channel-hidden { display:none !important; }
.campaign-basics-grid.voice-disabled { grid-template-columns:minmax(0,1fr); }
.campaign-channel-settings { display:grid; gap:14px; padding:18px; border:1.5px solid rgba(17,17,17,.08); border-radius:18px; background:#fff; }
.campaign-channel-settings-head { display:flex; align-items:center; gap:11px; }
.campaign-channel-settings-head > span { width:40px; height:40px; display:grid; place-items:center; border-radius:13px; color:#6544ed; background:#efeaff; font-size:19px; }
.campaign-channel-settings-head > span.whatsapp { color:#079e57; background:#e5f9ef; }
.campaign-channel-settings-head strong { display:block; font-size:15px; }.campaign-channel-settings-head small { display:block; margin-top:2px; color:var(--text-muted); font-size:12px; }
.campaign-approved-template-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.8fr); align-items:center; gap:22px; padding:18px; border:1.5px solid rgba(17,17,17,.08); border-radius:20px; background:#fff; box-shadow:0 12px 28px rgba(17,17,17,.04); }
.campaign-approved-template-card h3 { font-size:17px; }.campaign-approved-template-card p { margin-top:4px; color:var(--text-secondary); font-size:13px; }.campaign-approved-template-card form { display:flex; align-items:center; gap:12px; }.campaign-approved-template-card .form-control { min-width:0; min-height:48px; }
.campaign-template-load-error { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:9px; color:#b66a12; font-size:12px; }.campaign-template-load-error a { color:#6544ed; font-weight:800; text-decoration:underline; }
.campaign-channel-report { display:flex; align-items:center; justify-content:space-between; gap:9px; min-width:150px; }.campaign-channel-report + .campaign-channel-report { margin-top:7px; }
.campaign-whatsapp-performance .analysis-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width:900px) { .campaign-approved-template-card { grid-template-columns:1fr; }.campaign-approved-template-card form { align-items:stretch; flex-direction:column; }.campaign-whatsapp-performance .analysis-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.ai-bunny-campaign-copy { display:grid; gap:5px; padding:11px 12px; border:1px solid rgba(93,57,255,.13); border-radius:12px; background:#faf9ff; }.ai-bunny-campaign-copy small { color:#6544ed; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }.ai-bunny-campaign-copy p { margin:0; color:var(--text-primary); font-size:12px; line-height:1.5; }.ai-bunny-audience-reused { display:flex; align-items:center; gap:6px; color:#148859; font-size:11px; font-weight:750; }.ai-bunny-personalization { display:grid; gap:6px; padding:11px 12px; border-radius:12px; background:#f5f2ff; }.ai-bunny-personalization strong { font-size:12px; }.ai-bunny-personalization ul { display:grid; gap:4px; margin:0; padding-left:17px; color:var(--text-secondary); font-size:11px; line-height:1.4; }.ai-bunny-personalization span { color:var(--text-muted); font-size:10px; line-height:1.4; }

.campaign-review-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start; }.campaign-review-column { min-width:0; display:grid; gap:16px; }.campaign-schedule-card { display:grid; gap:14px; padding:18px; border:1.5px solid rgba(17,17,17,.08); border-radius:18px; background:#fff; }.campaign-draft-form > .modal-actions { margin-top:2px; padding-top:16px; border-top:1px solid rgba(17,17,17,.08); }
.campaign-test-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr); align-items:center; gap:22px; padding:18px; border:1.5px solid rgba(93,57,255,.16); border-radius:22px; background:linear-gradient(105deg,#fbfaff,#f6f4ff); box-shadow:0 14px 32px rgba(17,17,17,.035); }.campaign-test-copy { display:flex; align-items:flex-start; gap:12px; }.campaign-test-copy > span { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px; color:#6544ed; background:#ece7ff; font-size:21px; }.campaign-test-copy h3 { font-size:17px; }.campaign-test-copy p { max-width:520px; margin-top:5px; color:var(--text-secondary); font-size:12px; line-height:1.5; }.campaign-test-form { display:grid; grid-template-columns:minmax(190px,1fr) minmax(240px,1.1fr) auto; align-items:end; gap:12px; }.campaign-test-form .form-group { margin:0; }.campaign-test-form .btn { min-height:48px !important; padding:0 18px !important; border-radius:13px !important; white-space:nowrap; }.campaign-test-options { display:flex; min-height:48px; align-items:center; gap:7px; flex-wrap:wrap; }.campaign-test-options label { cursor:pointer; }.campaign-test-options input { position:absolute; opacity:0; pointer-events:none; }.campaign-test-options span { min-height:38px; display:inline-flex; align-items:center; gap:5px; padding:0 10px; border:1.5px solid rgba(17,17,17,.1); border-radius:11px; color:var(--text-secondary); background:#fff; font-size:12px; font-weight:750; }.campaign-test-options input:checked + span { border-color:#6544ed; color:#6544ed; background:#f0ecff; }.campaign-test-options input:focus-visible + span { outline:2px solid #6544ed; outline-offset:2px; }
.campaign-test-card-inline { grid-template-columns:1fr; align-items:stretch; }.campaign-test-card-inline .campaign-test-form { grid-template-columns:1fr; }.campaign-test-card-inline .campaign-test-form .btn { width:max-content; }
@media (max-width:1050px) { .campaign-review-columns { grid-template-columns:1fr; } }
@media (max-width:1180px) { .campaign-test-card { grid-template-columns:1fr; }.campaign-test-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.campaign-test-form .btn { width:max-content; } }
@media (max-width:720px) { .campaign-test-form { grid-template-columns:1fr; }.campaign-test-form .btn { width:100%; } }
