/* ================================================================
   Nocturne — токены тёмной темы.
   SoT: shared/ui/nocturne-tokens.css
   Канон Figma: Ecolife.sigale (CRM / тёмный канбан) — почти чёрный
   shell слева, угольно-серый workspace, синий rail у активного пункта,
   зелёный EcoLife только для CTA / ok.
   Светлые примитивы читают --b24-* (b24-tokens.css), которые
   в теме nocturne мапятся на --noct-*.
   ================================================================ */

html.is-theme-nocturne {
  /* ---- База (workspace) ---- */
  --noct-bg: #111318;
  --noct-surface: #171a21;
  --noct-text: #e8eaed;
  --noct-divider: rgba(255, 255, 255, 0.07);

  /* ---- Shell (левое меню — темнее страницы) ---- */
  --noct-shell: #0a0c10;
  --noct-shell-footer: #07090d;
  --noct-shell-border: rgba(255, 255, 255, 0.06);
  --noct-nav-active: #1a1e26;

  /* ---- Бренд EcoLife (CTA «+ Добавить») ---- */
  --noct-brand: #22aa79;
  --noct-brand-hover: #1b8f66;
  --noct-brand-bright: #2eb889;

  /* ---- Акцент UI (selection / focus / active rail) — холодный синий ---- */
  --noct-accent: #5b8def;
  --noct-accent-2: #8eb6ff;

  /* ---- Нейтральная рампа ---- */
  --noct-neutral-100: #f3f4f6;
  --noct-neutral-200: #e5e7eb;
  --noct-neutral-300: #d1d5db;
  --noct-neutral-400: #9ca3af;
  --noct-neutral-500: #6b7280;
  --noct-neutral-600: #4b5563;
  --noct-neutral-700: #374151;
  --noct-neutral-800: #252a33;
  --noct-neutral-900: #1a1d24;

  /* ---- Акцентная рампа ---- */
  --noct-accent-100: #eff5ff;
  --noct-accent-200: #dbe8ff;
  --noct-accent-300: #b7d0ff;
  --noct-accent-400: #8eb6ff;
  --noct-accent-500: #5b8def;
  --noct-accent-600: #3f74e0;
  --noct-accent-700: #2f5bb8;
  --noct-accent-800: #24448c;
  --noct-accent-900: #1a2f61;

  /* ---- Вторая акцентная рампа (мягкий индиго для secondary) ---- */
  --noct-accent-2-100: #f3f5ff;
  --noct-accent-2-200: #e4e9fe;
  --noct-accent-2-300: #c9d3fd;
  --noct-accent-2-400: #a8b6ef;
  --noct-accent-2-500: #8494d4;
  --noct-accent-2-600: #6876b3;
  --noct-accent-2-700: #4f5a8a;
  --noct-accent-2-800: #383f61;
  --noct-accent-2-900: #252a40;

  /* ---- Семантика статусов ---- */
  --noct-ok: #34d399;
  --noct-warn: #fbbf24;
  --noct-err: #f87171;

  --noct-ok-bg: color-mix(in srgb, var(--noct-ok) 16%, transparent);
  --noct-warn-bg: color-mix(in srgb, var(--noct-warn) 16%, transparent);
  --noct-err-bg: color-mix(in srgb, var(--noct-err) 16%, transparent);
  --noct-accent-bg: color-mix(in srgb, var(--noct-accent) 16%, transparent);
  --noct-brand-bg: color-mix(in srgb, var(--noct-brand-bright) 16%, transparent);

  --noct-ok-border: color-mix(in srgb, var(--noct-ok) 40%, transparent);
  --noct-warn-border: color-mix(in srgb, var(--noct-warn) 40%, transparent);
  --noct-err-border: color-mix(in srgb, var(--noct-err) 40%, transparent);

  /* ---- Производные поверхностей ---- */
  --noct-header: #1a1d24;
  --noct-hover: color-mix(in srgb, #ffffff 5%, transparent);
  --noct-selected: color-mix(in srgb, var(--noct-accent) 14%, transparent);
  --noct-hover-solid: #1e222b;
  --noct-selected-solid: #1a2438;

  /* Карточка канбана / приподнятая плитка */
  --noct-card: #1c1f27;
  --noct-card-hover: #232731;

  /* Иконки по умолчанию */
  --noct-icon: var(--noct-neutral-400);

  /* ---- Типографика ---- */
  --noct-font: Manrope, Inter, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --noct-font-heading-weight: 500;

  /* ---- Радиусы ---- */
  --noct-radius-sm: 4px;
  --noct-radius-md: 8px;
  --noct-radius-lg: 12px;
  --noct-radius-badge: 6px;

  /* ---- Отступы ---- */
  --noct-space-1: 2.8px;
  --noct-space-2: 5.6px;
  --noct-space-3: 8.4px;
  --noct-space-4: 11.2px;
  --noct-space-6: 16.8px;
  --noct-space-8: 22.4px;

  /* ---- Тени: тонкая линия + глубокая тень, без «молочного» свечения ---- */
  --noct-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --noct-shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 24px rgba(0, 0, 0, 0.45);
  --noct-shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 16px 40px rgba(0, 0, 0, 0.55);
  --noct-shadow-shell: 8px 0 28px rgba(0, 0, 0, 0.5);
}
