/* A compact, centered loading state for Insider navigation and startup. */
.insider-app .insider-loading {
  box-sizing: border-box;
  min-height: calc(100vh - 150px);
  min-height: calc(100svh - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 20px;
  text-align: center;
}

.insider-app .insider-loading--initial {
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
}

.insider-app .insider-loading__spinner {
  box-sizing: border-box;
  display: block;
  width: 44px;
  height: 44px;
  border: 3px solid #d6d9cf;
  border-top-color: #a97735;
  border-right-color: #244832;
  border-radius: 50%;
  animation: insider-loading-turn .9s linear infinite;
}

.insider-app .insider-loading p {
  max-width: 36ch;
  margin: 0;
  color: #294332;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 750;
  line-height: 1.4;
}

/* Smaller waits stay in their own sections while sharing the same motion. */
.insider-app :is(.dashboard-plan[aria-busy="true"], .dashboard-research-skeleton, .plan-loading) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 90px;
  text-align: center;
}

.insider-app :is(.dashboard-plan[aria-busy="true"], .dashboard-research-skeleton, .plan-loading)::before {
  content: "";
  box-sizing: border-box;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #d6d9cf;
  border-top-color: #a97735;
  border-radius: 50%;
  animation: insider-loading-turn .9s linear infinite;
}

.insider-app .dashboard-research-skeleton span { display: none; }

@keyframes insider-loading-turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .insider-app .insider-loading__spinner,
  .insider-app :is(.dashboard-plan[aria-busy="true"], .dashboard-research-skeleton, .plan-loading)::before {
    animation: none;
  }
}
