@import url("style.css");
@import url("apc-brand-colors.css");
@import url("apc-command-pro.css");
@import url("apc-community-pro.css");
@import url("apc-voter-education-pro.css");
@import url("apc-voter-education-blog.css");
@import url("apc-voter-education-theme.css");
@import url("apc-landing-light.css");

#app-bg.ec-enterprise-grid::before {
  background-image:
    linear-gradient(rgba(110, 198, 232, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 198, 232, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(110, 198, 232, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(110, 198, 232, 0.18), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(233, 30, 47, 0.08), transparent 50%);
  background-size:
    40px 40px,
    40px 40px,
    auto,
    auto;
  filter: none;
  opacity: 0.5;
  animation: ec-grid-drift 90s linear infinite;
}

@keyframes ec-grid-drift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, 40px 40px, 0 0, 0 0;
  }
}

/* ec-glass-premium — unified in apc-glass-system.css */

@keyframes ec-pulse-yobe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 47, 0.45);
  }
  50% {
    box-shadow: 0 0 28px 8px var(--green-glow);
  }
}

.ec-pulse-yobe {
  animation: ec-pulse-yobe 2s ease-in-out infinite;
}

@keyframes ec-blink-alert {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.ec-blink-alert {
  animation: ec-blink-alert 1.1s ease-in-out infinite;
}

@keyframes ec-feed-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ec-feed-item-new {
  animation: ec-feed-in 0.4s ease-out forwards;
}

#ec-globe-tooltip {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: rgba(11, 18, 32, 0.94);
  border: 1px solid var(--glass-border);
  color: var(--apc-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px var(--green-glow);
}

html.light #ec-globe-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

/* APC Blog & Media Center */
@keyframes ec-blog-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ec-blog-ticker-track {
  display: flex;
  width: max-content;
  animation: ec-blog-ticker 45s linear infinite;
}

.ec-blog-ticker-wrap:hover .ec-blog-ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ec-blog-ticker-track {
    animation: none;
  }
}

.ec-blog-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transform: translateX(12px);
}

.ec-blog-hero-slide.ec-blog-hero-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .ec-blog-hero-slide {
    transition: opacity 0.15s ease;
    transform: none;
  }
}

.ec-blog-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.ec-blog-reveal.ec-blog-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.ec-blog-card-glow {
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.ec-blog-card-glow:hover {
  border-color: rgba(110, 198, 232, 0.45);
  box-shadow:
    0 0 0 1px rgba(233, 30, 47, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(233, 30, 47, 0.2);
}

.ec-blog-yobe-spotlight {
  box-shadow:
    0 0 0 1px rgba(233, 30, 47, 0.35),
    0 8px 40px rgba(233, 30, 47, 0.25),
    inset 0 1px 0 rgba(110, 198, 232, 0.15);
}

#ec-blog-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10060;
  background: linear-gradient(90deg, #E91E2F, #6EC6E8);
  transition: width 0.08s linear;
  pointer-events: none;
}

.ec-blog-masonry {
  column-gap: 1rem;
}

.ec-blog-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.ec-blog-theme-green {
  background: linear-gradient(135deg, #0B1220 0%, #E91E2F 55%, #064e3b 100%);
}

.ec-blog-theme-gold {
  background: linear-gradient(135deg, #0B1220 0%, #92400e 40%, #6EC6E8 100%);
}

.ec-blog-theme-navy {
  background: linear-gradient(135deg, #020617 0%, #0B1220 50%, #1e3a5f 100%);
}

.ec-blog-theme-yobe {
  background: linear-gradient(135deg, #052e16 0%, #E91E2F 45%, #14532d 85%, #6EC6E8 120%);
}

#ec-blog-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10055;
  max-width: 20rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(110, 198, 232, 0.4);
  color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

#ec-blog-toast.ec-blog-toast--show {
  opacity: 1;
  transform: translateY(0);
}

html.light #ec-blog-toast {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

/* Polls & Election Intelligence war room */
@keyframes ec-polls-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 47, 0.35);
  }
  50% {
    box-shadow: 0 0 24px 6px rgba(110, 198, 232, 0.28);
  }
}

.ec-polls-kpi {
  animation: ec-polls-pulse 3s ease-in-out infinite;
}

.ec-polls-command-panel {
  border: 1px solid rgba(110, 198, 232, 0.28);
  box-shadow:
    0 0 0 1px rgba(110, 198, 232, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ec-polls-gauge {
  background: conic-gradient(#E91E2F 0 var(--ec-polls-gauge-pct, 74%), rgba(255, 255, 255, 0.08) var(--ec-polls-gauge-pct, 74%) 100%);
}

.ec-polls-tier-strong {
  background: #E91E2F;
}
.ec-polls-tier-lean {
  background: #34d399;
}
.ec-polls-tier-swing {
  background: #6EC6E8;
}
.ec-polls-tier-risk {
  background: #e91e2f;
}

.ec-polls-table-row:hover {
  background: rgba(233, 30, 47, 0.12);
  box-shadow: inset 2px 0 0 #6EC6E8;
}

.ec-polls-feed-new {
  animation: ec-feed-in 0.4s ease-out forwards;
}

.ec-polls-alert-red {
  animation: ec-blink-alert 1.2s ease-in-out infinite;
}

/* National Situation Room command center */
@keyframes ec-sit-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 28px 8px rgba(110, 198, 232, 0.35);
  }
}

@keyframes ec-sit-scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes ec-sit-particle-drift {
  0% {
    transform: translate(0, 0);
    opacity: 0.15;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: translate(12px, -18px);
    opacity: 0.1;
  }
}

.ec-sit-warroom {
  position: relative;
  min-height: calc(100vh - 8rem);
  background:
    linear-gradient(135deg, #081018 0%, #0b1220 35%, #102030 100%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.92) 0%, rgba(11, 18, 32, 0.88) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(233, 30, 47, 0.04) 23px,
      rgba(233, 30, 47, 0.04) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(233, 30, 47, 0.04) 23px,
      rgba(233, 30, 47, 0.04) 24px
    );
  border-radius: 1rem;
  overflow: hidden;
}

.ec-sit-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(233, 30, 47, 0.12), transparent 70%);
}

.ec-sit-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ec-sit-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.6);
  animation: ec-sit-particle-drift 6s ease-in-out infinite;
}

.ec-sit-command-panel {
  border: 1px solid rgba(233, 30, 47, 0.4);
  box-shadow:
    0 0 0 1px rgba(110, 198, 232, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.ec-sit-kpi {
  animation: ec-sit-pulse 3.5s ease-in-out infinite;
}

.ec-sit-nav-active {
  border-left: 3px solid #6EC6E8;
  background: rgba(233, 30, 47, 0.2);
  box-shadow: inset 0 0 24px rgba(233, 30, 47, 0.15);
}

.ec-sit-nav-btn:hover {
  background: rgba(233, 30, 47, 0.12);
  box-shadow: 0 0 16px rgba(233, 30, 47, 0.25);
}

.ec-sit-live-badge {
  animation: ec-blink-alert 1.4s ease-in-out infinite;
}

.ec-sit-alert-critical {
  animation: ec-blink-alert 1s ease-in-out infinite;
}

.ec-sit-gauge {
  background: conic-gradient(#E91E2F 0 var(--ec-sit-gauge-pct, 75%), rgba(255, 255, 255, 0.08) var(--ec-sit-gauge-pct, 75%) 100%);
}

.ec-sit-tier-stable {
  background: #E91E2F;
}
.ec-sit-tier-swing {
  background: #6EC6E8;
}
.ec-sit-tier-critical {
  background: #dc2626;
}
.ec-sit-tier-rally {
  background: #3b82f6;
}

.ec-sit-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.55);
  box-shadow:
    0 0 32px rgba(233, 30, 47, 0.35),
    0 0 48px rgba(110, 198, 232, 0.2);
}

.ec-sit-feed-new {
  animation: ec-feed-in 0.4s ease-out forwards;
}

.ec-sit-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
  animation: ec-sit-scan 4s linear infinite;
  pointer-events: none;
}

#main-content.ec-sit-immersive #page-description {
  display: none;
}

#main-content.ec-sit-immersive {
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: none;
}

.ec-sit-stat-card {
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.ec-sit-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(233, 30, 47, 0.35);
}

.ec-sit-chart-panel {
  transition: border-color 0.25s ease;
}

.ec-sit-chart-panel:hover {
  border-color: rgba(110, 198, 232, 0.45);
}

.ec-sit-gauge-card {
  transition: box-shadow 0.3s ease;
}

