/* Local world HUD. The existing native and Discord transports are unchanged. */
#chat-panel.rp-chat-panel,#discord-panel.rp-chat-panel {
  display:flex; flex-direction:column; gap:8px;
  top:12px; bottom:auto; right:12px; width:310px;
  height:min(460px,calc(100% - 76px)); max-height:calc(100% - 76px);
  padding:12px; overflow:hidden; border:1px solid #367991;
  border-radius:14px; background:#07182dee; color:#eaf6ff;
  box-shadow:0 8px 24px #0005; backdrop-filter:blur(6px);
}
.rp-chat-panel .panel-heading {margin:0;flex:none;min-height:36px;}
.rp-chat-panel .panel-heading strong {font-size:14px;}
.rp-chat-panel .panel-heading button {min-width:44px;min-height:44px;}
.rp-chat-tabs {display:flex;gap:6px;flex:none;}
.rp-chat-tabs button {flex:1;padding:8px 6px;font-size:12px;background:#122f49;border:1px solid #315970;}
.rp-chat-tabs button[aria-pressed="true"] {color:#82f3ff;border-color:#31cee2;background:#134054;}
#chat-panel .rp-chat-people,#discord-panel details {flex:none;max-height:110px;overflow:auto;margin:0;padding:0;border:0;}
.rp-chat-people summary,#discord-panel summary {font-size:12px;min-height:28px;cursor:pointer;color:#b9d7e6;}
#chat-panel #people {max-height:75px;margin:0;font-size:12px;}
#messages,#discord-messages {flex:1;min-height:45px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:0;padding:0;margin:0;}
#messages .rp-message,#discord-messages article {display:block;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;line-height:1.5;overflow-wrap:anywhere;font-size:13px;}
#messages strong,#discord-messages strong {color:#79e7f2;font-weight:650;font-size:inherit;}
#messages time,#discord-messages time {float:none;display:inline;color:#a2bacf;font-size:11px;white-space:nowrap;}
#discord-messages p {display:inline;margin:0;font-size:inherit;}
#discord-messages strong::after {content:': ';}
#discord-messages time::after {content:' ';}
#chat {flex:none;margin:0;}
#chat label {display:block;font-size:11px;margin:0 0 5px;color:#b9d7e6;}
#chat>div {display:flex;gap:6px;}
#chat #text {width:100%;min-width:0;flex:1;font-size:16px;}
#chat #send {flex:none;width:44px;}
#discord-panel #discord-status,#discord-panel>small {font-size:11px;line-height:1.4;margin:0;flex:none;}
#discord-panel .discord-open {flex:none;margin:0;padding:10px;min-height:44px;text-align:center;}
.rp-chat-hint {flex:none;font-size:10px;color:#b0c4d7;}
.discord-channel-row {display:flex;gap:8px;align-items:end;flex:none;min-width:0;}
.discord-channel-row label {flex:1;min-width:0;font-size:11px;}
.discord-channel-row select {display:block;width:100%;max-width:100%;min-width:0;margin-top:3px;font-size:14px;min-height:44px;}
.discord-channel-row button {margin-left:auto;flex:none;width:44px;min-height:44px;}
@media (min-width:701px) and (max-width:1099px) {
  #chat-panel.rp-chat-panel,#discord-panel.rp-chat-panel {top:112px;height:calc(100% - 170px);max-height:460px;}
}
@media (max-width:700px) {
  .hud-nav [data-panel="chat-panel"] {display:flex;}
  .hud-nav [data-panel="discord-panel"] {display:none;}
  #chat-panel.rp-chat-panel,#discord-panel.rp-chat-panel {top:auto;bottom:6px;right:8px;width:calc(100% - 16px);max-width:none;height:min(390px,calc(100% - 60px));max-height:calc(100% - 60px);gap:5px;padding:10px;}
  .rp-chat-hint {display:none;}
  #discord-panel details {max-height:75px;}
}
@media (max-height:480px) and (min-width:701px) {
  #chat-panel.rp-chat-panel,#discord-panel.rp-chat-panel {top:4px;bottom:4px;height:auto;max-height:none;width:330px;padding:8px;gap:4px;}
  .rp-chat-hint,#discord-panel>small,#discord-panel details {display:none;}
}
