/* All product colors live here. Components consume semantic roles, never literals.
   Marker/photo/print roles are deliberately invariant; UI roles follow the theme. */
:root,
.shell[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f8f8;
    --panel: #ffffff;
    --ink: #1b2932;
    --muted: #50616c;
    --line: #d6dee2;
    --control-line: #77858c;
    --accent: #a2302a;
    --on-accent: #ffffff;
    --accent-soft: #f8eae7;
    --land: #eef1e8;
    --sea: #d3e2e8;
    --route: #a2302a;
    --plan: #466473;
    --on-plan: #ffffff;
    --selected: #f2b01e;
    --focus: #966400;
    --art-ink: #344b56;
    --art-line: #778e94;
    --idea-bg: #ffffff;
    --idea-paper: #f7f8fc;
    --idea-ink: #25314b;
    --idea-muted: #5f6b80;
    --idea-line: #e1e5ef;
    --idea-blue: #3156b8;
    --idea-on-blue: #ffffff;
    --idea-soft: #eef2ff;
    --idea-selected-ink: var(--idea-ink);
    --idea-category-museum: #7352b5;
    --idea-category-park: #2e7557;
    --idea-category-food: #a95229;
    --idea-category-pin: #365fae;
    /* Budget split: paid is brick (lived), planned parts are slate steps (planned). */
    --budget-spent: #a2302a;
    --budget-route: #2c4653;
    --budget-daily: #466473;
    --budget-oneoff: #6c8896;
    --budget-recurring: #9ab0bb;
}

.shell[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111d23;
    --panel: #17252d;
    --ink: #e4ebee;
    --muted: #a6b5bd;
    --line: #344750;
    --control-line: #8498a2;
    --accent: #f37c68;
    --on-accent: #182029;
    --accent-soft: #3c2729;
    --land: #1f2c31;
    --sea: #0e1a21;
    --route: #e2604c;
    --plan: #7e98a8;
    --on-plan: #182029;
    --selected: #ffc53d;
    --focus: #ffc53d;
    --art-ink: #c4d5db;
    --art-line: #a6b5bd;
    --idea-bg: #171d27;
    --idea-paper: #202735;
    --idea-ink: #e8edf8;
    --idea-muted: #abb8cf;
    --idea-line: #384254;
    --idea-map-bg: #1d2c35;
    --idea-blue: #9ebaff;
    --idea-on-blue: #17284d;
    --idea-soft: #283653;
    --idea-selected-ink: var(--idea-ink);
    --idea-category-museum: #b7a0ec;
    --idea-category-park: #80c6a4;
    --idea-category-food: #f0b08b;
    --idea-category-pin: #9ebaff;
    --budget-spent: #f37c68;
    --budget-route: #d0dde3;
    --budget-daily: #a9bdc7;
    --budget-oneoff: #7e98a8;
    --budget-recurring: #5d7887;
}

@media (prefers-color-scheme: dark) {
    .shell:not([data-theme="light"]):not([data-theme="dark"]) {
        color-scheme: dark;
        --bg: #111d23;
        --panel: #17252d;
        --ink: #e4ebee;
        --muted: #a6b5bd;
        --line: #344750;
        --control-line: #8498a2;
        --accent: #f37c68;
        --on-accent: #182029;
        --accent-soft: #3c2729;
        --land: #1f2c31;
        --sea: #0e1a21;
        --route: #e2604c;
        --plan: #7e98a8;
        --on-plan: #182029;
        --selected: #ffc53d;
        --focus: #ffc53d;
        --art-ink: #c4d5db;
        --art-line: #a6b5bd;
        --idea-bg: #171d27;
        --idea-paper: #202735;
        --idea-ink: #e8edf8;
        --idea-muted: #abb8cf;
        --idea-line: #384254;
        --idea-map-bg: #1d2c35;
        --idea-blue: #9ebaff;
        --idea-on-blue: #17284d;
        --idea-soft: #283653;
        --idea-selected-ink: var(--idea-ink);
        --idea-category-museum: #b7a0ec;
        --idea-category-park: #80c6a4;
        --idea-category-food: #f0b08b;
        --idea-category-pin: #9ebaff;
        --budget-spent: #f37c68;
        --budget-route: #d0dde3;
        --budget-daily: #a9bdc7;
        --budget-oneoff: #7e98a8;
        --budget-recurring: #5d7887;
    }
}

:root {
    --shadow: 0 8px 30px #1b293208;
    --shadow-color: #1b293224;
    --dock-shadow-color: #1b29320a;
    --raised-shadow-color: #1b293230;
    --menu-shadow: #00000033;
    --photo-backdrop: #0c1114;
    --photo-ink: #ffffff;
    --photo-scrim: #000000aa;
    --crop-scrim: #00000088;
    --print-bg: #ffffff;
    --print-ink: #000000;
    --selection: #e3a72b;
    --on-selection: #332607;
    --marker-outline: #ffffff;
    --marker-ink: #1b2932;
    --marker-route: #a2302a;
    --marker-shadow: #00000066;
    --marker-halo: #e3a72b73;
    --map-attribution-bg: #ffffffee;
    --map-plan-swatch: #476b80;
    --map-plan-stripe: #78909c;
    --location: #1976d2;
    --compass-north: #ff7658;
    --compass-center: #000000;
    --odometer-edge: #0f181e;
    --odometer-center: #26343d;
    --odometer-ink: #f4f6f2;
    --odometer-accent-edge: #5a1612;
    --idea-map-bg: #cfe5ed;
    --idea-marker-museum: #7352b5;
    --idea-marker-park: #2e7557;
    --idea-marker-food: #a95229;
    --idea-marker-pin: #365fae;
    --idea-marker-reference: #3156b8;
    --idea-marker-outline: #25314b;
    --idea-marker-halo: #3156b833;
}
