/* Public palettes change component paint. The existing shared canvas owns backgrounds. */
html[data-zp-public-palette="1"][data-zp-theme] body:is(.zp-ai-landing,.zp-public-page):not(.zp-auth-appearance),
html[data-zp-public-palette="1"][data-zp-theme] body:is(.zp-ai-landing,.zp-public-page):not(.zp-auth-appearance) :is(h1,h2,h3,p,a,button,input,textarea,span) {font-family:var(--zp-visual-font)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing {
    --zp-ai-bg:var(--zp-visual-background)!important;
    --zp-ai-surface:var(--zp-visual-surface)!important;
    --zp-ai-surface-2:var(--zp-visual-surface-secondary)!important;
    --zp-ai-border:var(--zp-visual-border)!important;
    --zp-ai-border-strong:var(--zp-visual-border-strong)!important;
    --zp-ai-text:var(--zp-visual-text)!important;
    --zp-ai-muted:var(--zp-visual-muted)!important;
    --zp-ai-soft:var(--zp-visual-muted)!important;
    --zp-ai-accent:var(--zp-visual-accent)!important;
    --zp-ai-accent-hover:var(--zp-visual-accent-hover)!important;
    --zp-ai-accent-contrast:var(--zp-visual-on-accent)!important;
    --zp-ai-user:var(--zp-visual-surface-secondary)!important;
    color:var(--zp-visual-text)!important;
}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is([data-landing-title],.zp-ai-message-bubble,.zp-ai-assistant-label,[data-zp-stream-text]) {color:var(--zp-visual-text)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is([data-landing-subtitle],.zp-ai-kicker,.zp-ai-disclaimer,.zp-ai-proof,.zp-ai-handoff-note) {color:var(--zp-visual-muted)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-header {background:var(--zp-visual-header)!important;border-color:var(--zp-visual-border)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-header :is(.zp-ai-brand,.zp-ai-brand-name,.zp-ai-nav-link,.zp-ai-version,.zp-ai-theme-toggle,.zp-public-lang-trigger,.zp-public-lang-name) {color:var(--zp-visual-text)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is(.zp-public-lang-trigger,.zp-public-lang-dropdown,.zp-public-lang-item,.zp-ai-composer,.zp-ai-handoff,.zp-ai-handoff input,.zp-ai-handoff textarea,.zp-ai-handoff select) {background:var(--zp-visual-surface)!important;color:var(--zp-visual-text)!important;border-color:var(--zp-visual-border)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-composer textarea {color:var(--zp-visual-text)!important;caret-color:var(--zp-visual-accent);background:transparent!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-composer textarea::placeholder {color:var(--zp-visual-muted)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is(.zp-ai-send,.zp-ai-primary-cta,.zp-ai-handoff-actions button) {background:var(--zp-visual-accent)!important;color:var(--zp-visual-on-accent)!important;border-color:var(--zp-visual-accent)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-chips button {background:var(--zp-visual-surface-secondary)!important;color:var(--zp-visual-text)!important;border-color:var(--zp-visual-border)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is(.zp-ai-analyst-link,.zp-ai-message-bubble a) {color:var(--zp-visual-accent)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing .zp-ai-message.is-user .zp-ai-message-bubble {background:var(--zp-visual-surface-secondary)!important;color:var(--zp-visual-text)!important}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-ai-landing.zp-custom-landing :is([data-landing-text-section="cover_flow_card"],[data-landing-text-section="solution_card"],[data-landing-text-section="handoff"]) :is([data-landing-title],[data-landing-subtitle]) {color:var(--zp-visual-text)!important}

html[data-zp-public-palette="1"][data-zp-theme] body.zp-public-page {
    --zp-public-surface:var(--zp-visual-surface)!important;--zp-public-soft:var(--zp-visual-surface-secondary)!important;
    --zp-public-input:var(--zp-visual-surface)!important;--zp-public-text:var(--zp-visual-text)!important;
    --zp-public-muted:var(--zp-visual-muted)!important;--zp-public-line:var(--zp-visual-border)!important;
    --zp-public-link:var(--zp-visual-accent)!important;--zp-public-button:var(--zp-visual-accent)!important;
    --zp-public-accent:var(--zp-visual-accent)!important;--zp-clean-surface:var(--zp-visual-surface)!important;
}
html[data-zp-public-palette="1"][data-zp-theme] body.zp-public-page:not(.zp-auth-appearance) .zp-btn-primary {background:var(--zp-visual-accent)!important;color:var(--zp-visual-on-accent)!important;border-color:var(--zp-visual-accent)!important}
html[data-zp-public-auth-palette="1"][data-zp-theme] body.zp-auth-appearance {
    --auth-fg:var(--zp-visual-text)!important;--auth-muted:var(--zp-visual-muted)!important;
    --auth-panel:var(--zp-visual-surface)!important;--auth-input:var(--zp-visual-surface-secondary)!important;
    --auth-border:var(--zp-visual-border-strong)!important;--auth-placeholder:var(--zp-visual-muted)!important;
    --auth-primary:var(--zp-visual-accent)!important;--auth-button-fg:var(--zp-visual-on-accent)!important;
    --auth-hero:var(--zp-visual-header)!important;--auth-hero-fg:var(--zp-visual-text)!important;
    --auth-font-family:var(--zp-visual-font)!important;
}
html[data-zp-visual-mode="ornament"][data-zp-public-palette="1"] body.zp-ai-landing {--zp-landing-custom-canvas:var(--zp-visual-background)!important;--zp-landing-custom-fallback:var(--zp-visual-background)!important}
.zp-landing-ornament {position:fixed;width:var(--ornament-width,300px);height:auto;max-width:45vw;max-height:55svh;object-fit:contain;pointer-events:none;user-select:none;z-index:0;opacity:var(--ornament-opacity,1);margin:0;filter:none}
.zp-landing-video {position:fixed;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;z-index:-1;opacity:0;transition:opacity .2s linear}
.zp-landing-video.is-ready {opacity:var(--video-opacity,.6)}
body.zp-shared-landing-page > .zp-landing-video {z-index:-1}
body.zp-ai-landing.zp-custom-landing[data-landing-background="video"] {--zp-landing-custom-canvas:var(--landing-image,none);--zp-landing-custom-fallback:var(--landing-color);--zp-landing-custom-size:cover;--zp-landing-custom-position:center top}
body.zp-shared-landing-page > .zp-landing-ornament {z-index:-1}
.zp-landing-ornament[data-position="top-left"]{top:var(--ornament-inset);left:var(--ornament-inset)}
.zp-landing-ornament[data-position="top"]{top:var(--ornament-inset);left:50%;transform:translateX(-50%)}
.zp-landing-ornament[data-position="top-right"]{top:var(--ornament-inset);right:var(--ornament-inset)}
.zp-landing-ornament[data-position="left"]{top:50%;left:var(--ornament-inset);transform:translateY(-50%)}
.zp-landing-ornament[data-position="center"]{top:50%;left:50%;transform:translate(-50%,-50%)}
.zp-landing-ornament[data-position="right"]{top:50%;right:var(--ornament-inset);transform:translateY(-50%)}
.zp-landing-ornament[data-position="bottom-left"]{bottom:var(--ornament-inset);left:var(--ornament-inset)}
.zp-landing-ornament[data-position="bottom"]{bottom:var(--ornament-inset);left:50%;transform:translateX(-50%)}
.zp-landing-ornament[data-position="bottom-right"]{bottom:var(--ornament-inset);right:var(--ornament-inset)}
html[data-zp-visual-mode="ornament"] body.zp-auth-appearance :is(.zp-login-theme-shell,.saas-login-shell,.zp-page-shell){position:relative;z-index:1}
@media(max-width:767px){.zp-landing-ornament{width:var(--ornament-mobile-width,180px);max-height:35svh}}
@media print{.zp-landing-ornament,.zp-landing-video{display:none!important}}
