/* Compact in-game global/clan chat and persistent selected-panel states. */
#chatBox #chatMessages {
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(117, 181, 207, .42) !important;
  border-radius: 3px !important;
  background: rgba(7, 17, 27, .68) !important;
  box-shadow: inset 0 1px 0 rgba(230, 246, 255, .06), 0 3px 10px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(2px);
  scrollbar-color: rgba(119, 190, 218, .62) rgba(9, 25, 37, .72) !important;
}
#chatBox #chatMessages:empty {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
#chatBox .chat-line {
  padding: 3px 1px !important;
  line-height: 1.38 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .62) !important;
}
#chatBox .chat-line + .chat-line {
  border-top: 1px solid rgba(201, 228, 239, .08) !important;
}
#chatBox .chat-message-content {
  color: #eef6fb !important;
  overflow-wrap: anywhere;
}
#chatBox .chat-channel-label.global {
  color: #83e675 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8) !important;
}
#chatBox .chat-channel-label.clan {
  color: #ffb45e !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8) !important;
}
#chatBox .chat-channel-label.system {
  color: #9dddf5 !important;
  font-weight: 800 !important;
}
#chatBox #chatInput {
  min-width: 0 !important;
  padding: 7px 10px !important;
  color: #f1f8fc !important;
  background: rgba(8, 22, 34, .94) !important;
  border: 1px solid rgba(113, 190, 222, .7) !important;
  border-radius: 3px !important;
  box-shadow: inset 0 1px 0 rgba(237, 249, 255, .08), 0 3px 9px rgba(0, 0, 0, .24) !important;
}
#chatBox #chatInput::placeholder {
  color: rgba(211, 232, 242, .68) !important;
}
#chatBox #chatInput:focus {
  border-color: #a4e7ff !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(72, 177, 218, .22), 0 3px 10px rgba(0, 0, 0, .3) !important;
}

/* A panel button stays visibly selected for as long as its panel is open. */
#actionDock .dock-button.active,
#minimapTools .minimap-tool-tab.active {
  background: linear-gradient(180deg, #2186ad, #10587b) !important;
  background-color: #176f95 !important;
  border-color: #9ae5ff !important;
  color: #ffffff !important;
  outline: 1px solid rgba(172, 235, 255, .7) !important;
  outline-offset: 1px !important;
  box-shadow:
    0 0 0 2px rgba(5, 20, 31, .88),
    0 0 11px 2px rgba(68, 197, 242, .62),
    0 0 22px rgba(68, 197, 242, .34),
    inset 0 1px 0 rgba(235, 250, 255, .26) !important;
  filter: brightness(1.08);
  z-index: 2;
}
#actionDock .dock-button.active:hover,
#minimapTools .minimap-tool-tab.active:hover {
  filter: brightness(1.12) !important;
}
#actionDock .dock-button.active:focus-visible,
#minimapTools .minimap-tool-tab.active:focus-visible {
  outline: 2px solid #e6f9ff !important;
  outline-offset: 2px !important;
}
@media (max-width: 760px) {
  #chatBox .chat-line { font-size: 12px !important; }
  #chatBox #chatMessages { padding: 6px 8px !important; }
}
