/**
 * UniWeb shared UI components — WCAG 2.1 AA target on badge text (≥ 4.5:1).
 * Token pairs verified for light + dark admin surfaces.
 *
 * live:  #065f46 / #ecfdf5
 * stub:  #92400e / #fffbeb
 * parked:#475569 / #f8fafc
 * never: #7f1d1d / #fef2f2
 * success:#065f46 / #ecfdf5
 * pending:#92400e / #fffbeb
 * failed: #991b1b / #fef2f2
 */

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ui-pill-text { color: inherit; }

.ui-pill-live { background: #065f46; color: #ecfdf5; border-color: #10b981; }
.ui-pill-stub { background: #92400e; color: #fffbeb; border-color: #f59e0b; }
.ui-pill-parked { background: #475569; color: #f8fafc; border-color: #94a3b8; }
.ui-pill-never { background: #7f1d1d; color: #fef2f2; border-color: #ef4444; }
.ui-pill-success { background: #065f46; color: #ecfdf5; border-color: #10b981; }
.ui-pill-pending { background: #92400e; color: #fffbeb; border-color: #f59e0b; }
.ui-pill-failed { background: #991b1b; color: #fef2f2; border-color: #ef4444; }
.ui-pill-neutral { background: #374151; color: #f3f4f6; border-color: #6b7280; }

.ui-page-hint {
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  border: 1px solid #334155;
  background: #f8fafc;
  color: #334155;
}
[data-theme="dark"] .ui-page-hint,
html:not([data-theme="light"]) .ui-page-hint {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
  color: #cbd5e1;
}
.ui-page-hint-title { font-weight: 600; color: #0f172a; margin-bottom: 0.25rem; }
[data-theme="dark"] .ui-page-hint-title { color: #e2e8f0; }

.ui-empty-state {
  text-align: center;
  padding: 2rem 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
}
.ui-empty-state-title { font-weight: 600; color: #334155; margin-bottom: 0.35rem; }
.ui-empty-state-action {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ui-empty-state-action:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

.ui-callout-warn {
  border-radius: 0.75rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
}
.ui-callout-warn-title { font-weight: 600; margin-bottom: 0.25rem; }

.ui-section-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.25rem;
}
.ui-section-card-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.5rem; color: #0f172a; }

.ui-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ui-icon-btn:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}
