/* Cohere Design System 2026
   Inspired by Cohere's web system
   Tokens extracted from npx getdesign@latest add cohere
*/

:root {
  /* === Brand & Accent === */
  --cohere-black: #000000;
  --primary: #17171c;
  --ink: #212121;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --action-blue: #1863dc;
  --focus-blue: #4c6ee6;
  --coral: #c44230;
  --coral-soft: #e89280;
  --warn-text: #a93022;        /* AA-safe deep coral for warn labels on light bg */
  --form-focus: #9b60aa;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --error: #b30000;

  /* === Surface & Background === */
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --pale-coral: #fff0eb;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --card-border: #f2f2f2;
  --muted: #6e6e76;
  --slate: #5a5a72;
  --slate-strong: #3f3f55;     /* darker slate for AA on light backgrounds */
  --body-muted: #616161;

  /* === Typography === */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Arial", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* === Spacing (8px base) === */
  --space-1: 2px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 60px;
  --space-11: 80px;

  /* === Radius === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 32px;
  --radius-full: 9999px;

  /* === Shadows (mostly flat) === */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 2px 8px rgba(15,23,42,0.08);
}

/* === Base reset === */
* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.num, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 60px; line-height: 1; letter-spacing: -1.2px; }
h2 { font-size: 48px; line-height: 1.2; letter-spacing: -0.48px; }
h3 { font-size: 32px; line-height: 1.2; letter-spacing: -0.32px; }
h4 { font-size: 24px; line-height: 1.3; letter-spacing: 0; }

/* === Heading color overrides for dark contexts ===
   These reset the base h1-h4 color so dark band sections
   inherit white text. Specificity must match or beat base (0,0,1). */
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4,
.dark-band h1, .dark-band h2, .dark-band h3, .dark-band h4,
.dark-band-navy h1, .dark-band-navy h2, .dark-band-navy h3, .dark-band-navy h4,
.surface-deep-green h1, .surface-deep-green h2, .surface-deep-green h3, .surface-deep-green h4,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4,
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4,
.theme-preview-band h1, .theme-preview-band h2, .theme-preview-band h3, .theme-preview-band h4,
.theme-preview-band .mono-label,
.narrative h1, .narrative h2, .narrative h3, .narrative h4,
.narrative .mono-label,
[class*="surface-dark"] h1, [class*="surface-dark"] h2, [class*="surface-dark"] h3, [class*="surface-dark"] h4 {
  color: var(--on-primary);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--cohere-black); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-xs);
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-pill-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 6px 12px;
}
.btn-coral {
  background: var(--coral);
  color: var(--on-primary);
}
.btn-coral:hover { background: #e85f48; }

/* === Surfaces === */
.surface { background: var(--canvas); }
.surface-stone { background: var(--soft-stone); }
.surface-pale-green { background: var(--pale-green); }
.surface-pale-blue { background: var(--pale-blue); }
.surface-pale-coral { background: var(--pale-coral); }
.surface-dark { background: var(--primary); color: var(--on-dark); }
.surface-deep-green { background: var(--deep-green); color: var(--on-dark); }
.surface-dark-navy { background: var(--dark-navy); color: var(--on-dark); }

/* === Card === */
.card {
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.card-stone {
  background: var(--soft-stone);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 32px;
}

/* === Mono labels (uppercase technical) === */
.mono-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: var(--slate);
}

/* === Inputs === */
.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px rgba(155,96,170,0.1);
}
.input::placeholder { color: var(--muted); }

/* === Coral chip (blog filter) === */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  border: 1px solid var(--coral);
  color: var(--coral);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-active, .chip:hover {
  background: var(--coral);
  color: var(--primary);
}

/* === Status badges (pills) === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--soft-stone);
  color: var(--ink);
}
.badge-success { background: rgba(0,60,51,0.08); color: var(--deep-green); }
.badge-warn { background: rgba(255,119,89,0.12); color: #a93022; }
.badge-error { background: rgba(179,0,0,0.08); color: var(--error); }
.badge-info { background: rgba(24,99,220,0.08); color: var(--action-blue); }

/* === Layout helpers === */
.section { padding: 80px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 24px 0; }
.divider-dark { height: 1px; background: rgba(255,255,255,0.1); border: 0; }

/* === Animations (Cohere-style minimal) === */
@keyframes pulse-soft { 0%,100%{opacity:1} 50%{opacity:.4} }
.pulse-dot { animation: pulse-soft 1.8s ease-in-out infinite; }

/* === Toast (kept from PremixOS) === */
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--on-primary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 384px;
  animation: slideIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