.ec-sit-gauge-card:hover {
  box-shadow: 0 0 20px rgba(233, 30, 47, 0.3);
}

.ec-sit-stat-row {
  transition: background 0.2s ease;
}

/* Situation Room — national chairmen and field contact directory */
.ec-sit-directory {
  scroll-margin-top: 1rem;
}

.ec-sit-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ec-sit-directory-head p {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
}

.ec-sit-directory-count {
  flex-shrink: 0;
  border: 1px solid rgba(110, 198, 232, 0.28);
  border-radius: 9999px;
  background: rgba(110, 198, 232, 0.1);
  padding: 0.3rem 0.65rem;
  color: #6ec6e8;
  font-size: 0.65rem;
  font-weight: 700;
}

.ec-sit-directory-tools {
  display: grid;
  grid-template-columns: minmax(210px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.ec-sit-directory-tools input,
.ec-sit-directory-tools select,
.ec-sit-directory-sort-direction {
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.45rem 0.65rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
}

.ec-sit-directory-tools input:focus,
.ec-sit-directory-tools select:focus,
.ec-sit-directory-sort-direction:focus-visible {
  border-color: rgba(110, 198, 232, 0.6);
  box-shadow: 0 0 0 3px rgba(110, 198, 232, 0.12);
}

.ec-sit-directory-tools select option {
  background: #0b1220;
  color: #fff;
}

.ec-sit-directory-sort-direction {
  color: #6ec6e8;
  font-weight: 800;
}

.ec-sit-directory-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
}

.ec-sit-directory-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ec-sit-directory-legend i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
}

.ec-sit-directory-legend i.is-online {
  background: #22c55e;
}

.ec-sit-directory-legend i.is-away {
  background: #f59e0b;
}

.ec-sit-directory-legend i.is-offline {
  background: #64748b;
}

.ec-sit-directory-legend strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
}

.ec-sit-directory-list {
  max-height: min(68vh, 660px);
  margin-top: 0.5rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
}

.ec-sit-directory-row {
  display: grid;
  grid-template-columns: auto minmax(150px, 1.2fr) minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ec-sit-directory-row:last-child {
  border-bottom: 0;
}

.ec-sit-directory-row:hover,
.ec-sit-directory-row:focus-visible {
  z-index: 1;
  outline: none;
  background: rgba(110, 198, 232, 0.1);
  box-shadow: inset 3px 0 #6ec6e8;
}

.ec-sit-contact-avatar {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  border: 1px solid rgba(110, 198, 232, 0.3);
  border-radius: 9999px;
  background: linear-gradient(145deg, rgba(233, 30, 47, 0.45), rgba(110, 198, 232, 0.25));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.ec-sit-contact-avatar.is-large {
  width: 3.8rem;
  height: 3.8rem;
  flex-basis: 3.8rem;
  font-size: 1rem;
}

.ec-sit-directory-identity,
.ec-sit-directory-location {
  min-width: 0;
}

.ec-sit-directory-identity strong,
.ec-sit-directory-identity small,
.ec-sit-directory-location strong,
.ec-sit-directory-location small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-sit-directory-identity strong,
.ec-sit-directory-location strong {
  color: #f8fafc;
  font-size: 0.7rem;
}

.ec-sit-directory-identity small,
.ec-sit-directory-location small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
}

.ec-sit-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid currentColor;
  border-radius: 9999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ec-sit-presence::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: currentColor;
}

.ec-sit-presence--online {
  color: #4ade80;
}

.ec-sit-presence--away {
  color: #fbbf24;
}

.ec-sit-presence--offline {
  color: #94a3b8;
}

.ec-sit-directory-actions {
  display: flex;
  gap: 0.35rem;
}

.ec-sit-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.55rem;
  color: #dbeafe;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.ec-sit-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 198, 232, 0.5);
  background: rgba(110, 198, 232, 0.15);
}

.ec-sit-action-icon {
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
}

.ec-sit-action-icon svg {
  width: 100%;
  height: 100%;
}

.ec-sit-action-label {
  display: none;
  font-size: 0.58rem;
  font-weight: 750;
  white-space: nowrap;
}

.ec-sit-action-btn.is-prominent {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
}

.ec-sit-action-btn.is-prominent .ec-sit-action-label {
  display: inline;
}

.ec-sit-action-btn--voice {
  color: #4ade80;
}

.ec-sit-action-btn--video {
  color: #60a5fa;
}

.ec-sit-action-btn--message {
  color: #fbbf24;
}

.ec-sit-directory-actions .ec-sit-action-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
}

.ec-sit-directory-actions .ec-sit-action-btn .ec-sit-action-label {
  display: none;
}

.ec-sit-directory-actions .ec-sit-action-btn .ec-sit-action-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.ec-sit-contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ec-sit-contact-card-actions .ec-sit-action-btn {
  flex: 1 1 7rem;
  border-color: rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.ec-sit-contact-card-actions .ec-sit-action-btn--voice {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.ec-sit-contact-card-actions .ec-sit-action-btn--video {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
}

.ec-sit-contact-card-actions .ec-sit-action-btn--message {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.ec-sit-calls-page {
  min-height: min(78vh, 820px);
}

.ec-sit-directory-legend-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.ec-sit-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.55rem;
  font-weight: 700;
}

.ec-sit-legend-chip svg {
  width: 0.7rem;
  height: 0.7rem;
}

.ec-sit-legend-chip--voice {
  color: #4ade80;
}

.ec-sit-legend-chip--video {
  color: #60a5fa;
}

.ec-sit-legend-chip--message {
  color: #fbbf24;
}

html.light .ec-sit-directory-actions .ec-sit-action-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
}

html.light .ec-sit-action-btn--voice {
  color: #15803d;
}

html.light .ec-sit-action-btn--video {
  color: #0369a1;
}

html.light .ec-sit-action-btn--message {
  color: #b45309;
}

html.light .ec-sit-legend-chip {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
}

html.light .ec-sit-legend-chip--voice {
  color: #15803d;
}

html.light .ec-sit-legend-chip--video {
  color: #0369a1;
}

html.light .ec-sit-legend-chip--message {
  color: #b45309;
}

@media (min-width: 1100px) {
  .ec-sit-directory-actions .ec-sit-action-btn {
    width: auto;
    min-width: 5.6rem;
    padding: 0.35rem 0.55rem;
  }

  .ec-sit-directory-actions .ec-sit-action-btn .ec-sit-action-label {
    display: inline;
  }
}

.ec-sit-directory-empty {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 0.75rem;
}

/* Situation Room — contact details and secure direct messaging */
.ec-sit-contact-card-head,
.ec-sit-contact-mini-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ec-sit-contact-card-head h3,
.ec-sit-contact-mini-profile strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 750;
}

.ec-sit-contact-card-head p,
.ec-sit-contact-mini-profile small {
  display: block;
  margin: 0.1rem 0 0.35rem;
  color: #64748b;
  font-size: 0.68rem;
}

.ec-sit-contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.ec-sit-contact-details > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.65rem;
}

.ec-sit-contact-details span,
.ec-sit-contact-details strong {
  display: block;
}

.ec-sit-contact-details span {
  color: #64748b;
  font-size: 0.56rem;
  text-transform: uppercase;
}

.ec-sit-contact-details strong {
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.67rem;
}

.ec-sit-contact-mini-profile {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.75rem;
}

.ec-sit-contact-mini-profile .ec-sit-presence {
  margin-left: auto;
}

.ec-sit-message-thread {
  display: flex;
  max-height: 18rem;
  min-height: 12rem;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  background: #f1f5f9;
  padding: 0.75rem;
}

.ec-sit-message-bubble {
  max-width: 82%;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
}

.ec-sit-message-bubble p {
  font-size: 0.72rem;
  line-height: 1.45;
}

.ec-sit-message-bubble time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.5rem;
  opacity: 0.65;
  text-align: right;
}

.ec-sit-message-bubble.is-contact {
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 0.2rem;
  background: #fff;
  color: #334155;
}

.ec-sit-message-bubble.is-you {
  align-self: flex-end;
  border-bottom-right-radius: 0.2rem;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  color: #fff;
}

.ec-sit-message-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.ec-sit-message-quick button {
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.06);
  padding: 0.25rem 0.55rem;
  color: #0369a1;
  font-size: 0.56rem;
  font-weight: 700;
}

