/* The call stays mounted when minimized so its single media player keeps its timeline. */
.im-chat-host{position:relative;z-index:10;min-height:100dvh;background:#f9eef3;color:#3c1e2b}
.im-call-host{position:fixed;inset:0;z-index:0;pointer-events:none}
.im-call-host[data-visible="true"]{z-index:30;pointer-events:auto}
.im-call-host[data-visible="false"] .immersive-call{visibility:hidden}
.immersive-stage{width:100%;height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;background:#000}
.immersive-stage .full-screen-photo{filter:none;transform:none}
.immersive-stage .full-screen-video{background:transparent}
.im-active-call{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 16px;background:#f3dde7;color:#3c1e2b;font-size:13px}
.im-active-call button,.im-global-error button{min-height:44px;padding:8px 14px;border:0;border-radius:22px;background:#752046;color:white;font:inherit}
.im-active-call button:last-child{background:#a9343c}
.im-history-warning{padding:12px 16px;font-size:13px;color:#714d13;background:#fff2d6}
.im-global-error{position:fixed;bottom:max(110px,calc(env(safe-area-inset-bottom) + 90px));left:16px;right:16px;z-index:12;max-width:520px;margin:auto;padding:12px 16px;border-radius:16px;background:#fff2ec;color:#713b28;font-size:15px;display:flex;align-items:center;gap:12px;justify-content:space-between;box-shadow:0 2px 12px #0002}
.im-global-error button{flex-shrink:0;background:transparent;color:#713b28}
.im-auth-warning{position:fixed;bottom:24px;left:16px;right:16px;z-index:50;max-width:520px;margin:auto;padding:14px 18px;border-radius:14px;background:#fff2d6;color:#714d13;font-size:15px;line-height:1.6}
/* #41 聊天主畫面的「加入主畫面」提示：顯眼但可關，不擋住訊息。 */
.pwa-install-banner{flex:0 0 auto;display:flex;align-items:center;gap:10px;width:min(calc(100% - 24px),736px);box-sizing:border-box;margin:8px auto 0;padding:8px 8px 8px 14px;border:1px solid #d94b8a;border-radius:16px;background:#ffe7f1;color:#442638;font-size:14px;line-height:1.45;animation:pwa-install-banner-in .24s ease-out}
.pwa-install-banner p{flex:1 1 auto;min-width:0;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.pwa-install-banner .pwa-install-banner-icon{flex:0 0 auto;color:#be2d6f}
.pwa-install-banner-actions{flex:0 0 auto;display:flex;align-items:center;gap:4px}
.pwa-install-banner button.pwa-install-banner-primary{min-height:44px;padding:8px 16px;border:0;border-radius:22px;background:#be2d6f;color:#fff;font:inherit;font-weight:600}
.pwa-install-banner button.pwa-install-banner-primary:disabled{opacity:.55}
.pwa-install-banner button.pwa-install-banner-later{min-height:44px;padding:8px 10px;border:0;border-radius:22px;background:transparent;color:#775568;font:inherit}
.pwa-install-banner button:focus-visible{outline:2px solid #be2d6f;outline-offset:2px}
@keyframes pwa-install-banner-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.pwa-install-banner{animation:none}}