.toast-success { background: var(--deep-green); }
.toast-error { background: var(--error); }
.toast-info { background: var(--action-blue); }
.toast-warn { background: #a93022; }
@keyframes slideIn { from{transform:translateX(120%);opacity:0} to{transform:translateX(0);opacity:1} }

/* === Cohere accent: editorial wide spacing === */
.mega-space { margin-top: 80px; margin-bottom: 80px; }
.editorial-link {
  color: var(--action-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.editorial-link:hover { color: var(--focus-blue); }

/* === Trust signal whitespace === */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 40px 0;
}

/* === Dark band section (for product hero) === */
.dark-band {
  background: var(--deep-green);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 80px;
}
.dark-band-navy {
  background: var(--dark-navy);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 80px;
}

/* Refactor additions: status backgrounds & borders as utility classes
   Foreground colors use stronger AA-safe variants:
   - success text uses --deep-green (#003c33) — dark enough for AA
   - warn text uses #a93022 (deep coral) — 4.5:1+ on light warn tints
   - error text uses --error (#b30000) */
.badge-success-bg { background: rgba(0,60,51,0.06); color: var(--deep-green); }
.badge-warn-bg { background: rgba(255,119,89,0.10); color: #a93022; }
.badge-warn-border { background: rgba(255,119,89,0.18); }
.badge-error-bg { background: rgba(179,0,0,0.06); color: var(--error); }
.border-success-bg { border-color: rgba(0,60,51,0.18); }
.border-warn-bg { border-color: rgba(255,119,89,0.18); }
.border-warn-border { border-color: rgba(255,119,89,0.30); }
.border-error-bg { border-color: rgba(179,0,0,0.18); }
.border-coral-soft { border-color: var(--coral-soft); }
.border-coral { border-color: var(--coral); }
.text-success { color: var(--deep-green); }
.text-warn { color: #a93022; }
.text-error { color: var(--error); }
.text-action-blue { color: var(--action-blue); }
.text-coral { color: #a93022; }
.text-primary { color: var(--primary); }
.text-ink { color: var(--ink); }
.text-ink-soft { color: var(--ink); opacity: 0.85; }
.text-body-muted { color: var(--body-muted); }
.text-slate { color: var(--slate); }
.border-border-light { border-color: var(--border-light); }
.border-card-border { border-color: var(--card-border); }
.surface-pale-blue { background: var(--pale-blue); }
.surface-pale-coral { background: var(--pale-coral); }
.surface-dark { background: var(--primary); color: var(--on-primary); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-coral { background: var(--coral); color: var(--on-primary); }
.badge-success { background: rgba(0,60,51,0.10); color: var(--deep-green); }
.badge-warn { background: rgba(255,119,89,0.12); color: #a93022; }
.badge-error { background: rgba(179,0,0,0.08); color: var(--error); }
.badge-info { background: rgba(24,99,220,0.08); color: var(--action-blue); }

/* ===== GLOBAL DARK MODE ===== */
.dark body { background: #0F172A !important; color: #E2E8F0 !important; }
.dark { background-color: #0F172A; }
.dark .surface,
.dark [style*="background: var(--canvas)"],
.dark [style*="background:#fff"],
.dark [style*="background: white"] { background: #1E293B !important; color: #E2E8F0 !important; }
.dark .surface-stone { background: #1E293B !important; color: #E2E8F0; }
.dark .surface-pale-blue { background: rgba(24,99,220,0.12) !important; }
.dark .surface-pale-green { background: rgba(0,60,51,0.20) !important; }
.dark .surface-pale-coral { background: rgba(255,119,89,0.12) !important; }
.dark .surface-dark { background: #0F172A !important; }
.dark .surface-deep-green { background: #001f1b !important; }
.dark .card,
.dark [class*="card"] { background: #1E293B !important; color: #E2E8F0; }
.dark .dark-band { background: #001f1b !important; }
.dark .dark-band-navy { background: #050d18 !important; }
.dark .divider { background: #334155 !important; }
.dark .h-divider { background: #334155 !important; }
.dark .border-card-border,
.dark [class*="border-card-border"] { border-color: #334155 !important; }
.dark .border-border-light { border-color: #334155 !important; }
.dark .border-hairline { border-color: #334155 !important; }
.dark .text-ink { color: #E2E8F0 !important; }
.dark .text-body-muted { color: #94A3B8 !important; }
.dark .text-slate { color: #94A3B8 !important; }
.dark .text-ink-soft { color: #CBD5E1 !important; }
.dark .text-action-blue { color: #bfdbfe !important; }
.dark input,
.dark select,
.dark textarea { background: #0F172A !important; color: #F1F5F9 !important; border-color: #334155 !important; }
.dark .bg-slate-50,
.dark .bg-slate-100 { background: #334155 !important; }
.dark .shadow-card { box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
.dark code,
.dark pre { background: #0F172A !important; color: #F1F5F9 !important; }
.dark .hover\:bg-slate-50:hover,
.dark .hover\:bg-slate-100:hover { background: #334155 !important; }
.dark .field-stone { background: #1E293B !important; border-color: #334155 !important; }
.dark .visual { background: #1E293B !important; }
.dark .demo-card { background: #1E293B !important; border-color: #334155 !important; }
.dark .alt-list li { border-color: #334155 !important; }
.dark kbd { background: #334155 !important; border-color: #475569 !important; color: #CBD5E1 !important; }
.dark .swatch { border-color: #334155 !important; }
.dark .swatch-info { background: #1E293B !important; }
.dark .announce { background: #000 !important; }
.dark .nav-bar { background: #0F172A !important; border-color: #334155 !important; }
.dark .toc-link { color: #94A3B8 !important; }
.dark .toc-link.active { color: #E2E8F0 !important; }
.dark .field-label { color: #94A3B8 !important; }
.dark .badge { background: #334155 !important; color: #E2E8F0 !important; }
.dark .btn-secondary { color: #E2E8F0 !important; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--focus-blue);
  outline-offset: 2px;
}
.dark .skip-link { background: var(--focus-blue); }

/* ===== COLOR-BLIND MODE ===== */
/* Adds patterns to status indicators so colorblind users can distinguish them */
.cb-pattern .badge-success,
.cb-pattern .text-success,
.cb-pattern [class*="bg-emerald"],
.cb-pattern [class*="from-emerald"] {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,0.08) 4px, rgba(0,0,0,0.08) 8px) !important;
}
.cb-pattern .badge-warn,
.cb-pattern .text-warn,
.cb-pattern [class*="bg-amber"],
.cb-pattern [class*="from-amber"] {
  background-image: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0,0,0,0.08) 4px, rgba(0,0,0,0.08) 8px) !important;
}
.cb-pattern .badge-error,
.cb-pattern .text-error,
.cb-pattern [class*="bg-red"] {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(0,0,0,0.12) 4px, rgba(0,0,0,0.12) 8px) !important;
}
.cb-pattern .badge-info,
.cb-pattern [class*="bg-brand"],
.cb-pattern [class*="from-blue"] {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0,0,0,0.08) 4px, rgba(0,0,0,0.08) 8px) !important;
}
/* Icon symbols */
.cb-pattern .badge::before {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-right: 4px;
}
.cb-pattern .badge-success::before { content: '✓'; }
.cb-pattern .badge-warn::before { content: '◐'; }
.cb-pattern .badge-error::before { content: '✕'; }
.cb-pattern .badge-info::before { content: '◌'; }

/* CB toggle button */
.cb-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  padding: 0.5rem 0.875rem;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
  transition: all 0.15s ease;
}
.cb-toggle:hover { background: var(--soft-stone); }
.cb-toggle.active { background: var(--action-blue); color: white; border-color: var(--action-blue); }
.dark .cb-toggle { background: #1E293B; border-color: #334155; }
.dark .cb-toggle.active { background: var(--action-blue); border-color: var(--action-blue); }

/* ===== PWA INSTALL BANNER ===== */
.pwa-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(15,23,42,0.25), 0 1px 3px rgba(15,23,42,0.06);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.pwa-banner.show { transform: translateX(-50%) translateY(0); }
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.pwa-banner-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.pwa-banner-icon svg { width: 22px; height: 22px; }
.pwa-banner-text { flex: 1; min-width: 0; }
.pwa-banner-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.pwa-banner-desc { font-size: 12px; color: var(--body-muted); margin-top: 2px; line-height: 1.4; }
.pwa-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pwa-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: all 0.15s ease;
}
.pwa-btn-ghost { background: transparent; color: var(--body-muted); }
.pwa-btn-ghost:hover { background: var(--soft-stone); color: var(--ink); }
.pwa-btn-primary { background: var(--primary); color: white; }
.pwa-btn-primary:hover { background: #0F172A; }
.dark .pwa-banner { background: #1E293B; border-color: #334155; }
.dark .pwa-banner-title { color: #F1F5F9; }
.dark .pwa-banner-desc { color: #94A3B8; }
.dark .pwa-btn-ghost:hover { background: #334155; color: #E2E8F0; }
@media (max-width: 480px) {
  .pwa-banner-inner { padding: 12px; gap: 10px; }
  .pwa-banner-icon { width: 38px; height: 38px; }
  .pwa-banner-title { font-size: 13px; }
  .pwa-banner-desc { font-size: 11px; }
  .pwa-btn { padding: 6px 10px; font-size: 11px; }
}

/* ===== GLOBAL CMDK ===== */
.global-cmdk {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.global-cmdk.open { display: flex; }
.global-cmdk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.60);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.15s ease;
}
.global-cmdk-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--canvas);
  border-radius: 16px;
  box-shadow: 0 30px 80px -10px rgba(15,23,42,0.4);
  overflow: hidden;
  margin: 0 1rem;
  animation: cmdkSlide 0.2s cubic-bezier(0.16,1,0.3,1);
}
@keyframes cmdkSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.global-cmdk-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}
.global-cmdk-input svg {
  width: 20px;
  height: 20px;
  color: var(--slate);
  flex-shrink: 0;
}
.global-cmdk-input input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: 0;
}
.global-cmdk-input input::placeholder { color: var(--muted); }
.global-cmdk-input kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--soft-stone);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--body-muted);
  font-weight: 600;
}
.global-cmdk-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}
.global-cmdk-group {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--slate);
}
.global-cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: background 0.1s ease;
}
.global-cmdk-item.selected,
.global-cmdk-item:hover {
  background: var(--pale-blue);
}
.global-cmdk-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--soft-stone);
  color: var(--body-muted);
  flex-shrink: 0;
}
.global-cmdk-item.selected .global-cmdk-icon {
  background: var(--primary);
  color: white;
}
.global-cmdk-icon svg { width: 16px; height: 16px; }
.global-cmdk-name { flex: 1; }
.global-cmdk-item kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--canvas);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--slate);
}
.global-cmdk-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--slate);
  font-size: 13px;
}
.global-cmdk-footer {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--card-border);
  background: var(--soft-stone);
  font-size: 11px;
  color: var(--slate);
}
.global-cmdk-footer span { display: flex; align-items: center; gap: 4px; }
.global-cmdk-footer kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  background: var(--canvas);
  border: 1px solid var(--border-light);
  border-radius: 3px;
}
.dark .global-cmdk-panel { background: #1E293B; }
.dark .global-cmdk-input { border-color: #334155; }
.dark .global-cmdk-input input { color: #E2E8F0; }
.dark .global-cmdk-item { color: #E2E8F0; }
.dark .global-cmdk-item.selected,
.dark .global-cmdk-item:hover { background: rgba(24,99,220,0.15); }
.dark .global-cmdk-icon { background: #334155; color: #94A3B8; }
.dark .global-cmdk-footer { background: #0F172A; border-color: #334155; }
.dark .global-cmdk-footer kbd { background: #1E293B; border-color: #334155; }

/* ===== INTERACTIVE TOUR ===== */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: auto;
}
.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.tour-spotlight {
  position: fixed;
  background: transparent;
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15,23,42,0.55);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  z-index: 1;
}
.tour-popover {
  position: fixed;
  width: 320px;
  background: var(--canvas);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px -10px rgba(15,23,42,0.3);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  z-index: 2;
  pointer-events: auto;
}
.tour-progress {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--action-blue);
  margin-bottom: 6px;
}
.tour-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.tour-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body-muted);
  margin: 0 0 16px;
}
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tour-leaving { opacity: 0; transition: opacity 0.3s ease; }

/* ===== DENSITY ===== */
.density-compact .p-6 { padding: 1rem !important; }
.density-compact .px-5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.density-compact .py-4 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.density-compact .py-3 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.density-compact .gap-6 { gap: 1rem !important; }
.density-compact .gap-4 { gap: 0.75rem !important; }

/* ===== TOAST CONTAINER non-blocking ===== */
#toastContainer {
  pointer-events: none;
}
#toastContainer > * {
  pointer-events: auto;
}

/* ===== KANBAN ===== */
.kanban-col {
  transition: background 0.2s ease;
}
.kanban-col.drop-target {
  background: rgba(37,99,235,0.1) !important;
  outline: 2px dashed #2563EB;
  outline-offset: -4px;
}
.kanban-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(15,23,42,0.15);
}
.dark .kanban-col { background: rgba(255,255,255,0.05) !important; }
.dark .kanban-col.drop-target { background: rgba(37,99,235,0.15) !important; }