.ec-sit-message-composer {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.ec-sit-message-composer textarea {
  min-width: 0;
  flex: 1;
  resize: none;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  outline: none;
  background: #fff;
  padding: 0.55rem 0.65rem;
  color: #0f172a;
  font-size: 0.72rem;
}

.ec-sit-message-composer textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.ec-sit-message-send {
  border-radius: 0.65rem;
  background: #0284c7;
  padding: 0.45rem 0.8rem;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 750;
}

/* Situation Room — realistic voice and video call simulation */
.ec-sit-call-modal {
  overflow: hidden;
  border: 1px solid rgba(110, 198, 232, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.18), transparent 42%),
    linear-gradient(165deg, #07111f, #0b1728 58%, #08101c);
}

.ec-sit-call-stage {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  color: #fff;
  text-align: center;
}

.ec-sit-call-visual {
  position: relative;
  display: grid;
  min-height: 13rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(110, 198, 232, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(233, 30, 47, 0.18), rgba(3, 105, 161, 0.22)),
    #101c2d;
}

.ec-sit-call-visual::before,
.ec-sit-call-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(110, 198, 232, 0.16);
  border-radius: 9999px;
  animation: ec-sit-call-ring 2s ease-out infinite;
}

.ec-sit-call-visual::before {
  width: 8rem;
  height: 8rem;
}

.ec-sit-call-visual::after {
  width: 11rem;
  height: 11rem;
  animation-delay: 0.55s;
}

.ec-sit-call-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border: 2px solid rgba(110, 198, 232, 0.55);
  border-radius: 9999px;
  background: linear-gradient(145deg, #e91e2f, #0369a1);
  box-shadow: 0 0 36px rgba(110, 198, 232, 0.25);
  font-size: 1.45rem;
  font-weight: 800;
}

.ec-sit-call-stage.is-video .ec-sit-call-avatar {
  width: 6.8rem;
  height: 6.8rem;
  border-radius: 1.2rem;
  font-size: 1.8rem;
}

.ec-sit-call-video-label {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.85);
  padding: 0.2rem 0.5rem;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ec-sit-call-self-view {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: grid;
  width: 4.5rem;
  height: 3.7rem;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.6rem;
  background: #12243a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ec-sit-call-self-view span {
  font-size: 0.72rem;
  font-weight: 800;
}

.ec-sit-call-self-view small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.45rem;
}

.ec-sit-call-name {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.ec-sit-call-role,
.ec-sit-call-status {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
}

.ec-sit-call-timer {
  margin-top: 0.35rem;
  color: #6ec6e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
}

.ec-sit-call-quality {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.52rem;
}

.ec-sit-call-quality span {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.7rem;
}

.ec-sit-call-quality i {
  display: block;
  width: 2px;
  background: #22c55e;
}

.ec-sit-call-quality i:nth-child(1) { height: 25%; }
.ec-sit-call-quality i:nth-child(2) { height: 50%; }
.ec-sit-call-quality i:nth-child(3) { height: 75%; }
.ec-sit-call-quality i:nth-child(4) { height: 100%; }

.ec-sit-call-controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.ec-sit-call-control {
  display: grid;
  min-width: 3.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.5rem;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ec-sit-call-control:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.ec-sit-call-control span {
  font-size: 0.95rem;
}

.ec-sit-call-control small {
  margin-top: 0.2rem;
  font-size: 0.48rem;
}

.ec-sit-call-control.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.2);
}

.ec-sit-call-end {
  border-color: rgba(239, 68, 68, 0.55);
  background: #dc2626;
}

.ec-sit-call-stage.is-connected .ec-sit-call-visual::before,
.ec-sit-call-stage.is-connected .ec-sit-call-visual::after,
.ec-sit-call-stage.is-ended .ec-sit-call-visual::before,
.ec-sit-call-stage.is-ended .ec-sit-call-visual::after {
  animation: none;
  opacity: 0;
}

.ec-sit-call-stage.is-connected .ec-sit-call-avatar {
  border-color: #22c55e;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.26);
}

.ec-sit-call-stage.is-ended {
  opacity: 0.8;
}

.ec-sit-call-stage.is-camera-off .ec-sit-call-avatar {
  filter: grayscale(1);
  opacity: 0.55;
}

@keyframes ec-sit-call-ring {
  0% {
    opacity: 0.65;
    transform: scale(0.65);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Professional secure-call console */
.ec-sit-call-modal {
  padding: 1.15rem !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.18), transparent 42%),
    linear-gradient(165deg, #07111f, #0b1728 58%, #08101c) !important;
  color: #fff !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ec-sit-call-modal h2,
html.light .ec-sit-call-modal h2 {
  color: #f8fafc !important;
}

.ec-sit-call-modal > div:first-child button,
html.light .ec-sit-call-modal > div:first-child button {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.ec-sit-call-modal > div:first-child button:hover,
html.light .ec-sit-call-modal > div:first-child button:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #fff !important;
}

.ec-sit-call-modal > div:nth-child(2),
html.light .ec-sit-call-modal > div:nth-child(2) {
  color: rgba(255, 255, 255, 0.78) !important;
}

.ec-sit-call-modal > div:first-child {
  padding: 0 0.15rem 0.75rem;
}

.ec-sit-call-modal > div:nth-child(2) {
  margin-top: 0 !important;
}

.ec-sit-call-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}

.ec-sit-call-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.ec-sit-call-brand > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(110, 198, 232, 0.35);
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(233, 30, 47, 0.9), rgba(3, 105, 161, 0.9));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.ec-sit-call-brand strong,
.ec-sit-call-brand small {
  display: block;
}

.ec-sit-call-brand strong {
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 750;
}

.ec-sit-call-brand small {
  margin-top: 0.08rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.52rem;
}

.ec-sit-call-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.08);
  padding: 0.28rem 0.55rem;
  color: #86efac;
  font-size: 0.52rem;
  font-weight: 700;
}

.ec-sit-call-secure-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ec-sit-call-visual {
  min-height: 15.5rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.22), transparent 26%),
    radial-gradient(circle at 16% 10%, rgba(233, 30, 47, 0.13), transparent 32%),
    linear-gradient(145deg, #111f32, #08131f 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -50px 70px rgba(0, 0, 0, 0.18);
}

.ec-sit-call-stage.is-video .ec-sit-call-visual {
  min-height: 20rem;
}

.ec-sit-call-scene-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(110, 198, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 198, 232, 0.12) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.ec-sit-call-connection-scan {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, #6ec6e8, transparent);
  animation: ec-sit-call-scan 2.4s linear infinite;
}

.ec-sit-call-avatar {
  width: 6rem;
  height: 6rem;
  border-width: 1px;
  background:
    linear-gradient(145deg, rgba(233, 30, 47, 0.94), rgba(3, 105, 161, 0.94));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 7px rgba(110, 198, 232, 0.06);
}

.ec-sit-call-stage.is-video .ec-sit-call-avatar {
  width: 9rem;
  height: 11rem;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.13), transparent 20%),
    linear-gradient(160deg, #23405c, #102236);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.ec-sit-call-audio-wave {
  position: absolute;
  z-index: 3;
  bottom: 1.1rem;
  left: 50%;
  display: flex;
  width: min(72%, 18rem);
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  opacity: 0.28;
  transform: translateX(-50%);
}

.ec-sit-call-audio-wave i {
  width: 0.18rem;
  height: 18%;
  border-radius: 9999px;
  background: linear-gradient(to top, #0284c7, #6ec6e8);
  transition: opacity 0.2s ease;
}

.ec-sit-call-stage.is-connected .ec-sit-call-audio-wave i {
  height: var(--wave-height);
  animation: ec-sit-call-wave 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--wave-index) * -55ms);
}

.ec-sit-call-stage.is-muted .ec-sit-call-audio-wave i,
.ec-sit-call-stage.is-video .ec-sit-call-audio-wave {
  height: 6%;
  opacity: 0.25;
  animation: none;
}

.ec-sit-call-video-label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: rgba(7, 17, 31, 0.78);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ec-sit-call-video-label i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 9999px;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.ec-sit-call-self-view {
  width: 6.2rem;
  height: 4.6rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.1), transparent 25%),
    linear-gradient(145deg, #1d344d, #0c1928);
}

.ec-sit-call-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.15rem 0;
  text-align: left;
}

.ec-sit-call-name {
  margin-top: 0;
  color: #f8fafc !important;
  font-size: 1rem;
}

.ec-sit-call-role {
  max-width: 26rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55) !important;
}

