/* Notive 2027 foundations. Source of truth for all four independent services. */
:root {
  color-scheme: light;
  /* v2.29 · satu sumber nilai: warna terang yang dulu ditimpa notive-unified.css kini tinggal di sini. */
  --ns-bg: #f6f7fa; --ns-surface: #ffffff; --ns-inset: #f5f6f8; --ns-sidebar: #eff2f6;
  --ns-text: #20252d; --ns-secondary: #505c6b; --ns-muted: #5b6472; /* v2.33: ≥ 4,5 : 1 juga di latar abu #E4E4E4 */
  --ns-border: #e3e7ed; --ns-control: #c3cad5; --ns-border-strong: #c3cad5; --ns-hover: #f3f6eb;
  --ns-accent: #282D20; --ns-accent-hover: #444D30; --ns-accent-soft: #eff5d8; --ns-on-accent: #ffffff;
  --ns-good: #196343; --ns-good-soft: #e6f3eb;
  --ns-warn: #88570a; --ns-warn-soft: #fff3d7;
  --ns-bad: #b63438; --ns-bad-soft: #fcebed;
  --ns-focus: #282D20; --ns-overlay: #101a2870; --ns-glass: #fffffff0;
  --ns-shadow: 0 2px 5px #15233706; --ns-float: 0 20px 65px #101a2824;
  --ns-brand-accent: #D1FF00; --ns-on-brand: #20242C; --ns-chart-primary: #282D20; --ns-chart-secondary: #71804A;
  --ns-font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* v2.44: Figtree (keputusan owner) */
  --ns-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  /* Skala huruf 12 · 13 · 14 · 16 · 20 · 28 (v2.44: minimum 12 px; 13 = teks isi, 12 = label, kepala tabel, keterangan kecil). */
  --ns-text-2xs: 12px; --ns-text-xs: 12px; --ns-text-sm: 13px; --ns-text-md: 14px;
  --ns-text-lg: 16px; --ns-text-xl: 20px; --ns-text-2xl: 28px; --ns-leading-tight: 1.25; --ns-leading: 1.5;
  --ns-font-body: var(--ns-text-sm); --ns-font-label: var(--ns-text-xs); --ns-font-meta: var(--ns-text-2xs);
  /* Tinggi kontrol: 32 aksi baris tabel · 40 bawaan · 44 semua kontrol di layar ≤ 768 px. */
  --ns-control-sm: 32px; --ns-control-height: 40px;
  --ns-space-1: 4px; --ns-space-2: 8px; --ns-space-3: 12px; --ns-space-4: 16px;
  --ns-space-5: 20px; --ns-space-6: 24px; --ns-space-8: 32px; --ns-space-12: 48px;
  /* v2.44: empat radius saja — 8 kecil · 12 kontrol · 20 kartu · pil. */
  --ns-radius-sm: 8px; --ns-radius: 12px; --ns-radius-lg: 20px;
  --ns-radius-control: 12px; --ns-radius-card: 20px; --ns-radius-pill: 999px; --ns-focus-ring: #171717;
  --ns-sidebar-width: 240px; --ns-header-height: 71px; --ns-duration: 150ms;
  --ns-touch-target: 44px; --ns-table-row: 52px;
  /* Compatibility aliases keep legacy components and division logic intact. */
  --bg: var(--ns-bg); --card: var(--ns-surface); --surface: var(--ns-surface); --surface2: var(--ns-inset);
  --line: var(--ns-border); --line2: var(--ns-control); --ink: var(--ns-text); --ink2: var(--ns-secondary); --ink3: var(--ns-muted);
  --accent: var(--ns-accent); --accent2: var(--ns-accent-hover); --accentRGB: 40,45,32;
  --acc: var(--ns-accent); --acc2: var(--ns-accent-hover); --acc-soft: var(--ns-accent-soft);
  --gold: var(--ns-accent); --gold2: var(--ns-accent); --gold3: var(--ns-accent); --gold-soft: var(--ns-accent-soft); --goldg: var(--ns-accent);
  --good: var(--ns-good); --good-soft: var(--ns-good-soft); --warn: var(--ns-warn); --warn-soft: var(--ns-warn-soft);
  --bad: var(--ns-bad); --bad-soft: var(--ns-bad-soft); --muted: var(--ns-inset); --live: #bc2944;
  --off: var(--ns-muted); --shadow: var(--ns-shadow); --shadow2: var(--ns-float); --r: var(--ns-radius); --side: var(--ns-sidebar-width);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ns-chart-primary: #D1FF00; --ns-chart-secondary: #BFCB9C;
  --ns-bg: #14171D; --ns-surface: #1D222A; --ns-inset: #252C36; --ns-sidebar: #171B22;
  --ns-text: #EEF1F5; --ns-secondary: #B5BEC9; --ns-muted: #B5BEC9;
  --ns-border: #35404D; --ns-control: #879171;
  --ns-accent: #D1FF00; --ns-accent-hover: #E0FF66; --ns-accent-soft: #30391F; --ns-on-accent: #20242C;
  --ns-good: #8cdab2; --ns-good-soft: #223b30;
  --ns-warn: #edca82; --ns-warn-soft: #3e321e;
  --ns-bad: #f1a3ac; --ns-bad-soft: #42282e;
  --ns-focus: #D1FF00; --ns-overlay: #03080caf; --ns-glass: #1D222Aed; --ns-focus-ring: #D1FF00;
  --ns-border-strong: #566044; --ns-hover: #272E1F;
  --ns-shadow: 0 2px 5px #00000018; --ns-float: 0 20px 65px #00000065;
  --live: #f19aaa;
}
