/* Tokens abgeleitet aus der MI-Admin-README. Nur accent (#0056A4) ist dort als Wert vorgegeben;
   alle übrigen Werte sind Vorschläge und gehören gegen das echte tokens.css abgeglichen. */
:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --control-md: 34px;
  --control-sm: 28px;
  --sidebar-width: 232px;
  --topbar-height: 48px;
  --content-max: 1200px;

  --z-sticky: 10;
  --z-dropdown: 20;
  --z-dialog: 30;
  --z-toast: 40;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-sunken: #eef0f3;
  --text: #1b1f24;
  --text-muted: #566170;
  --border: #dde1e6;
  --border-control: #838d99;
  --accent: #0056a4;
  --accent-hover: #004a8e;
  --accent-soft: #e3eef9;
  --on-accent: #ffffff;
  --focus: #0056a4;
  --success: #1e7b3a;
  --success-soft: #e4f3e8;
  --warning: #8a5a00;
  --warning-soft: #fff3d6;
  --danger: #b3261e;
  --danger-soft: #fbe6e4;
  --on-danger: #ffffff;
  --info: #0f6b7a;
  --info-soft: #e1f2f4;
  --overlay: rgb(15 23 32 / 0.5);

  --shadow-sm: 0 1px 2px rgb(15 23 32 / 0.06);
  --shadow-md: 0 4px 12px rgb(15 23 32 / 0.12);
  --shadow-lg: 0 12px 32px rgb(15 23 32 / 0.18);
}

:root[data-theme="dark"] {
  --bg: #0f1318;
  --surface: #171c22;
  --surface-sunken: #1d232a;
  --text: #e8ecf0;
  --text-muted: #9aa6b2;
  --border: #2a323b;
  --border-control: #6b7885;
  --accent: #5aa9f0;
  --accent-hover: #7dbbf5;
  --accent-soft: #14283c;
  --on-accent: #0a1722;
  --focus: #5aa9f0;
  --success: #5cc47a;
  --success-soft: #14271b;
  --warning: #e8b04a;
  --warning-soft: #2d2410;
  --danger: #f2827b;
  --danger-soft: #321816;
  --on-danger: #1a0907;
  --info: #5bc0cf;
  --info-soft: #112a2e;
  --overlay: rgb(0 0 0 / 0.6);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.6);
}
