#ceoChatFab,#ceoChatWindow{display:none!important}
#rotaryChatFabV38{position:fixed;right:18px;bottom:18px;z-index:2147482998;background:#f5a623;color:#162844;box-shadow:0 8px 28px rgba(15,23,42,.25);border:2px solid #fff;min-height:46px}
#rotaryChatFabV38 .ceo-chat-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:999px;background:#dc2626;color:#fff;font-style:normal;font-size:11px}
#rotaryChatFabV38 .ceo-chat-badge.hide{display:none!important}
#rotaryChatWindowV38{position:fixed!important;top:18px!important;right:18px!important;bottom:auto!important;left:auto!important;width:min(720px,calc(100vw - 36px))!important;height:min(620px,calc(100svh - 36px))!important;max-height:calc(100svh - 36px)!important;transform:none!important;transition:none!important;z-index:2147482999;background:#fff;border:1px solid #cbd5e1;border-radius:16px;box-shadow:0 18px 60px rgba(15,23,42,.28);overflow:hidden;display:flex;flex-direction:column;contain:layout paint}
#rotaryChatWindowV38.hide{display:none!important}
#rotaryChatWindowV38 .ceo-chat-top{flex:0 0 auto}
#rotaryChatWindowV38 .ceo-chat-body{flex:1;min-height:0;display:grid;grid-template-columns:220px 1fr}
#rotaryChatWindowV38 .ceo-chat-threads{overflow:auto;border-right:1px solid #e2e8f0;background:#f8fafc;padding:8px;min-height:0}
#rotaryChatWindowV38 .ceo-chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}
#rotaryChatWindowV38 .ceo-chat-messages{flex:1;overflow:auto;padding:12px;background:#f8fafc;overflow-anchor:none;min-height:0}
#rotaryChatWindowV38 .ceo-chat-compose{flex:0 0 auto}
#rotaryChatWindowV38 textarea{font-size:16px!important;scroll-margin:0!important}
body.auth-pending #rotaryChatFabV38,body.auth-pending #rotaryChatWindowV38,body.monitor-mode #rotaryChatFabV38,body.monitor-mode #rotaryChatWindowV38{display:none!important}
@media(max-width:800px){
#rotaryChatFabV38{right:10px;bottom:10px}
#rotaryChatFabV38 span{display:none}
#rotaryChatWindowV38{top:max(8px,env(safe-area-inset-top))!important;right:8px!important;left:8px!important;width:auto!important;height:calc(100svh - 16px - env(safe-area-inset-top))!important;max-height:calc(100svh - 16px - env(safe-area-inset-top))!important;border-radius:12px}
#rotaryChatWindowV38 .ceo-chat-body{grid-template-columns:1fr;grid-template-rows:minmax(90px,150px) 1fr}
#rotaryChatWindowV38 .ceo-chat-threads{border-right:0;border-bottom:1px solid #e2e8f0;max-height:none}
}

/* RMC 2026-10-12 single chat notification control: compact iPad header. */
#rotaryChatWindowV38 .ceo-chat-top{display:flex;align-items:center;gap:8px}
#rotaryChatWindowV38 .ceo-chat-top>div:first-child{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
#rotaryChatWindowV38 #rmcChatAlertLevelV1{margin-left:0!important;flex:0 0 auto;white-space:nowrap;min-width:94px;max-width:125px}
#rotaryChatWindowV38 #rotaryChatCloseV38{flex:0 0 auto}
@media(max-width:600px){#rotaryChatWindowV38 .ceo-chat-top{gap:6px}#rotaryChatWindowV38 #rmcChatAlertLevelV1{font-size:12px;padding:7px 9px!important}}
