:root {
  --sol-base03: #002b36;
  --sol-base02: #073642;
  --sol-base01: #586e75;
  --sol-base00: #657b83;
  --sol-base0: #839496;
  --sol-base1: #93a1a1;
  --sol-base2: #eee8d5;
  --sol-base3: #fdf6e3;
  --sol-yellow: #b58900;
  --sol-red: #dc322f;
  --sol-violet: #6c71c4;
  --sol-blue: #268bd2;
  --sol-cyan: #2aa198;
  --sol-green: #859900;

  --bg-canvas: var(--sol-base03);
  --bg-surface: var(--sol-base02);
  --bg-surface-raised: #0a4152;
  --bg-hover: #0d4b5e;
  --bg-active: #0f5468;
  --border-subtle: #0e4657;
  --border-strong: var(--sol-base01);

  --text-primary: var(--sol-base1);
  --text-secondary: var(--sol-base0);
  --text-muted: var(--sol-base01);

  --accent-blue: var(--sol-blue);
  --accent-cyan: var(--sol-cyan);
  --accent-yellow: var(--sol-yellow);
  --accent-green: var(--sol-green);
  --accent-red: var(--sol-red);
  --accent-violet: var(--sol-violet);

  --font-ui: "Consolas", "SFMono-Regular", "Menlo", "Monaco", "Liberation Mono", "Courier New", monospace;
  --font-mono: "Consolas", "SFMono-Regular", "Menlo", "Monaco", "Liberation Mono", "Courier New", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --topbar-height: 52px;

  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.32);

  --theme-duration: 0.5s;
  --theme-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

html.theme-light {
  --bg-canvas: var(--sol-base3);
  --bg-surface: var(--sol-base2);
  --bg-surface-raised: #fdf9ec;
  --bg-hover: #e4ddc7;
  --bg-active: #dbd3ba;
  --border-subtle: #ddd6bf;
  --border-strong: var(--sol-base1);

  --text-primary: var(--sol-base01);
  --text-secondary: var(--sol-base00);
  --text-muted: var(--sol-base1);

  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html.theme-transition,
html.theme-transition * {
  transition: background-color var(--theme-duration) var(--theme-easing),
    color var(--theme-duration) var(--theme-easing),
    border-color var(--theme-duration) var(--theme-easing),
    box-shadow var(--theme-duration) var(--theme-easing),
    fill var(--theme-duration) var(--theme-easing),
    stroke var(--theme-duration) var(--theme-easing) !important;
}
