/* Design tokens — color, spacing, type scale. Shared by manager-app and admin-app. */

/* Spacing scale — theme-independent, defined once. Use these (via .stack/.section-divider
   in app.css, or directly) instead of a one-off inline margin — see
   gm_context_prompt_v1.yaml ui_interaction_standards on why this exists. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
}

:root,
:root[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-elevated: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-hover: #efeeea;
  --bg-input: #ffffff;
  --border: #e3e1db;
  --border-strong: #cfccc3;
  --text: #1c1b19;
  --text-muted: #6b6862;
  --text-faint: #9a978f;
  --accent: #b5651d;
  --accent-hover: #9a5518;
  --accent-soft: #f2e4d4;
  --positive: #1f7a4d;
  --positive-soft: #e2f2e9;
  --negative: #b23b3b;
  --negative-soft: #fbe7e6;
  --warning: #a9720f;
  --warning-soft: #faf0dc;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.06), 0 1px 1px rgba(28, 27, 25, 0.04);
  --radius: 3px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #17171a;
  --bg-elevated: #1f1f23;
  --bg-sidebar: #1a1a1d;
  --bg-hover: #2a2a2f;
  --bg-input: #232328;
  --border: #303035;
  --border-strong: #3d3d43;
  --text: #ececec;
  --text-muted: #a3a2a0;
  --text-faint: #6f6e6c;
  --accent: #d98a3d;
  --accent-hover: #e79c53;
  --accent-soft: #3a2c1a;
  --positive: #4cae7f;
  --positive-soft: #1b3427;
  --negative: #e0716e;
  --negative-soft: #3a2222;
  --warning: #d9a441;
  --warning-soft: #3a2f18;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17171a;
    --bg-elevated: #1f1f23;
    --bg-sidebar: #1a1a1d;
    --bg-hover: #2a2a2f;
    --bg-input: #232328;
    --border: #303035;
    --border-strong: #3d3d43;
    --text: #ececec;
    --text-muted: #a3a2a0;
    --text-faint: #6f6e6c;
    --accent: #d98a3d;
    --accent-hover: #e79c53;
    --accent-soft: #3a2c1a;
    --positive: #4cae7f;
    --positive-soft: #1b3427;
    --negative: #e0716e;
    --negative-soft: #3a2222;
    --warning: #d9a441;
    --warning-soft: #3a2f18;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}
