/* Player community V8: social-first community, messaging and profile surfaces. */

html[data-theme] body.dashboard-v2.dashboard-v3 :where(
  .community-feed,
  .community-post-card,
  .community-publish-card,
  .community-composer-panel,
  .chat-hub,
  .chat-hub__sidebar,
  .chat-room,
  .profile-card,
  .profile-binding-panel,
  .profile-display-settings,
  .profile-activity-panel,
  .profile-friends-panel,
  .player-profile-modal
) {
  background-image: none !important;
}

/* Chat V9: QQ/WeChat-style conversation list, group rooms and voice messages. */

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar {
  width: 100%;
  border-right: 0 !important;
  background: var(--axis-card) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-room {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"],
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] {
  grid-template-columns: 320px minmax(0, 1fr) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head {
  min-height: 74px;
  padding: 14px 18px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head h2 {
  font-size: 19px;
  line-height: 25px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head span {
  display: block;
  color: var(--axis-muted);
  font-size: 11px;
  line-height: 16px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar-head,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-conversation-list,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-conversation-add {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar-head {
  margin-top: 22px;
  border: 0 !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-list,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-friend-conversation-list {
  display: grid;
  align-content: start;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-list {
  padding: 6px 10px 14px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-friend-conversation-list {
  min-width: 0;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation {
  width: 100%;
  min-height: 74px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation:hover,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation.is-active {
  color: var(--axis-text);
  background: var(--axis-control-hover) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__avatar {
  width: 50px !important;
  height: 50px !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px !important;
  font-size: 17px;
  font-weight: 760;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__avatar--official {
  background: #2f7df4 !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy {
  align-self: stretch;
  display: grid;
  grid-template-rows: 24px 20px;
  align-content: center;
  gap: 0;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy strong {
  min-width: 0;
  color: var(--axis-heading);
  font-size: 14px;
  font-weight: 680;
  line-height: 20px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__head time {
  flex: 0 0 auto;
  color: var(--axis-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy small {
  align-self: center;
  color: var(--axis-muted);
  font-size: 11px;
  line-height: 18px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation > b {
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  font-size: 9px;
  line-height: 18px;
  text-align: center;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-empty {
  margin: 12px 10px;
  color: var(--axis-muted);
  font-size: 11px;
  text-align: center;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-add {
  min-height: 42px;
  margin: 0 12px 14px;
  color: var(--axis-muted);
  background: transparent !important;
  border: 1px dashed var(--axis-border-strong) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  font-size: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-add:hover {
  color: var(--dash-primary);
  border-color: var(--dash-primary) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__header {
  min-height: 66px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
  display: grid;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub .chat-room__header {
  justify-content: flex-start !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity {
  margin-right: auto;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button svg {
  width: 20px;
  height: 20px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview {
  grid-column: 1 / -1;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel[hidden],
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview[hidden] {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel__pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: #ef4444;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgb(239 68 68 / 0.12);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel > div,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview > div {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel strong,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview strong {
  color: var(--axis-heading);
  font-size: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel small,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview small {
  color: var(--axis-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-panel button,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview button {
  min-height: 32px;
  padding: 0 10px;
  background: var(--axis-control) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview audio {
  width: min(260px, 42vw);
  height: 34px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 #chatVoiceButton.is-recording {
  color: #ef4444 !important;
  background: rgb(239 68 68 / 0.1) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice {
  width: min(330px, 68vw);
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--axis-text);
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 6px 13px 13px 13px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message.is-mine .chat-message__voice {
  color: #fff;
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  border-radius: 13px 6px 13px 13px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice > span {
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -4px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice audio {
  width: 100%;
  min-width: 130px;
  height: 32px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice button {
  min-width: 88px;
  min-height: 32px;
  padding: 0 9px;
  color: inherit;
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice small {
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar {
    position: static;
    width: 100%;
    height: 100%;
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"] .chat-hub__sidebar,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] .chat-hub__sidebar {
    display: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"] .chat-room,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] .chat-room {
    display: grid !important;
    width: 100%;
    height: 100% !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar-head,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-conversation-list,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-conversation-add {
    width: calc(100% - 20px);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar-head {
    min-height: 64px;
    margin-top: 0;
    padding: 10px 8px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-list {
    padding: 2px 0 12px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation {
    min-height: 72px;
    padding-inline: 8px !important;
    border-radius: 10px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__header {
    min-height: 54px;
    padding: 6px 8px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .app-header {
    display: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open.sidebar-collapsed .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open.is-sidebar-collapsed .shell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .chat-page {
    margin-top: 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .chat-hub {
    height: 100dvh !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .mobile-bottom-nav {
    display: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview {
    flex-wrap: wrap;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-voice-preview audio {
    width: calc(100% - 94px);
    min-width: 170px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__voice {
    width: min(280px, 76vw);
  }
}

/* Community feed */

html[data-theme] body.dashboard-v2.dashboard-v3 .community-page-v5 {
  padding-bottom: 28px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-layout-v5 {
  width: min(100%, 1080px);
  display: block !important;
  margin-inline: auto;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-feed {
  overflow: visible;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-feed__head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px !important;
  border: 0 !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-feed__head h2 {
  margin: 0;
  color: var(--axis-heading);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

html[data-theme] body.dashboard-v2.dashboard-v3 #communityPostCount {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 16px !important;
  padding-bottom: 18px !important;
  scroll-padding-bottom: 18px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card {
  min-width: 0;
  overflow: hidden;
  color: var(--axis-text);
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--axis-shadow) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card:hover {
  border-color: var(--axis-border-strong) !important;
  box-shadow: 0 9px 28px rgb(15 23 42 / 0.07) !important;
}

html[data-theme="dark"] body.dashboard-v2.dashboard-v3 .community-post-card:hover {
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.3) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px !important;
  background: var(--axis-card) !important;
  border-bottom: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-author {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-author__avatar,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment__avatar {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 9px !important;
  background: var(--axis-control) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-author__text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-author__text strong {
  overflow: hidden;
  color: var(--axis-heading);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-author__text small {
  color: var(--axis-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 :where(
  .community-post-card__private,
  .community-post-card__delete
) {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--axis-border) !important;
  border-radius: 8px !important;
  background: var(--axis-control) !important;
  box-shadow: none !important;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__media {
  background: var(--axis-control) !important;
  border: 0 !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__media :where(
  .community-post-card__image,
  .community-post-card__video
) {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--axis-control) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__media :where(img, video) {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__body {
  display: grid;
  gap: 7px;
  padding: 14px 15px 10px !important;
  background: var(--axis-card) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__body h3 {
  margin: 0;
  color: var(--axis-heading);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__content {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--axis-text);
  font-size: 12px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card.is-text-only .community-post-card__body {
  min-height: 118px;
  align-content: center;
  padding-block: 22px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__actions {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px !important;
  background: var(--axis-card) !important;
  border-top: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  color: var(--axis-muted);
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action:hover,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action.is-liked {
  color: var(--dash-primary);
  background: var(--dash-primary-soft) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action__icon {
  font-size: 17px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action__label,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-action__count {
  font-size: 11px;
  font-weight: 650;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comments {
  padding: 0 12px 12px !important;
  background: var(--axis-card) !important;
  border-top: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comments__list {
  display: grid;
  gap: 8px;
  padding: 12px 0 8px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment__avatar {
  width: 32px !important;
  height: 32px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment__body {
  padding: 9px 10px;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border);
  border-radius: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  background: var(--axis-control) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 10px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-comment-form button {
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: var(--dash-primary) !important;
  border: 0 !important;
  border-radius: 10px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-publish-card {
  /* The feed owns the scrolling row; keep the composer in its dedicated
     bottom row so cards can never slide underneath it. */
  position: relative !important;
  inset: auto !important;
  z-index: 9;
  margin-top: 16px;
  overflow: visible;
  padding: 0 !important;
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 15px !important;
  box-shadow: var(--axis-shadow-float) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  color: var(--axis-text);
  background: var(--axis-card) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  text-align: left;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dash-primary) !important;
  border-radius: 9px !important;
  font-size: 20px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle strong {
  color: var(--axis-heading);
  font-size: 13px;
  font-weight: 720;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle small {
  overflow: hidden;
  color: var(--axis-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle > b {
  color: var(--dash-primary);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-panel {
  max-height: min(74dvh, 680px);
  overflow-y: auto;
  padding: 16px !important;
  background: var(--axis-card) !important;
  border-top: 1px solid var(--axis-border) !important;
  border-radius: 0 0 15px 15px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-compose-account,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-file-picker,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-private-option,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-image-preview {
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 12px !important;
}

/* Chat */

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-page {
  min-height: 0;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub {
  width: min(100%, 1180px);
  height: calc(100dvh - 88px);
  min-height: 600px;
  display: grid !important;
  grid-template-columns: 272px minmax(0, 1fr) !important;
  margin-inline: auto;
  overflow: hidden;
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--axis-shadow) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--axis-card-muted) !important;
  border: 0 !important;
  border-right: 1px solid var(--axis-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px !important;
  background: var(--axis-card-muted) !important;
  border-bottom: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head span {
  display: none;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head h2 {
  margin: 0;
  color: var(--axis-heading);
  font-size: 17px;
  font-weight: 760;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-actions {
  display: flex;
  gap: 5px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-actions button,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--axis-muted);
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-actions button:hover,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button:hover {
  color: var(--axis-heading);
  background: var(--axis-control-hover) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation {
  width: auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 6px 8px 0;
  padding: 8px 10px !important;
  color: var(--axis-text);
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  text-align: left;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation:hover {
  background: var(--axis-control-hover) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation.is-active {
  color: var(--dash-primary);
  background: var(--dash-primary-soft) !important;
  border-color: color-mix(in srgb, var(--dash-primary) 24%, var(--axis-border)) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__avatar,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  background: var(--dash-primary) !important;
  color: #fff;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy strong {
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy small {
  overflow: hidden;
  color: var(--axis-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__section-title {
  padding: 16px 13px 6px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room {
  min-width: 0;
  min-height: 0;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--axis-card) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__header {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px !important;
  background: var(--axis-card) !important;
  border-bottom: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
  display: none;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity strong {
  overflow: hidden;
  color: var(--axis-heading);
  font-size: 14px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity small {
  color: var(--axis-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__status,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-backdrop {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message-list {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px !important;
  background: var(--axis-bg) !important;
  scroll-padding-block: 18px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message {
  max-width: 78%;
  margin-bottom: 14px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__meta {
  margin-bottom: 5px;
  color: var(--axis-muted);
  font-size: 9px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__bubble {
  padding: 10px 12px !important;
  color: var(--axis-text);
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 5px 13px 13px 13px !important;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.045) !important;
  line-height: 1.6;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message.is-mine {
  margin-left: auto;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message.is-mine .chat-message__bubble {
  color: #fff !important;
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  border-radius: 13px 5px 13px 13px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__footer {
  padding: 10px 12px 12px !important;
  background: var(--axis-card) !important;
  border-top: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px;
  margin: 0;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar button,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-media-picker {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--axis-muted);
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar :where(svg) {
  width: 16px;
  height: 16px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar :where(b) {
  color: currentColor;
  font-size: 10px;
  font-weight: 620;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer textarea {
  min-height: 48px;
  max-height: 120px;
  resize: none;
  padding: 12px 13px !important;
  color: var(--axis-text);
  background: var(--axis-control) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__actions {
  min-width: 96px;
  display: flex;
  align-items: stretch;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__actions button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 11px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-emoji-panel,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-media-preview,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-sticker-preview {
  grid-column: 1 / -1;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

/* Player profile */

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-page {
  width: min(100%, 1120px);
  margin-inline: auto;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: start;
  gap: 16px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card {
  position: sticky;
  top: 76px;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px !important;
  text-align: center;
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--axis-shadow) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-avatar {
  width: 104px !important;
  height: 104px !important;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--dash-primary);
  background: var(--axis-control) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 17px !important;
  box-shadow: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card h2 {
  margin: 0;
  color: var(--axis-heading);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card p {
  max-width: 210px;
  margin: 7px 0 0;
  color: var(--axis-muted);
  font-size: 11px;
  line-height: 1.6;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-verified-badge {
  margin-top: 12px;
  padding: 5px 9px;
  color: var(--axis-success);
  background: var(--axis-success-soft) !important;
  border: 1px solid color-mix(in srgb, var(--axis-success) 25%, var(--axis-border));
  border-radius: 8px;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-auth-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 :where(
  .profile-binding-panel,
  .profile-display-settings,
  .profile-activity-panel,
  .profile-friends-panel,
  .site-form#profileForm
) {
  padding: 18px !important;
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 15px !important;
  box-shadow: var(--axis-shadow) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .binding-steps {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-bottom: 16px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .binding-steps span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 10px !important;
  color: var(--axis-muted);
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
  font-size: 10px;
  line-height: 1.45;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .binding-steps strong {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dash-primary) !important;
  border-radius: 7px;
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 :where(.binding-form, .binding-code-form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end;
  gap: 9px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .binding-instructions {
  display: grid;
  gap: 10px;
  padding: 14px !important;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 12px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .binding-bot-card,
html[data-theme] body.dashboard-v2.dashboard-v3 .binding-player-row {
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 10px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 #profileForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 #profileForm[hidden] {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 #profileForm .profile-form-actions,
html[data-theme] body.dashboard-v2.dashboard-v3 #profileForm .form-message {
  grid-column: 1 / -1;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-settings__toggle {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  color: var(--axis-text);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-settings__toggle span {
  color: var(--axis-heading);
  font-size: 14px;
  font-weight: 720;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-settings__toggle small {
  color: var(--axis-muted);
  font-size: 10px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-settings__form {
  padding-top: 14px;
  border-top: 1px solid var(--axis-border);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-panel > header,
html[data-theme] body.dashboard-v2.dashboard-v3 .profile-friends-panel > header {
  min-height: 44px;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--axis-border) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-panel > header > div > span,
html[data-theme] body.dashboard-v2.dashboard-v3 .profile-friends-panel > header > div > span {
  display: none;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-summary article {
  padding: 13px !important;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-server,
html[data-theme] body.dashboard-v2.dashboard-v3 .profile-friend-row {
  min-height: 56px;
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .profile-friend-avatar {
  border-radius: 8px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .player-profile-modal {
  color: var(--axis-text);
  background: var(--axis-card) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--axis-shadow-float) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .player-profile-summary article,
html[data-theme] body.dashboard-v2.dashboard-v3 .player-profile-server {
  background: var(--axis-card-muted) !important;
  border: 1px solid var(--axis-border) !important;
  border-radius: 11px !important;
}

@media (max-width: 1050px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-layout-v5 {
    width: min(100%, 720px);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-layout {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }
}

@media (max-width: 700px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .community-page-v5 {
    padding-bottom: 12px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-feed__head {
    min-height: 42px;
    padding: 0 2px 8px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-feed__head h2 {
    font-size: 18px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-grid {
    gap: 12px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card {
    border-radius: 14px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__header {
    min-height: 60px;
    padding: 10px 12px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__body {
    padding: 12px 13px 9px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__content {
    -webkit-line-clamp: 6;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-publish-card {
    margin-top: 12px;
    border-radius: 14px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle {
    min-height: 56px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-panel {
    max-height: calc(100dvh - 92px);
    padding: 13px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-publish-head p,
  html[data-theme] body.dashboard-v2.dashboard-v3 .community-file-picker small,
  html[data-theme] body.dashboard-v2.dashboard-v3 .community-private-option small {
    display: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-page {
    margin: -14px -12px -24px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub {
    width: 100%;
    height: calc(100dvh - 50px);
    min-height: 0;
    display: block !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub .chat-room {
    width: 100%;
    height: 100% !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
    display: grid;
    flex: 0 0 auto;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar {
    position: fixed;
    z-index: 72;
    top: 50px;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 44px));
    transform: translateX(-104%) !important;
    transition: transform 180ms ease !important;
    border-right: 1px solid var(--axis-border) !important;
    box-shadow: 18px 0 46px rgb(0 0 0 / 0.24) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub.is-sidebar-open .chat-hub__sidebar,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-sidebar-open="true"] .chat-hub__sidebar {
    transform: translateX(0) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-backdrop {
    position: fixed;
    z-index: 71;
    inset: 50px 0 0;
    width: 100%;
    height: auto;
    padding: 0;
    background: rgb(0 0 0 / 0.48) !important;
    border: 0 !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub.is-sidebar-open .chat-conversation-backdrop,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-sidebar-open="true"] .chat-conversation-backdrop {
    display: block !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__header {
    min-height: 58px;
    padding: 8px 10px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__avatar {
    width: 34px !important;
    height: 34px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__identity small {
    display: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message-list {
    padding: 14px 11px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message {
    max-width: 90%;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-room__footer {
    padding: 8px 9px max(9px, env(safe-area-inset-bottom)) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer {
    gap: 6px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar {
    overflow-x: auto;
    scrollbar-width: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar b {
    display: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__toolbar button,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-media-picker {
    width: 32px;
    height: 30px;
    justify-content: center;
    padding: 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer textarea {
    min-height: 46px;
    padding: 11px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__actions {
    min-width: 92px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-composer__actions button {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 11px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-page {
    width: 100%;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card {
    position: static;
    min-height: 118px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-items: start;
    column-gap: 14px;
    padding: 16px !important;
    text-align: left;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-avatar {
    grid-row: 1 / 4;
    width: 76px !important;
    height: 76px !important;
    margin: 0;
    border-radius: 13px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card h2 {
    align-self: end;
    font-size: 18px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-card p {
    max-width: 100%;
    margin: 3px 0 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-verified-badge {
    margin-top: 5px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 :where(
    .profile-binding-panel,
    .profile-display-settings,
    .profile-activity-panel,
    .profile-friends-panel,
    .site-form#profileForm
  ) {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .binding-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    overflow: visible;
    padding-bottom: 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .binding-steps span {
    width: auto;
    min-width: 0;
    min-height: 68px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 :where(.binding-form, .binding-code-form) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 #profileForm {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .profile-activity-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .player-profile-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 15px !important;
  }
}

@media (max-width: 430px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .community-author__avatar {
    width: 36px !important;
    height: 36px !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-author {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle small {
    display: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle > b {
    font-size: 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-composer-toggle > b::after {
    content: "+";
    font-size: 18px;
  }
}

/* Mobile app navigation — the full sidebar remains available from the
   hamburger, while the five player-facing destinations stay one tap away. */

html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav {
  display: none;
}

@media (max-width: 700px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 {
    --mobile-bottom-nav-height: 62px;
    --mobile-bottom-nav-total: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav {
    position: fixed;
    z-index: 65;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--mobile-bottom-nav-total);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 2px;
    padding: 5px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    color: var(--axis-muted);
    background: color-mix(in srgb, var(--axis-card) 94%, transparent) !important;
    background-image: none !important;
    border-top: 1px solid var(--axis-border);
    box-shadow: 0 -10px 30px rgb(8 15 28 / 0.06);
    backdrop-filter: blur(18px) saturate(105%);
    -webkit-backdrop-filter: blur(18px) saturate(105%);
    transition: opacity 140ms ease, transform 180ms ease, visibility 180ms ease;
  }

  html[data-theme="dark"] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav {
    background: rgb(10 10 10 / 0.94) !important;
    border-top-color: #242426;
    box-shadow: 0 -10px 30px rgb(0 0 0 / 0.22);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-rows: 30px 14px;
    place-items: center;
    gap: 1px;
    padding: 0 2px;
    color: var(--axis-muted);
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    font: inherit;
    cursor: pointer;
    transition: none !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button > span:last-child {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav__icon {
    width: 36px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    transition: transform 120ms ease;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button:first-child svg path {
    fill: currentColor;
    stroke: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button.is-active {
    color: var(--dash-primary);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button.is-active .mobile-bottom-nav__icon {
    background: color-mix(in srgb, var(--dash-primary) 13%, transparent) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button:active .mobile-bottom-nav__icon {
    transform: scale(0.92);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .mobile-bottom-nav button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--dash-primary) 68%, transparent);
    outline-offset: -2px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.sidebar-collapsed .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.is-sidebar-collapsed .shell {
    padding-bottom: calc(24px + var(--mobile-bottom-nav-total)) !important;
    scroll-padding-bottom: calc(16px + var(--mobile-bottom-nav-total));
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .site-toast {
    bottom: calc(12px + var(--mobile-bottom-nav-total));
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .community-page-v5 {
    height: calc(100dvh - 70px - var(--mobile-bottom-nav-total)) !important;
    min-height: 0 !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub {
    height: calc(100dvh - 56px - var(--mobile-bottom-nav-total));
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-page {
    width: calc(100% + 24px);
    max-width: none;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.mobile-input-active .chat-hub {
    height: calc(100dvh - 56px);
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.mobile-input-active .community-page-v5 {
    height: calc(100dvh - 70px) !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.mobile-input-active .site-toast {
    bottom: 12px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3:is(.nav-open, .server-detail-open, .theme-settings-open, .mobile-input-active) .mobile-bottom-nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(105%);
  }
}

/* Chat V9 final cascade: keep the conversation geometry above legacy chat rules. */

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar {
  width: 100%;
  border-right: 0 !important;
  background: var(--axis-card) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-room {
  display: none !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"],
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] {
  grid-template-columns: 320px minmax(0, 1fr) !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub__sidebar-head span {
  display: block;
  color: var(--axis-muted);
  font-size: 11px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation-list,
html[data-theme] body.dashboard-v2.dashboard-v3 .chat-friend-conversation-list {
  display: grid;
  align-content: start;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation {
  width: 100%;
  min-height: 74px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 12px !important;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy {
  align-self: stretch;
  display: grid;
  grid-template-rows: 24px 20px;
  align-content: center;
  gap: 0;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy strong {
  color: var(--axis-heading);
  font-size: 14px;
  line-height: 20px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-conversation__copy small {
  color: var(--axis-muted);
  font-size: 11px;
  line-height: 18px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
  display: none;
}

@media (max-width: 700px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-mobile-conversation-button {
    display: grid;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="list"] .chat-hub__sidebar {
    position: static;
    width: 100%;
    height: 100%;
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"] .chat-hub__sidebar,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] .chat-hub__sidebar {
    display: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="group"] .chat-room,
  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-hub[data-mode="friend"] .chat-room {
    display: grid !important;
    width: 100%;
    height: 100% !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .app-header,
  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .mobile-bottom-nav {
    display: none !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open.sidebar-collapsed .shell,
  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open.is-sidebar-collapsed .shell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .chat-page {
    margin-top: 0;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3.chat-room-open .chat-hub {
    height: 100dvh !important;
  }
}
