/* CG1: colors follow viewer ownership; chrome is scoped to mounted chat. */
html.chat-chrome-cg1,html.chat-chrome-cg1 body{background-color:#36a2ca!important}
html.chat-chrome-cg1 body #app .app-header.smile-chat-header-ch1{background:#36a2ca!important}
body.staff-chat-active .staff-chat-page>.chat-identity-ib1{height:48px!important;flex-basis:48px!important;padding:4px 10px!important;gap:9px!important;background-color:rgba(255,255,255,.70)!important;background-image:radial-gradient(circle at 22% -30%,rgba(255,255,255,.64) 0%,rgba(255,255,255,.23) 28%,rgba(255,255,255,0) 60%),linear-gradient(180deg,rgba(255,255,255,.32),rgba(237,249,255,.12))!important;backdrop-filter:saturate(155%) blur(19px)!important;-webkit-backdrop-filter:saturate(155%) blur(19px)!important;border-bottom:1px solid rgba(255,255,255,.55)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.60),inset 0 -1px 0 rgba(255,255,255,.20),0 2px 10px rgba(4,72,100,.06)!important}
body.staff-chat-active .chat-identity-ib1 .chat-avatar-ib1{width:34px!important;height:34px!important;flex-basis:34px!important}
body.staff-chat-active .chat-identity-ib1 .chat-home-ib1{height:40px!important;width:40px!important;flex-basis:40px!important}
body.staff-chat-active .chat-identity-ib1 .chat-name-ib1{font-size:15px!important}
body.staff-chat-active .staff-chat-page .staff-message.staff-message.own:not(.system)>.staff-message-bubble{background:#ddf4ff!important;border:0!important;box-shadow:none!important;outline:none!important}
@media(prefers-reduced-transparency:reduce){body.staff-chat-active .staff-chat-page>.chat-identity-ib1{background:#edf8fd!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* CG3: the same glass as the composer, with messages scrolling behind it. */
body.staff-chat-active .staff-chat-page>.chat-identity-ib1{position:absolute!important;inset:0 0 auto!important;z-index:10!important;box-sizing:border-box!important;background:rgba(235,250,253,.76)!important;backdrop-filter:blur(18px) saturate(1.08)!important;-webkit-backdrop-filter:blur(18px) saturate(1.08)!important;border-bottom:1px solid rgba(255,255,255,.8)!important;box-shadow:none!important}
body.staff-chat-active .staff-chat-page:has(>.chat-identity-ib1)>.staff-chat-body{padding-top:62px!important;scroll-padding-top:62px!important}
@media(prefers-reduced-transparency:reduce){body.staff-chat-active .staff-chat-page>.chat-identity-ib1{background:#edf8fd!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

body.staff-chat-active .staff-chat-page .staff-message.staff-message.own:not(.system)>.staff-message-bubble::after{background-color:#ddf4ff!important;border:0!important;box-shadow:none!important}

/* CT1: curved Telegram-style lower corner, mirrored for outgoing messages. */
body.staff-chat-active #app .staff-chat-page .staff-message:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo)){
 position:relative!important;overflow:visible!important;border-bottom-left-radius:0!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo))::after{
 content:""!important;display:block!important;position:absolute!important;inset:auto auto 0 -12px!important;
 width:13px!important;height:24px!important;margin:0!important;border:0!important;border-radius:0!important;
 background:inherit!important;box-shadow:none!important;transform:none!important;pointer-events:none!important;
 clip-path:path("M13 0 C13 10 9 18 1 22 Q-1 24 2 24 L13 24 Z")!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo))::before{display:none!important}
body.staff-chat-active #app .staff-chat-page .staff-message.own:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo)){
 border-bottom-left-radius:15px!important;border-bottom-right-radius:0!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.own:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo))::after{
 left:auto!important;right:-12px!important;transform:scaleX(-1)!important;background:#ddf4ff!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.sc-has-next:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo)){border-bottom-left-radius:15px!important;border-bottom-right-radius:15px!important}
body.staff-chat-active #app .staff-chat-page .staff-message.sc-has-next:not(.system)>.staff-message-bubble:not(:has(>.staff-message-photo))::after{display:none!important}

/* PL1: pinned chats reserve the identity header in the shared flex layout. */
body.staff-chat-active #app .staff-chat-page:not(.ai-training-page):has(>.ca-pinned)>.chat-identity-ib1{position:relative!important;inset:auto!important;flex-shrink:0!important}
body.staff-chat-active #app .staff-chat-page:not(.ai-training-page):has(>.ca-pinned)>.staff-chat-body{padding-top:14px!important;scroll-padding-top:14px!important}
body.staff-chat-active #app .staff-chat-page:not(.ai-training-page)>.ca-pinned{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;flex:0 0 auto!important;z-index:9!important;min-height:42px;max-height:52px}

/* PL2: a single standard-size pin with smooth celebratory colors. */
body.staff-chat-active #app .staff-chat-page:not(.ai-training-page)>.ca-pinned{
 color:#fff!important;background-color:#6d28d9;
 background-image:linear-gradient(115deg,rgba(255,255,255,.12),transparent 55%,rgba(255,255,255,.06))!important;
 animation:chat-pin-colors-pl2 3s linear infinite!important;
 border-bottom:1px solid rgba(255,255,255,.25);box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
body.staff-chat-active #app .staff-chat-page>.ca-pinned span{color:#fff!important;min-width:0}
body.staff-chat-active #app .staff-chat-page>.ca-pinned img{filter:brightness(0) invert(1);flex-shrink:0}
@keyframes chat-pin-colors-pl2{0%,100%{background-color:#6d28d9}33.333%{background-color:#be185d}66.666%{background-color:#0369a1}}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .staff-chat-page>.ca-pinned{animation:none!important}}

/* CG33: playful controller beside the game participant count. */
body.staff-chat-active #app .ca-pinned .cg33-joystick{display:inline-block;overflow:visible!important;font-size:20px;line-height:24px;vertical-align:middle;margin-inline:4px;transform-origin:center;animation:joystick-sway-cg33 1.2s ease-in-out infinite}
@keyframes joystick-sway-cg33{0%,100%{transform:translateX(-3px) rotate(-12deg)}50%{transform:translateX(3px) rotate(12deg)}}
body.staff-chat-active #app .ca-pinned .cg33-joystick svg{display:block;overflow:visible}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .staff-chat-page:not(.ai-training-page)>.ca-pinned{animation:none!important}body.staff-chat-active #app .ca-pinned .cg33-joystick{animation:none!important;transform:none}}

/* CG36: keep a separate, accessible start link on the left of the game pin. */
body.staff-chat-active #app .ca-pinned[data-game-cg36]{display:flex!important;direction:rtl;align-items:center;gap:8px;padding:5px 10px!important;box-sizing:border-box;overflow:hidden}
body.staff-chat-active #app .ca-pinned .cg36-pin-message{display:flex;align-items:center;flex:1 1 0;min-width:0;overflow:hidden;border:0;box-shadow:none;background:transparent;color:inherit;padding:0;text-align:right;font:inherit;cursor:pointer}
body.staff-chat-active #app .ca-pinned .cg36-pin-message>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
body.staff-chat-active #app .ca-pinned a.cg36-start{display:flex!important;align-items:center;justify-content:center;flex:0 0 82px;box-sizing:border-box;height:30px;min-width:82px;padding:0 8px!important;margin:0!important;border:0;border-radius:10px;background:#ffcc2a!important;color:#513b09!important;font:800 12px Vazirmatn,Tahoma,sans-serif!important;white-space:nowrap;text-decoration:none!important;animation:game-start-heartbeat-cg36 1.4s ease-in-out infinite;transform-origin:center}
body.staff-chat-active #app .ca-pinned a.cg36-start::after{display:none!important;content:none!important}
body.staff-chat-active #app .ca-pinned a.cg36-start:focus-visible,body.staff-chat-active #app .ca-pinned .cg36-pin-message:focus-visible{outline:2px solid white;outline-offset:2px}
@keyframes game-start-heartbeat-cg36{0%,35%,100%{transform:scale(1)}12%{transform:scale(1.06)}24%{transform:scale(1.015)}29%{transform:scale(1.045)}}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .ca-pinned a.cg36-start{animation:none!important}}

/* CG38: sweeping colored bands; controller placement and start link unchanged. */
body.staff-chat-active #app .staff-chat-page:not(.ai-training-page)>.ca-pinned[data-game-cg36]{background-image:linear-gradient(90deg,#6d28d9,#be185d,#0369a1,#6d28d9,#be185d,#0369a1)!important;background-size:300% 100%!important;animation:pin-color-wave-cg38 3s linear infinite alternate!important}
@keyframes pin-color-wave-cg38{from{background-position:100% 50%}to{background-position:0% 50%}}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .staff-chat-page:not(.ai-training-page)>.ca-pinned[data-game-cg36]{animation:none!important}}

/* CG39: each copy holds for three seconds, then slides upward. */
body.staff-chat-active #app .ca-pinned[data-game-cg36]{height:42px!important;min-height:42px!important;max-height:42px!important}
body.staff-chat-active #app .ca-pinned .cg39-carousel{display:block;height:32px;overflow:hidden!important;width:100%;min-width:0}
body.staff-chat-active #app .ca-pinned .cg39-track{display:flex;flex-direction:column;width:100%;overflow:visible;animation:pin-copy-slide-cg39 6s linear infinite}
body.staff-chat-active #app .ca-pinned .cg39-count,body.staff-chat-active #app .ca-pinned .cg39-promo{display:flex;height:32px;min-height:32px;flex:0 0 32px;box-sizing:border-box;align-items:center;min-width:0;direction:rtl;width:100%;overflow:hidden}
body.staff-chat-active #app .ca-pinned .cg39-count{gap:4px}
body.staff-chat-active #app .ca-pinned .cg39-count>span:not(.cg33-joystick){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.staff-chat-active #app .ca-pinned .cg39-count>.cg33-joystick{flex:0 0 28px;margin:0 3px}
body.staff-chat-active #app .ca-pinned .cg39-promo{flex-direction:column;justify-content:center;align-items:flex-start;gap:0;font-size:11px;line-height:15px;font-weight:700}
body.staff-chat-active #app .ca-pinned .cg39-promo>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes pin-copy-slide-cg39{0%,44%{transform:translateY(0)}50%,94%{transform:translateY(-32px)}100%{transform:translateY(-64px)}}
body.corsairs-active-cg3 #app .cg39-track{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .ca-pinned .cg39-track{animation:none!important;transform:none}}

/* CG40: one full personalized line; reveal overflow during the promo's turn. */
body.staff-chat-active #app .ca-pinned .cg39-promo{flex-direction:row;justify-content:flex-start;align-items:center;font-size:12px;line-height:24px;container-type:inline-size}
body.staff-chat-active #app .ca-pinned .cg39-promo>.cg40-promo-copy{display:block;flex:0 0 auto;max-width:none;width:max-content;overflow:visible;text-overflow:clip;white-space:nowrap;animation:pin-copy-pan-cg40 6s linear infinite}
@keyframes pin-copy-pan-cg40{0%,50%{transform:translateX(0)}94%,99%{transform:translateX(max(0px,calc(100% - 100cqw)))}100%{transform:translateX(0)}}
body.corsairs-active-cg3 #app .cg40-promo-copy{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){body.staff-chat-active #app .ca-pinned .cg39-promo>.cg40-promo-copy{animation:none!important;transform:none}}

/* CG42: fill the available text slot up to the start button; synchronized hold/pan. */
body.staff-chat-active #app .ca-pinned[data-game-cg36]{gap:4px}
body.staff-chat-active #app .ca-pinned .cg36-pin-message>span{flex:1 1 100%;width:100%;max-width:100%;box-sizing:border-box}
body.staff-chat-active #app .ca-pinned .cg39-track{animation:pin-copy-slide-cg42 10s linear infinite}
body.staff-chat-active #app .ca-pinned .cg39-promo>.cg40-promo-copy{animation:pin-copy-pan-cg42 10s linear infinite}
@keyframes pin-copy-slide-cg42{0%,27%{transform:translateY(0)}30%,94%{transform:translateY(-32px)}100%{transform:translateY(-64px)}}
@keyframes pin-copy-pan-cg42{0%,70%{transform:translateX(0)}90%,99%{transform:translateX(max(0px,calc(100% - 100cqw)))}100%{transform:translateX(0)}}

/* CG44: personalized invitation holds for two seconds, then pans for one. */
body.staff-chat-active #app .ca-pinned .cg39-track{animation:pin-copy-slide-cg44 7s linear infinite}
body.staff-chat-active #app .ca-pinned .cg39-promo>.cg40-promo-copy{animation:pin-copy-pan-cg44 7s linear infinite}
@keyframes pin-copy-slide-cg44{0%,38.571429%{transform:translateY(0)}42.857143%,91.428571%{transform:translateY(-32px)}100%{transform:translateY(-64px)}}
@keyframes pin-copy-pan-cg44{0%,71.428571%{transform:translateX(0)}85.714286%,99%{transform:translateX(max(0px,calc(100% - 100cqw)))}100%{transform:translateX(0)}}

/* FL3: verified founder cards keep their own header and white controls. */
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble{
 background:#1684a7!important;color:#fff!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble>.staff-message-name{
 display:flex!important;direction:ltr!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-start!important;flex-wrap:nowrap!important;gap:10px!important;width:100%;box-sizing:border-box;color:#fff!important;opacity:1!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .staff-message-name>.chat-sender-name-nr1{
 display:flex!important;direction:ltr!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;order:0!important;gap:5px!important;min-width:0!important;text-align:left!important;color:#fff!important;opacity:1!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .founder-title-block-fv4{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;color:#fff!important;opacity:1!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .founder-title-fv4{
 color:#fff!important;opacity:1!important;visibility:visible!important;white-space:nowrap!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .founder-verified-fv1{
 order:-1!important;flex:0 0 19px!important;align-self:flex-start!important;margin:0!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .founder-note-fv1{
 white-space:normal!important;text-align:left!important;color:#e7f8ff!important;opacity:1!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .chat-sender-role-nr1{
 order:1!important;flex:none!important;align-self:flex-start!important;white-space:nowrap!important;text-align:right!important;color:#fff!important;opacity:1!important;visibility:visible!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1 .rx-bar .rx-add{
 color:#fff!important;opacity:1!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble:has(>.staff-message-photo){
 display:flex!important;flex-direction:column!important;background:#1684a7!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble:has(>.staff-message-photo)>.staff-message-name{
 position:relative!important;align-self:stretch!important;background:transparent!important;padding:8px 10px!important;pointer-events:auto!important;
}
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble>.staff-message-body,
body.staff-chat-active #app .staff-chat-page .staff-message.founder-message-fv1>.staff-message-bubble>.staff-message-body a{
 color:#fff!important;
}
