/* General/organization scope grouping and the compact request queue. */
.insight-overview__controls .insight-scope-control {
  position: relative;
  min-width: 220px;
}

.insight-overview__controls .insight-scope-control::after {
  position: absolute;
  top: 28px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-right: 1px solid #aab6c8;
  border-bottom: 1px solid #aab6c8;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.insight-overview__controls .insight-scope-control select {
  border-color: #424b60;
  background: linear-gradient(135deg, #242b3b, #1f2533);
}

.insight-overview__controls .insight-scope-control select:focus {
  border-color: #7788a7;
  box-shadow: 0 0 0 3px rgba(115, 137, 180, .12);
}

.insight-overview__controls .insight-scope-control optgroup {
  color: #9eadd0;
  font: 700 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.insight-overview__controls .insight-scope-control option {
  color: #e5ebf5;
  background: #202635;
  font-family: "Manrope", sans-serif;
}

.insight-requests > header {
  padding-bottom: 12px;
}

.insight-requests__all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  background: #283146;
  color: #cad5e6;
  font: 700 10px "Manrope", sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.insight-requests__all:hover {
  background: #333e57;
  color: #fff;
  transform: translateX(2px);
}

.insight-requests .insight-attention__item {
  position: relative;
  min-height: 76px;
}

.insight-request::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  opacity: .8;
}

.insight-request--individual {
  color: #bfa2ef;
}

.insight-request--corporate {
  color: #71d2d4;
}

.insight-request--individual > span {
  color: #c7adf6;
  background: rgba(149, 112, 222, .14);
}

.insight-request--corporate > span {
  color: #7adadd;
  background: rgba(66, 193, 196, .14);
}

.insight-request > div b,
.insight-request > div small {
  color: inherit;
}

.insight-request > div b {
  color: #e6edf7;
}

.insight-request > div small {
  color: #909db2;
}

.insight-request > svg {
  color: #8090a7;
}

@media (max-width: 700px) {
  .insight-overview__controls .insight-scope-control { min-width: 0; }
  .insight-overview__controls .insight-scope-control::after { right: 7px; }
  .insight-requests__all { padding: 6px 7px; font-size: 9px; }
}

/* Quiet, continuous motion: it makes the command center feel live without
   competing with the numbers or the data visualisation. */
.insight-metric::after {
  position: absolute;
  right: -44px;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  content: "";
  filter: drop-shadow(0 0 5px currentColor);
  opacity: .9;
  animation: insightMetricRunner 5.8s ease-in-out infinite;
}

.insight-metric:nth-child(2)::after { animation-delay: -1.45s; }
.insight-metric:nth-child(3)::after { animation-delay: -2.9s; }
.insight-metric:nth-child(4)::after { animation-delay: -4.35s; }

.insight-chart__canvas::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -16%;
  width: 13%;
  background: linear-gradient(90deg, transparent, rgba(121, 220, 220, .08), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: skewX(-12deg);
  animation: insightChartSweep 9.4s ease-in-out infinite;
}

.insight-chart__canvas svg,
.insight-chart__tooltip {
  z-index: 2;
}

.insight-modules > header > span {
  position: relative;
  overflow: hidden;
}

.insight-modules > header > span::after {
  position: absolute;
  inset: 3px;
  border: 1px solid transparent;
  border-top-color: currentColor;
  border-right-color: rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
  opacity: .72;
  animation: insightModuleOrbit 5.5s linear infinite;
}

.insight-modules > header > span svg {
  position: relative;
  z-index: 1;
  animation: insightModuleFloat 3.6s ease-in-out infinite;
}

.insight-request::after {
  position: absolute;
  top: 12px;
  left: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  content: "";
  animation: insightRequestSignal 4.4s ease-in-out infinite;
}

.insight-request:nth-child(2)::after { animation-delay: -1.1s; }
.insight-request:nth-child(3)::after { animation-delay: -2.2s; }
.insight-request:nth-child(4)::after { animation-delay: -3.3s; }

@keyframes insightMetricRunner {
  0%, 17% { transform: translateX(0); opacity: 0; }
  28% { opacity: .9; }
  56%, 100% { transform: translateX(-190px); opacity: 0; }
}

@keyframes insightChartSweep {
  0%, 13% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  24% { opacity: 1; }
  58%, 100% { transform: translateX(900%) skewX(-12deg); opacity: 0; }
}

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

@keyframes insightModuleFloat {
  50% { transform: translateY(-1.5px) scale(1.05); }
}

@keyframes insightRequestSignal {
  0%, 22% { transform: translateY(0) scale(.6); opacity: 0; }
  32% { opacity: 1; }
  63%, 100% { transform: translateY(44px) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .insight-metric::after,
  .insight-chart__canvas::before,
  .insight-modules > header > span::after,
  .insight-modules > header > span svg,
  .insight-request::after { animation: none !important; }
}