.ec-sit-call-timer {
  margin-top: 0;
  border: 1px solid rgba(110, 198, 232, 0.16);
  border-radius: 0.45rem;
  background: rgba(110, 198, 232, 0.06);
  padding: 0.32rem 0.5rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.ec-sit-call-connection-panel {
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.65rem 0.75rem;
}

.ec-sit-call-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.63rem;
  font-weight: 650;
}

.ec-sit-call-status-dot {
  width: 0.4rem;
  height: 0.4rem;
  flex: 0 0 0.4rem;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
  animation: ec-sit-call-status-pulse 1.3s ease-in-out infinite;
}

.ec-sit-call-quality {
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.ec-sit-call-route-progress {
  height: 2px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
}

.ec-sit-call-route-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #6ec6e8, transparent);
  animation: ec-sit-call-route 1.5s ease-in-out infinite;
}

.ec-sit-call-stage.is-connected .ec-sit-call-route-progress span {
  width: 100%;
  background: #22c55e;
  animation: none;
}

.ec-sit-call-stage.is-connected .ec-sit-call-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
  animation: none;
}

.ec-sit-call-stage.is-ended .ec-sit-call-status-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.ec-sit-call-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ec-sit-call-meta > div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.ec-sit-call-meta small,
.ec-sit-call-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-sit-call-meta small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.46rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ec-sit-call-meta strong {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.56rem;
  font-weight: 650;
}

.ec-sit-call-controls {
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.ec-sit-call-control {
  min-width: 4rem;
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  color: rgba(255, 255, 255, 0.82) !important;
}

.ec-sit-call-control-icon {
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
}

.ec-sit-call-control-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ec-sit-call-control small {
  margin-top: 0.28rem;
  font-size: 0.5rem;
  font-weight: 650;
}

.ec-sit-call-control.is-active {
  color: #fbbf24 !important;
}

.ec-sit-call-end {
  min-width: 5.2rem;
  border-color: rgba(239, 68, 68, 0.7);
  background: linear-gradient(145deg, #dc2626, #b91c1c);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

.ec-sit-call-end:hover {
  background: linear-gradient(145deg, #ef4444, #dc2626);
}

@keyframes ec-sit-call-scan {
  from { transform: translateY(0); }
  to { transform: translateY(15.5rem); }
}

@keyframes ec-sit-call-wave {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

@keyframes ec-sit-call-route {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

@keyframes ec-sit-call-status-pulse {
  50% { opacity: 0.45; }
}

@media (max-width: 520px) {
  .ec-sit-call-secure-badge span {
    display: none;
  }

  .ec-sit-call-stage.is-video .ec-sit-call-visual {
    min-height: 16rem;
  }

  .ec-sit-call-meta {
    grid-template-columns: 1fr;
  }

  .ec-sit-call-controls {
    gap: 0.35rem;
  }

  .ec-sit-call-control {
    min-width: 3.45rem;
    padding-inline: 0.4rem;
  }
}

html.dark .ec-sit-contact-card-head h3,
html.dark .ec-sit-contact-mini-profile strong,
html.dark .ec-sit-contact-details strong {
  color: #f8fafc;
}

html.dark .ec-sit-contact-card-head p,
html.dark .ec-sit-contact-mini-profile small {
  color: rgba(255, 255, 255, 0.55);
}

html.dark .ec-sit-contact-details > div,
html.dark .ec-sit-message-thread {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

html.dark .ec-sit-contact-details span {
  color: rgba(255, 255, 255, 0.5);
}

html.dark .ec-sit-message-bubble.is-contact {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

html.dark .ec-sit-message-composer textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
}

.ec-sit-call-modal h2 {
  color: #fff !important;
}

.ec-sit-call-modal > div:first-child button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

html.light .ec-sit-directory-head p,
html.light .ec-sit-directory-identity small,
html.light .ec-sit-directory-location small,
html.light .ec-sit-directory-legend {
  color: #64748b;
}

html.light .ec-sit-directory-legend strong {
  color: #475569;
}

html.light .ec-sit-directory-tools input,
html.light .ec-sit-directory-tools select,
html.light .ec-sit-directory-sort-direction {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

html.light .ec-sit-directory-tools select option {
  background: #fff;
  color: #334155;
}

html.light .ec-sit-directory-list {
  border-color: rgba(15, 23, 42, 0.1);
}

html.light .ec-sit-directory-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

html.light .ec-sit-directory-row:hover,
html.light .ec-sit-directory-row:focus-visible {
  background: rgba(14, 165, 233, 0.08);
}

html.light .ec-sit-directory-identity strong,
html.light .ec-sit-directory-location strong {
  color: #0f172a;
}

html.light .ec-sit-presence--online {
  color: #15803d;
}

html.light .ec-sit-presence--away {
  color: #b45309;
}

html.light .ec-sit-presence--offline {
  color: #64748b;
}

html.light .ec-sit-directory-empty {
  color: #64748b;
}

@media (max-width: 900px) {
  .ec-sit-directory-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-sit-directory-tools input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ec-sit-directory-head {
    flex-direction: column;
  }

  .ec-sit-directory-tools {
    grid-template-columns: 1fr;
  }

  .ec-sit-directory-tools input {
    grid-column: auto;
  }

  .ec-sit-directory-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ec-sit-directory-location {
    grid-column: 2;
  }

  .ec-sit-directory-row > .ec-sit-presence {
    grid-column: 3;
    grid-row: 1;
  }

  .ec-sit-directory-actions {
    grid-column: 2 / -1;
  }

  .ec-sit-directory-legend strong {
    width: 100%;
    margin-left: 0;
  }

  .ec-sit-contact-details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-sit-call-visual::before,
  .ec-sit-call-visual::after {
    animation: none;
  }
}

/* APC Analytics Intelligence Command Center */
@keyframes ec-ana-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 47, 0.35);
  }
  50% {
    box-shadow: 0 0 18px 4px rgba(74, 222, 128, 0.25);
  }
}

@keyframes ec-ana-scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.12;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes ec-ana-particle-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate(8px, -12px);
    opacity: 0.75;
  }
}

.ec-ana-warroom {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(135deg, #081018 0%, #0b1220 35%, #102030 100%),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(233, 30, 47, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.97) 0%, rgba(11, 18, 32, 0.99) 100%);
  border-radius: 1rem;
  overflow: hidden;
}

.ec-ana-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(233, 30, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 30, 47, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.ec-ana-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ec-ana-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.6);
  animation: ec-ana-particle-drift 6s ease-in-out infinite;
}

.ec-ana-command-panel {
  border: 1px solid rgba(110, 198, 232, 0.28);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ec-ana-kpi {
  animation: ec-ana-pulse 3.5s ease-in-out infinite;
}

.ec-ana-nav-active {
  background: rgba(233, 30, 47, 0.35) !important;
  border-color: rgba(110, 198, 232, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(233, 30, 47, 0.4);
}

.ec-ana-nav-btn:hover {
  background: rgba(233, 30, 47, 0.2);
  border-color: rgba(74, 222, 128, 0.35);
}

.ec-ana-live-badge {
  animation: ec-ana-pulse 2s ease-in-out infinite;
}

.ec-ana-alert-critical {
  animation: ec-ana-pulse 1.5s ease-in-out infinite;
}

.ec-ana-gauge {
  background: conic-gradient(#E91E2F 0 var(--ec-ana-gauge-pct, 75%), rgba(255, 255, 255, 0.08) var(--ec-ana-gauge-pct, 75%) 100%);
}

.ec-ana-tier-strong {
  background: #E91E2F;
}
.ec-ana-tier-lean {
  background: #34d399;
}
.ec-ana-tier-swing {
  background: #6EC6E8;
}
.ec-ana-tier-risk {
  background: #dc2626;
}
.ec-ana-tier-event {
  background: #3b82f6;
}

.ec-ana-feed-new {
  animation: ec-ana-pulse 0.8s ease-out 1;
}

.ec-ana-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
  animation: ec-ana-scan 4s linear infinite;
  pointer-events: none;
}

#main-content.ec-ana-immersive #page-description {
  display: none;
}

#main-content.ec-ana-immersive {
  max-width: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.ec-ana-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-ana-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233, 30, 47, 0.2);
}

.ec-ana-chart-panel {
  transition: border-color 0.25s ease;
}

.ec-ana-chart-panel:hover {
  border-color: rgba(110, 198, 232, 0.45);
}

.ec-ana-gauge-card:hover {
  box-shadow: 0 0 20px rgba(233, 30, 47, 0.3);
}

.ec-ana-stat-row {
  transition: background 0.2s ease;
}

.ec-ana-heatmap-cell {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ec-ana-heatmap-cell:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.ec-ana-ai-card {
  border-left: 3px solid rgba(233, 30, 47, 0.8);
}

/* —— APC 2027 Landing Page —— */
@keyframes ec-land-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ec-land-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes ec-land-particle-drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-120vh) translateX(20px);
    opacity: 0;
  }
}

