/**
 * Campaign Messaging — classic professional command center
 * Light: executive slate · white cards · APC red accents
 * Dark: refined war-room (inherits ec-msg-warroom base)
 */

/* ── Shell ── */
html.light .ec-msg-warroom.ec-msg-pro {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 24px rgba(15, 23, 42, 0.06) !important;
}

html.light .ec-msg-warroom.ec-msg-pro::before {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) !important;
  background-size: 32px 32px, 32px 32px !important;
}

html.light .ec-msg-pro .ec-msg-particles,
html.light .ec-msg-pro .ec-msg-scan-line {
  opacity: 0.2;
}

html.dark .ec-msg-warroom.ec-msg-pro {
  border-color: rgba(110, 198, 232, 0.22);
}

/* ── Header ── */
.ec-msg-pro-header {
  border-bottom: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.1));
  background: var(--glass-bg-strong, #fff);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.dark .ec-msg-pro-header {
  background: rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ec-msg-fs-btn:focus-visible {
  outline: 2px solid rgba(233, 30, 47, 0.65);
  outline-offset: 2px;
}

body.ec-shell-immersive .ec-msg-pro .ec-msg-globe-host {
  height: min(520px, calc(100dvh - 220px));
  min-height: min(420px, calc(100dvh - 220px));
  max-height: min(520px, calc(100dvh - 220px));
  flex: 1 1 auto;
}

body.ec-shell-immersive .ec-msg-pro .ec-msg-body-grid {
  min-height: calc(100dvh - 140px);
}

body.ec-shell-immersive .ec-msg-pro .ec-msg-main {
  min-height: 0;
}

.ec-msg-pro-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #e91e2f 0%,
    #e91e2f 33.33%,
    #f5f5f5 33.33%,
    #f5f5f5 66.66%,
    #6ec6e8 66.66%,
    #6ec6e8 100%
  );
  pointer-events: none;
}

.ec-msg-pro-brand {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #e91e2f, #c41828);
  font-family: Poppins, Inter, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.ec-msg-pro-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--apc-text-primary, #0f172a);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .ec-msg-pro-title {
    font-size: 1.125rem;
  }
}

.ec-msg-pro-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--apc-text-muted, #64748b);
  letter-spacing: 0.02em;
}

html.dark .ec-msg-pro-subtitle {
  color: rgba(110, 198, 232, 0.9);
}

html.light .ec-msg-pro .ec-msg-live-badge {
  border-color: rgba(233, 30, 47, 0.35);
  background: rgba(233, 30, 47, 0.1);
  color: #b91c1c !important;
}

