/* Minimal, theme-neutral styling for the five shared state components.
   Screens authored in Claude Design carry their own scaffold styling (rail 288/82,
   #F6F6F6, white 16px cards, navy + periwinkle) — this file only styles the state
   primitives so they are usable before a screen's own CSS loads. */

.apex-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
  min-height: 240px;
}

.apex-state__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}

.apex-state__subtitle {
  font-size: 13px;
  color: #6b6b80;
}

.apex-state__label {
  font-size: 13px;
  color: #6b6b80;
}

.apex-state--loading .apex-state__spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e4e4ee;
  border-top-color: #4b4bea;
  animation: apex-spin 0.8s linear infinite;
}

@keyframes apex-spin {
  to { transform: rotate(360deg); }
}

.apex-state--error .apex-state__title {
  color: #3a3a4a;
}

.apex-state__retry {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d8d8e8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.apex-state--denied .apex-state__title {
  color: #6b6b80;
}

/* Sign-in affordance on the 401 flavour of the denied state. Matches .apex-state__retry's
   shape so the two blocking states read as one system; it is an <a>, not a <button>. */
.apex-state__action {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d8d8e8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a4a;
  text-decoration: none;
}