@keyframes ec-land-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes ec-land-reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ec-land-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(233, 30, 47, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(110, 198, 232, 0.25), transparent 50%),
    linear-gradient(180deg, #081018 0%, #0B1220 50%, #081018 100%);
}

html.dark .ec-land-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.ec-land-page {
  position: relative;
  overflow-x: hidden;
}

.ec-land-section {
  position: relative;
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .ec-land-section {
    padding: 5rem 2rem;
  }
}

.ec-land-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.ec-land-glass {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ec-land-hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.ec-land-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ec-land-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ec-land-hero-globe {
  position: relative;
  min-height: min(50vh, 420px);
  border-radius: 1rem;
  overflow: hidden;
}

.ec-land-hero-globe.ec-land-hero-globe--bg {
  pointer-events: none;
  opacity: 0.85;
}

.ec-land-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ec-land-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.6);
  animation: ec-land-particle-drift linear infinite;
}

.ec-land-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.45), transparent);
  animation: ec-land-scan 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.ec-land-kpi {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-land-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(233, 30, 47, 0.25);
}

.ec-land-kpi-pulse {
  animation: ec-land-pulse 2.5s ease-in-out infinite;
}

.ec-land-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ec-land-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ec-land-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.45);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.12), rgba(233, 30, 47, 0.15));
  box-shadow: 0 0 48px rgba(110, 198, 232, 0.2);
}

.ec-land-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ec-land-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ec-land-ticker 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ec-land-ticker-track {
    animation: none;
  }
  .ec-land-particle {
    animation: none;
  }
  .ec-land-scan {
    animation: none;
  }
}

.ec-land-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ec-land-carousel-track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
}

.ec-land-carousel-track.is-paused {
  animation-play-state: paused;
}

.ec-land-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(233, 30, 47, 0.5);
  background: rgba(10, 22, 40, 0.95);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ec-land-globe-host {
  min-height: min(50vh, 480px);
}

.ec-land-chart-panel {
  min-height: 220px;
}

.ec-land-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f58a96;
  box-shadow: 0 0 8px #f58a96;
  animation: ec-land-pulse 1.5s ease-in-out infinite;
}

.ec-land-timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(233, 30, 47, 0.8), rgba(110, 198, 232, 0.4));
}

.ec-land-faq-panel[open] summary {
  color: #6EC6E8;
}

/* —— APC Auth Portal —— */
@keyframes ec-auth-pulse {
  0%,
  100% {
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.7);
  }
}

@keyframes ec-auth-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes ec-auth-boot-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.ec-auth-page {
  overflow-x: hidden;
}

.ec-auth-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(233, 30, 47, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(110, 198, 232, 0.15), transparent 50%),
    linear-gradient(180deg, #081018, #0B1220);
}

.ec-auth-particles::before,
.ec-auth-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74, 222, 128, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  animation: ec-land-particle-drift 20s linear infinite;
}

.ec-auth-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
  animation: ec-auth-scan 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.ec-auth-stat-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.ec-auth-globe {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.ec-auth-glass {
  /* Glass surface — apc-glass-system.css */
}

.ec-auth-badge-secure {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(233, 30, 47, 0.5);
  background: rgba(233, 30, 47, 0.2);
  padding: 0.25rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f58a96;
}

.ec-auth-badge-encrypt {
  border-color: rgba(110, 198, 232, 0.45);
  background: rgba(110, 198, 232, 0.12);
  color: #6EC6E8;
}

.ec-auth-role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  border-radius: 0.75rem;
  padding: 0.65rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ec-auth-role-card:hover {
  border-color: rgba(233, 30, 47, 0.5);
  transform: translateY(-1px);
}

.ec-auth-role-card.is-selected {
  border-color: rgba(110, 198, 232, 0.65);
  box-shadow: 0 0 20px rgba(110, 198, 232, 0.25);
  background: rgba(233, 30, 47, 0.2);
}

.ec-auth-role-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(233, 30, 47, 0.35);
  color: #6EC6E8;
}

.ec-auth-role-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.ec-auth-role-desc {
  font-size: 0.6rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-auth-input:focus {
  outline: none;
  border-color: rgba(233, 30, 47, 0.7);
  box-shadow: 0 0 0 3px rgba(233, 30, 47, 0.25), 0 0 20px rgba(74, 222, 128, 0.15);
}

.ec-auth-submit {
  background: linear-gradient(135deg, #E91E2F, #064e3b);
  border: 1px solid rgba(110, 198, 232, 0.4);
  box-shadow: 0 4px 24px rgba(233, 30, 47, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ec-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(233, 30, 47, 0.55);
}

.ec-auth-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f58a96;
  animation: ec-auth-pulse 1.5s ease-in-out infinite;
}

.ec-auth-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 24, 0.92);
  backdrop-filter: blur(8px);
}

.ec-auth-verify-box {
  width: min(90vw, 420px);
  border: 1px solid rgba(110, 198, 232, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(10, 22, 40, 0.9);
  text-align: center;
}

.ec-auth-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

.ec-auth-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #E91E2F, #6EC6E8);
  transition: width 0.4s ease;
}

.ec-auth-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(233, 30, 47, 0.5);
  background: rgba(10, 22, 40, 0.95);
  font-size: 0.875rem;
  color: #fff;
}

.ec-auth-toast--error {
  border-color: rgba(220, 38, 38, 0.5);
  color: #fecaca;
}

.ec-auth-boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #fff8f8 0%, #f4f6f9 50%, #e8eef4 100%);
  gap: 1rem;
}

html.dark .ec-auth-boot {
  background: #081018;
}

.ec-auth-boot.is-hidden {
  animation: ec-auth-boot-fade 0.5s ease forwards;
  pointer-events: none;
}

.ec-site-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

.ec-site-logo--sm {
  width: 2.25rem;
  height: 2.25rem;
}

.ec-site-logo--md {
  width: 3rem;
  height: 3rem;
}

.ec-site-logo--lg {
  width: 3.5rem;
  height: 3.5rem;
}

.ec-site-logo--xl {
  width: 5rem;
  height: 5rem;
}

.ec-auth-boot-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px var(--green-glow)) drop-shadow(0 0 16px var(--blue-glow));
}

.ec-auth-session-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6EC6E8;
}

@media (prefers-reduced-motion: reduce) {
  .ec-auth-scan,
  .ec-auth-particles::before,
  .ec-auth-particles::after {
    animation: none;
  }
}

/* —— Campaign Messaging Command Center —— */
@keyframes ec-msg-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ec-msg-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes ec-msg-feed-flash {
  0% {
    background: rgba(233, 30, 47, 0.35);
  }
  100% {
    background: transparent;
  }
}

.ec-msg-warroom {
  position: relative;
  min-height: min(78vh, 900px);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(6, 13, 24, 0.95), rgba(10, 22, 40, 0.88));
  border: 1px solid rgba(110, 198, 232, 0.28);
}

.ec-msg-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(233, 30, 47, 0.2), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  pointer-events: none;
}

.ec-msg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ec-msg-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.5);
  animation: ec-sit-particle-drift 10s linear infinite;
}

.ec-msg-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.45), transparent);
  animation: ec-msg-scan 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.ec-msg-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.ec-msg-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.15);
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fca5a5;
  animation: ec-msg-pulse 2s ease-in-out infinite;
}

.ec-msg-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.ec-msg-body-grid {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 520px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .ec-msg-body-grid {
    grid-template-columns: 220px 1fr;
  }
}

.ec-msg-sidebar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
}

@media (min-width: 1024px) {
  .ec-msg-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    max-height: none;
  }
}

.ec-msg-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html.dark .ec-msg-nav-btn {
  color: rgba(255, 255, 255, 0.65);
}

.ec-msg-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.38);
  background: rgba(110, 198, 232, 0.12);
  color: #fff;
}

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

.ec-msg-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(72vh, 820px);
}

/* ec-msg-glass — apc-glass-system.css */

.ec-msg-kpi {
  animation: ec-msg-pulse 3s ease-in-out infinite;
}

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

.ec-msg-feed {
  max-height: 220px;
  overflow-y: auto;
}

.ec-msg-feed-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

.ec-msg-feed-item.ec-msg-feed-new {
  animation: ec-msg-feed-flash 1s ease-out 1;
}