/* Delivery ring — light */
html.light .ec-msg-pro .ec-msg-delivery-ring {
  background: conic-gradient(#e91e2f 0 var(--ec-msg-ring-pct, 75%), #e2e8f0 var(--ec-msg-ring-pct, 75%) 100%);
}

html.light .ec-msg-pro .ec-msg-delivery-ring-inner {
  background: #fff;
  color: #b91c1c;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* ── Sidebar navigation ── */
html.light .ec-msg-pro .ec-msg-sidebar {
  background: var(--glass-bg-inset, #f8fafc);
  border-color: var(--apc-widget-border, rgba(15, 23, 42, 0.1));
}

.ec-msg-pro .ec-msg-nav-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--apc-text-label, #475569);
}

.ec-msg-pro .ec-msg-nav-btn:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--apc-text-primary, #0f172a);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.dark .ec-msg-pro .ec-msg-nav-btn:hover {
  background: rgba(233, 30, 47, 0.15);
  border-color: rgba(233, 30, 47, 0.45);
  color: #fff;
}

.ec-msg-pro .ec-msg-nav-active {
  background: #fff !important;
  border-color: rgba(233, 30, 47, 0.25) !important;
  color: var(--apc-text-primary, #0f172a) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html.dark .ec-msg-pro .ec-msg-nav-active {
  background: rgba(233, 30, 47, 0.28) !important;
  border-color: rgba(110, 198, 232, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(233, 30, 47, 0.35) !important;
}

.ec-msg-pro .ec-msg-nav-btn .text-apc-gold,
.ec-msg-pro .ec-msg-nav-active .text-apc-gold {
  color: #e91e2f;
}

html.dark .ec-msg-pro .ec-msg-nav-btn .text-apc-gold {
  color: #6ec6e8;
}

/* ── Main content area ── */
.ec-msg-pro .ec-msg-main {
  background: transparent;
}

html.light .ec-msg-pro .ec-msg-main {
  background: rgba(255, 255, 255, 0.4);
}

/* Section headings */
.ec-msg-pro .ec-msg-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

html.dark .ec-msg-pro .ec-msg-section-title {
  color: rgba(110, 198, 232, 0.95);
}

/* KPI cards */
.ec-msg-pro-kpi {
  border: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.1));
  background: var(--glass-bg-strong, #fff) !important;
  border-radius: 0.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ec-msg-pro-kpi:hover {
  border-color: rgba(233, 30, 47, 0.15);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ec-msg-pro-kpi .ec-msg-kpi-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--apc-text-muted, #64748b);
}

.ec-msg-pro-kpi .ec-msg-kpi-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apc-text-primary, #0f172a);
}

/* Stat / metric inset boxes */
.ec-msg-stat-box {
  border: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.1));
  background: var(--glass-bg-inset, #f8fafc);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

html.dark .ec-msg-stat-box {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Forms */
.ec-msg-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--apc-input-border, #cbd5e1);
  background: var(--apc-input-bg, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--apc-text-primary, #0f172a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ec-msg-input:focus {
  outline: none;
  border-color: rgba(233, 30, 47, 0.45);
  box-shadow: 0 0 0 3px rgba(233, 30, 47, 0.12);
}

html.dark .ec-msg-input {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
}

.ec-msg-input::placeholder {
  color: var(--apc-text-muted, #94a3b8);
}

/* Buttons */
.ec-msg-btn-secondary {
  border-radius: 0.5rem;
  border: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.12));
  background: var(--glass-bg-inset, #f8fafc);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--apc-text-secondary, #334155);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ec-msg-btn-secondary:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
  color: var(--apc-text-primary, #0f172a);
}

html.dark .ec-msg-btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.ec-msg-btn-chip {
  border-radius: 0.375rem;
  border: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.1));
  background: var(--glass-bg-inset, #f1f5f9);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--apc-text-secondary, #475569);
  transition: all 0.15s ease;
}

.ec-msg-btn-chip:hover {
  background: #fff;
  border-color: rgba(233, 30, 47, 0.25);
  color: var(--apc-text-primary, #0f172a);
}

html.dark .ec-msg-btn-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.ec-msg-btn-chip.is-active,
.ec-msg-lang-active {
  border-color: rgba(233, 30, 47, 0.35) !important;
  background: rgba(233, 30, 47, 0.1) !important;
  color: #b91c1c !important;
}

html.dark .ec-msg-btn-chip.is-active,
html.dark .ec-msg-lang-active {
  background: rgba(233, 30, 47, 0.35) !important;
  color: #fff !important;
}

/* Channel tabs */
.ec-msg-channel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.ec-msg-channel-label {
  color: var(--apc-text-primary, #0f172a);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ec-msg-channel-help,
.ec-msg-channel-summary {
  color: var(--apc-text-muted, #64748b);
  font-size: 0.6875rem;
}

.ec-msg-channel-summary {
  flex-shrink: 0;
  font-weight: 700;
}

.ec-msg-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .ec-msg-channel-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.ec-msg-pro .ec-msg-channel-tab {
  position: relative;
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.12));
  background: var(--glass-bg-inset, #f8fafc);
  color: var(--apc-text-secondary, #475569);
  padding: 0.7rem;
  font-weight: 600;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ec-msg-pro .ec-msg-channel-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 30, 47, 0.28);
}

.ec-msg-channel-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(148, 163, 184, 0.13);
  font-size: 1rem;
}

.ec-msg-channel-tab-copy {
  min-width: 0;
}

.ec-msg-channel-tab-copy strong,
.ec-msg-channel-tab-copy small {
  display: block;
}

.ec-msg-channel-tab-copy strong {
  font-size: 0.7rem;
}

.ec-msg-channel-tab-copy small {
  margin-top: 0.15rem;
  color: var(--apc-text-muted, #64748b);
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.2;
}

.ec-msg-channel-check {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  color: transparent;
  font-size: 0.6rem;
}

.ec-msg-pro .ec-msg-channel-tab.is-active {
  border-color: rgba(233, 30, 47, 0.35);
  background: linear-gradient(135deg, rgba(233, 30, 47, 0.12), rgba(233, 30, 47, 0.06));
  color: #b91c1c;
  box-shadow: 0 1px 3px rgba(233, 30, 47, 0.12);
}

.ec-msg-pro .ec-msg-channel-tab.is-active .ec-msg-channel-check {
  border-color: #e91e2f;
  background: #e91e2f;
  color: #fff;
}

.ec-msg-pro .ec-msg-channel-tab.is-active .ec-msg-channel-icon {
  background: rgba(233, 30, 47, 0.12);
}

.ec-msg-channel-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.ec-msg-channel-action {
  color: #b91c1c;
  font-size: 0.65rem;
  font-weight: 700;
}

.ec-msg-channel-action:hover {
  text-decoration: underline;
}

html.dark .ec-msg-pro .ec-msg-channel-tab {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

html.dark .ec-msg-pro .ec-msg-channel-tab.is-active {
  border-color: rgba(110, 198, 232, 0.6);
  background: rgba(233, 30, 47, 0.35);
  color: #fff;
}

html.dark .ec-msg-channel-label {
  color: #f8fafc;
}

html.dark .ec-msg-channel-help,
html.dark .ec-msg-channel-summary,
html.dark .ec-msg-channel-tab-copy small {
  color: rgba(255, 255, 255, 0.55);
}

html.dark .ec-msg-channel-action {
  color: #6ec6e8;
}

/* Broadcast launch simulation */
.ec-msg-broadcast-modal {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background:
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.1), transparent 36%),
    #fff;
}

.ec-msg-broadcast-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(34, 197, 94, 0.06));
  padding: 0.9rem;
}

.ec-msg-broadcast-orbit {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 9999px;
  background: #fff;
  color: #0284c7;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.28);
  font-size: 1.25rem;
  font-weight: 800;
  animation: ec-msg-broadcast-orbit 1.8s ease-out infinite;
}

.ec-msg-broadcast-kicker {
  color: #0284c7;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ec-msg-broadcast-title {
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 750;
}

.ec-msg-broadcast-subtitle {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.68rem;
}

.ec-msg-broadcast-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.ec-msg-broadcast-metric {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.65rem;
}

.ec-msg-broadcast-metric span,
.ec-msg-broadcast-metric strong {
  display: block;
}

.ec-msg-broadcast-metric span {
  color: #64748b;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.ec-msg-broadcast-metric strong {
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 0.85rem;
}

.ec-msg-broadcast-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 650;
}

.ec-msg-broadcast-status-head strong {
  color: #0284c7;
}

.ec-msg-broadcast-progress {
  height: 0.65rem;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 9999px;
  background: #e2e8f0;
}

.ec-msg-broadcast-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7, #22c55e);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
  transition: width 0.16s linear;
}

.ec-msg-broadcast-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.ec-msg-broadcast-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.55rem;
  padding: 0.55rem;
  color: #475569;
}

