/* Généré par packages/ui/scripts/build-assets.mjs depuis src/theme/catalogue-gele.json : ne pas éditer. */
/* Contrat DOM : <html data-ambiance="<id>" data-theme="light|dark" data-contrast="standard|more">. */
:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --panel: #fffdf9;
  --paper: #fffdf9;
  --surface: #fffdf9;
  --sidebar-bg: #f7f3ec;
  --input-bg: #fffdf9;
  --border: rgba(46, 42, 36, .12);
  --border-light: rgba(46, 42, 36, .06);
  --text-primary: #2e2a24;
  --text-secondary: #5b544a;
  --text-muted: #6b655a;
  --kbd: rgba(46, 42, 36, .08);
  --chip: #efe9dd;
  --veil: rgba(255, 253, 249, .85);
  --chrome: #f2ece2;
  --inset: #f0e9dd;
  --border-strong: rgba(46, 42, 36, .19);
  --accent: #1e8474;
  --accent-2: #85c9ba;
  --accent-contrast: #ffffff;
  --danger: #b8432f;
  --ok: #4a7c48;
  --accent-text: #17695c;
  --accent-fill: #1e8474;
  --perron-accent-text: #17695c;
  --perron-danger-text: #b3412e;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-contrast="more"] {
  --bg: #f6f2eb;
  --panel: #fffdfb;
  --paper: #fffdfb;
  --surface: #fffdfb;
  --sidebar-bg: #f6f2eb;
  --input-bg: #fffdfb;
  --border: rgba(41, 38, 33, 0.52);
  --border-light: rgba(41, 38, 33, 0.26);
  --text-primary: #292621;
  --text-secondary: #4d4a45;
  --text-muted: #4e4a45;
  --kbd: rgba(41, 38, 33, 0.08);
  --chip: #ebe7df;
  --veil: rgba(255, 253, 251, 0.86);
  --chrome: #efebe4;
  --inset: #ebe7df;
  --border-strong: rgba(41, 38, 33, 0.52);
  --accent: #0d7b6b;
  --accent-2: #6dbead;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5619;
  --accent-text: #005146;
  --accent-fill: #006456;
  --perron-accent-text: #005146;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16130e;
  --panel: #241f16;
  --paper: #241f16;
  --surface: #241f16;
  --sidebar-bg: #1e1a13;
  --input-bg: #1e1a13;
  --border: rgba(233, 226, 212, .10);
  --border-light: rgba(233, 226, 212, .05);
  --text-primary: #e9e2d4;
  --text-secondary: #c4bba8;
  --text-muted: #a39b88;
  --kbd: rgba(233, 226, 212, .12);
  --chip: #3a3226;
  --veil: rgba(22, 19, 14, .78);
  --chrome: #1e1a13;
  --inset: #16130e;
  --border-strong: rgba(233, 226, 212, .15);
  --accent: #85c9ba;
  --accent-2: #1e8474;
  --accent-contrast: #16130e;
  --danger: #e37560;
  --ok: #8fbb7a;
  --accent-text: #85c9ba;
  --accent-fill: #85c9ba;
  --perron-accent-text: #85c9ba;
  --perron-danger-text: #e27b67;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-theme="dark"][data-contrast="more"] {
  --bg: #15120e;
  --panel: #1c1914;
  --paper: #23201b;
  --surface: #23201b;
  --sidebar-bg: #1c1914;
  --input-bg: #1c1914;
  --border: rgba(233, 230, 225, 0.38);
  --border-light: rgba(233, 230, 225, 0.19);
  --text-primary: #e9e6e1;
  --text-secondary: #c7c4be;
  --text-muted: #c7c4bd;
  --kbd: rgba(233, 230, 225, 0.12);
  --chip: #37342e;
  --veil: rgba(21, 18, 14, 0.8);
  --chrome: #1c1914;
  --inset: #15120e;
  --border-strong: rgba(233, 230, 225, 0.38);
  --accent: #83c7b8;
  --accent-2: #4c877b;
  --accent-contrast: #15120e;
  --danger: #ffb1a0;
  --ok: #97d390;
  --accent-text: #98dccd;
  --accent-fill: #83c7b8;
  --perron-accent-text: #98dccd;
  --perron-danger-text: #ffb1a0;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="laiton"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #f7f3ec;
  --panel: #fffdf9;
  --paper: #fffdf9;
  --surface: #fffdf9;
  --sidebar-bg: #f7f3ec;
  --input-bg: #fffdf9;
  --border: rgba(46, 42, 36, .12);
  --border-light: rgba(46, 42, 36, .06);
  --text-primary: #2e2a24;
  --text-secondary: #5b544a;
  --text-muted: #6b655a;
  --kbd: rgba(46, 42, 36, .08);
  --chip: #efe9dd;
  --veil: rgba(255, 253, 249, .85);
  --chrome: #f2ece2;
  --inset: #f0e9dd;
  --border-strong: rgba(46, 42, 36, .19);
  --accent: #1e8474;
  --accent-2: #85c9ba;
  --accent-contrast: #ffffff;
  --danger: #b8432f;
  --ok: #4a7c48;
  --accent-text: #17695c;
  --accent-fill: #1e8474;
  --perron-accent-text: #17695c;
  --perron-danger-text: #b3412e;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="laiton"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #f6f2eb;
  --panel: #fffdfb;
  --paper: #fffdfb;
  --surface: #fffdfb;
  --sidebar-bg: #f6f2eb;
  --input-bg: #fffdfb;
  --border: rgba(41, 38, 33, 0.52);
  --border-light: rgba(41, 38, 33, 0.26);
  --text-primary: #292621;
  --text-secondary: #4d4a45;
  --text-muted: #4e4a45;
  --kbd: rgba(41, 38, 33, 0.08);
  --chip: #ebe7df;
  --veil: rgba(255, 253, 251, 0.86);
  --chrome: #efebe4;
  --inset: #ebe7df;
  --border-strong: rgba(41, 38, 33, 0.52);
  --accent: #0d7b6b;
  --accent-2: #6dbead;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5619;
  --accent-text: #005146;
  --accent-fill: #006456;
  --perron-accent-text: #005146;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="laiton"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #16130e;
  --panel: #241f16;
  --paper: #241f16;
  --surface: #241f16;
  --sidebar-bg: #1e1a13;
  --input-bg: #1e1a13;
  --border: rgba(233, 226, 212, .10);
  --border-light: rgba(233, 226, 212, .05);
  --text-primary: #e9e2d4;
  --text-secondary: #c4bba8;
  --text-muted: #a39b88;
  --kbd: rgba(233, 226, 212, .12);
  --chip: #3a3226;
  --veil: rgba(22, 19, 14, .78);
  --chrome: #1e1a13;
  --inset: #16130e;
  --border-strong: rgba(233, 226, 212, .15);
  --accent: #85c9ba;
  --accent-2: #1e8474;
  --accent-contrast: #16130e;
  --danger: #e37560;
  --ok: #8fbb7a;
  --accent-text: #85c9ba;
  --accent-fill: #85c9ba;
  --perron-accent-text: #85c9ba;
  --perron-danger-text: #e27b67;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="laiton"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #15120e;
  --panel: #1c1914;
  --paper: #23201b;
  --surface: #23201b;
  --sidebar-bg: #1c1914;
  --input-bg: #1c1914;
  --border: rgba(233, 230, 225, 0.38);
  --border-light: rgba(233, 230, 225, 0.19);
  --text-primary: #e9e6e1;
  --text-secondary: #c7c4be;
  --text-muted: #c7c4bd;
  --kbd: rgba(233, 230, 225, 0.12);
  --chip: #37342e;
  --veil: rgba(21, 18, 14, 0.8);
  --chrome: #1c1914;
  --inset: #15120e;
  --border-strong: rgba(233, 230, 225, 0.38);
  --accent: #83c7b8;
  --accent-2: #4c877b;
  --accent-contrast: #15120e;
  --danger: #ffb1a0;
  --ok: #97d390;
  --accent-text: #98dccd;
  --accent-fill: #83c7b8;
  --perron-accent-text: #98dccd;
  --perron-danger-text: #ffb1a0;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="terre-cuite"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #f6f1ee;
  --panel: #ffffff;
  --paper: #ffffff;
  --surface: #ffffff;
  --sidebar-bg: #f6f1ee;
  --input-bg: #ffffff;
  --border: rgba(58, 46, 41, .12);
  --border-light: rgba(58, 46, 41, .06);
  --text-primary: #3a2e29;
  --text-secondary: #5f5049;
  --text-muted: #6f6460;
  --kbd: rgba(58, 46, 41, .08);
  --chip: #eee4dd;
  --veil: rgba(255, 255, 255, .88);
  --chrome: #f1eae5;
  --inset: #f0e8e2;
  --border-strong: rgba(58, 46, 41, .19);
  --accent: #c05b3c;
  --accent-2: #e28563;
  --accent-contrast: #ffffff;
  --danger: #b8432f;
  --ok: #4a7c48;
  --accent-text: #9e4428;
  --accent-fill: #b5532f;
  --perron-accent-text: #9e4428;
  --perron-danger-text: #b3412e;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="terre-cuite"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #f6f1ee;
  --panel: #fffdfc;
  --paper: #fffdfc;
  --surface: #fffdfc;
  --sidebar-bg: #f6f1ee;
  --input-bg: #fffdfc;
  --border: rgba(41, 38, 36, 0.52);
  --border-light: rgba(41, 38, 36, 0.26);
  --text-primary: #292624;
  --text-secondary: #4d4a48;
  --text-muted: #4e4947;
  --kbd: rgba(41, 38, 36, 0.08);
  --chip: #ebe6e3;
  --veil: rgba(255, 253, 252, 0.86);
  --chrome: #f0ebe7;
  --inset: #ebe6e3;
  --border-strong: rgba(41, 38, 36, 0.52);
  --accent: #b24f2f;
  --accent-2: #f89779;
  --accent-contrast: #ffffff;
  --danger: #8f1f0d;
  --ok: #1d5518;
  --accent-text: #852500;
  --accent-fill: #9a3817;
  --perron-accent-text: #852500;
  --perron-danger-text: #8f1f0d;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="terre-cuite"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #171210;
  --panel: #251d19;
  --paper: #251d19;
  --surface: #251d19;
  --sidebar-bg: #1e1815;
  --input-bg: #1e1815;
  --border: rgba(236, 223, 216, .10);
  --border-light: rgba(236, 223, 216, .05);
  --text-primary: #ecdfd8;
  --text-secondary: #c8b8ae;
  --text-muted: #a79991;
  --kbd: rgba(236, 223, 216, .12);
  --chip: #3d312a;
  --veil: rgba(23, 18, 16, .8);
  --chrome: #1e1815;
  --inset: #171210;
  --border-strong: rgba(236, 223, 216, .15);
  --accent: #e28563;
  --accent-2: #c05b3c;
  --accent-contrast: #171210;
  --danger: #e0705a;
  --ok: #8fbb7a;
  --accent-text: #e28563;
  --accent-fill: #e28563;
  --perron-accent-text: #e28563;
  --perron-danger-text: #e27a66;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="terre-cuite"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #161210;
  --panel: #1d1816;
  --paper: #241f1d;
  --surface: #241f1d;
  --sidebar-bg: #1d1816;
  --input-bg: #1d1816;
  --border: rgba(234, 229, 227, 0.38);
  --border-light: rgba(234, 229, 227, 0.19);
  --text-primary: #eae5e3;
  --text-secondary: #c9c3c0;
  --text-muted: #c9c3c0;
  --kbd: rgba(234, 229, 227, 0.12);
  --chip: #393330;
  --veil: rgba(22, 18, 16, 0.8);
  --chrome: #1d1816;
  --inset: #161210;
  --border-strong: rgba(234, 229, 227, 0.38);
  --accent: #fa9b78;
  --accent-2: #b16244;
  --accent-contrast: #161210;
  --danger: #ffb1a0;
  --ok: #97d390;
  --accent-text: #ffbea5;
  --accent-fill: #fa9b78;
  --perron-accent-text: #ffbea5;
  --perron-danger-text: #ffb1a0;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="sauge"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #eff5eb;
  --panel: #fcfefb;
  --paper: #fcfefb;
  --surface: #fcfefb;
  --sidebar-bg: #eff5eb;
  --input-bg: #fcfefb;
  --border: rgba(36, 40, 34, 0.12);
  --border-light: rgba(36, 40, 34, 0.06);
  --text-primary: #242822;
  --text-secondary: #494d47;
  --text-muted: #636861;
  --kbd: rgba(36, 40, 34, 0.08);
  --chip: #e3eae0;
  --veil: rgba(252, 254, 251, 0.86);
  --chrome: #e8eee5;
  --inset: #e3eae0;
  --border-strong: rgba(36, 40, 34, 0.19);
  --accent: #51865c;
  --accent-2: #98c9a1;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3c7336;
  --accent-text: #3c7049;
  --accent-fill: #4c8058;
  --perron-accent-text: #3c7049;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="sauge"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #eff5eb;
  --panel: #fcfefb;
  --paper: #fcfefb;
  --surface: #fcfefb;
  --sidebar-bg: #eff5eb;
  --input-bg: #fcfefb;
  --border: rgba(36, 40, 34, 0.52);
  --border-light: rgba(36, 40, 34, 0.26);
  --text-primary: #242822;
  --text-secondary: #484c46;
  --text-muted: #484c45;
  --kbd: rgba(36, 40, 34, 0.08);
  --chip: #e3eae0;
  --veil: rgba(252, 254, 251, 0.86);
  --chrome: #e8eee5;
  --inset: #e3eae0;
  --border-strong: rgba(36, 40, 34, 0.52);
  --accent: #457951;
  --accent-2: #8bbc94;
  --accent-contrast: #ffffff;
  --danger: #8f1f0d;
  --ok: #1e5619;
  --accent-text: #1d522c;
  --accent-fill: #2e623b;
  --perron-accent-text: #1d522c;
  --perron-danger-text: #8f1f0d;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="sauge"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #10140e;
  --panel: #171b15;
  --paper: #1e221c;
  --surface: #1e221c;
  --sidebar-bg: #171b15;
  --input-bg: #171b15;
  --border: rgba(228, 232, 226, 0.12);
  --border-light: rgba(228, 232, 226, 0.06);
  --text-primary: #e4e8e2;
  --text-secondary: #c0c5bd;
  --text-muted: #9aa098;
  --kbd: rgba(228, 232, 226, 0.12);
  --chip: #31362f;
  --veil: rgba(16, 20, 14, 0.8);
  --chrome: #171b15;
  --inset: #10140e;
  --border-strong: rgba(228, 232, 226, 0.15);
  --accent: #90c79b;
  --accent-2: #588762;
  --accent-contrast: #10140e;
  --danger: #ed7f6a;
  --ok: #85c07e;
  --accent-text: #90c79b;
  --accent-fill: #90c79b;
  --perron-accent-text: #90c79b;
  --perron-danger-text: #ed7f6a;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="sauge"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #10140e;
  --panel: #171b15;
  --paper: #1e221c;
  --surface: #1e221c;
  --sidebar-bg: #171b15;
  --input-bg: #171b15;
  --border: rgba(228, 232, 226, 0.38);
  --border-light: rgba(228, 232, 226, 0.19);
  --text-primary: #e4e8e2;
  --text-secondary: #c1c6be;
  --text-muted: #c1c6be;
  --kbd: rgba(228, 232, 226, 0.12);
  --chip: #31362f;
  --veil: rgba(16, 20, 14, 0.8);
  --chrome: #171b15;
  --inset: #10140e;
  --border-strong: rgba(228, 232, 226, 0.38);
  --accent: #90c79b;
  --accent-2: #588762;
  --accent-contrast: #10140e;
  --danger: #ffb2a2;
  --ok: #98d491;
  --accent-text: #a6ddb0;
  --accent-fill: #90c79b;
  --perron-accent-text: #a6ddb0;
  --perron-danger-text: #ffb2a2;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="lagune"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #eaf4f9;
  --panel: #fbfeff;
  --paper: #fbfeff;
  --surface: #fbfeff;
  --sidebar-bg: #eaf4f9;
  --input-bg: #fbfeff;
  --border: rgba(33, 40, 43, 0.12);
  --border-light: rgba(33, 40, 43, 0.06);
  --text-primary: #21282b;
  --text-secondary: #454c50;
  --text-muted: #60686c;
  --kbd: rgba(33, 40, 43, 0.08);
  --chip: #dee9ee;
  --veil: rgba(251, 254, 255, 0.86);
  --chrome: #e3eef2;
  --inset: #dee9ee;
  --border-strong: rgba(33, 40, 43, 0.19);
  --accent: #04869c;
  --accent-2: #71cadf;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3b7336;
  --accent-text: #006e82;
  --accent-fill: #008096;
  --perron-accent-text: #006e82;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="lagune"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #eaf4f9;
  --panel: #fbfeff;
  --paper: #fbfeff;
  --surface: #fbfeff;
  --sidebar-bg: #eaf4f9;
  --input-bg: #fbfeff;
  --border: rgba(33, 40, 43, 0.52);
  --border-light: rgba(33, 40, 43, 0.26);
  --text-primary: #21282b;
  --text-secondary: #444c4f;
  --text-muted: #444c4f;
  --kbd: rgba(33, 40, 43, 0.08);
  --chip: #dee9ee;
  --veil: rgba(251, 254, 255, 0.86);
  --chrome: #e3eef2;
  --inset: #dee9ee;
  --border-strong: rgba(33, 40, 43, 0.52);
  --accent: #00788d;
  --accent-2: #64bcd1;
  --accent-contrast: #ffffff;
  --danger: #8f1f0d;
  --ok: #1d5518;
  --accent-text: #004e5d;
  --accent-fill: #006173;
  --perron-accent-text: #004e5d;
  --perron-danger-text: #8f1f0d;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="lagune"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #0d1416;
  --panel: #141b1d;
  --paper: #1b2225;
  --surface: #1b2225;
  --sidebar-bg: #141b1d;
  --input-bg: #141b1d;
  --border: rgba(225, 231, 234, 0.12);
  --border-light: rgba(225, 231, 234, 0.06);
  --text-primary: #e1e7ea;
  --text-secondary: #bcc5c8;
  --text-muted: #97a0a3;
  --kbd: rgba(225, 231, 234, 0.12);
  --chip: #2e3639;
  --veil: rgba(13, 20, 22, 0.8);
  --chrome: #141b1d;
  --inset: #0d1416;
  --border-strong: rgba(225, 231, 234, 0.15);
  --accent: #62c8df;
  --accent-2: #29889c;
  --accent-contrast: #0d1416;
  --danger: #ed7f6a;
  --ok: #85c07e;
  --accent-text: #62c8df;
  --accent-fill: #62c8df;
  --perron-accent-text: #62c8df;
  --perron-danger-text: #ed7f6a;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="lagune"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #0d1416;
  --panel: #141b1d;
  --paper: #1b2225;
  --surface: #1b2225;
  --sidebar-bg: #141b1d;
  --input-bg: #141b1d;
  --border: rgba(225, 231, 234, 0.38);
  --border-light: rgba(225, 231, 234, 0.19);
  --text-primary: #e1e7ea;
  --text-secondary: #bec6c9;
  --text-muted: #bdc6ca;
  --kbd: rgba(225, 231, 234, 0.12);
  --chip: #2e3639;
  --veil: rgba(13, 20, 22, 0.8);
  --chrome: #141b1d;
  --inset: #0d1416;
  --border-strong: rgba(225, 231, 234, 0.38);
  --accent: #62c8df;
  --accent-2: #29889c;
  --accent-contrast: #0d1416;
  --danger: #ffb2a2;
  --ok: #98d491;
  --accent-text: #79def5;
  --accent-fill: #62c8df;
  --perron-accent-text: #79def5;
  --perron-danger-text: #ffb2a2;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="ardoise"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #eef3f9;
  --panel: #fcfdff;
  --paper: #fcfdff;
  --surface: #fcfdff;
  --sidebar-bg: #eef3f9;
  --input-bg: #fcfdff;
  --border: rgba(35, 39, 43, 0.12);
  --border-light: rgba(35, 39, 43, 0.06);
  --text-primary: #23272b;
  --text-secondary: #484c51;
  --text-muted: #63676d;
  --kbd: rgba(35, 39, 43, 0.08);
  --chip: #e2e8ef;
  --veil: rgba(252, 253, 255, 0.86);
  --chrome: #e7ecf3;
  --inset: #e2e8ef;
  --border-strong: rgba(35, 39, 43, 0.19);
  --accent: #4f76be;
  --accent-2: #95bbff;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3c7336;
  --accent-text: #3e63aa;
  --accent-fill: #4e74bc;
  --perron-accent-text: #3e63aa;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="ardoise"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #eef3f9;
  --panel: #fcfdff;
  --paper: #fcfdff;
  --surface: #fcfdff;
  --sidebar-bg: #eef3f9;
  --input-bg: #fcfdff;
  --border: rgba(35, 39, 43, 0.52);
  --border-light: rgba(35, 39, 43, 0.26);
  --text-primary: #23272b;
  --text-secondary: #474b50;
  --text-muted: #474b51;
  --kbd: rgba(35, 39, 43, 0.08);
  --chip: #e2e8ef;
  --veil: rgba(252, 253, 255, 0.86);
  --chrome: #e7ecf3;
  --inset: #e2e8ef;
  --border-strong: rgba(35, 39, 43, 0.52);
  --accent: #476cb4;
  --accent-2: #8bb1f6;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5619;
  --accent-text: #234589;
  --accent-fill: #32569c;
  --perron-accent-text: #234589;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="ardoise"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #101317;
  --panel: #171a1e;
  --paper: #1d2125;
  --surface: #1d2125;
  --sidebar-bg: #171a1e;
  --input-bg: #171a1e;
  --border: rgba(227, 230, 235, 0.12);
  --border-light: rgba(227, 230, 235, 0.06);
  --text-primary: #e3e6eb;
  --text-secondary: #bfc3c8;
  --text-muted: #999ea3;
  --kbd: rgba(227, 230, 235, 0.12);
  --chip: #313439;
  --veil: rgba(16, 19, 23, 0.8);
  --chrome: #171a1e;
  --inset: #101317;
  --border-strong: rgba(227, 230, 235, 0.15);
  --accent: #90b7ff;
  --accent-2: #5679ba;
  --accent-contrast: #101317;
  --danger: #ec7e69;
  --ok: #85c07e;
  --accent-text: #90b7ff;
  --accent-fill: #90b7ff;
  --perron-accent-text: #90b7ff;
  --perron-danger-text: #ec7e69;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="ardoise"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #101317;
  --panel: #171a1e;
  --paper: #1d2125;
  --surface: #1d2125;
  --sidebar-bg: #171a1e;
  --input-bg: #171a1e;
  --border: rgba(227, 230, 235, 0.38);
  --border-light: rgba(227, 230, 235, 0.19);
  --text-primary: #e3e6eb;
  --text-secondary: #c0c4c9;
  --text-muted: #bfc4c9;
  --kbd: rgba(227, 230, 235, 0.12);
  --chip: #313439;
  --veil: rgba(16, 19, 23, 0.8);
  --chrome: #171a1e;
  --inset: #101317;
  --border-strong: rgba(227, 230, 235, 0.38);
  --accent: #90b7ff;
  --accent-2: #5679ba;
  --accent-contrast: #101317;
  --danger: #ffb09f;
  --ok: #97d290;
  --accent-text: #b5d0ff;
  --accent-fill: #90b7ff;
  --perron-accent-text: #b5d0ff;
  --perron-danger-text: #ffb09f;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="prune"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #f8eff7;
  --panel: #fffcff;
  --paper: #fffcff;
  --surface: #fffcff;
  --sidebar-bg: #f8eff7;
  --input-bg: #fffcff;
  --border: rgba(42, 36, 41, 0.12);
  --border-light: rgba(42, 36, 41, 0.06);
  --text-primary: #2a2429;
  --text-secondary: #50494f;
  --text-muted: #6c646b;
  --kbd: rgba(42, 36, 41, 0.08);
  --chip: #ede4ec;
  --veil: rgba(255, 252, 255, 0.86);
  --chrome: #f2e8f0;
  --inset: #ede4ec;
  --border-strong: rgba(42, 36, 41, 0.19);
  --accent: #a25a93;
  --accent-2: #e6a0d6;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3b7235;
  --accent-text: #924b84;
  --accent-fill: #a25a93;
  --perron-accent-text: #924b84;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="prune"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #f8eff7;
  --panel: #fffcff;
  --paper: #fffcff;
  --surface: #fffcff;
  --sidebar-bg: #f8eff7;
  --input-bg: #fffcff;
  --border: rgba(42, 36, 41, 0.52);
  --border-light: rgba(42, 36, 41, 0.26);
  --text-primary: #2a2429;
  --text-secondary: #4f484e;
  --text-muted: #50484f;
  --kbd: rgba(42, 36, 41, 0.08);
  --chip: #ede4ec;
  --veil: rgba(255, 252, 255, 0.86);
  --chrome: #f2e8f0;
  --inset: #ede4ec;
  --border-strong: rgba(42, 36, 41, 0.52);
  --accent: #9b548d;
  --accent-2: #df9ad0;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5518;
  --accent-text: #712e65;
  --accent-fill: #843e77;
  --perron-accent-text: #712e65;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="prune"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #161115;
  --panel: #1d171c;
  --paper: #241e23;
  --surface: #241e23;
  --sidebar-bg: #1d171c;
  --input-bg: #1d171c;
  --border: rgba(234, 228, 233, 0.12);
  --border-light: rgba(234, 228, 233, 0.06);
  --text-primary: #eae4e9;
  --text-secondary: #c7c0c6;
  --text-muted: #a29ba1;
  --kbd: rgba(234, 228, 233, 0.12);
  --chip: #383237;
  --veil: rgba(22, 17, 21, 0.8);
  --chrome: #1d171c;
  --inset: #161115;
  --border-strong: rgba(234, 228, 233, 0.15);
  --accent: #e79ad6;
  --accent-2: #a16094;
  --accent-contrast: #161115;
  --danger: #ec7e69;
  --ok: #85c07e;
  --accent-text: #e79ad6;
  --accent-fill: #e79ad6;
  --perron-accent-text: #e79ad6;
  --perron-danger-text: #ec7e69;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="prune"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #161115;
  --panel: #1d171c;
  --paper: #241e23;
  --surface: #241e23;
  --sidebar-bg: #1d171c;
  --input-bg: #1d171c;
  --border: rgba(234, 228, 233, 0.38);
  --border-light: rgba(234, 228, 233, 0.19);
  --text-primary: #eae4e9;
  --text-secondary: #c8c2c7;
  --text-muted: #c9c1c7;
  --kbd: rgba(234, 228, 233, 0.12);
  --chip: #383237;
  --veil: rgba(22, 17, 21, 0.8);
  --chrome: #1d171c;
  --inset: #161115;
  --border-strong: rgba(234, 228, 233, 0.38);
  --accent: #e79ad6;
  --accent-2: #a16094;
  --accent-contrast: #161115;
  --danger: #ffb09f;
  --ok: #97d290;
  --accent-text: #ffb6ee;
  --accent-fill: #e79ad6;
  --perron-accent-text: #ffb6ee;
  --perron-danger-text: #ffb09f;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="ocre"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #f7f2e5;
  --panel: #fffdf9;
  --paper: #fffdf9;
  --surface: #fffdf9;
  --sidebar-bg: #f7f2e5;
  --input-bg: #fffdf9;
  --border: rgba(42, 38, 29, 0.12);
  --border-light: rgba(42, 38, 29, 0.06);
  --text-primary: #2a261d;
  --text-secondary: #4f4b42;
  --text-muted: #6b665b;
  --kbd: rgba(42, 38, 29, 0.08);
  --chip: #ede7d9;
  --veil: rgba(255, 253, 249, 0.86);
  --chrome: #f1ebde;
  --inset: #ede7d9;
  --border-strong: rgba(42, 38, 29, 0.19);
  --accent: #9b6e19;
  --accent-2: #deb36f;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3c7336;
  --accent-text: #875c00;
  --accent-fill: #996d18;
  --perron-accent-text: #875c00;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="ocre"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #f7f2e5;
  --panel: #fffdf9;
  --paper: #fffdf9;
  --surface: #fffdf9;
  --sidebar-bg: #f7f2e5;
  --input-bg: #fffdf9;
  --border: rgba(42, 38, 29, 0.52);
  --border-light: rgba(42, 38, 29, 0.26);
  --text-primary: #2a261d;
  --text-secondary: #4e4a41;
  --text-muted: #4f4a40;
  --kbd: rgba(42, 38, 29, 0.08);
  --chip: #ede7d9;
  --veil: rgba(255, 253, 249, 0.86);
  --chrome: #f1ebde;
  --inset: #ede7d9;
  --border-strong: rgba(42, 38, 29, 0.52);
  --accent: #916509;
  --accent-2: #d4aa66;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5619;
  --accent-text: #614200;
  --accent-fill: #765100;
  --perron-accent-text: #614200;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="ocre"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #16120a;
  --panel: #1c1911;
  --paper: #242017;
  --surface: #242017;
  --sidebar-bg: #1c1911;
  --input-bg: #1c1911;
  --border: rgba(233, 230, 222, 0.12);
  --border-light: rgba(233, 230, 222, 0.06);
  --text-primary: #e9e6de;
  --text-secondary: #c7c3b9;
  --text-muted: #a29e93;
  --kbd: rgba(233, 230, 222, 0.12);
  --chip: #38342a;
  --veil: rgba(22, 18, 10, 0.8);
  --chrome: #1c1911;
  --inset: #16120a;
  --border-strong: rgba(233, 230, 222, 0.15);
  --accent: #deae62;
  --accent-2: #9a722d;
  --accent-contrast: #16120a;
  --danger: #ed7e69;
  --ok: #85c07e;
  --accent-text: #deae62;
  --accent-fill: #deae62;
  --perron-accent-text: #deae62;
  --perron-danger-text: #ed7e69;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="ocre"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #16120a;
  --panel: #1c1911;
  --paper: #242017;
  --surface: #242017;
  --sidebar-bg: #1c1911;
  --input-bg: #1c1911;
  --border: rgba(233, 230, 222, 0.38);
  --border-light: rgba(233, 230, 222, 0.19);
  --text-primary: #e9e6de;
  --text-secondary: #c8c4ba;
  --text-muted: #c8c4b8;
  --kbd: rgba(233, 230, 222, 0.12);
  --chip: #38342a;
  --veil: rgba(22, 18, 10, 0.8);
  --chrome: #1c1911;
  --inset: #16120a;
  --border-strong: rgba(233, 230, 222, 0.38);
  --accent: #deae62;
  --accent-2: #9a722d;
  --accent-contrast: #16120a;
  --danger: #ffb1a0;
  --ok: #97d390;
  --accent-text: #f7c77a;
  --accent-fill: #deae62;
  --perron-accent-text: #f7c77a;
  --perron-danger-text: #ffb1a0;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance="graphite"][data-theme="light"]:not([data-contrast="more"]) {
  color-scheme: light;
  --bg: #f0f3f5;
  --panel: #fdfdfe;
  --paper: #fdfdfe;
  --surface: #fdfdfe;
  --sidebar-bg: #f0f3f5;
  --input-bg: #fdfdfe;
  --border: rgba(37, 39, 40, 0.12);
  --border-light: rgba(37, 39, 40, 0.06);
  --text-primary: #252728;
  --text-secondary: #4a4b4d;
  --text-muted: #656669;
  --kbd: rgba(37, 39, 40, 0.08);
  --chip: #e5e7ea;
  --veil: rgba(253, 253, 254, 0.86);
  --chrome: #eaecee;
  --inset: #e5e7ea;
  --border-strong: rgba(37, 39, 40, 0.19);
  --accent: #577b9f;
  --accent-2: #9cbee2;
  --accent-contrast: #ffffff;
  --danger: #ae3f2c;
  --ok: #3b7235;
  --accent-text: #45688c;
  --accent-fill: #55789d;
  --perron-accent-text: #45688c;
  --perron-danger-text: #ae3f2c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #92400e;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 2px;
}
:root[data-ambiance="graphite"][data-theme="light"][data-contrast="more"] {
  color-scheme: light;
  --bg: #f0f3f5;
  --panel: #fdfdfe;
  --paper: #fdfdfe;
  --surface: #fdfdfe;
  --sidebar-bg: #f0f3f5;
  --input-bg: #fdfdfe;
  --border: rgba(37, 39, 40, 0.52);
  --border-light: rgba(37, 39, 40, 0.26);
  --text-primary: #252728;
  --text-secondary: #494a4c;
  --text-muted: #494a4c;
  --kbd: rgba(37, 39, 40, 0.08);
  --chip: #e5e7ea;
  --veil: rgba(253, 253, 254, 0.86);
  --chrome: #eaecee;
  --inset: #e5e7ea;
  --border-strong: rgba(37, 39, 40, 0.52);
  --accent: #4d7095;
  --accent-2: #92b3d7;
  --accent-contrast: #ffffff;
  --danger: #8e1f0c;
  --ok: #1d5518;
  --accent-text: #294a6c;
  --accent-fill: #385a7d;
  --perron-accent-text: #294a6c;
  --perron-danger-text: #8e1f0c;
  --perron-attention-bg: #fde79f;
  --perron-attention-border: rgba(180, 83, 9, .45);
  --perron-attention-text: #78350f;
  --perron-attention-text-soft: #78350f;
  --perron-attention-dot: #f59e0b;
  --focus-ring-width: 3px;
}
:root[data-ambiance="graphite"][data-theme="dark"]:not([data-contrast="more"]) {
  color-scheme: dark;
  --bg: #111314;
  --panel: #181a1b;
  --paper: #1f2122;
  --surface: #1f2122;
  --sidebar-bg: #181a1b;
  --input-bg: #181a1b;
  --border: rgba(229, 230, 232, 0.12);
  --border-light: rgba(229, 230, 232, 0.06);
  --text-primary: #e5e6e8;
  --text-secondary: #c1c2c4;
  --text-muted: #9b9ea0;
  --kbd: rgba(229, 230, 232, 0.12);
  --chip: #323436;
  --veil: rgba(17, 19, 20, 0.8);
  --chrome: #181a1b;
  --inset: #111314;
  --border-strong: rgba(229, 230, 232, 0.15);
  --accent: #96bbe3;
  --accent-2: #5e7d9f;
  --accent-contrast: #111314;
  --danger: #ec7e69;
  --ok: #85c07e;
  --accent-text: #96bbe3;
  --accent-fill: #96bbe3;
  --perron-accent-text: #96bbe3;
  --perron-danger-text: #ec7e69;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 2px;
}
:root[data-ambiance="graphite"][data-theme="dark"][data-contrast="more"] {
  color-scheme: dark;
  --bg: #111314;
  --panel: #181a1b;
  --paper: #1f2122;
  --surface: #1f2122;
  --sidebar-bg: #181a1b;
  --input-bg: #181a1b;
  --border: rgba(229, 230, 232, 0.38);
  --border-light: rgba(229, 230, 232, 0.19);
  --text-primary: #e5e6e8;
  --text-secondary: #c2c4c6;
  --text-muted: #c1c4c6;
  --kbd: rgba(229, 230, 232, 0.12);
  --chip: #323436;
  --veil: rgba(17, 19, 20, 0.8);
  --chrome: #181a1b;
  --inset: #111314;
  --border-strong: rgba(229, 230, 232, 0.38);
  --accent: #96bbe3;
  --accent-2: #5e7d9f;
  --accent-contrast: #111314;
  --danger: #ffb09f;
  --ok: #97d290;
  --accent-text: #acd3fb;
  --accent-fill: #96bbe3;
  --perron-accent-text: #acd3fb;
  --perron-danger-text: #ffb09f;
  --perron-attention-bg: rgba(245, 158, 11, .18);
  --perron-attention-border: rgba(245, 158, 11, .40);
  --perron-attention-text: #fbbf24;
  --perron-attention-text-soft: #fcd34d;
  --perron-attention-dot: #fbbf24;
  --focus-ring-width: 3px;
}
:root[data-ambiance] {
  --iv-bg: var(--bg);
  --iv-surface: var(--surface);
  --iv-surface-hover: color-mix(in srgb, var(--text-primary) 6%, var(--surface));
  --iv-text: var(--text-primary);
  --iv-text-muted: var(--text-muted);
  --iv-border: var(--border);
  --iv-accent: var(--accent);
  --iv-accent-fg: var(--accent-contrast);
  --iv-kbd: var(--kbd);
  --float-surface: color-mix(in srgb, var(--surface) 94%, transparent);
  --float-muted: var(--text-muted);
  --float-accent-text: var(--accent-text);
  --float-accent-fill: var(--accent-fill);
  --float-on-accent: var(--accent-contrast);
  --float-danger: var(--danger);
  --float-danger-fill: var(--danger);
  --float-on-danger: var(--accent-contrast);
  --keycap-bg: var(--kbd);
}

