/* PRD palette applied last; functional layout and storage contracts preserved. */
:root,html[data-theme="dark"]{--primary:#B85CE6;--primary-subtle:#B85CE61a;--accent:#B85CE6;--accent-soft:#B85CE61a}
html[data-theme="dark"]{--bg:#0B0B0D;--surface:#131316;--surface2:#1B1B20;--fg:#F4F4F5;--mut:#A1A1AA;--hair:#ffffff14}
html[data-theme="dark"] body,.app,.app>.drawer,.app>.topbar,.app>.scroll,.chat,.chat-top,.auth-gate{background:var(--bg)!important}
.app .top-pro,.app .btn-ink,.app .desktop-connect,.app .saas-button.primary,.auth-gate .btn-ink,.voice-session .voice-stop{background:var(--primary)!important;border-color:var(--primary)!important;color:#190a21!important}
.auth-gate .btn-ink:hover,.app .saas-button.primary:hover{filter:brightness(1.08)}
.auth-gate h1,.auth-visual-copy h2{font-family:var(--font)!important;letter-spacing:-.03em}
.auth-visual>img{animation:none!important}.auth-visual-copy>img{display:none!important}
img[src$="logo-plumma.svg"]{object-view-box:none!important;object-fit:contain!important;filter:none!important;mix-blend-mode:normal!important;background:transparent!important}
html[data-theme="light"] #app img[src$="logo-plumma.svg"]{filter:invert(1) hue-rotate(180deg)!important}
.owl.owl--mark,.owl.owl--char{width:26px;height:32px;overflow:visible}.chat-intro .owl{width:58px!important;height:73px!important}
.auth-gate input{accent-color:var(--primary)}

.app .chat-intro .owl--brand,.app .chat-top .owl--brand,.app .mist-fab .owl--brand{display:block!important}.app .mist-fab:before{display:none!important}

/* Authentication uses a single centered column; the brand stays inside each form. */
#authGate{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;gap:0!important;padding:32px 24px!important;min-height:100dvh;overflow-y:auto;background:var(--bg)!important;background-image:none!important}
#authGate::before{display:none!important}
#authGate>.welcome-brand{display:none!important}
#authGate>:is(.auth-card,.auth-entry,.auth-intro){grid-column:auto!important;grid-row:auto!important;flex:none!important;align-self:center!important;width:min(400px,100%)!important;max-width:400px!important;margin:auto!important;padding:16px 0!important}
#authGate .auth-intro{align-items:center!important}
#authGate .auth-entry-body{margin:0}
@media(max-width:599px){#authGate{padding:24px 20px max(24px,env(safe-area-inset-bottom))!important}}
