:root {
    color-scheme: light;
    --page-bg: linear-gradient(180deg, #f5efe4 0%, #f0f5f8 100%);
    --panel-bg: rgba(255, 255, 255, 0.86);
    --panel-border: rgba(19, 52, 59, 0.12);
    --text-main: #13262b;
    --text-muted: #5d7277;
    --accent: #bb4d00;
    --accent-soft: #ffd7bf;
    --chart-start: rgba(213, 107, 31, 0.95);
    --chart-end: rgba(242, 171, 65, 0.88);
    --chart-hover: rgba(187, 77, 0, 0.92);
    --tooltip-bg: rgba(19, 38, 43, 0.94);
    --axis-color: #4f6468;
    --grid-color: rgba(19, 52, 59, 0.10);
    --shadow: 0 24px 60px rgba(19, 38, 43, 0.12);
    --error-bg: #fff0ea;
    --error-text: #8a2f00;
    --good: #26734d;
    --bad: #a23622;
    --theme-button-bg: rgba(255, 255, 255, 0.72);
    --theme-button-border: rgba(19, 52, 59, 0.22);
    --theme-button-hover: rgba(255, 255, 255, 0.9);
}

body.theme-dark {
    color-scheme: dark;
    --page-bg: radial-gradient(circle at top left, #26354e 0%, #171c29 40%, #11141e 100%);
    --panel-bg: rgba(21, 27, 41, 0.8);
    --panel-border: rgba(162, 190, 255, 0.18);
    --text-main: #e8f0ff;
    --text-muted: #a7b7d1;
    --accent: #ffb869;
    --accent-soft: rgba(255, 184, 105, 0.22);
    --chart-start: rgba(116, 174, 255, 0.95);
    --chart-end: rgba(79, 224, 201, 0.9);
    --chart-hover: rgba(132, 192, 255, 0.95);
    --tooltip-bg: rgba(8, 12, 22, 0.95);
    --axis-color: #b8caeb;
    --grid-color: rgba(179, 209, 255, 0.18);
    --shadow: 0 24px 60px rgba(4, 8, 17, 0.5);
    --error-bg: rgba(145, 61, 37, 0.32);
    --error-text: #ffd5c8;
    --good: #72d6a0;
    --bad: #ff9d8c;
    --theme-button-bg: rgba(24, 33, 52, 0.86);
    --theme-button-border: rgba(162, 190, 255, 0.3);
    --theme-button-hover: rgba(40, 53, 80, 0.95);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text-main);
    background: var(--page-bg);
    font-family: Georgia, "Times New Roman", serif;
}
