/* Supplied wing wordmark and its own P. No changes to app navigation or financial rules. */
img[src*="logo-plumma-transparent.png"],img[src*="plumma-p-transparent.png"]{object-view-box:none!important;object-fit:contain!important;mix-blend-mode:normal!important;background:transparent!important;filter:none!important;border-radius:0!important}
html[data-theme="light"] #app img[src*="logo-plumma-transparent.png"],html[data-theme="light"] #app img[src*="plumma-p-transparent.png"]{filter:brightness(0)!important;mix-blend-mode:normal!important}
.auth-gate img[src*="logo-plumma-transparent.png"]{filter:none!important}
.splash{display:grid!important;position:fixed!important;inset:0!important;place-items:center!important;width:100%;height:100dvh;background:var(--bg)!important;z-index:90}
.splash .mobile-flight{display:none!important}
.splash .splash-lockup{display:block!important;position:relative;width:min(280px,66vw)!important;aspect-ratio:1500/205!important;height:auto!important;overflow:visible!important;background:transparent!important;border-radius:0!important;animation:none!important;will-change:auto}
.splash .splash-lockup img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;left:auto!important;top:auto!important;object-fit:contain!important;opacity:.38}
.splash-lockup:after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,#ffffff90 43%,#fff 48%,#ffffff80 53%,transparent 66%);background-size:250% 100%;mask:url('./logo-plumma-transparent.png?v=wing-20261107') center/contain no-repeat;-webkit-mask:url('./logo-plumma-transparent.png?v=wing-20261107') center/contain no-repeat;animation:plumma-logo-sweep 2.2s ease-in-out infinite;pointer-events:none}
html[data-theme="light"] .splash-lockup img{filter:brightness(0)!important}.splash.out .splash-lockup:after{animation-play-state:paused}
html[data-theme="light"] .splash-lockup:after{background-image:linear-gradient(105deg,transparent 30%,#0008 43%,#000 48%,#0008 53%,transparent 66%)}
@keyframes plumma-logo-sweep{0%{background-position:140% 0}75%,100%{background-position:-50% 0}}
.desktop-wordmark{width:142px!important;height:25px!important}.rail-logo{width:34px!important;height:34px!important}.welcome-logo-new{width:220px!important;height:34px!important}
html[data-theme="light"] #app .chat-intro:before{filter:brightness(0)!important}
.app .chat-intro:before{background-image:url('./logo-plumma-transparent.png?v=wing-20261107')!important;background-size:contain!important;mix-blend-mode:normal!important}
@media(prefers-reduced-motion:reduce){.splash .splash-lockup img{opacity:1}.splash-lockup:after{display:none}.splash{transition:none!important}}
html[data-theme="dark"] .splash{background:#000!important}html[data-theme="light"] .splash{background:#fafafa!important}
.app :is(.kicker,.saas-eyebrow,.upgrade-eyebrow){text-transform:none}
.auth-gate .kicker,.auth-intro .kicker,.welcome .kicker{ text-transform:none!important }

/* Restore the approved dark auth surface independently of the app theme. */
#authGate{
 color-scheme:dark;--bg:#000;--bg2:#101012;--surface:#1c1c1f;--surface2:#242428;
 --fg:#f4f4f5;--fg2:#dedee4;--mut:#b0b0ba;--mut2:#9898a2;
 --hair:#ffffff26;--hair2:#ffffff14;--primary:#b85ce6;--accent:#b85ce6;
 --ink:#f4f4f5;--on-ink:#190a21;--neg:#ff9999;
 background:#000!important;color:var(--fg)!important;
}
#authGate :is(h1,h2,.auth-welcome-heading,.auth-link,a){color:var(--fg)}
#authGate :is(.lead,.field label,.auth-legal,.auth-consent,.auth-message,.auth-divider,.auth-entry-alt){color:var(--mut)}
#authGate .auth-message.error{color:var(--neg)}
#authGate .input{background:var(--surface)!important;color:var(--fg)!important;border-color:var(--hair)}
#authGate .input::placeholder{color:#9898a2;opacity:1}
#authGate .input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #b85ce622}
#authGate .btn-ghost,#authGate .btn-google{background:transparent;border-color:var(--hair);color:var(--fg)}
#authGate .btn-ink{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--on-ink)!important}
#authGate .auth-back{background:var(--surface2);color:var(--fg);flex:none}
#authGate .auth-back svg,#authGate .auth-visibility svg{stroke:currentColor}
#authGate .auth-visibility{color:var(--mut)}
#authGate :is(button,a,input):focus-visible{outline-color:var(--accent)}
#authGate img[src*="logo-plumma-transparent.png"]{filter:none!important;opacity:1}
#authGate :is(.auth-start-brand,.auth-form-brand){flex:none;overflow:visible}
#authGate .auth-divider:before,#authGate .auth-divider:after{background:var(--hair)}
#authGate .auth-card,#authGate .auth-entry{flex-shrink:0}
@media(max-width:899px){
 #authGate .auth-form-brand{margin:24px auto!important;min-height:40px!important}
 #authGate .auth-form-brand img{max-width:100%}
}

/* Approved 07/11 wordmark: transparent PNG, same geometry in both themes. */
html[data-theme="light"] #app img[src*="logo-plumma-transparent.png"]{content:url('./logo-plumma-light-4k.png?v=wing-20261107');filter:none!important}
html[data-theme="light"] #splash .splash-lockup img{filter:brightness(0)!important}

html[data-theme="light"] #welcome img[src*="logo-plumma-transparent.png"]{content:url("./logo-plumma-light-4k.png?v=wing-20261107");filter:none!important}


/* The standalone P uses the wordmark purple in light mode and white in dark mode. */
html[data-theme="light"] #app.desktop-sidebar-collapsed .desktop-brand .rail-logo{filter:brightness(0) saturate(100%) invert(22%) sepia(25%) saturate(1490%) hue-rotate(224deg) brightness(90%) contrast(94%)!important}
html[data-theme="dark"] #app.desktop-sidebar-collapsed .desktop-brand .rail-logo{filter:brightness(0) invert(1)!important}

/* Installed PWA startup uses the install icon on wide screens. */
html[data-plumma-pwa-launch] #splash{background:#fff!important}
html[data-plumma-pwa-launch] #splash .splash-lockup{
 width:min(220px,62vw)!important;
 height:auto!important;
 aspect-ratio:1!important;
 background:url('./assets/plumma-brand/pwa/plumma-512.png') center/contain no-repeat!important;
}
html[data-plumma-pwa-launch] #splash .splash-lockup img,
html[data-plumma-pwa-launch] #splash .splash-lockup::after{display:none!important}

/* Match the reference's width across phones while preserving the wide wordmark. */
html[data-plumma-pwa-launch="mobile"] #splash{background:#49356f!important;z-index:100}
html[data-plumma-pwa-launch="mobile"] #splash .splash-lockup{
 width:min(56vw,260px)!important;
 aspect-ratio:1200/202!important;
 background:url('./logo-plumma.svg') center/contain no-repeat!important;
}
html[data-plumma-pwa-launch="mobile"]:has(#splash) .privacy-banner{visibility:hidden}