.ec-msg-chart-panel {
  min-height: 200px;
}

.ec-msg-heatmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.ec-msg-heatmap-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s;
}

.ec-msg-heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 2;
}

.ec-msg-delivery-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#E91E2F 0 var(--ec-msg-ring-pct, 75%), rgba(255, 255, 255, 0.1) var(--ec-msg-ring-pct, 75%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-msg-delivery-ring-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f58a96;
}

.ec-msg-channel-tab {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
}

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

#main-content.ec-msg-immersive #page-description {
  display: none;
}

#main-content.ec-msg-immersive {
  max-width: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

/* Shell immersive fullscreen — hides app sidebar + topbar */
body.ec-shell-immersive #sidebar,
body.ec-shell-immersive #sidebar-backdrop,
body.ec-shell-immersive #topbar {
  display: none !important;
}

body.ec-shell-immersive #app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

body.ec-shell-immersive #main-content {
  position: fixed;
  inset: 0;
  z-index: 45;
  max-width: none;
  margin: 0;
  padding: 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.ec-shell-immersive #page-description {
  display: none !important;
}

body.ec-shell-immersive #view-messaging {
  min-height: calc(100vh - 1rem);
  min-height: calc(100dvh - 1rem);
}

body.ec-shell-immersive .ec-msg-warroom.ec-msg-pro {
  min-height: calc(100vh - 1rem);
  min-height: calc(100dvh - 1rem);
}

@media (min-width: 768px) {
  body.ec-shell-immersive #main-content {
    padding: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-msg-scan-line,
  .ec-msg-particle,
  .ec-msg-kpi,
  .ec-msg-live-badge {
    animation: none;
  }
}

/* —— Appointment & Coordination Center —— */
@keyframes ec-appt-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ec-appt-scan {
  0% {
    top: 0;
    opacity: 0;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes ec-appt-feed-flash {
  0% {
    background: rgba(233, 30, 47, 0.35);
  }
  100% {
    background: transparent;
  }
}

@keyframes ec-appt-emergency {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.9);
  }
}

.ec-appt-warroom {
  position: relative;
  min-height: min(78vh, 900px);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(6, 13, 24, 0.95), rgba(10, 22, 40, 0.88));
  border: 1px solid rgba(110, 198, 232, 0.28);
}

.ec-appt-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(233, 30, 47, 0.2), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  pointer-events: none;
}

.ec-appt-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ec-appt-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.5);
  animation: ec-sit-particle-drift 10s linear infinite;
}

.ec-appt-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.45), transparent);
  animation: ec-appt-scan 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.ec-appt-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.ec-appt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.15);
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fca5a5;
  animation: ec-appt-pulse 2s ease-in-out infinite;
}

.ec-appt-body-grid {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 520px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .ec-appt-body-grid {
    grid-template-columns: 220px 1fr;
  }
}

.ec-appt-sidebar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
}

@media (min-width: 1024px) {
  .ec-appt-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    max-height: none;
  }
}

.ec-appt-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html.dark .ec-appt-nav-btn {
  color: rgba(255, 255, 255, 0.65);
}

.ec-appt-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.38);
  background: rgba(110, 198, 232, 0.12);
  color: #fff;
}

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

.ec-appt-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(72vh, 820px);
}

/* ec-appt-glass — apc-glass-system.css */

.ec-appt-kpi {
  animation: ec-appt-pulse 3s ease-in-out infinite;
}

.ec-appt-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.5);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.14), rgba(233, 30, 47, 0.18));
  box-shadow: 0 0 32px rgba(110, 198, 232, 0.2);
}

.ec-appt-feed {
  max-height: 220px;
  overflow-y: auto;
}

.ec-appt-feed-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

.ec-appt-feed-item.ec-appt-feed-new {
  animation: ec-appt-feed-flash 1s ease-out 1;
}

.ec-appt-priority-critical {
  border-left: 3px solid #ef4444;
}
.ec-appt-priority-high {
  border-left: 3px solid #f59e0b;
}
.ec-appt-priority-standard {
  border-left: 3px solid #22c55e;
}
.ec-appt-priority-confidential {
  border-left: 3px solid #a855f7;
}
.ec-appt-priority-emergency {
  border-left: 3px solid #ef4444;
  animation: ec-appt-emergency 1.5s ease-in-out infinite;
}

.ec-appt-event-chip {
  font-size: 9px;
  border-radius: 4px;
  padding: 1px 4px;
  margin-top: 2px;
  background: rgba(233, 30, 47, 0.4);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-appt-cal-day {
  min-height: 72px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
  font-size: 0.7rem;
}

.ec-appt-cal-day.is-today {
  box-shadow: 0 0 0 2px rgba(110, 198, 232, 0.6), 0 0 12px rgba(110, 198, 232, 0.25);
}

.ec-appt-gauge-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#E91E2F 0 var(--ec-appt-ring-pct, 75%), rgba(255, 255, 255, 0.1) var(--ec-appt-ring-pct, 75%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-appt-gauge-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f58a96;
}

.ec-appt-room-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ec-appt-room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 47, 0.2);
}

.ec-appt-virtual-panel {
  background: linear-gradient(135deg, rgba(233, 30, 47, 0.2), rgba(10, 22, 40, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.ec-appt-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #6EC6E8;
}

.ec-appt-view-tab {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.ec-appt-view-tab.is-active {
  border-color: rgba(110, 198, 232, 0.6);
  background: rgba(233, 30, 47, 0.35);
  color: #fff;
}

#main-content.ec-appt-immersive #page-description {
  display: none;
}

#main-content.ec-appt-immersive {
  max-width: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ec-appt-scan-line,
  .ec-appt-particle,
  .ec-appt-kpi,
  .ec-appt-live-badge,
  .ec-appt-priority-emergency {
    animation: none;
  }
}

/* ── National APC Community Network ── */
@keyframes ec-com-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes ec-com-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes ec-com-feed-flash {
  0% { background: rgba(110, 198, 232, 0.25); }
  100% { background: transparent; }
}

@keyframes ec-com-alert-flash {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.45); }
}

.ec-com-warroom {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(110, 198, 232, 0.28);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.97), rgba(6, 14, 28, 0.99));
  min-height: min(78vh, 900px);
}

.ec-com-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(233, 30, 47, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(110, 198, 232, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ec-com-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ec-com-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.5);
  animation: ec-com-pulse 4s ease-in-out infinite;
}

.ec-com-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 198, 232, 0.4), transparent);
  animation: ec-com-scan 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.ec-com-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(110, 198, 232, 0.18);
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

html.dark .ec-com-topbar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(110, 198, 232, 0.2);
}

.ec-com-live-badge {
  border-radius: 9999px;
  border: 1px solid rgba(233, 30, 47, 0.45);
  background: rgba(233, 30, 47, 0.15);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  animation: ec-com-pulse 2s ease-in-out infinite;
}

.ec-com-trending-pill {
  border-radius: 9999px;
  background: rgba(110, 198, 232, 0.2);
  border: 1px solid rgba(110, 198, 232, 0.45);
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6EC6E8;
}

.ec-com-body-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(68vh, 780px);
}

@media (min-width: 1024px) {
  .ec-com-body-grid {
    grid-template-columns: 200px 1fr;
  }
}

.ec-com-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
}

@media (min-width: 1024px) {
  .ec-com-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    max-height: none;
  }
}

.ec-com-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html.dark .ec-com-nav-btn {
  color: rgba(255, 255, 255, 0.65);
}

.ec-com-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.3);
  background: rgba(110, 198, 232, 0.08);
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ec-com-nav-active {
  border-color: rgba(110, 198, 232, 0.45) !important;
  background: rgba(110, 198, 232, 0.14) !important;
  box-shadow: 0 0 12px rgba(110, 198, 232, 0.12);
  color: inherit !important;
}

.ec-com-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(72vh, 820px);
}

/* ec-com-glass — apc-glass-system.css */

.ec-com-kpi {
  animation: ec-com-pulse 3s ease-in-out infinite;
}

.ec-com-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.5);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.14), rgba(233, 30, 47, 0.18));
  box-shadow: 0 0 32px rgba(110, 198, 232, 0.2);
}

.ec-com-post-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-com-post-card:hover {
  border-color: rgba(110, 198, 232, 0.32);
  box-shadow: 0 4px 20px rgba(233, 30, 47, 0.15);
}

.ec-com-post-card.ec-com-post-new {
  animation: ec-com-feed-flash 1.2s ease-out 1;
}

