/* ============================================================
   Bebsolo — Design tokens (généré depuis shared/palette.py)
   Ne PAS éditer à la main. Source unique : src/shared/palette.py
   ============================================================ */
:root {
  /* Surfaces (thème sombre unique V1, J2-5 §3.2) */
  --mst-bg-app:        #0d1117;
  --mst-bg-surface:    #161b22;
  --mst-bg-surface-2:  #1c2230;
  --mst-bg-inset:      #0a0e14;
  --mst-border:        #2b3340;
  --mst-border-strong: #3d4757;

  /* Texte (J2-5 §3.3) */
  --mst-text-primary:   #e6edf3;
  --mst-text-secondary: #9aa7b4;
  --mst-text-muted:     #6b7785;
  --mst-text-on-accent: #0d1117;
  --mst-text-inverse:   #ffffff;

  /* Accent produit (J2-5 §3.4) */
  --mst-accent:        #4c8dff;
  --mst-accent-hover:  #6ba1ff;
  --mst-accent-bg:     #1b2942;

  /* Palette sémantique (J2-5 §4.2) — 8 types de message */
  --mst-sem-launch:    #5ec8d8;
  --mst-sem-launch-bg: #11333a;
  --mst-sem-phase:    #7c9cf0;
  --mst-sem-phase-bg: #1c2540;
  --mst-sem-milestone:    #4cc99a;
  --mst-sem-milestone-bg: #11362a;
  --mst-sem-task:    #9aa7b4;
  --mst-sem-task-bg: #1c2330;
  --mst-sem-arbitration:    #e0a93d;
  --mst-sem-arbitration-bg: #3a2e10;
  --mst-sem-escalation:    #e8654f;
  --mst-sem-escalation-bg: #3a1c16;
  --mst-sem-directive:    #b98ce8;
  --mst-sem-directive-bg: #2a1f3a;
  --mst-sem-go:    #43c06a;
  --mst-sem-go-bg: #0f3a1f;

  /* États de tâche (J2-5 §4.3) */
  --mst-state-open: #6b7785;
  --mst-state-claimed: #7c9cf0;
  --mst-state-in_progress: #7c9cf0;
  --mst-state-done: #43c06a;
  --mst-state-blocked: #e8654f;

  /* États de session (J2-5 §4.3) */
  --mst-state-session-running: #43c06a;
  --mst-state-session-paused: #e0a93d;
  --mst-state-session-awaiting_human: #e0a93d;
  --mst-state-session-stopped: #6b7785;

  /* Couleurs catégorielles d'agents (J2-5 §4.5) */
  --mst-agent-1: #4c8dff;
  --mst-agent-2: #4cc99a;
  --mst-agent-3: #e0a93d;
  --mst-agent-4: #b98ce8;
  --mst-agent-5: #5ec8d8;
  --mst-agent-6: #e8865f;
  --mst-agent-7: #9aa7b4;
  --mst-agent-8: #6ed98a;

  /* TokenBar — seuils 75/90/100 (J2-5 §3.11) */
  --mst-tokenbar-calm:   #4c8dff;
  --mst-tokenbar-warn:   #e0a93d;
  --mst-tokenbar-danger: #e8654f;
  --mst-tokenbar-over:   #e8654f;
  --mst-tokenbar-track:  #6b7785;

  /* État réseau (J2-5 §4.3) */
  --mst-net-local:  var(--mst-text-muted);
  --mst-net-remote: var(--mst-sem-arbitration);

  /* Typo (J2-5 §3.6) */
  /* « Bebsolo Symboles » en avant-dernier : les symboles que l'appareil n'a
     pas (⏵ ⏺ ⎿ 🗀…) viennent de nos polices de secours, jamais les lettres. */
  --mst-font-sans: "Inter", "Segoe UI", system-ui, "Bebsolo Symboles", sans-serif;
  --mst-font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", "Bebsolo Symboles", monospace;
  --mst-fs-display: 22px; --mst-lh-display: 28px;
  --mst-fs-title:   16px; --mst-lh-title:   22px;
  --mst-fs-body:    14px; --mst-lh-body:    20px;
  --mst-fs-meta:    12px; --mst-lh-meta:    16px;
  --mst-fs-mono:    13px; --mst-lh-mono:    18px;
  --mst-fs-micro:   11px; --mst-lh-micro:   14px;
  --mst-fw-regular: 400;
  --mst-fw-medium:  500;
  --mst-fw-bold:    700;

  /* Espacement (base 4, J2-5 §3.7) */
  --mst-sp-0: 0;
  --mst-sp-1: 4px;
  --mst-sp-2: 8px;
  --mst-sp-3: 12px;
  --mst-sp-4: 16px;
  --mst-sp-5: 24px;
  --mst-sp-6: 32px;
  --mst-sp-7: 48px;

  /* Rayons, filets, élévation (J2-5 §3.8) */
  --mst-radius-sm: 4px;
  --mst-radius-md: 8px;
  --mst-radius-pill: 999px;
  --mst-border-w: 1px;
  --mst-focus-ring: 0 0 0 2px var(--mst-accent);
  --mst-elevation-modal: 0 8px 32px rgba(0,0,0,.55);

  /* Mouvement (J2-5 §3.9) */
  --mst-motion-fast: 120ms;
  --mst-motion-base: 200ms;
  --mst-easing: cubic-bezier(.2,.0,.2,1);

  /* Densité (J2-5 §3.10) */
  --mst-row-h:   32px;
  --mst-tap-min: 32px;
}
