#communication-alerts{position:fixed;bottom:66px;right:20px;z-index:50;max-width:min(400px,90vw)}
#communication-alerts>div{background:white;border:2px solid #164951;border-radius:10px;padding:16px;margin-top:8px;box-shadow:0 4px 20px #0003}
#communication-alerts button{margin-left:12px}
#performance-celebration{border:0;border-radius:16px;padding:32px;text-align:center;max-width:90vw}
#performance-celebration::backdrop{background:#1238}
#performance-celebration>div{font-size:70px}
#internal-chat-dock{position:fixed;bottom:12px;right:16px;z-index:49;font:inherit}
.chat-launcher{border:0;border-radius:18px;background:#164951;color:#fff;padding:12px 18px;box-shadow:0 5px 20px #0003;cursor:pointer}
.chat-list{position:absolute;bottom:54px;right:0;width:290px;max-height:55vh;overflow:auto;background:#fff;border:1px solid #cddbd9;border-radius:12px;box-shadow:0 6px 24px #0003;padding:12px}
.chat-list[hidden],.chat-panel [hidden]{display:none!important}
.chat-list>a,.chat-list>button{display:block;width:100%;text-align:left;padding:9px;border:0;background:transparent;color:#164951;cursor:pointer;text-decoration:none}
.chat-list>button:hover,.chat-list>a:hover{background:#edf5f3}
.chat-unread{font-weight:bold}
.chat-windows{position:absolute;bottom:54px;right:0;display:flex;gap:10px;align-items:flex-end}
.chat-panel{width:320px;height:430px;display:flex;flex-direction:column;background:#fff;border:1px solid #9cbab5;border-radius:12px;box-shadow:0 6px 24px #0003;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:5px;background:#164951;color:#fff;padding:9px}
.chat-head a{color:#fff;font-weight:bold;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-head button{border:0;background:transparent;color:#fff;font-size:20px;cursor:pointer}
.chat-messages{flex:1;overflow:auto;padding:10px;min-height:0}
.chat-bubble{border-radius:10px;background:#eef5f3;padding:8px;margin-bottom:8px;overflow-wrap:anywhere}
.chat-bubble small{color:#4b6260}.chat-bubble p{white-space:pre-wrap;margin:5px 0}.chat-bubble a{display:block}
.chat-compose{border-top:1px solid #d4e2df;padding:8px;display:grid;gap:5px}
.chat-compose textarea{width:100%;box-sizing:border-box;resize:vertical}.chat-compose input{max-width:100%}
.chat-error{color:#a32121;padding:0 8px}
#communication-alerts>button{display:block;width:100%;text-align:left;background:#fff;border:2px solid #164951;border-radius:10px;padding:12px;margin-top:8px;box-shadow:0 4px 20px #0003;cursor:pointer}
@media(max-width:800px){.chat-windows{right:0;flex-direction:column}.chat-panel{width:min(92vw,350px);height:min(65vh,430px)}.chat-list{max-width:88vw}}

#internal-chat-dock [hidden]{display:none!important}.chat-panel.is-collapsed{height:auto;min-height:0}.chat-windows:empty,#communication-alerts:empty{display:none}
