/* Palettes validées, valeurs partagées avec le tableau de comparaison. */
:root[data-palette="blue"][data-appearance="light"]{--primary:#A9C5DF;--soft:#E6F0FA;--accent:#86ACD0;--ink:#1E334B;--muted:#4B6075;--line:#B5C8DA;--page:#FFFFFF;--surface:#FFFFFF;color-scheme:light;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-blue-light-0{background:#A9C5DF}
.swatch-blue-light-1{background:#E6F0FA}
.swatch-blue-light-2{background:#86ACD0}
.swatch-blue-light-3{background:#1E334B}
.swatch-blue-light-4{background:#4B6075}
.swatch-blue-light-5{background:#B5C8DA}
.swatch-blue-light-6{background:#FFFFFF}
.swatch-blue-light-7{background:#FFFFFF}
:root[data-palette="blue"][data-appearance="dark"]{--primary:#29455C;--soft:#22384A;--accent:#3C617F;--ink:#E6EEF5;--muted:#B1C1CF;--line:#42586A;--page:#101821;--surface:#182431;color-scheme:dark;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-blue-dark-0{background:#29455C}
.swatch-blue-dark-1{background:#22384A}
.swatch-blue-dark-2{background:#3C617F}
.swatch-blue-dark-3{background:#E6EEF5}
.swatch-blue-dark-4{background:#B1C1CF}
.swatch-blue-dark-5{background:#42586A}
.swatch-blue-dark-6{background:#101821}
.swatch-blue-dark-7{background:#182431}
:root[data-palette="sage"][data-appearance="light"]{--primary:#B4CBB1;--soft:#EEF4EA;--accent:#91B18B;--ink:#263F30;--muted:#526B57;--line:#C1D0BC;--page:#F8FBF5;--surface:#FCFEFA;color-scheme:light;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-sage-light-0{background:#B4CBB1}
.swatch-sage-light-1{background:#EEF4EA}
.swatch-sage-light-2{background:#91B18B}
.swatch-sage-light-3{background:#263F30}
.swatch-sage-light-4{background:#526B57}
.swatch-sage-light-5{background:#C1D0BC}
.swatch-sage-light-6{background:#F8FBF5}
.swatch-sage-light-7{background:#FCFEFA}
:root[data-palette="sage"][data-appearance="dark"]{--primary:#304E3A;--soft:#243C2D;--accent:#466B4E;--ink:#E8F2E8;--muted:#B3C8B6;--line:#486351;--page:#111C16;--surface:#1A2A20;color-scheme:dark;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-sage-dark-0{background:#304E3A}
.swatch-sage-dark-1{background:#243C2D}
.swatch-sage-dark-2{background:#466B4E}
.swatch-sage-dark-3{background:#E8F2E8}
.swatch-sage-dark-4{background:#B3C8B6}
.swatch-sage-dark-5{background:#486351}
.swatch-sage-dark-6{background:#111C16}
.swatch-sage-dark-7{background:#1A2A20}
:root[data-palette="red"][data-appearance="light"]{--primary:#E2B3AE;--soft:#FAEFED;--accent:#CA8B81;--ink:#4B2529;--muted:#79565A;--line:#D8BDB9;--page:#FFF9F8;--surface:#FFFCFB;color-scheme:light;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-red-light-0{background:#E2B3AE}
.swatch-red-light-1{background:#FAEFED}
.swatch-red-light-2{background:#CA8B81}
.swatch-red-light-3{background:#4B2529}
.swatch-red-light-4{background:#79565A}
.swatch-red-light-5{background:#D8BDB9}
.swatch-red-light-6{background:#FFF9F8}
.swatch-red-light-7{background:#FFFCFB}
:root[data-palette="red"][data-appearance="dark"]{--primary:#583438;--soft:#432A2E;--accent:#805158;--ink:#FAE9E7;--muted:#D7B9B9;--line:#765054;--page:#211516;--surface:#302022;color-scheme:dark;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-red-dark-0{background:#583438}
.swatch-red-dark-1{background:#432A2E}
.swatch-red-dark-2{background:#805158}
.swatch-red-dark-3{background:#FAE9E7}
.swatch-red-dark-4{background:#D7B9B9}
.swatch-red-dark-5{background:#765054}
.swatch-red-dark-6{background:#211516}
.swatch-red-dark-7{background:#302022}
:root[data-palette="slate"][data-appearance="light"]{--primary:#BDC5CF;--soft:#EEF1F5;--accent:#9CAABA;--ink:#283442;--muted:#596779;--line:#CBD3DE;--page:#F8FAFC;--surface:#FFFFFF;color-scheme:light;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-slate-light-0{background:#BDC5CF}
.swatch-slate-light-1{background:#EEF1F5}
.swatch-slate-light-2{background:#9CAABA}
.swatch-slate-light-3{background:#283442}
.swatch-slate-light-4{background:#596779}
.swatch-slate-light-5{background:#CBD3DE}
.swatch-slate-light-6{background:#F8FAFC}
.swatch-slate-light-7{background:#FFFFFF}
:root[data-palette="slate"][data-appearance="dark"]{--primary:#3B4553;--soft:#2B3441;--accent:#536478;--ink:#E8EDF3;--muted:#B6C1CF;--line:#4B596C;--page:#151B23;--surface:#202936;color-scheme:dark;color:var(--ink);background:var(--page);--pale:var(--soft)}
.swatch-slate-dark-0{background:#3B4553}
.swatch-slate-dark-1{background:#2B3441}
.swatch-slate-dark-2{background:#536478}
.swatch-slate-dark-3{background:#E8EDF3}
.swatch-slate-dark-4{background:#B6C1CF}
.swatch-slate-dark-5{background:#4B596C}
.swatch-slate-dark-6{background:#151B23}
.swatch-slate-dark-7{background:#202936}

:root { --page:#fff; --financial-text:#7a520c; }
:root[data-appearance=dark] { --financial-text:#e8c58c; }
body { background:var(--page); color:var(--ink); }
#appearance-panel { margin-top:24px; }
#appearance-form fieldset { border:0; padding:0; margin:20px 0; min-width:0; }
#appearance-form legend { font-weight:700; margin-bottom:10px; color:var(--ink); }
.appearance-options { display:flex; gap:20px; flex-wrap:wrap; }
#appearance-form label { display:flex; gap:8px; align-items:center; color:var(--ink); }
#appearance-form input[type=radio] { width:18px; height:18px; flex:none; padding:0; margin:0; accent-color:var(--ink); }
.appearance-table-wrap { overflow-x:auto; }
.appearance-table { width:100%; min-width:600px; border-collapse:collapse; table-layout:fixed; background:var(--surface); }
.appearance-table th,.appearance-table td { padding:12px 10px; border-bottom:1px solid var(--line); vertical-align:middle; text-align:left; color:var(--ink); overflow-wrap:anywhere; }
.appearance-table th:first-child { width:28%; }
.appearance-table .appearance-selected { background:var(--soft); }
.appearance-swatch { display:block; height:28px; border-radius:5px; border:1px solid var(--line); }
.appearance-hex { display:block; font:12px/1.5 ui-monospace,monospace; color:var(--muted); padding-top:4px; background:transparent; }
#appearance-feedback { margin:12px 0 0; }
[data-appearance=dark] .notification-state.is-read { color:var(--muted); background:var(--surface); border-color:var(--line); }
[data-appearance=dark] .notification-state.is-unread { color:var(--ink); background:var(--soft); border-color:var(--line); }
[data-appearance=dark] .notification-action { color:#e8c58c; }
[data-appearance=dark] .form-error { color:#ffb4ab; }
