/* EivoChat global platform theme. Customer website/widget branding remains separate. */
:root{
    --brand-primary:#2563eb;--brand-primary-hover:#1d4ed8;--brand-secondary:#0f172a;--brand-accent:#7c3aed;
    --brand-background:#f5f7fb;--brand-surface:#fff;--brand-text:#0f172a;--brand-muted:#64748b;--brand-border:#e2e8f0;
    --brand-success:#16a34a;--brand-warning:#d97706;--brand-danger:#dc2626;
    --brand-dark-background:#0b1220;--brand-dark-surface:#111827;--brand-dark-text:#f8fafc;--brand-dark-muted:#94a3b8;--brand-dark-border:#334155;
}
html[data-theme="dark"]{color-scheme:dark;--eivo-page-bg:var(--brand-dark-background);--eivo-surface:var(--brand-dark-surface);--eivo-text:var(--brand-dark-text);--eivo-muted:var(--brand-dark-muted);--eivo-border:var(--brand-dark-border)}
html:not([data-theme="dark"]){color-scheme:light;--eivo-page-bg:var(--brand-background);--eivo-surface:var(--brand-surface);--eivo-text:var(--brand-text);--eivo-muted:var(--brand-muted);--eivo-border:var(--brand-border)}
.eivo-theme-page{background:var(--eivo-page-bg);color:var(--eivo-text)}
.eivo-theme-surface{background:var(--eivo-surface);color:var(--eivo-text);border-color:var(--eivo-border)}
.eivo-brand-link{color:var(--brand-primary)}.eivo-brand-link:hover{color:var(--brand-primary-hover)}
.eivo-brand-button{background:var(--brand-primary);color:#fff}.eivo-brand-button:hover{background:var(--brand-primary-hover)}
.eivo-auth-header{width:min(1180px,calc(100% - 32px));min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px}
.eivo-auth-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--eivo-text);text-decoration:none}
.eivo-auth-brand-mark{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:linear-gradient(135deg,var(--brand-primary),var(--brand-accent));color:#fff;font-size:13px;font-weight:950;box-shadow:0 9px 20px color-mix(in srgb,var(--brand-primary) 25%,transparent)}
.eivo-auth-brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff}.eivo-auth-brand-copy{min-width:0}.eivo-auth-brand-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.eivo-auth-brand-copy small{display:block;margin-top:2px;color:var(--eivo-muted);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.eivo-auth-nav{display:flex;align-items:center;gap:8px}.eivo-auth-nav a{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--eivo-border);border-radius:10px;background:var(--eivo-surface);color:var(--eivo-text);text-decoration:none;font-size:9px;font-weight:850}.eivo-auth-nav a.primary{border-color:var(--brand-primary);background:var(--brand-primary);color:#fff}
.eivo-password-wrap{position:relative}.eivo-password-wrap>input{padding-right:52px!important}.eivo-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:34px;padding:0;border:0;border-radius:9px;background:color-mix(in srgb,var(--eivo-border) 45%,var(--eivo-surface));color:var(--eivo-muted);display:grid;place-items:center;cursor:pointer;z-index:3}.eivo-password-toggle:hover,.eivo-password-toggle:focus-visible{color:var(--brand-primary);background:color-mix(in srgb,var(--brand-primary) 10%,var(--eivo-surface));outline:none}.eivo-password-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.eivo-password-toggle .eye-off{display:none}.eivo-password-toggle[aria-pressed="true"] .eye{display:none}.eivo-password-toggle[aria-pressed="true"] .eye-off{display:block}
.eivo-theme-input{border-color:var(--eivo-border)!important;background:var(--eivo-surface)!important;color:var(--eivo-text)!important}.eivo-theme-input:focus{border-color:var(--brand-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary) 12%,transparent)!important}
@media(max-width:520px){.eivo-auth-header{width:calc(100% - 20px);min-height:64px}.eivo-auth-brand-copy small{display:none}.eivo-auth-nav a{padding:0 9px}.eivo-auth-nav .optional{display:none}}
