/* Chat opens from Menu; its incoming counts belong to the shared notification dock. */
body .galaxyChatToggleV6261 {display:none!important;visibility:hidden!important;pointer-events:none!important}
body .galaxyChatToggleV6261 {
  box-sizing:border-box!important; left:var(--rl-left,12px)!important; right:auto!important;
  bottom:var(--rl-bottom,8px)!important; top:auto!important;
  transform:none!important;
  width:min(320px,calc(100vw - 24px))!important; min-height:68px!important;
  padding:8px 10px!important; border-radius:10px!important;
  background:linear-gradient(135deg,rgba(10,33,46,.94),rgba(4,19,29,.95))!important;
  border:1px solid #345b6b!important; box-shadow:0 7px 24px #0005!important;
  color:#d9edf5!important; text-align:left!important; cursor:pointer;
}
body .galaxyChatPreviewHeading {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;color:#d8edf5;font:800 10px/1.2 system-ui;letter-spacing:.07em}
body .galaxyChatPreviewChannel {color:#8fcbdc}
body .galaxyChatPreviewExpand {font-size:17px;font-weight:500;line-height:1}
body .galaxyChatPreviewRows {display:flex;flex-direction:column;gap:3px}
body .galaxyChatPreviewRow {display:flex;align-items:baseline;gap:5px;min-width:0;font:500 11px/1.35 system-ui;letter-spacing:0}
body .galaxyChatPreviewSender {flex:0 1 auto;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#99ddec;font-weight:750}
body .galaxyChatPreviewText {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d9e8ee}
body .galaxyChatPreviewState {display:block;font:500 12px/1.35 system-ui;letter-spacing:0;color:#9bb5c3}
body .galaxyChatPreviewState[hidden] {display:none!important}
body .galaxyChatToggleV6261 .galaxyChatUnreadV62845 {right:-6px;top:-7px;min-width:20px;height:20px;background:#27697d;border-color:#0a202d;box-shadow:none;font:800 10px/16px system-ui}
body .galaxyChatToggleV6261:focus-visible {outline:2px solid #9adff5!important;outline-offset:3px}
body .galaxyChatV6261 {
  left:50%!important;top:var(--chat-center-y,50%)!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important; width:min(520px,calc(100vw - 24px))!important;
  height:var(--chat-panel-height,520px)!important;max-width:calc(100vw - 24px)!important;
  max-height:var(--chat-available-height,calc(100dvh - 16px))!important;
  margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;
  border:1px solid #3b6575!important;border-radius:16px!important;
  background:linear-gradient(145deg,#0b2330,#06151f)!important;overflow:hidden!important;
  box-shadow:0 18px 65px #0009!important;z-index:3950!important;
}
body .galaxyChatV6261.hidden {display:none!important}
/* Chat is itself the active major screen, so the old HUD hiding rule must not hide it. */
body .galaxyChatV6261:not(.hidden) {display:flex!important;visibility:visible!important;pointer-events:auto!important}
body .galaxyChatHeadV6261 {flex:none;padding:16px 16px 12px!important;gap:12px}
body .galaxyChatHeadV6261 small {font:750 9px/1.2 system-ui!important;letter-spacing:.12em!important;color:#87b5c4!important}
body .galaxyChatHeadV6261 h2 {font:850 20px/1.15 system-ui!important;letter-spacing:.04em!important;margin-top:5px!important}
body .galaxyChatHeadActions {display:flex;align-items:center;gap:12px}
body .galaxyChatHeadActions .chatHelpSlot {display:flex}
body .galaxyChatHeadV6261 [data-chat-close] {width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:9px!important;border:1px solid #345b6b!important;background:#102f3d!important;font:500 23px/1 system-ui!important;color:#dff3fa!important}
body .galaxyChatTabsV6261 {flex:none;gap:4px!important;padding:8px 12px!important}
body .galaxyChatTabsV6261 button {font:750 10px/1.15 system-ui!important;min-height:40px!important;padding:5px!important;border:1px solid transparent!important;background:transparent!important;border-radius:7px!important;color:#8daeba!important}
body .galaxyChatTabsV6261 button.active {background:#193c4d!important;border-color:#4b8195!important;color:#dcf7ff!important;box-shadow:none!important}
body .galaxyPrivateTargetV6261 {flex:none;padding:4px 14px 10px!important;gap:10px}
body .galaxyPrivateTargetV6261 label {font:750 10px/1.3 system-ui!important;white-space:nowrap}
body .galaxyPrivateTargetV6261 input {height:38px!important;font:500 16px/1.3 system-ui!important}
body .galaxyChatRoomTitleV6261 {flex:none;padding:8px 16px!important;background:#0b2836!important}
body .galaxyChatRoomTitleV6261 b {font:800 10px/1.3 system-ui!important}
body .galaxyChatRoomTitleV6261 span {font:700 9px/1.3 system-ui!important;color:#98bbc9!important;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .galaxyChatMessagesV6261 {flex:1 1 0!important;min-height:38px!important;overflow-y:auto!important;padding:12px 16px!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#396170 transparent}
body .galaxyChatMessageV6261 {padding:8px 10px!important;margin-bottom:9px!important;background:#0e2d3c!important;border-radius:8px!important;border-left:2px solid #3b748b!important}
body .galaxyChatMessageV6261.mine {background:#0c3034!important;border-color:#4c978a!important}
body .galaxyChatMessageV6261 b {display:flex;align-items:center;gap:4px;min-width:0;font:750 11px/1.3 system-ui!important;overflow-wrap:anywhere}
body .galaxyChatMessageV6261 time {flex:none;font:500 10px/1.3 system-ui!important;color:#91acb8!important}
body .galaxyChatMessageV6261 p {font:500 13px/1.45 system-ui!important;color:#dfedf3!important;margin-top:5px!important}
body .galaxyChatMessageV6261 small {font:600 9px/1.3 system-ui!important;color:#91acb8!important}
body .galaxyChatEmptyV6261 {font:500 13px/1.5 system-ui!important;color:#a5bbc6!important}
body .galaxyChatComposerV6261 {flex:none;padding:10px 14px 6px!important;gap:8px}
body .galaxyChatComposerV6261 input {height:42px!important;font:500 16px/1.3 system-ui!important;padding:0 10px!important}
body .galaxyChatComposerV6261 button {min-width:68px!important;min-height:42px!important;font:800 11px/1 system-ui!important;border-radius:8px!important}
body .galaxyChatStatusV6261 {flex:none;padding:3px 15px 9px!important;font:600 9px/1.3 system-ui!important;color:#96bac8!important;min-height:12px}
@media(max-width:820px) {
 body .galaxyChatToggleV6261 {width:min(272px,calc(100vw - 24px))!important;min-height:68px!important;padding:8px 10px!important}
 body .galaxyChatHeadV6261 {padding:12px 14px 8px!important}
 body .galaxyChatTabsV6261 {padding:6px 10px!important}
 body .galaxyChatMessagesV6261 {padding:9px 12px!important}
}
@media(max-height:500px) {
 body .galaxyChatV6261 {height:var(--chat-available-height,calc(100dvh - 16px))!important}
 body .galaxyChatHeadV6261 {padding:5px 12px!important}
 body .galaxyChatHeadV6261 small {display:none!important}
 body .galaxyChatHeadV6261 h2 {font-size:16px!important;margin:0!important}
 body .galaxyChatHeadV6261 [data-chat-close] {height:34px!important;min-height:34px!important}
 body .galaxyChatTabsV6261 {padding:3px 8px!important}
 body .galaxyChatTabsV6261 button {min-height:34px!important}
 body .galaxyChatRoomTitleV6261 {padding:4px 12px!important}
 body .galaxyPrivateTargetV6261 {padding-bottom:4px!important}
 body .galaxyChatStatusV6261 {padding-bottom:3px!important}
 body .galaxyChatComposerV6261 {padding-top:5px!important}
}

/* A mobile keyboard can shrink only visualViewport, without changing media queries. */
body .galaxyChatV6261[data-chat-short-viewport="true"] {height:var(--chat-available-height,calc(100dvh - 16px))!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatHeadV6261 {padding:5px 12px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatHeadV6261 small {display:none!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatHeadV6261 h2 {font-size:16px!important;margin:0!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatHeadV6261 [data-chat-close] {height:34px!important;min-height:34px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatTabsV6261 {padding:3px 8px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatTabsV6261 button {min-height:34px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatRoomTitleV6261 {padding:4px 12px!important}
 body .galaxyPrivateTargetV6261 {padding-bottom:4px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatStatusV6261 {padding-bottom:3px!important}
 body .galaxyChatV6261[data-chat-short-viewport="true"] .galaxyChatComposerV6261 {padding-top:5px!important}

body .galaxyChatV6261[data-chat-short-viewport="true"] {overflow-y:auto!important}

/* On narrower maps the compact feed clears SHIP; notices use its measured top edge. */
@media(max-width:1000px) {body .galaxyChatToggleV6261 {bottom:calc(var(--rl-bottom,8px) + 66px)!important}}