/* Sélecteur d'apparence partagé (ThemePicker) : joint à dist/theme.css, donc chargé SEULEMENT quand le drapeau
   thèmes v2 est allumé. Jetons canoniques du catalogue uniquement (aucune couleur en dur). */
.iv-tp {
  display: flex; flex-direction: column; gap: 20px; max-width: 640px;
  font-family: var(--iv-font-sans, system-ui, sans-serif); color: var(--text-primary); line-height: 1.4;
}
.iv-tp *, .iv-tp *::before, .iv-tp *::after { box-sizing: border-box; }
.iv-tp-title { margin: 0; font-size: 17px; font-weight: 650; color: var(--text-primary); }
.iv-tp-sub, .iv-tp-hint, .iv-tp-save, .iv-tp-state { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.iv-tp-hint { color: var(--text-muted); }
.iv-tp-state { min-height: 1.4em; color: var(--accent-text); }
.iv-tp-block { display: flex; flex-direction: column; gap: 8px; }
.iv-tp-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.iv-tp-seg { display: inline-flex; align-self: flex-start; max-width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; padding: 2px; background: var(--inset); gap: 2px; flex-wrap: wrap; }
.iv-tp-seg-b {
  appearance: none; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; min-height: 32px;
}
.iv-tp-seg-b.is-on { background: var(--surface); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--border-strong); }