.ec-com-reaction-chip {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.ec-com-reaction-chip:hover {
  transform: scale(1.1);
  background: rgba(233, 30, 47, 0.25);
}

.ec-com-role-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(233, 30, 47, 0.35);
  color: #f58a96;
}

.ec-com-broadcast-panel {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(10, 22, 40, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ec-com-message-thread {
  max-height: 320px;
  overflow-y: auto;
}

.ec-com-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(110, 198, 232, 0.4);
  background: rgba(110, 198, 232, 0.12);
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6EC6E8;
}

.ec-com-heatmap-cell {
  border-radius: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.ec-com-priority-alert.ec-com-priority-critical {
  border-left: 3px solid #ef4444;
  animation: ec-com-alert-flash 2s ease-in-out infinite;
}

.ec-com-priority-alert.ec-com-priority-high {
  border-left: 3px solid #f59e0b;
}

.ec-com-priority-alert.ec-com-priority-standard {
  border-left: 3px solid #22c55e;
}

.ec-com-poll-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ec-com-poll-fill {
  height: 100%;
  background: linear-gradient(90deg, #E91E2F, #f58a96);
  transition: width 0.4s ease;
}

.ec-com-chart-panel {
  min-height: 200px;
  position: relative;
}

.ec-com-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.ec-com-typing {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

#main-content.ec-com-immersive #page-description {
  display: none;
}

#main-content.ec-com-immersive {
  max-width: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ec-com-scan-line,
  .ec-com-particle,
  .ec-com-kpi,
  .ec-com-live-badge,
  .ec-com-priority-critical {
    animation: none;
  }
}

/* ── National Voter Education Center (public) ── */
@keyframes ec-edu-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes ec-edu-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes ec-edu-feed-flash {
  0% { background: rgba(110, 198, 232, 0.25); }
  100% { background: transparent; }
}

.ec-edu-warroom {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(110, 198, 232, 0.28);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.97), rgba(6, 14, 28, 0.99));
  min-height: min(82vh, 920px);
}

.ec-edu-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(110, 198, 232, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(233, 30, 47, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ec-edu-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ec-edu-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(110, 198, 232, 0.5);
  animation: ec-edu-pulse 4s ease-in-out infinite;
}

.ec-edu-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 198, 232, 0.4), transparent);
  animation: ec-edu-scan 9s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.ec-edu-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(110, 198, 232, 0.18);
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

html.dark .ec-edu-topbar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(110, 198, 232, 0.2);
}

.ec-edu-live-badge {
  border-radius: 9999px;
  border: 1px solid rgba(233, 30, 47, 0.45);
  background: rgba(233, 30, 47, 0.15);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  animation: ec-edu-pulse 2s ease-in-out infinite;
}

.ec-edu-countdown-pill {
  border-radius: 9999px;
  background: rgba(110, 198, 232, 0.15);
  border: 1px solid rgba(110, 198, 232, 0.35);
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #6ec6e8;
}

.ec-edu-body-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(68vh, 780px);
}

@media (min-width: 1024px) {
  .ec-edu-body-grid {
    grid-template-columns: minmax(200px, 220px) 1fr;
  }
}

.ec-edu-sidebar {
  border-right: 1px solid rgba(110, 198, 232, 0.15);
  padding: 0.5rem;
  overflow-y: auto;
  max-height: min(76vh, 860px);
}

@media (max-width: 1023px) {
  .ec-edu-sidebar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(110, 198, 232, 0.15);
    max-height: none;
  }
  .ec-edu-nav-btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
}

.ec-edu-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html.dark .ec-edu-nav-btn { color: rgba(255, 255, 255, 0.65); }

.ec-edu-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.3);
  background: rgba(110, 198, 232, 0.08);
  color: inherit;
}

.ec-edu-nav-active {
  border-color: rgba(110, 198, 232, 0.45) !important;
  background: rgba(110, 198, 232, 0.14) !important;
  box-shadow: 0 0 12px rgba(110, 198, 232, 0.12);
  color: inherit !important;
}

.ec-edu-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(76vh, 860px);
}

.ec-edu-kpi { animation: none; }

.ec-edu-hero {
  border: 1px solid rgba(110, 198, 232, 0.25);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.1), rgba(233, 30, 47, 0.08));
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.ec-edu-readiness-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.ec-edu-readiness-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #6ec6e8);
  transition: width 0.5s ease;
}

.ec-edu-feed-item {
  border-left: 3px solid rgba(110, 198, 232, 0.45);
}

.ec-edu-feed-item.ec-edu-priority-critical { border-left-color: #e91e2f; }
.ec-edu-feed-item.ec-edu-priority-warning { border-left-color: #d97706; }

.ec-edu-category-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-edu-category-card:hover {
  border-color: rgba(110, 198, 232, 0.35);
  box-shadow: 0 4px 16px rgba(110, 198, 232, 0.12);
}

.ec-edu-achievement-card {
  border: 1px solid rgba(110, 198, 232, 0.2);
  border-radius: 0.75rem;
}

.ec-edu-media-card {
  overflow: hidden;
  border-radius: 0.75rem;
}

.ec-edu-heatmap-cell {
  border-radius: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.ec-edu-chart-panel { min-height: 200px; position: relative; }

.ec-edu-public-page {
  max-width: 100%;
  padding: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .ec-edu-scan-line, .ec-edu-particle, .ec-edu-live-badge { animation: none; }
}

/* ── National Complaint & Resolution Center ── */
@keyframes ec-cmp-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes ec-cmp-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes ec-cmp-feed-flash {
  0% { background: rgba(239, 68, 68, 0.2); }
  100% { background: transparent; }
}

@keyframes ec-cmp-alert-flash {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.5); }
}

.ec-cmp-warroom {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(110, 198, 232, 0.28);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.97), rgba(6, 14, 28, 0.99));
  min-height: min(78vh, 900px);
}

.ec-cmp-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(233, 30, 47, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(110, 198, 232, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ec-cmp-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ec-cmp-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.5);
  animation: ec-cmp-pulse 4s ease-in-out infinite;
}

.ec-cmp-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 198, 232, 0.4), transparent);
  animation: ec-cmp-scan 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.ec-cmp-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.ec-cmp-live-badge {
  border-radius: 9999px;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: rgba(233, 30, 47, 0.35);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f58a96;
  animation: ec-cmp-pulse 2s ease-in-out infinite;
}

.ec-cmp-body-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(68vh, 780px);
}

@media (min-width: 1024px) {
  .ec-cmp-body-grid { grid-template-columns: 210px 1fr; }
}

.ec-cmp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
}

@media (min-width: 1024px) {
  .ec-cmp-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    max-height: none;
  }
}

.ec-cmp-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html.dark .ec-cmp-nav-btn {
  color: rgba(255, 255, 255, 0.65);
}

.ec-cmp-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.38);
  background: rgba(110, 198, 232, 0.12);
  color: #fff;
}

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

.ec-cmp-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(72vh, 820px);
}

/* ec-cmp-glass — apc-glass-system.css */

.ec-cmp-kpi { animation: ec-cmp-pulse 3s ease-in-out infinite; }

.ec-cmp-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.5);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.14), rgba(233, 30, 47, 0.18));
  box-shadow: 0 0 32px rgba(110, 198, 232, 0.2);
}

.ec-cmp-ticket-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-cmp-ticket-card:hover {
  border-color: rgba(110, 198, 232, 0.32);
  box-shadow: 0 4px 20px rgba(233, 30, 47, 0.15);
}

.ec-cmp-ticket-card.ec-cmp-ticket-new {
  animation: ec-cmp-feed-flash 1.2s ease-out 1;
}

