.chat-startup-panel[hidden]{display:none}
.chat-startup-spinner{position:absolute;z-index:20;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;width:28px;height:28px;margin-left:-14px;box-sizing:border-box;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5));animation:chat-startup-spin .8s linear infinite}
.chat-startup-spinner[hidden]{display:none}
@keyframes chat-startup-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.chat-startup-spinner{animation:none}}
.chat-startup-panel{position:absolute;z-index:20;left:16px;right:16px;top:50%;transform:translateY(-50%);max-width:320px;margin:0 auto;padding:20px 16px;box-sizing:border-box;background:rgba(255,255,255,.96);color:#2a2328;border-radius:8px;text-align:center;font-family:sans-serif;font-size:14px;line-height:1.6}
.chat-startup-panel p{margin:0 0 12px;font-size:14px;line-height:1.6}
.chat-startup-panel a,.chat-startup-panel button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;margin:0 4px;border:0;border-radius:8px;background:#f3f4f6;color:#2a2328;font:inherit;font-size:14px;text-decoration:none}
.chat-startup-panel button[hidden]{display:none}
body.chat-active #chatSection.chat-starting{position:fixed;inset:0;width:100%;max-width:none;max-height:none;height:100vh;height:100dvh;margin:0;box-sizing:border-box;overflow:hidden;border:0;border-radius:0;background:#3a3a3a}
@media(min-width:769px){body.chat-active #chatSection.chat-starting{width:calc(100% - 40px);max-width:450px;margin:0 auto;border:1px solid var(--border-color,#e8d9e1);border-radius:12px}}
#chatSection.chat-starting > :not(.chat-startup-panel):not(.chat-startup-spinner):not(#chatBackgroundImage){visibility:hidden;pointer-events:none}

body.chat-active{background:var(--app-outer-background,#f6f7f9)}
body.chat-active:has(#chatSection.chat-starting){margin:0;padding:0;overflow:hidden}
body.chat-active:has(#chatSection.chat-starting) > .container{background:transparent;border:0;border-radius:0;box-shadow:none}
body.chat-active:has(#chatSection.chat-starting) #appHeaderRoot,body.chat-active:has(#chatSection.chat-starting) .home-user-profile{display:none}
#chatSection.chat-starting > #chatBackgroundImage{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
#chatSection.chat-starting.has-background > #chatBackgroundImage{opacity:1}