.iv-tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.iv-tp-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text-primary); font: inherit;
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px;
}
.iv-tp-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.iv-tp-preview { display: flex; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.iv-tp-half { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 8px; }
.iv-tp-bar { display: block; height: 6px; border-radius: 3px; width: 70%; }
.iv-tp-bar--accent { width: 40%; }
.iv-tp-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iv-tp-meta strong { font-size: 14px; font-weight: 650; }
.iv-tp-meta em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); }
.iv-tp-note { font-size: 11.5px; color: var(--text-muted); }
.iv-tp-tick { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-contrast); }

.iv-tp-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; min-height: 32px; }
.iv-tp-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.iv-tp-night { display: flex; flex-direction: column; gap: 6px; }
.iv-tp-select {
  align-self: flex-start; min-width: 200px; font: inherit; font-size: 14px; color: var(--text-primary); background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; min-height: 36px;
}

.iv-tp-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.iv-tp-status { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; }
.iv-tp-save.is-error { color: var(--danger); }
.iv-tp-reset {
  align-self: flex-start; margin-top: 8px; appearance: none; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--accent-text); background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 12px; min-height: 36px;
}
.iv-tp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.iv-tp button:focus-visible, .iv-tp select:focus-visible, .iv-tp input:focus-visible {
  outline: var(--focus-ring-width, 2px) solid var(--accent); outline-offset: 2px;
}
@media (pointer: coarse) {
  .iv-tp-seg-b, .iv-tp-reset, .iv-tp-select { min-height: 44px; }
  .iv-tp-switch { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .iv-tp-card, .iv-tp-seg-b { transition: border-color .12s ease, background-color .12s ease; }
}
@media (forced-colors: active) {
  .iv-tp-card.is-on, .iv-tp-seg-b.is-on { outline: 2px solid Highlight; }
}

/* Fondu bref quand un réglage venu de l'extérieur (serveur, autre onglet) change l'affichage : l'autre app relit la
   préférence serveur après son premier rendu, la bascule ne doit pas être sèche. Posé par ThemeController (data-theme-fade),
   jamais pour un clic de la personne. Désactivé si le système demande moins de mouvement. */
:root[data-theme-fade], :root[data-theme-fade] *, :root[data-theme-fade] *::before, :root[data-theme-fade] *::after {
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, fill 0.22s ease, stroke 0.22s ease, box-shadow 0.22s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme-fade], :root[data-theme-fade] *, :root[data-theme-fade] *::before, :root[data-theme-fade] *::after { transition: none !important; }
}

