/* App-level error boundary fallback (components/ErrorBoundary.tsx). Literal
   var() fallbacks so it renders even when the active theme is what broke. */
.app-error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  padding: var(--space-6, 24px);
  background: var(--bg-app, #1e1e2e);
  color: var(--text-primary, #cdd6f4);
}

.app-error-boundary__card {
  width: 100%;
  max-width: 520px;
  padding: var(--space-6, 24px);
  background: var(--bg-card, #313244);
  border: 1px solid var(--border, #45475a);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.3));
  text-align: center;
}

.app-error-boundary__title {
  margin: 0 0 var(--space-2, 8px);
  font-size: 20px;
  font-weight: 700;
}

.app-error-boundary__text {
  margin: 0 0 var(--space-4, 16px);
  color: var(--text-secondary, #bac2de);
  font-size: 14px;
  line-height: 1.5;
}

.app-error-boundary__detail {
  margin: 0 0 var(--space-4, 16px);
  padding: var(--space-3, 12px);
  max-height: 160px;
  overflow: auto;
  background: var(--bg-deep, #181825);
  border-radius: var(--radius-md, 8px);
  color: var(--text-muted, #a6adc8);
  font-size: 12px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-error-boundary__actions {
  display: flex;
  gap: var(--space-3, 12px);
  justify-content: center;
}
