:root {
  --color-bg: #F7F5F0;
  --color-bg-soft: #EFEDE8;
  --color-surface: #FFFFFF;
  --color-surface-hover: #FAF9F6;
  --color-border: #E8E4DE;
  --color-border-light: #F0EDE8;
  --color-text: #2C2C2C;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #9A9A9A;
  --color-accent: #7BA89A;
  --color-accent-hover: #6B9A8C;
  --color-accent-light: #E8F2EF;
  --color-accent-soft: #F2F7F5;
  --color-user-bubble: #E3EEEA;
  --color-user-bubble-text: #1A3B32;
  --color-ai-bubble: #FFFFFF;
  --color-ai-bubble-text: #2C2C2C;
  --color-emergency: #C44A4A;
  --color-emergency-hover: #B03E3E;
  --color-emergency-light: #FDF0F0;
  --color-success: #6BAF8D;
  --color-warning: #D4A853;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.3;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.04);
  --shadow-md: 0 2px 8px rgba(44, 44, 44, 0.06);
  --shadow-lg: 0 4px 16px rgba(44, 44, 44, 0.08);
  --shadow-xl: 0 8px 32px rgba(44, 44, 44, 0.1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --header-height: 60px;
  --nav-height: 64px;
  --input-height: 56px;
  --max-chat-width: 720px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

[data-theme="dark"] {
  --color-bg: #1A1A1E;
  --color-bg-soft: #222226;
  --color-surface: #2A2A2E;
  --color-surface-hover: #323236;
  --color-border: #3A3A3E;
  --color-border-light: #323236;
  --color-text: #E8E4DE;
  --color-text-secondary: #A8A4A0;
  --color-text-tertiary: #7A7878;
  --color-accent: #7BA89A;
  --color-accent-hover: #8DB8AA;
  --color-accent-light: #2A3A34;
  --color-accent-soft: #222E2A;
  --color-user-bubble: #2A3A34;
  --color-user-bubble-text: #C8E6DA;
  --color-ai-bubble: #2A2A2E;
  --color-ai-bubble-text: #E8E4DE;
  --color-emergency-light: #3A2020;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1A1A1E;
    --color-bg-soft: #222226;
    --color-surface: #2A2A2E;
    --color-surface-hover: #323236;
    --color-border: #3A3A3E;
    --color-border-light: #323236;
    --color-text: #E8E4DE;
    --color-text-secondary: #A8A4A0;
    --color-text-tertiary: #7A7878;
    --color-accent: #7BA89A;
    --color-accent-hover: #8DB8AA;
    --color-accent-light: #2A3A34;
    --color-accent-soft: #222E2A;
    --color-user-bubble: #2A3A34;
    --color-user-bubble-text: #C8E6DA;
    --color-ai-bubble: #2A2A2E;
    --color-ai-bubble-text: #E8E4DE;
    --color-emergency-light: #3A2020;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
    --nav-height: 56px;
    --input-height: 52px;
    --space-4: 12px;
    --space-5: 16px;
    --space-6: 20px;
  }
}