/* Ligne « Apparence : Sauge · Système » + « Modifier » (ThemeSummaryRow). */
.iv-tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--iv-font-sans, system-ui, sans-serif); }
.iv-tr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iv-tr-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.iv-tr-value { font-size: 14px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-tr-btn {
  appearance: none; font: inherit; font-size: 13px; cursor: pointer; flex: none; min-height: 32px;
  color: var(--accent-text); background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 12px;
}
.iv-tr-btn:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--accent); outline-offset: 2px; }

/* Étape d'accueil (ThemeOnboarding) : feuille posée sur la vraie interface, sans voile. */
.iv-ob {
  position: fixed; z-index: 2147483000; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 640px); overflow: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  font-family: var(--iv-font-sans, system-ui, sans-serif); color: var(--text-primary); line-height: 1.4;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--text-primary) 38%, transparent);
}
.iv-ob *, .iv-ob *::before, .iv-ob *::after { box-sizing: border-box; }
.iv-ob-title { margin: 0; font-size: 18px; font-weight: 650; }
.iv-ob-sub { margin: 0; font-size: 13px; color: var(--text-secondary); }
.iv-ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 340px) { .iv-ob-grid { grid-template-columns: minmax(0, 1fr); } }
.iv-ob-actions { display: flex; justify-content: flex-end; gap: 10px; }
.iv-ob-skip, .iv-ob-go { appearance: none; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; border-radius: 10px; padding: 8px 16px; }
.iv-ob-skip { color: var(--accent-text); background: transparent; border: 1px solid var(--border-strong); }
.iv-ob-go { color: var(--accent-contrast); background: var(--accent-fill); border: 1px solid transparent; font-weight: 600; }
.iv-ob button:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .iv-ob { bottom: 0; left: 0; transform: none; width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) { .iv-ob-skip, .iv-ob-go { min-height: 44px; } }