.ec-msg-broadcast-channel-icon {
  font-size: 0.85rem;
}

.ec-msg-broadcast-channel-name {
  color: #1e293b;
  font-size: 0.68rem;
  font-weight: 700;
}

.ec-msg-broadcast-channel-state {
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
}

.ec-msg-broadcast-channel.is-sending {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.05);
}

.ec-msg-broadcast-channel.is-sending .ec-msg-broadcast-channel-state {
  color: #0284c7;
}

.ec-msg-broadcast-channel.is-complete {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.07);
}

.ec-msg-broadcast-channel.is-complete .ec-msg-broadcast-channel-state {
  color: #15803d;
}

.ec-msg-broadcast-states {
  max-height: 3.2rem;
  margin-top: 0.75rem;
  overflow-y: auto;
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.5;
}

.ec-msg-broadcast-dialog.is-complete .ec-msg-broadcast-orbit {
  animation: none;
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803d;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

@keyframes ec-msg-broadcast-orbit {
  70% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

html.dark .ec-msg-broadcast-modal {
  border-color: rgba(110, 198, 232, 0.22);
  background:
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.1), transparent 36%),
    #07111f;
}

html.dark .ec-msg-broadcast-hero,
html.dark .ec-msg-broadcast-metric,
html.dark .ec-msg-broadcast-channel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

