/* Chroma's motion layer: short, GPU-friendly entrances, light trails and spring-like controls.
   Existing account preferences and OS reduced-motion are always honored. */
.chroma-inbox-nav{position:relative}
.chroma-inbox-count{margin-left:auto;min-width:20px;min-height:19px;padding:2px 5px;border-radius:20px;background:var(--chroma-accent,#ddd);color:#101014;font-size:10px;font-weight:700;display:grid;place-items:center}
.chroma-inbox-toast{position:fixed;right:18px;top:calc(var(--topbar-h,44px) + 16px);z-index:80;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 36px);padding:13px 16px;color:#eee;background:#22232ce8;border:1px solid #ffffff24;border-radius:14px;box-shadow:0 10px 35px #0007;backdrop-filter:blur(18px);cursor:pointer;font-size:12px}
.chroma-inbox-toast span{color:var(--chroma-accent,#ddd)}
.prism-message{animation:none}
.community-room-enter{animation:chroma-room .42s cubic-bezier(.16,1,.3,1) both}
.community-arrival,.prism-arrival{animation:chroma-rise .55s cubic-bezier(.16,1,.3,1) both;animation-delay:var(--enter-delay,0ms)}
.community-arrival.own{animation-name:chroma-right}
.community-bubble,.prism-user-bubble{position:relative}
.community-arrival .community-bubble::after,.prism-arrival .prism-user-bubble::after{content:'';position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--room-accent,var(--chroma-accent,#ddd));opacity:0;pointer-events:none;animation:chroma-trail .75s ease-out both;animation-delay:var(--enter-delay,0ms)}
.prism-welcome-logo{animation:chroma-logo .8s cubic-bezier(.16,1,.3,1) both}
.prism-thinking .prism-avatar{position:relative}
.prism-thinking .prism-avatar::after{content:'';position:absolute;inset:0;border:1px solid transparent;border-top-color:var(--chroma-accent,#ddd);border-radius:50%;animation:chroma-spin 1.7s linear infinite}
.community-send,.prism-send{transition:transform .22s cubic-bezier(.2,1.6,.4,1),background .18s,box-shadow .18s}
.community-send:not(:disabled):hover,.prism-send:not(:disabled):hover{transform:translateY(-2px) scale(1.055);box-shadow:0 0 18px #ffffff24}
.community-send:not(:disabled):active,.prism-send:not(:disabled):active{transform:scale(.86)}
.community-nav-item,.community-channel-manage,.prism-button{transition:background .18s,color .18s,border-color .18s,transform .22s cubic-bezier(.2,1.5,.4,1)}
.community-nav-item:active,.community-channel-manage:active,.prism-button:active{transform:scale(.94)}
.community-manager[open],.prism-mode-menu:not([hidden]),.mention-suggestions:not([hidden]){animation:chroma-menu .28s cubic-bezier(.16,1,.3,1) both}
.chroma-inbox-toast{animation:chroma-right .45s cubic-bezier(.16,1,.3,1) both}
@keyframes chroma-room{from{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:none}}
@keyframes chroma-rise{0%{opacity:0;transform:translateY(14px) scale(.975);filter:blur(3px)}65%{opacity:1;filter:blur(0)}100%{opacity:1;transform:none;filter:blur(0)}}
@keyframes chroma-right{0%{opacity:0;transform:translateX(18px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes chroma-trail{0%{opacity:.6;transform:scale(1)}100%{opacity:0;transform:scale(1.035)}}
@keyframes chroma-logo{from{opacity:0;transform:scale(.82) rotate(-8deg);filter:blur(5px)}to{opacity:1;transform:none;filter:drop-shadow(0 8px 24px #0004)}}
@keyframes chroma-menu{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes chroma-spin{to{transform:rotate(360deg)}}
body[data-chat-motion=subtle] .community-arrival,body[data-chat-motion=subtle] .prism-arrival,body[data-chat-motion=subtle] .community-room-enter{animation:chroma-fade .18s ease both}
body[data-chat-motion=subtle] .community-bubble::after,body[data-chat-motion=subtle] .prism-user-bubble::after{animation:none!important}
@keyframes chroma-fade{from{opacity:0}to{opacity:1}}
body[data-chat-motion=off] .community-shell *,body[data-chat-motion=off] .prism-shell *,body[data-chat-motion=off] .chroma-inbox-toast,body[data-chat-motion=off] .community-shell *::after,body[data-chat-motion=off] .prism-shell *::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.community-shell *,.prism-shell *, .chroma-inbox-toast,.community-shell *::after,.prism-shell *::after{animation:none!important;transition:none!important}}

body[data-motion=reduced] .community-shell *,body[data-motion=reduced] .prism-shell *,body[data-motion=reduced] .chroma-inbox-toast,body[data-motion=reduced] .community-shell *::after,body[data-motion=reduced] .prism-shell *::after{animation:none!important;transition:none!important}