/* Sur mesure (lot L2) : ajouté à theme.css SEULEMENT quand le drapeau themes-custom est allumé (plugin Vite de @ivalice/ui/vite).
   Drapeau éteint, ce fichier n'est pas dans le build : theme.css est identique à avant. Jetons canoniques uniquement. */

/* ---- Répulsion du danger (spec §6.3) --------------------------------------------------------------------------------
   Posée par le contrôleur (data-danger-repel) quand l'accent de « Mes couleurs » est à moins de 26 degrés de la teinte du
   danger et assez saturé. On NE DÉPLACE JAMAIS la teinte du danger : le bouton passe en CONTOUR (bordure et texte danger sur
   fond neutre), toujours avec son icône et son libellé. Mail : jetons --danger-bg, --danger-text, --danger-shadow ; paquet :
   --float-danger-fill et --float-on-danger (barre de délai). Le contour est un anneau intérieur (box-shadow inset) : aucun
   décalage de mise en page. Placé après theme.css : à spécificité égale, il l'emporte. */
:root[data-danger-repel] {
  --danger-bg: transparent;
  --danger-bg-hover: color-mix(in oklab, var(--danger) 12%, var(--surface));
  --danger-text: var(--danger);
  --danger-shadow: none;
  --float-danger-fill: transparent;
  --float-on-danger: var(--danger);
}
:root[data-danger-repel] [style*="var(--danger-bg)"],
:root[data-danger-repel] .ivalice-retention-confirm-actions .is-danger,
:root[data-danger-repel] .iv-undo.tone-danger .iv-undo-now,
:root[data-danger-repel] .cal-btn-danger,
:root[data-danger-repel] .nv-trash,
:root[data-danger-repel] .m-mini.danger {
  box-shadow: inset 0 0 0 1.5px var(--danger) !important;
}
:root[data-danger-repel] .iv-undo.tone-danger .iv-undo-bar { background: var(--danger); }

