/* Customer support: scoped to avoid changing the rest of the account UI. */
#support { max-width: 960px; margin-inline: auto; }
#support h2 { margin: 0 0 12px; font-size: clamp(23px, 3vw, 30px); line-height: 1.3; }
#support > p { color: #b3bfd4; line-height: 1.7; }
#support-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  max-height: min(540px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  margin-block: 22px;
  border: 1px solid var(--border, #303b54);
  border-radius: 14px;
  background: var(--panel, #111a2a);
  scrollbar-width: thin;
  scrollbar-color: #455673 #0d1423;
}
.support-message {
  min-width: 0;
  width: fit-content;
  max-width: min(78%, 680px);
  padding: 13px 16px;
  border: 1px solid #3b4760;
  border-radius: 14px 14px 14px 4px;
  background: #1b263a;
  color: #f2f3fa;
}
.support-message-own {
  align-self: flex-end;
  border-color: #65538f;
  border-radius: 14px 14px 4px 14px;
  background: #302747;
}
.support-message-admin { align-self: flex-start; }
.support-message-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.support-message-meta strong { font-size: 13px; color: #dfd7ff; }
.support-message-meta time { font-size: 12px; color: #b1bbcf; }
.support-message-body { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: 15px; }
.support-empty, .support-history-note { margin: 0; color: #b3bfd4; font-size: 14px; line-height: 1.6; }
.support-history-note { text-align: center; }
#support-form { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#support-body {
  display: block;
  width: 100%;
  min-height: 125px;
  max-height: 360px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #45516b;
  border-radius: 10px;
  background: #0c1322;
  color: #f2f3fa;
  font: inherit;
  line-height: 1.6;
}
#support button { min-height: 42px; padding: 10px 18px; border: 1px solid #8066c3; border-radius: 8px; background: #6c51bb; color: #fff; font: inherit; }
#support #support-refresh { background: #1d253b; border-color: #45516b; }
#support button:disabled, #support-body:disabled { opacity: .6; cursor: not-allowed; }
#support button:focus-visible, #support-body:focus-visible { outline: 2px solid #bba8ff; outline-offset: 3px; }
#support #support-status { min-height: 1.7em; overflow-wrap: anywhere; }
#support-unread { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #7055bc; color: #fff; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.5; }
@media (max-width: 600px) {
  #support-messages { padding: 12px; gap: 12px; max-height: 55dvh; }
  .support-message { max-width: 92%; padding: 11px 13px; }
  .support-message-meta { gap: 4px 10px; }
  #support-form button { width: 100%; }
  #support-body { min-height: 110px; font-size: 16px; }
}
