.platform-chat { position:fixed; right:14px; bottom:5px; z-index:1000; font:14px/1.5 var(--cn-font); color:#e8f4ff }
.platform-chat button { cursor:pointer; color:#bbf3ff; background:#103453; border:1px solid #368399; padding:4px 12px; font:inherit }
.platform-chat section { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); width:min(900px,calc(100vw - 32px)); height:min(720px,calc(100vh - 32px)); background:#081a31; border:1px solid #30748b; box-shadow:0 8px 40px #0009; display:flex; flex-direction:column }
.platform-chat section[hidden] { display:none }
.platform-chat header,.platform-chat form div { display:flex; gap:10px; align-items:center; justify-content:space-between }
.platform-chat header,.platform-chat form { padding:12px 16px; background:#0c2942 }
.platform-chat header small { margin-right:auto; color:#85b1c7; letter-spacing:1px }
.platform-chat .chat-log { overflow:auto; min-height:0; flex:1; padding:20px 24px; font-size:16px; line-height:1.75 }
.platform-chat p { white-space:pre-wrap; overflow-wrap:anywhere; margin-bottom:12px }
.platform-chat textarea { width:100%; resize:none; color:inherit; background:#071829; border:1px solid #37637b; padding:8px; margin:5px 0; font:inherit }
.platform-chat form span { color:#b5ccdf; font-size:12px }
.platform-chat button:disabled { opacity:.55 }

.platform-chat #chat-key { width:100%; margin:5px 0 10px; padding:7px; color:inherit; background:#071829; border:1px solid #37637b }