/* ---- Entrée « Sur mesure » du sélecteur ---------------------------------------------------------------------------- */
.iv-tp-preview--empty { align-items: center; justify-content: center; background: var(--inset); border-style: dashed; }
.iv-tp-plus { font-size: 22px; line-height: 1; color: var(--text-muted); }
.iv-cs-edit { margin-top: 6px; }

/* ---- Volet de personnalisation -------------------------------------------------------------------------------------- */
.iv-cs {
  display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
}
.iv-cs-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iv-cs-near { margin: 0; font-size: 13px; color: var(--text-secondary); }
.iv-cs-wheelbox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.iv-cs-wheel { position: relative; touch-action: none; border-radius: 50%; cursor: crosshair; max-width: 100%; }
.iv-cs-wheel canvas { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); }
.iv-cs-dot {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4); cursor: grab;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; user-select: none; -webkit-user-select: none;
  font: 800 11px var(--iv-font-sans, system-ui, sans-serif); color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .8);
}
.iv-cs-dot--b { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 6px; }
.iv-tp .iv-cs-dot:focus-visible, .iv-cs-dot:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--text-primary); outline-offset: 3px; }
.iv-cs-legend { display: flex; gap: 14px; margin: 0; font-size: 12px; color: var(--text-secondary); }
.iv-cs-legend i { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--text-secondary); margin-right: 5px; vertical-align: -1px; }
.iv-cs-legend .iv-cs-lg-a { border-radius: 50%; }
.iv-cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-cs-chip { border: 1px solid var(--border-strong); background: transparent; }
.iv-cs-chip.is-on { background: var(--surface); box-shadow: 0 0 0 1px var(--accent); border-color: var(--accent); }
.iv-cs-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.iv-cs-row label { width: 120px; flex: none; color: var(--text-secondary); font-weight: 600; }
.iv-cs-row output { width: 48px; flex: none; text-align: right; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.iv-cs-range { flex: 1; min-width: 0; height: 10px; border-radius: 999px; appearance: none; background: var(--inset); border: 1px solid var(--border-strong); }
.iv-cs-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text-primary); cursor: pointer; }
.iv-cs-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text-primary); cursor: pointer; }
.iv-cs-range:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--accent); outline-offset: 3px; }
.iv-cs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-cs-actions .iv-tp-reset { margin-top: 0; }
.iv-cs-repel { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--text-primary); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid var(--danger); border-radius: 8px; }
@media (max-width: 420px) { .iv-cs-row label { width: 92px; } }
@media (pointer: coarse) {
  .iv-cs-chip, .iv-cs-done { min-height: 44px; }
  .iv-cs-dot { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .iv-cs-dot--b { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
}
@media (forced-colors: active) { .iv-cs-dot { forced-color-adjust: none; } }