html.dark .ec-msg-broadcast-orbit {
  background: rgba(8, 18, 32, 0.9);
  color: #6ec6e8;
}

html.dark .ec-msg-broadcast-title,
html.dark .ec-msg-broadcast-metric strong,
html.dark .ec-msg-broadcast-channel-name {
  color: #f8fafc;
}

html.dark .ec-msg-broadcast-subtitle,
html.dark .ec-msg-broadcast-metric span,
html.dark .ec-msg-broadcast-status-head,
html.dark .ec-msg-broadcast-states {
  color: rgba(255, 255, 255, 0.58);
}

html.dark .ec-msg-broadcast-progress {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .ec-msg-channel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .ec-msg-broadcast-metrics {
    grid-template-columns: 1fr;
  }

  .ec-msg-broadcast-channels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-msg-broadcast-orbit {
    animation: none;
  }
}

/* Progress bars */
.ec-msg-progress-track {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.08);
}

html.dark .ec-msg-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Yobe spotlight */
.ec-msg-pro .ec-msg-yobe-spotlight {
  border: 1px solid rgba(233, 30, 47, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

html.dark .ec-msg-pro .ec-msg-yobe-spotlight {
  border-color: rgba(110, 198, 232, 0.5);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.14), rgba(233, 30, 47, 0.18)) !important;
  box-shadow: 0 0 32px rgba(110, 198, 232, 0.2);
}

/* Feed */
.ec-msg-pro .ec-msg-feed-item {
  border-bottom-color: var(--apc-widget-border, rgba(15, 23, 42, 0.08));
  padding: 0.65rem 0;
}

.ec-msg-pro .ec-msg-feed-item p:first-child {
  color: var(--apc-text-primary, #0f172a);
  font-weight: 500;
}

/* History table */
.ec-msg-pro table thead tr {
  background: var(--glass-bg-muted, #f1f5f9);
}

html.dark .ec-msg-pro table thead tr {
  background: rgba(0, 0, 0, 0.25);
}

.ec-msg-pro table tbody tr {
  border-bottom: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.08));
  color: var(--apc-text-secondary, #334155);
}

.ec-msg-pro table tbody tr:hover {
  background: var(--glass-bg-inset, #f8fafc);
}

html.dark .ec-msg-pro table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Failed queue */
.ec-msg-pro .ec-msg-fail-line {
  border-bottom: 1px solid var(--apc-widget-border, rgba(15, 23, 42, 0.08));
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: #b91c1c;
}

html.dark .ec-msg-pro .ec-msg-fail-line {
  color: #fecaca;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Glass panels in messaging */
html.light .ec-msg-pro .ec-msg-glass {
  color: var(--apc-text-primary);
}

html.light .ec-msg-pro .ec-msg-glass > * {
  position: relative;
  z-index: 1;
}

/* Accent text readability */
html.light .ec-msg-pro .text-apc-gold,
html.light .ec-msg-pro .text-apc-blue {
  color: #0284c7 !important;
}

html.light .ec-msg-pro .text-apc-green:not(.text-white) {
  color: #c41828 !important;
}

html.light .ec-msg-pro .text-apc-flagGreen {
  color: #15803d !important;
}

/* Geo targeting globe — fixed size, full sphere centered in canvas */
.ec-msg-pro .ec-msg-globe-host {
  display: flex;
  flex-direction: column;
  height: 460px;
  min-height: 460px;
  max-height: 460px;
  flex: 0 0 460px;
  overflow: hidden;
}

.ec-msg-pro .ec-msg-globe-host > .h-full {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

.ec-msg-pro .ec-msg-globe-host .ec-globe-canvas-host--module {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.ec-msg-pro .ec-msg-globe-host .ec-globe-canvas-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
