body[data-brand-theme="forest"]{--brand-accent:#24786e;--brand-soft:#e9f3ef;--brand-ink:#163a3b}
body[data-brand-theme="ocean"]{--brand-accent:#2866a0;--brand-soft:#eaf2fb;--brand-ink:#193e62}
body[data-brand-theme="indigo"]{--brand-accent:#6353a0;--brand-soft:#f0edfa;--brand-ink:#3a325b}
body[data-brand-theme]{--blue:var(--brand-accent);--blue-soft:var(--brand-soft);--navy:var(--brand-ink)}
body[data-brand-theme] .button.primary{background:var(--brand-accent);border-color:var(--brand-accent);color:#fff}
body[data-brand-theme] .button.primary:hover{filter:brightness(.92)}
body[data-brand-theme] .brand-mark,body[data-brand-theme] .family-header .brand-mark{background:var(--brand-accent);color:#fff;overflow:hidden;flex-shrink:0}
body[data-brand-theme] .brand-mark:has(.brand-logo){background:transparent}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain}
body[data-brand-theme] .family-header nav .selected,body[data-brand-theme] .family-header nav a:hover{color:var(--brand-accent);border-color:var(--brand-accent)}
body[data-brand-theme] .nav-item.active,body[data-brand-theme] .nav-item:hover{background:var(--brand-soft);color:var(--brand-accent)}
body[data-brand-theme] .chat-heading .chat-avatar{background:var(--brand-soft);color:var(--brand-accent)}
.brand-settings-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:24px;align-items:start}
.brand-settings-grid .card{padding:24px;margin-bottom:20px;min-width:0}.brand-settings-grid input:not([type=checkbox]),.brand-settings-grid select{max-width:100%}.brand-settings-grid input[type=checkbox]{width:auto}.brand-settings-grid form{margin-top:16px}.brand-settings-grid label{display:block}.brand-settings-grid .helptext{font-size:12px;color:#6d7d74}.brand-settings-grid .errorlist{color:#ac4d47}.brand-preview{max-width:800px;margin:40px auto;padding:24px}.brand-preview .card{padding:30px;background:white;margin:24px 0;border:1px solid #e0e8e2;border-radius:16px}.brand-preview .brand{gap:12px}.brand-preview .brand-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:12px}.brand-settings-grid details{padding:12px 0;border-bottom:1px solid #e0e8e2}
@media(max-width:900px){.brand-settings-grid{grid-template-columns:1fr}.brand-preview{margin:12px auto}}

body[data-brand-theme] .brand>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-brand-theme] .family-header .brand{min-width:0;max-width:300px;color:var(--brand-ink)}
body[data-brand-theme] .family-contact-banner{background:var(--brand-ink)}
