/*
 * ThinkFeedback design tokens as CSS custom properties.
 * Same values as tailwind.preset.js. For surfaces that cannot use Tailwind classes:
 * the recorder (shadow DOM, inlined CSS), the hosted-link page, HTML renders of docs.
 * Light-only by design (design.json: "cream — never pure white"); the recorder keeps its
 * light panel on dark host pages, as incumbent widgets do.
 */
:root, :host {
  --tf-bg-app: #FDFBF9;
  --tf-bg-panel: #FFFFFF;
  --tf-bg-subtle: #F9FAFB;
  --tf-bg-glass: rgba(255, 255, 255, 0.8);

  --tf-text-heading: #111827;   /* gray-900 */
  --tf-text-body: #1F2937;      /* gray-800 */
  --tf-text-secondary: #6B7280; /* gray-500 */
  --tf-text-muted: #9CA3AF;     /* gray-400 */

  --tf-border-default: #F3F4F6; /* gray-100 */
  --tf-border-subtle: #F9FAFB;  /* gray-50 */
  --tf-border-active: #E5E7EB;  /* gray-200 */
  --tf-border-focus: #F97316;

  --tf-orange-50: #FFF7ED; --tf-orange-100: #FFEDD5; --tf-orange-500: #F97316; --tf-orange-600: #EA580C;
  --tf-purple-50: #FAF5FF; --tf-purple-100: #F3E8FF; --tf-purple-500: #A855F7; --tf-purple-600: #9333EA;

  /* ThinkFeedback semantic — severity (finding), status (submission), record indicator */
  --tf-sev-critical-bg: #FEE2E2; --tf-sev-critical-fg: #B91C1C; --tf-sev-critical-border: #FECACA;
  --tf-sev-high-bg: #FFEDD5;     --tf-sev-high-fg: #C2410C;
  --tf-sev-medium-bg: #FEF3C7;   --tf-sev-medium-fg: #B45309;
  --tf-sev-low-bg: #F3F4F6;      --tf-sev-low-fg: #374151;
  --tf-status-live: #22C55E;     /* processing, recording — with pulse */
  --tf-status-done: #9CA3AF;
  --tf-status-warn: #F59E0B;     /* insufficient */
  --tf-status-fail: #EF4444;
  --tf-record: #EF4444;

  --tf-font-serif: "Instrument Serif", Georgia, serif;
  --tf-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tf-font-mono: "JetBrains Mono", Menlo, Monaco, monospace;

  --tf-radius-panel: 16px; --tf-radius-card: 12px; --tf-radius-input: 20px; --tf-radius-button: 12px; --tf-radius-pill: 9999px;

  --tf-shadow-soft: 0 2px 8px rgba(0,0,0,0.04);
  --tf-shadow-medium: 0 4px 16px rgba(0,0,0,0.08);
  --tf-shadow-strong: 0 8px 32px rgba(0,0,0,0.12);
  --tf-shadow-glow-orange: 0 0 24px rgba(249,115,22,0.2);
  --tf-shadow-glow-purple: 0 0 24px rgba(168,85,247,0.2);

  --tf-space-card: 24px; --tf-gap-tight: 8px; --tf-gap-medium: 16px; --tf-gap-wide: 32px;
}
@media (prefers-reduced-motion: reduce) {
  :root, :host { --tf-motion: 0; }
}