.ec-cmp-priority-critical { border-left: 3px solid #ef4444; }
.ec-cmp-priority-high { border-left: 3px solid #f59e0b; }
.ec-cmp-priority-medium { border-left: 3px solid #3b82f6; }
.ec-cmp-priority-low { border-left: 3px solid #22c55e; }

.ec-cmp-priority-critical.ec-cmp-flash {
  animation: ec-cmp-alert-flash 2s ease-in-out infinite;
}

.ec-cmp-ticket-chip {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.ec-cmp-escalation-timeline {
  border-left: 2px solid rgba(110, 198, 232, 0.4);
  padding-left: 0.75rem;
}

.ec-cmp-gauge-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#E91E2F 0 var(--ec-cmp-ring-pct, 75%), rgba(255, 255, 255, 0.1) var(--ec-cmp-ring-pct, 75%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-cmp-gauge-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f58a96;
}

.ec-cmp-heatmap-cell {
  border-radius: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.ec-cmp-chart-panel {
  position: relative;
  min-height: 0;
}

.ec-cmp-chart-panel .ec-cmp-chart-wrap {
  position: relative;
  height: 12rem;
  max-height: 12rem;
  width: 100%;
  overflow: hidden;
}

.ec-cmp-chart-panel .ec-cmp-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 12rem;
}

#main-content.ec-cmp-immersive #page-description { display: none; }
#main-content.ec-cmp-immersive {
  max-width: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ec-cmp-scan-line,
  .ec-cmp-particle,
  .ec-cmp-kpi,
  .ec-cmp-live-badge,
  .ec-cmp-flash {
    animation: none;
  }
}

/* —— Command Intelligence National War Room —— */
@keyframes ec-cmd-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes ec-cmd-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes ec-cmd-feed-flash {
  0% { background: rgba(239, 68, 68, 0.25); }
  100% { background: transparent; }
}

@keyframes ec-cmd-alert-flash {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.55); }
}

@keyframes ec-cmd-radar {
  0% { transform: rotate(0deg); opacity: 0.4; }
  100% { transform: rotate(360deg); opacity: 0.15; }
}

.ec-cmd-warroom {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, #081018 0%, #0b1220 35%, #102030 100%);
  min-height: min(82vh, 920px);
}

.ec-cmd-warroom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(233, 30, 47, 0.14), transparent 50%),
    radial-gradient(ellipse 55% 40% at 95% 100%, rgba(110, 198, 232, 0.1), transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(110, 198, 232, 0.05) 47px, rgba(110, 198, 232, 0.05) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(110, 198, 232, 0.05) 47px, rgba(110, 198, 232, 0.05) 48px);
  pointer-events: none;
  z-index: 0;
}

.ec-cmd-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  margin: -70% 0 0 -70%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(74, 222, 128, 0.08) 40deg, transparent 80deg);
  animation: ec-cmd-radar 12s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ec-cmd-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ec-cmd-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.55);
  animation: ec-cmd-pulse 4s ease-in-out infinite;
}

.ec-cmd-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.45), rgba(110, 198, 232, 0.35), transparent);
  animation: ec-cmd-scan 9s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.ec-cmd-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(110, 198, 232, 0.18);
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

html.dark .ec-cmd-topbar {
  background: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(110, 198, 232, 0.2);
}

.ec-cmd-live-badge {
  border-radius: 9999px;
  border: 1px solid rgba(233, 30, 47, 0.45);
  background: rgba(233, 30, 47, 0.15);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  animation: ec-cmd-pulse 2s ease-in-out infinite;
}

.ec-cmd-body-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(72vh, 840px);
}

@media (min-width: 1024px) {
  .ec-cmd-body-grid { grid-template-columns: 220px 1fr; }
}

.ec-cmd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
}

@media (min-width: 1024px) {
  .ec-cmd-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(74, 222, 128, 0.15);
    max-height: none;
  }
}

.ec-cmd-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.45rem 0.6rem;
  text-align: left;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.78);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

html.dark .ec-cmd-nav-btn {
  color: rgba(255, 255, 255, 0.62);
}

.ec-cmd-nav-btn:hover {
  border-color: rgba(110, 198, 232, 0.3);
  background: rgba(110, 198, 232, 0.08);
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ec-cmd-nav-active {
  border-color: rgba(110, 198, 232, 0.45) !important;
  background: rgba(110, 198, 232, 0.14) !important;
  box-shadow: 0 0 12px rgba(110, 198, 232, 0.12);
  color: inherit !important;
}

.ec-cmd-main {
  padding: 0.75rem;
  overflow-y: auto;
  max-height: min(76vh, 860px);
}

/* ec-cmd-glass — apc-glass-system.css */

.ec-cmd-kpi { animation: ec-cmd-pulse 3.5s ease-in-out infinite; }

.ec-cmd-yobe-spotlight {
  border: 1px solid rgba(110, 198, 232, 0.55);
  background: linear-gradient(135deg, rgba(110, 198, 232, 0.16), rgba(233, 30, 47, 0.22));
  box-shadow: 0 0 40px rgba(110, 198, 232, 0.22), inset 0 0 60px rgba(233, 30, 47, 0.08);
}

.ec-cmd-feed-item {
  border-left: 3px solid rgba(74, 222, 128, 0.5);
  transition: background 0.2s;
}

.ec-cmd-feed-item.ec-cmd-priority-critical {
  border-left-color: #ef4444;
  animation: ec-cmd-feed-flash 1.5s ease-out 1;
}

.ec-cmd-feed-item.ec-cmd-priority-warning { border-left-color: #f59e0b; }
.ec-cmd-feed-item.ec-cmd-priority-stable { border-left-color: #22c55e; }

.ec-cmd-alert-banner.ec-cmd-flash {
  animation: ec-cmd-alert-flash 2.5s ease-in-out infinite;
}

.ec-cmd-gauge-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#0284c7 0 var(--ec-cmd-ring-pct, 75%), rgba(255, 255, 255, 0.08) var(--ec-cmd-ring-pct, 75%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-cmd-gauge-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #060e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ec6e8;
}

.ec-cmd-heatmap-cell {
  border-radius: 4px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
}

.ec-cmd-chart-panel { position: relative; min-height: 0; }

.ec-cmd-chart-panel .ec-cmd-chart-wrap {
  position: relative;
  height: 12rem;
  max-height: 12rem;
  width: 100%;
  overflow: hidden;
}

.ec-cmd-chart-panel .ec-cmd-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 12rem;
}

.ec-cmd-tier-stable { background: hsl(142, 52%, 32%); }
.ec-cmd-tier-competitive { background: hsl(198, 68%, 48%); }
.ec-cmd-tier-escalation { background: hsl(0, 55%, 42%); }
.ec-cmd-tier-activeOp { background: hsl(210, 62%, 42%); }

.ec-cmd-ai-card {
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: linear-gradient(145deg, rgba(233, 30, 47, 0.12), rgba(8, 18, 36, 0.8));
}

.ec-cmd-confidence-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ec-cmd-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #E91E2F, #f58a96);
  border-radius: 2px;
}

#main-content.ec-cmd-immersive #page-description { display: none; }
#main-content.ec-cmd-immersive {
  max-width: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .ec-cmd-scan-line,
  .ec-cmd-particle,
  .ec-cmd-kpi,
  .ec-cmd-live-badge,
  .ec-cmd-flash,
  .ec-cmd-radar-sweep {
    animation: none;
  }
}

/* Dark mode — APC logo (green · white · blue flag + red footer) */
html.dark .ec-sit-warroom,
html.dark .ec-ana-warroom,
html.dark .ec-msg-warroom,
html.dark .ec-appt-warroom,
html.dark .ec-com-warroom,
html.dark .ec-cmp-warroom,
html.dark .ec-cmd-warroom {
  box-shadow: inset 0 -3px 0 rgba(233, 30, 47, 0.32);
}

html.dark .ec-sit-warroom::before,
html.dark .ec-ana-warroom::before,
html.dark .ec-msg-warroom::before,
html.dark .ec-appt-warroom::before,
html.dark .ec-com-warroom::before,
html.dark .ec-cmp-warroom::before,
html.dark .ec-cmd-warroom::before {
  background:
    linear-gradient(
      90deg,
      rgba(233, 30, 47, 0.07) 0%,
      rgba(233, 30, 47, 0.07) 33%,
      rgba(245, 245, 245, 0.03) 33%,
      rgba(245, 245, 245, 0.03) 66%,
      rgba(110, 198, 232, 0.09) 66%,
      rgba(110, 198, 232, 0.09) 100%
    ),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(233, 30, 47, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(110, 198, 232, 0.1), transparent 55%);
}

html.dark .ec-sit-particle,
html.dark .ec-ana-particle,
html.dark .ec-msg-particle,
html.dark .ec-appt-particle,
html.dark .ec-com-particle,
html.dark .ec-cmp-particle,
html.dark .ec-cmd-particle {
  background: rgba(233, 30, 47, 0.7);
  box-shadow: 0 0 6px rgba(110, 198, 232, 0.35);
}

html.dark .ec-sit-alert-critical,
html.dark .ec-ana-alert-critical,
html.dark .ec-cmd-tier-escalation {
  color: #ff6b7a;
}

html.dark .ec-cmd-ai-card {
  border-color: rgba(110, 198, 232, 0.22);
  background: linear-gradient(145deg, rgba(233, 30, 47, 0.14), rgba(8, 18, 32, 0.88));
}
