html[data-cm-theme]{--ink:#172b39;--muted:#637380;--brand:#12675e;--button:#12675e;--button-text:#fff;--line:#dce5e5;--paper:#fff;--bg:#f3f6f5;--soft:#edf4f0;--input:#fff;--active:#e2f1e9;--hero-start:#e0eee7;--hero-end:#eef6f2;--good-bg:#ebf6ef;--good-text:#205e47;--bad-bg:#fff2f2;--bad-text:#9e3545;color-scheme:light}
html[data-cm-theme=dark]{--ink:#e1ece7;--muted:#a0b8af;--brand:#80d9ba;--button:#75cdb0;--button-text:#102c24;--line:#334d43;--paper:#1b2d25;--bg:#111e18;--soft:#22382e;--input:#15271f;--active:#294a3b;--hero-start:#213f31;--hero-end:#1b3026;--good-bg:#203e31;--good-text:#a2e0bd;--bad-bg:#43282c;--bad-text:#ffc2ca;color-scheme:dark}
html[data-cm-theme=dark] .cm-brand img{background:#fff;border-radius:9px;padding:4px}
html[data-cm-theme] body{background:var(--bg);color:var(--ink)}
html[data-cm-theme] .cm-header,html[data-cm-theme] .cm-card,html[data-cm-theme] .cm-pills span{background:var(--paper)}
html[data-cm-theme] .cm-secondary{background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-cm-theme] button,html[data-cm-theme] .cm-button{background:var(--button);border-color:var(--button);color:var(--button-text)}
html[data-cm-theme] .cm-secondary,html[data-cm-theme] #cm-theme-toggle{background:var(--soft);border-color:var(--line);color:var(--ink)}
#cm-theme-toggle{font-size:12px;white-space:nowrap;margin-left:auto}
html[data-cm-theme] input,html[data-cm-theme] select,html[data-cm-theme] textarea{background:var(--input);border-color:var(--line);color:var(--ink);accent-color:var(--button)}
html[data-cm-theme] input::placeholder,html[data-cm-theme] textarea::placeholder{color:var(--muted);opacity:1}
html[data-cm-theme] .cm-header nav a[aria-current],html[data-cm-theme] .cm-list-nav a[aria-current]{background:var(--active);color:var(--brand)}
html[data-cm-theme] .cm-hero{background:linear-gradient(115deg,var(--hero-start),var(--hero-end));border-color:var(--line)}
html[data-cm-theme] .cm-import,html[data-cm-theme] th{background:var(--soft)}
html[data-cm-theme] .cm-error{background:var(--bad-bg);color:var(--bad-text);border-color:var(--bad-text)}
html[data-cm-theme] .cm-notice{background:var(--good-bg);color:var(--good-text);border-color:var(--line)}
html[data-cm-theme] .emailcampaigns{background:var(--paper);color:var(--ink);border:1px solid var(--line);font-family:inherit}
html[data-cm-theme] .partner-module{--pm-bg:var(--paper);--pm-soft:var(--soft);--pm-border:var(--line);--pm-text:var(--ink);--pm-muted:var(--muted);--pm-accent:var(--brand);--pm-hover:var(--active);--pm-input:var(--input);--pm-secondary:var(--soft);--pm-success-bg:var(--good-bg);--pm-success-text:var(--good-text);--pm-error-bg:var(--bad-bg);--pm-error-text:var(--bad-text);width:100%;font-family:inherit}
html[data-cm-theme] .emailcampaigns h1,html[data-cm-theme] .emailcampaigns h2,html[data-cm-theme] .emailcampaigns h3{color:var(--ink)}
html[data-cm-theme] .emailcampaigns p,html[data-cm-theme] .emailcampaigns .ec-help{color:var(--muted)}
html[data-cm-theme] .emailcampaigns a,html[data-cm-theme] .emailcampaigns a:link,html[data-cm-theme] .emailcampaigns a:visited,html[data-cm-theme] .emailcampaigns #ec-files .ec-file a{color:var(--brand)}
html[data-cm-theme] .emailcampaigns button,html[data-cm-theme] .emailcampaigns .ec-upload{background:var(--button);border-color:var(--button);color:var(--button-text);border-radius:8px}
html[data-cm-theme] .emailcampaigns button:hover,html[data-cm-theme] .emailcampaigns .ec-upload:hover{background:var(--button);border-color:var(--button);filter:brightness(.92)}
html[data-cm-theme] .emailcampaigns .ec-secondary{background:var(--soft);border-color:var(--line);color:var(--brand)}
html[data-cm-theme] .emailcampaigns .ec-secondary:hover{background:var(--active);border-color:var(--brand)}
html[data-cm-theme] .emailcampaigns input:not([type=radio]):not([type=checkbox]):not([type=file]),html[data-cm-theme] .emailcampaigns select,html[data-cm-theme] .emailcampaigns textarea{background:var(--input);border-color:var(--line);color:var(--ink)}
html[data-cm-theme] .emailcampaigns input[readonly]{background:var(--soft);color:var(--muted)}
html[data-cm-theme] .emailcampaigns .ec-layout>aside,html[data-cm-theme] .emailcampaigns .ec-layout>section{background:var(--paper)!important;border-color:var(--line)}
html[data-cm-theme] .emailcampaigns #ec-drafts button,html[data-cm-theme] .emailcampaigns #es-list button{background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-cm-theme] .emailcampaigns #ec-drafts button.ec-active,html[data-cm-theme] .emailcampaigns #ec-drafts button:hover,html[data-cm-theme] .emailcampaigns #es-list button.es-active,html[data-cm-theme] .emailcampaigns #es-list button:hover{background:var(--active);color:var(--brand);border-color:var(--brand)}
html[data-cm-theme] .emailcampaigns #ec-drafts small{color:var(--muted)}
html[data-cm-theme] .emailcampaigns th{background:var(--soft);color:var(--muted)}
html[data-cm-theme] .emailcampaigns td,html[data-cm-theme] .emailcampaigns th,html[data-cm-theme] .emailcampaigns .ec-file{border-color:var(--line)}
html[data-cm-theme] .emailcampaigns #ec-confirm{background:var(--active);border-color:var(--line)}
html[data-cm-theme] .emailcampaigns #ec-message{background:var(--good-bg);color:var(--good-text)}
html[data-cm-theme] .emailcampaigns #ec-message.ec-error{background:var(--bad-bg);color:var(--bad-text)}
html[data-cm-theme] .emailcampaigns progress{accent-color:var(--button)}
html[data-cm-theme] .cke{border-color:var(--line);box-shadow:none;border-radius:8px;overflow:hidden}
html[data-cm-theme] .cke_top,html[data-cm-theme] .cke_bottom{background:var(--soft);border-color:var(--line)}
html[data-cm-theme] .cke_toolgroup,html[data-cm-theme] .cke_combo_button{background:var(--paper);border-color:var(--line);box-shadow:none}
html[data-cm-theme] .cke_button_label,html[data-cm-theme] .cke_combo_text,html[data-cm-theme] .cke_path_item{color:var(--ink);text-shadow:none}
html[data-cm-theme] .cke_combo_arrow,html[data-cm-theme] .cke_button_arrow{border-top-color:var(--muted)}
html[data-cm-theme=dark] .cke_button_icon{filter:brightness(0) invert(.85)}
html[data-cm-theme] .cke_button_on,html[data-cm-theme] a.cke_button:hover{background:var(--active);border-color:var(--line)}
html[data-cm-theme] .cm-user-form{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.cm-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;background:var(--soft);color:var(--muted)}.cm-badge-active{background:var(--active);color:var(--brand)}
@media(max-width:650px){#cm-theme-toggle{padding:8px 10px}.cm-header{gap:10px}.cm-header .cm-account{margin-left:0}}
