/* Shared chat palette; Meta keeps its own blue channel styling. */
html[data-crm-theme]{--crm-bg:#0b141a;--crm-panel:#202c33;--crm-surface:#111b21;--crm-input:#2a3942;--crm-text:#e9edef;--crm-muted:#aebac1;--crm-line:#35434c;--crm-accent:#8b5cf6;--crm-accent-ink:#c4b5fd;--crm-soft:#342647;color-scheme:dark}
html[data-crm-theme=light]{--crm-bg:#f0f2f5;--crm-panel:#fff;--crm-surface:#fff;--crm-input:#f7f8fa;--crm-text:#233138;--crm-muted:#667781;--crm-line:#dce1e7;--crm-accent:#7c3aed;--crm-accent-ink:#6d28d9;--crm-soft:#ede9fe;color-scheme:light}
html[data-crm-theme] body:not(.meta-page){--bg:var(--crm-bg)!important;--card:var(--crm-panel)!important;--ink:var(--crm-text)!important;--muted:var(--crm-muted)!important;--green:var(--crm-accent)!important;--line:var(--crm-line)!important;--settings-bg:var(--crm-bg)!important;--settings-panel:var(--crm-panel)!important;--settings-input:var(--crm-input)!important;--settings-text:var(--crm-text)!important;--settings-muted:var(--crm-muted)!important;--settings-line:var(--crm-line)!important;--settings-accent:var(--crm-accent)!important;--studio-bg:var(--crm-bg)!important;--studio-panel:var(--crm-panel)!important;--studio-input:var(--crm-input)!important;--studio-ink:var(--crm-text)!important;--studio-muted:var(--crm-muted)!important;--studio-line:var(--crm-line)!important;--studio-soft:var(--crm-soft)!important;--studio-accent:var(--crm-accent-ink)!important;--studio-primary:var(--crm-accent)!important;--ab-bg:var(--crm-bg)!important;--ab-panel:var(--crm-panel)!important;--ab-ink:var(--crm-text)!important;--ab-muted:var(--crm-muted)!important;--ab-line:var(--crm-line)!important;--ab-soft:var(--crm-soft)!important;--ab-accent:var(--crm-accent-ink)!important;--leopard-green:var(--crm-accent)!important;--leopard-ink:var(--crm-accent-ink)!important;--leopard-soft:var(--crm-soft)!important;background:var(--crm-bg)!important;color:var(--crm-text);color-scheme:inherit}
html[data-crm-theme] .dashboard-page,html[data-crm-theme] .dashboard-wrap{--dash-card:var(--crm-panel)!important;--dash-ink:var(--crm-text)!important;--dash-muted:var(--crm-muted)!important;--dash-line:var(--crm-line)!important;--dash-soft:var(--crm-soft)!important;--dash-purple:var(--crm-accent-ink)!important}
html[data-crm-theme] .settings-topbar,html[data-crm-theme] .ab-topbar,html[data-crm-theme] .dash-topbar,html[data-crm-theme] .page-automations>header,html[data-crm-theme] .page-settings>header,html[data-crm-theme] body>header{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;min-height:68px;height:auto;gap:16px;background:var(--crm-panel)!important;border-bottom:1px solid var(--crm-line);color:var(--crm-text);padding:12px max(20px,calc((100% - 1180px)/2))}
html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header,body>header)>a{display:inline-flex;width:auto;flex:0 0 auto;align-items:center}
html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header,body>header) nav{display:flex;flex:0 1 auto;width:auto;min-width:0;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;overflow:visible}
html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header,body>header) :is(nav a,nav button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;gap:6px;padding:8px 10px;background:transparent;color:var(--crm-text);border-radius:9px;font-size:13px;white-space:nowrap}
html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header,body>header) :is(nav a.active,nav a:hover,nav button:hover){background:var(--crm-soft);color:var(--crm-accent-ink)}
html[data-crm-theme] .dash-open-chat,html[data-crm-theme] .hub-dialog .primary,html[data-crm-theme] .ab-primary{background:var(--crm-accent)!important;color:#fff}
html[data-crm-theme] .crm-health-panel{background:var(--crm-panel)!important;border-color:var(--crm-line)!important;color:var(--crm-text)!important}
html[data-crm-theme] .settings-icon:not(.is-meta){color:var(--crm-accent-ink);background:var(--crm-soft)}
html[data-crm-theme] .page-automations .flow-status:not(.failed):not(.review):not(.completed){background:var(--crm-soft);color:var(--crm-text)}
html[data-crm-theme] .login-card{background:var(--crm-panel);color:var(--crm-text);border-color:var(--crm-line)}html[data-crm-theme] .login-card input{background:var(--crm-input);color:var(--crm-text);border-color:var(--crm-line)}
html[data-crm-theme] .crm-brand-logo{border-color:var(--crm-line)}
@media(max-width:760px){html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header){padding:10px 14px;min-height:60px;gap:10px}html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header) nav{flex:1 1 auto;gap:3px}html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header) :is(nav a,nav button){padding:7px 8px;font-size:12px;min-height:38px}html[data-crm-theme] :is(.settings-topbar,.ab-topbar,.dash-topbar,.page-automations>header,.page-settings>header) img{width:36px;height:36px;object-fit:cover}.settings-connections{gap:10px}.settings-connection{padding:12px;gap:10px}.settings-connection>div{min-width:0;flex:1}.settings-connection strong,.settings-connection small{overflow-wrap:anywhere}.settings-connection .settings-badge{margin-left:auto}.settings-nav{scrollbar-width:thin}.settings-shell,.ab-container,.dashboard-wrap{min-width:0}.settings-form-grid>*{min-width:0}.settings-panel :is(input,select,textarea){font-size:16px}.settings-page .settings-heading h1{font-size:28px}.settings-details{gap:8px}.settings-topbar nav button{width:38px;padding:0}.page-automations .actions{flex-wrap:wrap}.page-automations .auto-rule-main{min-width:0}}
