/* Design tokens shared by the portal shell (shell.css) and every workspace page (module.css).
   Neutral zinc scale in the style of shadcn/ui, with the project's teal as the only accent.
   Theme is chosen by data-theme on <html>, set before first paint by the inline theme script. */

:root {
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "Microsoft YaHei UI", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --control-h: 36px;
  --sidebar: 232px;
  --sidebar-collapsed: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #ebebee;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;

  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-fg: #ffffff;
  --accent-soft: #e7f5f2;
  --accent-text: #0f766e;

  --info: #2563eb;
  --info-soft: #eef4ff;
  --success: #15803d;
  --success-soft: #edf9f0;
  --warning: #b45309;
  --warning-soft: #fdf6e7;
  --danger: #dc2626;
  --danger-soft: #fdf0f0;
  --project-technet: #b45309;
  --project-gm: #2563eb;

  --ring: 0 0 0 3px rgb(15 118 110 / .16);
  --shadow-sm: 0 1px 2px rgb(24 24 27 / .05);
  --shadow-md: 0 1px 2px rgb(24 24 27 / .04), 0 6px 16px -4px rgb(24 24 27 / .08);
  --shadow-lg: 0 24px 56px -12px rgb(24 24 27 / .28), 0 2px 6px rgb(24 24 27 / .06);
  --overlay: rgb(9 9 11 / .42);
  --scrollbar: #d4d4d8;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #121215;
  --surface-2: #1b1b1f;
  --surface-3: #25252a;
  --border: #26262b;
  --border-strong: #3a3a41;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #8a8a94;

  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-fg: #ffffff;
  --accent-soft: rgb(45 212 191 / .12);
  --accent-text: #2dd4bf;

  --info: #60a5fa;
  --info-soft: rgb(96 165 250 / .13);
  --success: #4ade80;
  --success-soft: rgb(74 222 128 / .12);
  --warning: #fbbf24;
  --warning-soft: rgb(251 191 36 / .12);
  --danger: #f87171;
  --danger-soft: rgb(248 113 113 / .13);
  --project-technet: #fbbf24;
  --project-gm: #60a5fa;

  --ring: 0 0 0 3px rgb(45 212 191 / .22);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 8px 20px -6px rgb(0 0 0 / .5);
  --shadow-lg: 0 24px 56px -12px rgb(0 0 0 / .7), 0 0 0 1px var(--border);
  --overlay: rgb(0 0 0 / .6);
  --scrollbar: #3a3a41;
}
