:root {
  --theme-light-bg: #F8F6F1;
  --theme-light-surface: #FFFFFF;
  --theme-light-surface-alt: #F0F3F8;
  --theme-light-text: #202D44;
  --theme-light-text-dim: #4F5D72;
  --theme-light-text-mute: #606C7E;
  --theme-light-brand: #36569B;
  --theme-light-brand-hover: #243F7A;
  --theme-light-on-brand: #FFFFFF;
  --theme-light-brand-soft: #E8EEF9;
  --theme-light-border: #CED5E0;
  --theme-light-control-border: #7A8495;
  --theme-light-action: #A34F32;
  --theme-light-action-hover: #843C23;
  --theme-light-on-action: #FFFFFF;
  --theme-light-warm-accent: #975031;
  --theme-light-warm-soft: #FAEBDD;
  --theme-light-footer-bg: #1C2941;
  --theme-light-footer-text: #F7F0E6;
  --theme-light-footer-link: #EFBE98;
  --theme-light-footer-muted: #C3C9D4;
  --theme-light-danger: #A72D3E;
  --theme-light-warning: #805619;
  --theme-dark-bg: #151B28;
  --theme-dark-surface: #1E2839;
  --theme-dark-surface-alt: #29364A;
  --theme-dark-text: #F7F0E6;
  --theme-dark-text-dim: #D5D4D9;
  --theme-dark-text-mute: #B8BDCA;
  --theme-dark-brand: #A9C4FF;
  --theme-dark-brand-hover: #C8D9FF;
  --theme-dark-on-brand: #182239;
  --theme-dark-brand-soft: #273C61;
  --theme-dark-border: #506078;
  --theme-dark-control-border: #91A0B5;
  --theme-dark-action: #EDBC91;
  --theme-dark-action-hover: #F6D2B0;
  --theme-dark-on-action: #2F241C;
  --theme-dark-warm-accent: #F2BE97;
  --theme-dark-warm-soft: #443229;
  --theme-dark-footer-bg: #101623;
  --theme-dark-footer-text: #F7F0E6;
  --theme-dark-footer-link: #EFBE98;
  --theme-dark-footer-muted: #C3C9D4;
  --theme-dark-danger: #FFB3BF;
  --theme-dark-warning: #EBC582;
  --theme-light-score-excellent-from: #6685BB;
  --theme-light-score-excellent-to: #36569B;
  --theme-light-score-strong-from: #7487B5;
  --theme-light-score-strong-to: #4B6497;
  --theme-light-score-good-from: #AE7946;
  --theme-light-score-good-to: #875128;
  --theme-light-score-fair-from: #A57A35;
  --theme-light-score-fair-to: #865C1D;
  --theme-light-score-limited-from: #B46850;
  --theme-light-score-limited-to: #923E2D;
  --theme-dark-score-excellent-from: #9EBFFB;
  --theme-dark-score-excellent-to: #CADAF7;
  --theme-dark-score-strong-from: #91A5D6;
  --theme-dark-score-strong-to: #BBCDF1;
  --theme-dark-score-good-from: #DAAB7C;
  --theme-dark-score-good-to: #F4CEA7;
  --theme-dark-score-fair-from: #D0A95F;
  --theme-dark-score-fair-to: #F0CE8A;
  --theme-dark-score-limited-from: #D9947C;
  --theme-dark-score-limited-to: #EDB5A4;
  --theme-contrast-surface: #23334F;
  --theme-contrast-alt: #2C3E5B;
  --theme-shadow: 0 1rem 2.5rem rgb(24 35 56 / .18);
  --theme-overlay: rgb(13 20 34 / .94);
  --bg: var(--theme-light-bg);
  --surface: var(--theme-light-surface);
  --surface-alt: var(--theme-light-surface-alt);
  --text: var(--theme-light-text);
  --text-dim: var(--theme-light-text-dim);
  --text-mute: var(--theme-light-text-mute);
  --brand: var(--theme-light-brand);
  --brand-hover: var(--theme-light-brand-hover);
  --on-brand: var(--theme-light-on-brand);
  --brand-soft: var(--theme-light-brand-soft);
  --border: var(--theme-light-border);
  --control-border: var(--theme-light-control-border);
  --action: var(--theme-light-action);
  --action-hover: var(--theme-light-action-hover);
  --on-action: var(--theme-light-on-action);
  --warm-accent: var(--theme-light-warm-accent);
  --warm-soft: var(--theme-light-warm-soft);
  --footer-bg: var(--theme-light-footer-bg);
  --footer-text: var(--theme-light-footer-text);
  --footer-link: var(--theme-light-footer-link);
  --footer-muted: var(--theme-light-footer-muted);
  --danger: var(--theme-light-danger);
  --warning: var(--theme-light-warning);
  --identity-dark: var(--theme-light-footer-bg);
  --identity-light: var(--theme-light-surface);
  --shadow-popover: var(--theme-shadow);
  --overlay-bg: var(--theme-overlay);
  --overlay-text: var(--theme-dark-text);
  --overlay-button: var(--theme-dark-surface-alt);
  --source-paper-link: var(--theme-light-brand);
  --illustration-mat: var(--surface-alt);
  --editorial-contrast-bg: var(--theme-light-footer-bg);
  --editorial-contrast-surface: var(--theme-contrast-surface);
  --editorial-contrast-surface-alt: var(--theme-contrast-alt);
  --editorial-contrast-text: var(--theme-dark-text);
  --editorial-contrast-text-dim: var(--theme-dark-text-dim);
  --editorial-contrast-text-mute: var(--theme-dark-text-mute);
  --editorial-contrast-accent: var(--theme-dark-action);
  --editorial-contrast-accent-hover: var(--theme-dark-action-hover);
  --editorial-contrast-on-accent: var(--theme-dark-on-action);
  --editorial-contrast-accent-soft: var(--theme-dark-warm-soft);
  --editorial-contrast-border: var(--theme-dark-border);
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: var(--theme-dark-bg);
  --surface: var(--theme-dark-surface);
  --surface-alt: var(--theme-dark-surface-alt);
  --text: var(--theme-dark-text);
  --text-dim: var(--theme-dark-text-dim);
  --text-mute: var(--theme-dark-text-mute);
  --brand: var(--theme-dark-brand);
  --brand-hover: var(--theme-dark-brand-hover);
  --on-brand: var(--theme-dark-on-brand);
  --brand-soft: var(--theme-dark-brand-soft);
  --border: var(--theme-dark-border);
  --control-border: var(--theme-dark-control-border);
  --action: var(--theme-dark-action);
  --action-hover: var(--theme-dark-action-hover);
  --on-action: var(--theme-dark-on-action);
  --warm-accent: var(--theme-dark-warm-accent);
  --warm-soft: var(--theme-dark-warm-soft);
  --footer-bg: var(--theme-dark-footer-bg);
  --footer-text: var(--theme-dark-footer-text);
  --footer-link: var(--theme-dark-footer-link);
  --footer-muted: var(--theme-dark-footer-muted);
  --danger: var(--theme-dark-danger);
  --warning: var(--theme-dark-warning);
  color-scheme: dark;
}
.cl-library,.cl-choice{--cl-accent:var(--action);--cl-accent-text:var(--on-action)}
.button:not(.button--quiet):not(:disabled){background:var(--action);border-color:var(--action);color:var(--on-action)}
.button:not(.button--quiet):not(:disabled):hover,.cl-button-primary:hover{background:var(--action-hover);border-color:var(--action-hover);color:var(--on-action)}
.cl-cr2-contract,.rc-pick__formula,.rgl-schedule,.rgl-small-allocation{background:var(--warm-soft)}
.rc-pick__label{color:var(--warm-accent)}
.rc-home-v2 .home-band--tint{background:var(--warm-soft);border-block-start-color:var(--warm-accent)}
.cl-editorial-rating--excellent{--rating-from:var(--theme-light-score-excellent-from);--rating-to:var(--theme-light-score-excellent-to)}
.cl-editorial-rating--strong{--rating-from:var(--theme-light-score-strong-from);--rating-to:var(--theme-light-score-strong-to)}
.cl-editorial-rating--good{--rating-from:var(--theme-light-score-good-from);--rating-to:var(--theme-light-score-good-to)}
.cl-editorial-rating--fair{--rating-from:var(--theme-light-score-fair-from);--rating-to:var(--theme-light-score-fair-to)}
.cl-editorial-rating--limited{--rating-from:var(--theme-light-score-limited-from);--rating-to:var(--theme-light-score-limited-to)}
html[data-mode="dark"] .cl-editorial-rating--excellent{--rating-from:var(--theme-dark-score-excellent-from);--rating-to:var(--theme-dark-score-excellent-to)}
html[data-mode="dark"] .cl-editorial-rating--strong{--rating-from:var(--theme-dark-score-strong-from);--rating-to:var(--theme-dark-score-strong-to)}
html[data-mode="dark"] .cl-editorial-rating--good{--rating-from:var(--theme-dark-score-good-from);--rating-to:var(--theme-dark-score-good-to)}
html[data-mode="dark"] .cl-editorial-rating--fair{--rating-from:var(--theme-dark-score-fair-from);--rating-to:var(--theme-dark-score-fair-to)}
html[data-mode="dark"] .cl-editorial-rating--limited{--rating-from:var(--theme-dark-score-limited-from);--rating-to:var(--theme-dark-score-limited-to)}
