/* ═══════════════════════════════════════════════════════════════════
   SHARED COMPONENT LIBRARY — AItalents Platform
   Universal components for all agents. Import AFTER your token system.
   Uses canonical variable names (--accent, --bg-surface, --border, etc.)

   Load order:
   1. Token system (tokens.css | marco.css | design-system.css)
   2. This file (components.css)
   3. Page-specific CSS

   Table of Contents:
   1. BUTTONS
   2. CARDS
   3. FORMS
   4. MODAL / DIALOG
   5. TOAST / NOTIFICATION
   6. BADGES
   7. SKELETON LOADING
   8. RESPONSIVE UTILITIES
   9. MOTION SYSTEM
   10. DARK MODE
   ═══════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   1. BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
  -webkit-user-select: none;
  user-select: none;
}

.c-btn:focus-visible {
  outline: 2px solid var(--accent, #00be8c);
  outline-offset: 2px;
}

.c-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

/* Primary — teal accent */
.c-btn-primary {
  background: var(--accent, #00be8c);
  color: #fff;
  border-color: var(--accent, #00be8c);
}
.c-btn-primary:hover {
  background: var(--accent-hover, #009970);
  border-color: var(--accent-hover, #009970);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 190, 140, 0.25);
}

/* Secondary — outline */
.c-btn-secondary {
  background: transparent;
  color: var(--text-primary, #111);
  border-color: var(--border-strong, #D2D6D5);
}
.c-btn-secondary:hover {
  border-color: var(--text-muted, #999);
  background: var(--bg-hover, rgba(0, 0, 0, 0.03));
}

/* Ghost — minimal */
.c-btn-ghost {
  background: transparent;
  color: var(--text-secondary, #555);
  border-color: transparent;
  padding: 6px 10px;
}
.c-btn-ghost:hover {
  color: var(--text-primary, #111);
  background: var(--bg-hover, rgba(0, 0, 0, 0.03));
}

/* Danger */
.c-btn-danger {
  background: var(--danger, #EF4444);
  color: #fff;
  border-color: var(--danger, #EF4444);
}
.c-btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  transform: translateY(-1px);
}

/* Sizes */
.c-btn-sm { font-size: 12px; padding: 4px 10px; }
.c-btn-lg { font-size: 14px; padding: 8px 18px; }

/* Icon-only button */
.c-btn-icon {
  padding: 6px;
  min-width: 32px;
  min-height: 32px;
}
.c-btn-icon::before {
  content: '';
  position: absolute;
  inset: -6px;  /* expand touch target */
}
.c-btn-icon { position: relative; }


/* ═══════════════════════════════════════════════════════════════════
   2. CARDS
   ═══════════════════════════════════════════════════════════════════ */

.c-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #E3E6E5);
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 150ms ease;
}

.c-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card without hover effect */
.c-card-static {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #E3E6E5);
  border-radius: 8px;
  padding: 16px;
}

/* KPI / Stat card */
.c-stat-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #E3E6E5);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #999);
}

.c-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #111);
  font-variant-numeric: tabular-nums;
}

.c-stat-delta {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.c-stat-delta.positive { color: var(--success, #22C55E); }
.c-stat-delta.negative { color: var(--danger, #EF4444); }
.c-stat-delta.neutral  { color: var(--text-muted, #999); }


/* ═══════════════════════════════════════════════════════════════════
   3. FORMS
   ═══════════════════════════════════════════════════════════════════ */

.c-form-group {
  margin-bottom: 16px;
}

.c-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #555);
  margin-bottom: 4px;
}

.c-input,
.c-select,
.c-textarea {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary, #111);
  background: var(--bg-surface, #fff);
  border: 1.5px solid var(--border, #E3E6E5);
  border-radius: 6px;
  outline: none;
  transition: border-color 100ms ease, box-shadow 100ms ease;
}

.c-input:focus,
.c-select:focus,
.c-textarea:focus {
  border-color: var(--accent, #00be8c);
  box-shadow: 0 0 0 3px rgba(0, 190, 140, 0.1);
}

.c-input::placeholder,
.c-textarea::placeholder {
  color: var(--text-muted, #999);
}

.c-textarea {
  min-height: 80px;
  resize: vertical;
}

.c-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Error state */
.c-input.error,
.c-select.error,
.c-textarea.error {
  border-color: var(--danger, #EF4444);
}

.c-input.error:focus,
.c-select.error:focus,
.c-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.c-field-error {
  font-size: 11px;
  color: var(--danger, #EF4444);
  margin-top: 4px;
}

/* Disabled */
.c-input:disabled,
.c-select:disabled,
.c-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-muted, #F4F6F5);
}

/* Form grid */
.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .c-form-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   4. MODAL / DIALOG
   ═══════════════════════════════════════════════════════════════════ */

.c-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.c-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.c-modal {
  background: var(--bg-surface, #fff);
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.97);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.c-modal-overlay.open .c-modal {
  transform: translateY(0) scale(1);
}

.c-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #E3E6E5);
}

.c-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #111);
}

.c-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted, #999);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color 100ms ease, background 100ms ease;
}
.c-modal-close:hover {
  color: var(--text-primary, #111);
  background: var(--bg-hover, rgba(0, 0, 0, 0.03));
}

.c-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.c-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border, #E3E6E5);
}

/* Full-screen on mobile */
@media (max-width: 640px) {
  .c-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .c-modal-overlay {
    align-items: flex-end;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   5. TOAST / NOTIFICATION
   ═══════════════════════════════════════════════════════════════════ */

.c-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.c-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  min-width: 240px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
  animation: toastSlideIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.c-toast.exiting {
  animation: toastSlideOut 200ms ease forwards;
}

.c-toast-success {
  background: #065F46;
  color: #D1FAE5;
}

.c-toast-error {
  background: #7F1D1D;
  color: #FEE2E2;
}

.c-toast-warning {
  background: #78350F;
  color: #FEF3C7;
}

.c-toast-info {
  background: #1E3A5F;
  color: #DBEAFE;
}

.c-toast-dismiss {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
  font-size: 14px;
}
.c-toast-dismiss:hover { opacity: 1; }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}


/* ═══════════════════════════════════════════════════════════════════
   6. BADGES
   ═══════════════════════════════════════════════════════════════════ */

.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.c-badge-success { background: rgba(34, 197, 94, 0.1);  color: #16A34A; }
.c-badge-warning { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.c-badge-danger  { background: rgba(239, 68, 68, 0.1);  color: #DC2626; }
.c-badge-info    { background: rgba(59, 130, 246, 0.1);  color: #2563EB; }
.c-badge-neutral { background: rgba(0, 0, 0, 0.05);     color: var(--text-muted, #999); }
.c-badge-accent  { background: rgba(0, 190, 140, 0.1);  color: var(--accent, #00be8c); }


/* ═══════════════════════════════════════════════════════════════════
   7. SKELETON LOADING
   ═══════════════════════════════════════════════════════════════════ */

@keyframes skeletonPulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.c-skeleton {
  background: var(--bg-muted, #F4F6F5);
  border-radius: 6px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Text line skeleton */
.c-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  background: var(--bg-muted, #F4F6F5);
  border-radius: 4px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
.c-skeleton-text:last-child { width: 60%; }

/* Heading skeleton */
.c-skeleton-heading {
  height: 22px;
  width: 45%;
  margin-bottom: 12px;
  background: var(--bg-muted, #F4F6F5);
  border-radius: 4px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Card skeleton */
.c-skeleton-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #E3E6E5);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-skeleton-card .c-skeleton-text { animation-delay: var(--delay, 0s); }
.c-skeleton-card .c-skeleton-text:nth-child(1) { width: 40%; height: 10px; --delay: 0s; }
.c-skeleton-card .c-skeleton-text:nth-child(2) { width: 70%; height: 20px; --delay: 0.1s; }
.c-skeleton-card .c-skeleton-text:nth-child(3) { width: 50%; height: 12px; --delay: 0.2s; }

/* Chart area skeleton */
.c-skeleton-chart {
  height: 240px;
  background: var(--bg-muted, #F4F6F5);
  border-radius: 8px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Table skeleton */
.c-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-skeleton-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #E3E6E5);
}

.c-skeleton-cell {
  height: 14px;
  flex: 1;
  background: var(--bg-muted, #F4F6F5);
  border-radius: 4px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.c-skeleton-row:nth-child(odd) .c-skeleton-cell { animation-delay: 0.1s; }

/* Circle skeleton (avatar) */
.c-skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-muted, #F4F6F5);
  animation: skeletonPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   8. RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

/* Breakpoints:
   --bp-sm:  640px  (narrow mobile)
   --bp-md:  768px  (tablet / sidebar collapse)
   --bp-lg:  1024px (desktop)
   --bp-xl:  1280px (wide desktop)
*/

/* Grid utilities */
.c-grid { display: grid; gap: 16px; }
.c-grid-2 { grid-template-columns: repeat(2, 1fr); }
.c-grid-3 { grid-template-columns: repeat(3, 1fr); }
.c-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex utilities */
.c-flex { display: flex; }
.c-flex-col { display: flex; flex-direction: column; }
.c-flex-center { display: flex; align-items: center; justify-content: center; }
.c-flex-between { display: flex; align-items: center; justify-content: space-between; }
.c-flex-wrap { flex-wrap: wrap; }
.c-flex-1 { flex: 1; }

/* Gap utilities */
.c-gap-1 { gap: 4px; }
.c-gap-2 { gap: 8px; }
.c-gap-3 { gap: 12px; }
.c-gap-4 { gap: 16px; }
.c-gap-6 { gap: 24px; }
.c-gap-8 { gap: 32px; }

/* Visibility: mobile-first */
.c-hidden-mobile  { } /* shown by default */
.c-show-mobile    { display: none; }

@media (max-width: 768px) {
  .c-hidden-mobile { display: none !important; }
  .c-show-mobile   { display: block !important; }
  .c-show-mobile-flex { display: flex !important; }
  .c-grid-2, .c-grid-3, .c-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .c-hidden-narrow { display: none !important; }
  .c-show-narrow   { display: block !important; }
}

@media (min-width: 769px) {
  .c-hidden-desktop { display: none !important; }
}

/* Responsive grid — collapse to 2 cols on tablet, 1 on mobile */
@media (max-width: 1024px) and (min-width: 769px) {
  .c-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .c-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Horizontal scroll container for mobile metric cards */
.c-scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.c-scroll-x::-webkit-scrollbar { display: none; }
.c-scroll-x > * { flex-shrink: 0; min-width: 160px; }

/* Truncate text */
.c-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Screen reader only */
.c-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   9. MOTION SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* Standard easing curve */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Fade in */
@keyframes c-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slide up + fade */
@keyframes c-slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide down + fade */
@keyframes c-slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scale in (for modals, popovers) */
@keyframes c-scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Collapse (height 0 → auto, requires max-height) */
@keyframes c-expand {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 500px; }
}

/* Utility classes */
.c-animate-fade    { animation: c-fadeIn 200ms var(--ease-out) both; }
.c-animate-up      { animation: c-slideUp 300ms var(--ease-out) both; }
.c-animate-down    { animation: c-slideDown 200ms var(--ease-out) both; }
.c-animate-scale   { animation: c-scaleIn 200ms var(--ease-out) both; }
.c-animate-expand  { animation: c-expand 250ms var(--ease-out) both; overflow: hidden; }

/* Exit animations */
@keyframes c-fadeOut    { to { opacity: 0; } }
@keyframes c-slideOut   { to { opacity: 0; transform: translateY(8px); } }
@keyframes c-scaleOut   { to { opacity: 0; transform: scale(0.95); } }

.c-exit-fade   { animation: c-fadeOut 150ms ease forwards; }
.c-exit-slide   { animation: c-slideOut 150ms ease forwards; }
.c-exit-scale   { animation: c-scaleOut 150ms ease forwards; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .c-animate-fade,
  .c-animate-up,
  .c-animate-down,
  .c-animate-scale,
  .c-animate-expand,
  .c-exit-fade,
  .c-exit-slide,
  .c-exit-scale,
  .c-toast,
  .c-toast.exiting,
  .c-modal,
  .c-modal-overlay,
  .c-skeleton,
  .c-skeleton-text,
  .c-skeleton-heading,
  .c-skeleton-cell,
  .c-skeleton-chart,
  .c-skeleton-circle {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   10. DARK MODE
   Strategy: [data-theme="dark"] on <html> or <body>.
   All agents use this same selector. Override token values only.
   ═══════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Backgrounds */
  --bg-page:    #0F1114;
  --bg-surface: #1A1D21;
  --bg-hover:   rgba(255, 255, 255, 0.05);
  --bg-active:  rgba(255, 255, 255, 0.08);
  --bg-muted:   #22262A;
  --bg-sidebar: #161819;
  --bg-input:   #1A1D21;

  /* Text */
  --text-primary:   #EAECEF;
  --text-secondary: #9CA3AF;
  --text-tertiary:  #6B7280;
  --text-muted:     #4B5563;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Shadows — lighter in dark mode (use glow instead of shadow) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Accent stays the same — already bright enough on dark */
  /* Semantic colors stay the same — already designed for both themes */

  /* QuantSage aliases */
  --bg-canvas:      var(--bg-page);
  --bg-panel:       var(--bg-surface);
  --bg-secondary:   #1E2226;
  --bg-tertiary:    #22262A;
  --border-subtle:  var(--border);
  --border-default: var(--border);
  --border-color:   var(--border);
  --color-background: var(--bg-page);
  --color-surface:    var(--bg-surface);
  --color-card:       var(--bg-surface);
  --color-border:     var(--border);
  --color-text:       var(--text-primary);

  /* Platform aliases */
  --c-bg:            var(--bg-page);
  --c-bg-subtle:     #161819;
  --c-text:          var(--text-primary);
  --c-text-secondary: var(--text-secondary);
  --c-text-muted:    var(--text-muted);
  --c-border:        var(--border);
  --c-border-med:    var(--border-strong);

  /* Skeleton loading adapts */
  color-scheme: dark;
}

/* Component overrides for dark mode */
[data-theme="dark"] .c-card,
[data-theme="dark"] .c-card-static,
[data-theme="dark"] .c-stat-card,
[data-theme="dark"] .c-skeleton-card {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .c-toast-success { background: #064E3B; }
[data-theme="dark"] .c-toast-error   { background: #7F1D1D; }
[data-theme="dark"] .c-toast-warning { background: #78350F; }
[data-theme="dark"] .c-toast-info    { background: #1E3A5F; }

[data-theme="dark"] .c-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Badge adjustments for dark mode */
[data-theme="dark"] .c-badge-success { background: rgba(34, 197, 94, 0.15);  color: #4ADE80; }
[data-theme="dark"] .c-badge-warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
[data-theme="dark"] .c-badge-danger  { background: rgba(239, 68, 68, 0.15);  color: #F87171; }
[data-theme="dark"] .c-badge-info    { background: rgba(59, 130, 246, 0.15);  color: #60A5FA; }
[data-theme="dark"] .c-badge-neutral { background: rgba(255, 255, 255, 0.08); color: #9CA3AF; }

/* Auto dark mode (system preference) — only if no explicit data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Same values as [data-theme="dark"] above — keep in sync */
    --bg-page:    #0F1114;
    --bg-surface: #1A1D21;
    --bg-hover:   rgba(255, 255, 255, 0.05);
    --bg-muted:   #22262A;
    --text-primary:   #EAECEF;
    --text-secondary: #9CA3AF;
    --text-muted:     #4B5563;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    color-scheme: dark;
  }
}
