/* Mobile closeout for public profile, user center, and edit profile only. */
.wuai-public-profile-v4,
.wuai-public-profile-v4 * ,
.wuai-edit-page,
.wuai-edit-page *,
.wuai-profile-basic,
.wuai-profile-basic * {
  box-sizing: border-box;
}

.wuai-public-profile-v4,
.wuai-public-cover,
.wuai-public-user-card,
.wuai-public-card-avatar-frame {
  overflow: visible !important;
}

.wuai-public-user-card {
  isolation: isolate;
}

.wuai-public-card-avatar,
.wuai-public-card-avatar-frame {
  z-index: 5 !important;
}

.wuai-public-card-avatar-frame .wuai-public-card-avatar,
.wuai-public-profile-page .wuai-public-card-avatar-frame.xh-avatar-frame-wrap .xh-avatar-img.wuai-public-card-avatar,
.wuai-public-profile-v4 .wuai-public-card-avatar-frame.xh-avatar-frame-wrap .xh-avatar-img.wuai-public-card-avatar {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
}

.wuai-edit-account-card .wuai-edit-card-head {
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  .wuai-public-profile-page #body > .container {
    padding-right: 0;
    padding-left: 0;
  }

  .wuai-public-profile-page #body .row {
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .wuai-public-profile-page #user_main {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow-x: hidden;
  }

  .wuai-public-profile-page #user_main > .card,
  .wuai-public-profile-page #user_main > .card > .card-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .wuai-public-profile-v4 {
    margin: 0 0 14px;
    padding: 0 0 10px;
  }

  .wuai-public-cover {
    min-height: 205px !important;
    border-radius: 0 0 24px 24px !important;
    background-position: center center !important;
  }

  .wuai-public-user-card {
    width: calc(100% - 28px) !important;
    margin-top: -64px !important;
    padding: 72px 16px 20px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 30px rgba(38, 28, 54, .1) !important;
  }

  .wuai-public-user-card > img.wuai-public-card-avatar {
    position: absolute !important;
    top: -46px !important;
    left: 50% !important;
    width: 92px !important;
    height: 92px !important;
    transform: translateX(-50%) !important;
  }

  .wuai-public-card-avatar-frame {
    position: absolute !important;
    top: -67px !important;
    left: 50% !important;
    width: calc(var(--xh-avatar-size) * var(--xh-frame-scale, 1.45)) !important;
    height: calc(var(--xh-avatar-size) * var(--xh-frame-scale, 1.45)) !important;
    transform: translateX(-50%) !important;
  }

  .wuai-public-card-name {
    gap: 7px;
  }

  .wuai-public-card-name strong {
    max-width: min(210px, 62vw) !important;
    font-size: 24px !important;
    line-height: 1.18;
  }

  .wuai-public-badge-row {
    margin-top: 10px;
  }

  .wuai-public-badge-row .wuai-user-badges {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .wuai-public-card-tags {
    margin-top: 10px;
    gap: 7px;
  }

  .wuai-public-card-bio {
    margin-top: 10px;
    white-space: normal;
  }

  .wuai-public-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 0;
    margin-top: 16px !important;
    padding-top: 16px !important;
  }

  .wuai-public-card-stats div + div {
    border-left: 0 !important;
  }

  .wuai-public-card-stats strong {
    font-size: 20px !important;
  }

  .wuai-public-card-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px !important;
  }

  .wuai-public-action,
  .wuai-public-action:hover,
  .wuai-public-action:focus {
    width: 100%;
    min-width: 0 !important;
    min-height: 40px;
  }

  .wuai-public-card-actions .wuai-public-action:only-child {
    grid-column: 1 / -1;
  }

  .wuai-public-tabs {
    gap: 8px !important;
    padding: 10px !important;
  }

  .wuai-public-tab,
  .wuai-public-tab:hover,
  .wuai-public-tab:focus {
    min-height: 40px !important;
    font-size: 14px !important;
  }

  .wuai-public-profile-page .wuai-public-info-row {
    min-height: 44px;
    padding: 10px 12px;
  }

  html body.wuai-public-profile-page .wuai-public-profile-v4 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  html body.wuai-public-profile-page .wuai-public-cover {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  html body.wuai-public-profile-page .wuai-public-user-card {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body.wuai-public-profile-page .wuai-public-card-stats {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 0 !important;
  }

  html body.wuai-public-profile-page .wuai-public-card-stats div {
    min-width: 0 !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
    border-left: 0 !important;
  }

  .wuai-my-mobile-head {
    overflow: visible;
  }

  .wuai-my-mobile-head,
  .wuai-my-mobile-head > .col-12 {
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .wuai-my-hero .wuai-my-profile-row {
    align-items: center !important;
    overflow: visible !important;
  }

  .wuai-my-hero .wuai-my-profile-main {
    min-width: 0;
  }

  .wuai-my-hero .wuai-my-badge-row,
  .wuai-my-hero .wuai-my-badge-row .wuai-user-badges,
  .wuai-my-hero .wuai-my-meta-tags {
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  .wuai-my-hero .wuai-my-badge-row .wuai-user-badges {
    display: flex !important;
    gap: 5px !important;
  }

  .wuai-my-hero .wuai-my-badge-row .wuai-user-badge,
  .wuai-my-hero .wuai-my-badge-row .wuai-user-badge-img {
    max-width: 82px !important;
  }

  .wuai-my-stat-card .card-body {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }

  .wuai-profile-basic {
    gap: 12px;
  }

  .wuai-profile-panel {
    overflow: visible;
  }

  .wuai-profile-panel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 0;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .wuai-profile-bind-grid,
  .wuai-bind-status-grid,
  .wuai-edit-readonly-grid,
  .wuai-profile-time-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .wuai-profile-info-row,
  .wuai-readonly-field,
  .wuai-bind-status-card,
  .wuai-profile-bind-row,
  .wuai-profile-time-item {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .wuai-edit-page {
    width: 100%;
    max-width: 100%;
    gap: 12px !important;
    overflow-x: hidden;
  }

  #my_main {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    overflow-x: hidden;
  }

  #my_main > .card,
  #my_main > .card > .card-header,
  #my_main > .card > .card-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .wuai-edit-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .wuai-edit-card-head {
    padding: 15px 14px 10px !important;
  }

  .wuai-edit-card-head h3 {
    font-size: 18px;
  }

  .wuai-avatar-edit-row {
    gap: 12px;
  }

  .wuai-avatar-upload {
    min-width: 0;
  }

  .wuai-edit-bg-current {
    width: auto;
    height: 112px;
    margin: 14px 12px 10px !important;
  }

  .wuai-edit-bg-card .wuai-bg-picker {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .wuai-edit-bg-card .wuai-bg-grid {
    margin-right: -5px !important;
    margin-left: -5px !important;
  }

  .wuai-edit-bg-card .wuai-bg-grid.row-cols-3 > .col,
  .wuai-edit-bg-card .wuai-bg-grid.row-cols-3 > [class*="col"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  .wuai-edit-form,
  .wuai-bind-manage-btn {
    margin-right: 12px;
    margin-left: 12px;
  }

  #js-go_top.goTop {
    right: 10px !important;
    bottom: 112px !important;
    transform: translate(56px, 0) !important;
  }

  #js-go_top.goTop.wuai-go-top-visible {
    transform: translate(0, 0) !important;
  }
}

/* Identity display closeout V1: final front-end-only layout layer. */
html body .card-threadlist .threadlist .subject,
html body .card-threadlist .threadlist .style1_subject_body .subject,
html body .card-threadlist .threadlist .style2_subject,
html body .card-threadlist .threadlist .style3_subject {
  display: block !important;
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

html body .card-threadlist .threadlist .subject > a,
html body .card-threadlist .threadlist .style1_subject_body .subject > a,
html body .card-threadlist .threadlist .style2_subject > a,
html body .card-threadlist .threadlist .style3_subject > a {
  display: inline !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

html body .card-threadlist .threadlist > .thread > .media-body > .d-flex.justify-content-between > .break-all,
html body .card-threadlist .threadlist > li.thread > .media-body > .d-flex.justify-content-between > .break-all {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 3px 5px !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}

html body .card-threadlist .threadlist .username {
  display: inline-flex !important;
  align-items: center !important;
  max-width: min(180px, 34vw) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

html body .card-threadlist .threadlist .date {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .user-group-icon,
html body .wuai-thread-author-line .user-group-icon,
html body .wuai-post-meta-line .user-group-icon {
  width: auto !important;
  max-width: 42px !important;
  max-height: 21px !important;
  margin: 0 2px !important;
  vertical-align: middle !important;
}

html body .wuai-thread-author-line,
html body .wuai-post-meta-line,
html body .wuai-public-badge-row,
html body .wuai-my-badge-row {
  align-items: center !important;
  gap: 4px 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

html body .wuai-thread-author-line .xh-svip-badge,
html body .wuai-post-meta-line .xh-svip-badge,
html body .wuai-public-badge-row .xh-svip-badge,
html body .wuai-my-badge-row .xh-svip-badge {
  flex: 0 0 auto !important;
  margin: 0 2px !important;
  vertical-align: middle !important;
}

html body .wuai-thread-author-line .wuai-user-badges,
html body .wuai-post-meta-line .wuai-user-badges,
html body .wuai-public-badge-row .wuai-user-badges,
html body .wuai-my-badge-row .wuai-user-badges {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html body .wuai-public-card-name {
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html body .wuai-public-card-name strong {
  max-width: min(270px, 70vw) !important;
}

html body .wuai-public-badge-row,
html body .wuai-my-badge-row {
  margin-top: 6px !important;
  line-height: 1 !important;
}

html body .wuai-public-badge-row > *,
html body .wuai-my-badge-row > * {
  flex: 0 1 auto !important;
}

html body .wuai-my-profile-main,
html body .wuai-public-user-card,
html body .wuai-public-card-tags,
html body .wuai-my-meta-tags {
  min-width: 0 !important;
}

html body .wuai-public-card-tags span,
html body .wuai-my-meta-tags .badge,
html body .wuai-user-pill,
html body .wuai-user-level-pill {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .wuai-reward-list-badge-wrap {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 0 0 0 6px !important;
  vertical-align: baseline !important;
}

html body .card-threadlist .threadlist .wuai-reward-list-badge-wrap .wuai-reward-list-badge {
  max-width: 100% !important;
  margin-left: 0 !important;
}

html body #my_aside .card-body > .xh-svip-badge,
html body #my_aside .card-body > .xh-svip-marker,
html body #my_aside .card-body > .wuai-user-badges,
html body #user_aside .card-body > .xh-svip-badge,
html body #user_aside .card-body > .xh-svip-marker,
html body #user_aside .card-body > .wuai-user-badges {
  display: none !important;
}

@media (max-width: 575.98px) {
  html body .card-threadlist .threadlist .subject,
  html body .card-threadlist .threadlist .style1_subject_body .subject,
  html body .card-threadlist .threadlist .style2_subject,
  html body .card-threadlist .threadlist .style3_subject {
    line-height: 1.38 !important;
  }

  html body .card-threadlist .threadlist .username {
    max-width: min(128px, 36vw) !important;
  }

  html body .card-threadlist .threadlist .wuai-reward-list-badge-wrap {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
  }

  html body .wuai-thread-author-line,
  html body .wuai-post-meta-line,
  html body .wuai-public-badge-row,
  html body .wuai-my-badge-row {
    gap: 4px 5px !important;
  }

  html body .wuai-public-card-name strong {
    max-width: min(220px, 64vw) !important;
  }

  html body .wuai-my-name-row {
    gap: 6px !important;
  }
}

@media (max-width: 430px) {
  html body .card-threadlist .threadlist .username {
    max-width: min(112px, 34vw) !important;
  }

  html body .wuai-public-badge-row,
  html body .wuai-my-badge-row {
    gap: 3px 4px !important;
  }

  html body .wuai-my-meta-tags,
  html body .wuai-public-card-tags {
    gap: 5px !important;
  }
}

/* Home/forum/search list closeout V2: scoped visual alignment layer. */
html body .card-threadlist.wuai-list-card,
html body .wuai-top-thread-card {
  border: 1px solid rgba(139, 92, 246, .11) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(31, 35, 48, .045) !important;
}

html body .card-threadlist.wuai-list-card .wuai-list-header,
html body .wuai-top-thread-card .wuai-list-header {
  padding: 10px 12px 8px !important;
  border-bottom: 1px solid rgba(139, 92, 246, .08) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%) !important;
}

html body .card-threadlist.wuai-list-card .card-header-tabs {
  display: flex !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

@supports selector(:has(*)) {
  html body .wuai-home-thread-card .card-header-tabs:has(.wuai-thread-filter-item) > .nav-item:first-child {
    display: none !important;
  }
}

html body .card-threadlist.wuai-list-card .card-header-tabs > .nav-item {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

html body .card-threadlist.wuai-list-card .card-header-tabs > .wuai-thread-filter-item {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body .card-threadlist.wuai-list-card .wuai-list-header .nav-link,
html body .card-threadlist.wuai-list-card .wuai-thread-filter-tab,
html body .card-threadlist.wuai-list-card .wuai-index-category-tab,
html body .card-threadlist.wuai-list-card .wuai-signin-entry,
html body .card-threadlist.wuai-list-card .wuai-checkin-home-pill,
html body .card-threadlist.wuai-list-card .xh-farm-home-pill {
  display: inline-flex !important;
  height: 34px !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body .card-threadlist.wuai-list-card .wuai-thread-filter-bar {
  min-height: 34px !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 !important;
}

html body .card-threadlist.wuai-list-card .wuai-index-category-tabs {
  align-items: center !important;
  gap: 7px !important;
  padding: 0 1px 2px !important;
}

html body .card-threadlist.wuai-list-card .wuai-forum-display-tab-icon,
html body .card-threadlist.wuai-list-card .wuai-forum-display-tab-icon img {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  object-fit: contain !important;
}

html body .card-threadlist.wuai-list-card .xh-farm-home-entry {
  margin-left: auto !important;
}

html body .card-threadlist.wuai-list-card .xh-farm-home-pill {
  border-color: rgba(22, 163, 74, .22) !important;
  background: linear-gradient(135deg, #16a34a 0%, #0f766e 100%) !important;
  box-shadow: 0 8px 16px rgba(22, 163, 74, .16) !important;
}

html body .card-threadlist.wuai-list-card .xh-farm-home-pill span,
html body .card-threadlist.wuai-list-card .xh-farm-home-pill b {
  width: 18px !important;
  height: 18px !important;
  border-radius: 7px !important;
  line-height: 18px !important;
}

html body .card-threadlist.wuai-list-card .xh-farm-home-pill.has-reminder {
  padding-right: 36px !important;
}

html body .card-threadlist.wuai-list-card .xh-farm-home-pill b {
  top: -7px !important;
  right: -6px !important;
  transform: none !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
}

html body .card-threadlist.wuai-list-card .wuai-checkin-home-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

html body .card-threadlist .threadlist > .xh-thread-item,
html body .card-threadlist .threadlist > li.thread.xh-thread-item {
  display: flex !important;
  min-width: 0 !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 66px !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(17, 24, 39, .055) !important;
  background: #fff !important;
  transition: background-color .16s ease, box-shadow .16s ease !important;
}

html body .card-threadlist .threadlist > .xh-thread-item:hover {
  background: #fbfaff !important;
  box-shadow: inset 3px 0 0 rgba(139, 92, 246, .18) !important;
}

html body .card-threadlist .threadlist > .xh-thread-item:last-child,
html body .card-threadlist .threadlist > li.thread.xh-thread-item:last-child {
  border-bottom: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-avatar-link,
html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  flex: 0 0 58px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: visible !important;
  line-height: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-1,
html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-3 {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  object-fit: cover !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
  --xh-avatar-size: 42px !important;
  --xh-frame-scale: 1.38 !important;
  width: 42px !important;
  height: 42px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-frame-img {
  width: 58px !important;
  height: 58px !important;
}

html body .card-threadlist .threadlist .xh-thread-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html body .card-threadlist .threadlist .xh-thread-title,
html body .card-threadlist .threadlist .subject.xh-thread-title,
html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
  display: block !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 0 5px !important;
  overflow: visible !important;
  color: #202532 !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  line-height: 1.42 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

html body .card-threadlist .threadlist .xh-thread-title > a {
  color: #202532 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  -webkit-text-fill-color: #202532 !important;
}

html body .card-threadlist .threadlist .xh-thread-title .icon-top-1,
html body .card-threadlist .threadlist .xh-thread-title .icon-top-2,
html body .card-threadlist .threadlist .xh-thread-title .icon-top-3,
html body .wuai-top-thread-card .icon-top-1,
html body .wuai-top-thread-card .icon-top-2,
html body .wuai-top-thread-card .icon-top-3 {
  display: inline-flex !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 5px 0 0 !important;
  vertical-align: -4px !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap,
html body .card-threadlist .threadlist .xh-thread-title > .wuai-reward-list-badge {
  display: inline-flex !important;
  max-width: min(100%, 160px) !important;
  align-items: center !important;
  margin: 0 0 0 6px !important;
  vertical-align: 1px !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge {
  min-height: 19px !important;
  max-width: 100% !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 19px !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-row {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0 !important;
  color: #8a8f9e !important;
  line-height: 1.25 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .username,
html body .card-threadlist .threadlist .xh-thread-meta .date,
html body .card-threadlist .threadlist .xh-thread-last-reply {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-last-reply {
  display: inline-flex !important;
  max-width: min(280px, 34vw) !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  color: #9aa1ad !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-replies {
  display: flex !important;
  min-width: 42px !important;
  flex: 0 0 50px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-reply-link {
  display: inline-flex !important;
  min-width: 38px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
  color: #7a8190 !important;
  text-decoration: none !important;
}

html body .card-threadlist .threadlist .xh-thread-reply-link > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  color: inherit !important;
}

html body .card-threadlist .threadlist .xh-thread-reply-link .icon-xiaoxi {
  color: #a0a7b4 !important;
  font-size: 14px !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag,
html body .card-threadlist .threadlist .style3-thread-forum-name {
  display: inline-flex !important;
  max-width: 90px !important;
  height: 21px !important;
  min-height: 21px !important;
  align-items: center !important;
  padding: 0 7px !important;
  overflow: hidden !important;
  border: 1px solid rgba(139, 92, 246, .10) !important;
  border-radius: 999px !important;
  background: rgba(139, 92, 246, .08) !important;
  color: #6d5bd0 !important;
  font-size: 12px !important;
  line-height: 21px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="白菜"] {
  border-color: rgba(34, 197, 94, .12) !important;
  background: rgba(34, 197, 94, .09) !important;
  color: #15803d !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="稳台"] {
  border-color: rgba(234, 179, 8, .16) !important;
  background: rgba(234, 179, 8, .10) !important;
  color: #9a6a00 !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="黑台"] {
  border-color: rgba(239, 68, 68, .14) !important;
  background: rgba(239, 68, 68, .08) !important;
  color: #b4233a !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="交流"],
html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="综合"] {
  border-color: rgba(59, 130, 246, .13) !important;
  background: rgba(59, 130, 246, .08) !important;
  color: #2563eb !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .xh-svip-badge,
html body .card-threadlist .threadlist .xh-thread-meta .xh-svip-marker,
html body .card-threadlist .threadlist .xh-thread-meta .wuai-user-pill,
html body .card-threadlist .threadlist .xh-thread-meta .wuai-user-level-pill,
html body .card-threadlist .threadlist .xh-thread-meta .user-group-icon {
  flex: 0 0 auto !important;
  max-height: 20px !important;
  margin: 0 2px !important;
}

html body .card-threadlist .threadlist .wuai-user-badges-thread_list .wuai-user-badge:nth-child(n+2),
html body .card-threadlist .threadlist .wuai-user-badges:not(.wuai-user-badges-thread_list) .wuai-user-badge:nth-child(n+2) {
  display: none !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-list,
html body .wuai-post-tools-wrap .wuai-daily-actions-wrap,
html body .wuai-icon-ads-wrap .wuai-icon-ads-card {
  border-color: rgba(139, 92, 246, .10) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(31, 35, 48, .045) !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-item {
  min-height: 58px !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-close {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  color: #a0a7b4 !important;
  font-size: 21px !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-body {
  min-width: 0 !important;
  gap: 9px !important;
  padding: 9px 10px 9px 0 !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-body img,
html body .wuai-post-tools-wrap .wuai-post-action-body::before {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  border-radius: 11px !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-body strong {
  min-width: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .wuai-post-tools-wrap .wuai-post-action-body span {
  min-width: 72px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 28px !important;
  text-align: center !important;
}

html body .wuai-post-tools-wrap .wuai-daily-actions {
  margin: 8px 0 10px !important;
  padding: 0 !important;
}

html body .wuai-post-tools-wrap .wuai-daily-actions-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 9px !important;
}

html body .wuai-post-tools-wrap .wuai-daily-action {
  height: 56px !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
}

html body .wuai-post-tools-wrap .wuai-daily-icon {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
}

html body .wuai-post-tools-wrap .wuai-daily-title {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

html body .wuai-post-tools-wrap .wuai-daily-subtitle {
  margin-top: 3px !important;
  font-size: 11px !important;
}

html body .wuai-icon-ads-wrap .wuai-icon-ads-side {
  width: 40px !important;
  min-width: 40px !important;
  padding: 9px 6px !important;
  font-size: 13px !important;
}

html body .wuai-icon-ads-wrap .wuai-icon-ads-grid {
  gap: 9px 6px !important;
  padding: 12px 8px !important;
}

html body .wuai-icon-ads-wrap .wuai-icon-ad-item {
  min-height: 78px !important;
}

html body .wuai-icon-ads-wrap .wuai-icon-ad-item img {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 5px !important;
  border-radius: 11px !important;
}

html body .header_fiexd.hidden-lg {
  height: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  pointer-events: none !important;
}

html body .header_fiexd.hidden-lg > a.btn {
  min-height: 38px !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  pointer-events: auto !important;
  box-shadow: 0 10px 24px rgba(59, 130, 246, .18) !important;
}

@media (max-width: 575.98px) {
  html body .card-threadlist.wuai-list-card .wuai-list-header {
    padding: 8px 9px 6px !important;
  }

  html body .card-threadlist.wuai-list-card .card-header-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 3px !important;
    scrollbar-width: none !important;
  }

  html body .card-threadlist.wuai-list-card .card-header-tabs::-webkit-scrollbar {
    display: none !important;
  }

  html body .card-threadlist.wuai-list-card .wuai-thread-filter-item {
    min-width: 0 !important;
    flex: 1 1 190px !important;
  }

  html body .card-threadlist.wuai-list-card .wuai-list-header .nav-link,
  html body .card-threadlist.wuai-list-card .wuai-thread-filter-tab,
  html body .card-threadlist.wuai-list-card .wuai-index-category-tab,
  html body .card-threadlist.wuai-list-card .wuai-signin-entry,
  html body .card-threadlist.wuai-list-card .wuai-checkin-home-pill,
  html body .card-threadlist.wuai-list-card .xh-farm-home-pill {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  html body .card-threadlist.wuai-list-card .xh-farm-home-pill em {
    max-width: 54px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body .card-threadlist .threadlist > .xh-thread-item,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item {
    gap: 8px !important;
    min-height: 62px !important;
    padding: 10px 9px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-avatar-link,
  html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    flex-basis: 54px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-1,
  html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-3 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
    --xh-avatar-size: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }

  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-frame-img {
    width: 54px !important;
    height: 54px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title,
  html body .card-threadlist .threadlist .subject.xh-thread-title,
  html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
    margin-bottom: 4px !important;
    font-size: inherit !important;
    line-height: 1.36 !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap,
  html body .card-threadlist .threadlist .xh-thread-title > .wuai-reward-list-badge {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-row {
    gap: 6px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta {
    gap: 4px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    max-width: min(190px, 42vw) !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 3px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply > span {
    display: inline-flex !important;
    min-width: 0 !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply a[tabindex="-1"] {
    display: none !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply .fa-reply {
    font-size: 11px !important;
    opacity: .72 !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply .username {
    flex: 0 1 auto !important;
    max-width: 74px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply .text-grey {
    flex: 0 0 auto !important;
  }

  html body .card-threadlist .threadlist .xh-thread-replies {
    flex: 0 0 40px !important;
    min-width: 38px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-reply-link {
    min-width: 34px !important;
    height: 24px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-forum-tag,
  html body .card-threadlist .threadlist .style3-thread-forum-name {
    max-width: 70px !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 6px !important;
    line-height: 20px !important;
  }

  html body .wuai-post-tools-wrap .wuai-post-action-list,
  html body .wuai-post-tools-wrap .wuai-daily-actions-wrap,
  html body .wuai-icon-ads-wrap .wuai-icon-ads-card {
    border-radius: 12px !important;
  }

  html body .wuai-post-tools-wrap .wuai-post-action-item {
    min-height: 54px !important;
  }

  html body .wuai-post-tools-wrap .wuai-post-action-body {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  html body .wuai-post-tools-wrap .wuai-post-action-body strong {
    font-size: 13px !important;
  }

  html body .wuai-post-tools-wrap .wuai-daily-actions-wrap {
    gap: 7px !important;
    padding: 8px !important;
  }

  html body .wuai-post-tools-wrap .wuai-daily-action {
    height: 54px !important;
    padding: 0 9px !important;
  }
}

@media (max-width: 380px) {
  html body .card-threadlist.wuai-list-card .xh-farm-home-pill em {
    display: none !important;
  }

  html body .card-threadlist .threadlist .username {
    max-width: 82px !important;
  }

  html body .wuai-post-tools-wrap .wuai-post-action-body span {
    min-width: 64px !important;
    padding-right: 7px !important;
    padding-left: 7px !important;
  }

  html body .wuai-icon-ads-wrap .wuai-icon-ad-item span {
    display: none !important;
  }
}

/* Home/forum/search list closeout V2.1: softer hierarchy, scoped only to list UI. */
html body .card-threadlist .threadlist .xh-thread-title,
html body .card-threadlist .threadlist .subject.xh-thread-title,
html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
  margin-bottom: 3px !important;
  color: #2f3642 !important;
  font-weight: 600 !important;
  line-height: 1.36 !important;
}

html body .card-threadlist .threadlist .xh-thread-title > a,
html body .card-threadlist .threadlist .xh-thread-title > a > * {
  color: #2f3642 !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #2f3642 !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-title-gradient,
html body .card-threadlist .threadlist .xh-thread-title .wuai-title-rainbow,
html body .card-threadlist .threadlist .xh-thread-title .wuai-title-fire {
  -webkit-text-fill-color: transparent !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-row {
  gap: 7px !important;
  color: #9aa3af !important;
  font-weight: 400 !important;
  line-height: 1.22 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta {
  gap: 4px !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .username {
  color: #6f7b89 !important;
  font-weight: 400 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .date,
html body .card-threadlist .threadlist .xh-thread-last-reply,
html body .card-threadlist .threadlist .xh-thread-last-reply .text-grey {
  color: #9aa3af !important;
  font-weight: 400 !important;
}

html body .card-threadlist .threadlist .xh-thread-replies,
html body .card-threadlist .threadlist .xh-thread-reply-link,
html body .card-threadlist .threadlist .xh-thread-reply-link > span {
  color: #7b8794 !important;
  font-weight: 400 !important;
}

html body .card-threadlist .threadlist .xh-thread-reply-link .icon-xiaoxi {
  color: #9aa3af !important;
  font-size: 13px !important;
}

html body .card-threadlist .threadlist > .xh-thread-item,
html body .card-threadlist .threadlist > li.thread.xh-thread-item {
  gap: 8px !important;
  min-height: 62px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag,
html body .card-threadlist .threadlist .style3-thread-forum-name {
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  box-shadow: none !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag:not([title*="白菜"]):not([title*="稳台"]) {
  border-color: rgba(148, 163, 184, .16) !important;
  background: rgba(248, 250, 252, .92) !important;
  color: #64748b !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="黑台"] {
  border-color: rgba(248, 113, 113, .16) !important;
  background: rgba(254, 242, 242, .92) !important;
  color: #b45353 !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="交流"],
html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="综合"] {
  border-color: rgba(96, 165, 250, .16) !important;
  background: rgba(239, 246, 255, .92) !important;
  color: #4b77b9 !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="公告"] {
  border-color: rgba(251, 146, 60, .16) !important;
  background: rgba(255, 247, 237, .92) !important;
  color: #b36b2c !important;
}

html body .card-threadlist .threadlist .xh-thread-forum-tag[title*="交易"] {
  border-color: rgba(45, 212, 191, .16) !important;
  background: rgba(240, 253, 250, .92) !important;
  color: #2f7f77 !important;
}

html body .card-threadlist.wuai-list-card .wuai-list-header .nav-link,
html body .card-threadlist.wuai-list-card .wuai-thread-filter-tab,
html body .card-threadlist.wuai-list-card .wuai-index-category-tab {
  font-weight: 500 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .xh-svip-badge,
html body .card-threadlist .threadlist .xh-thread-meta .xh-svip-marker,
html body .card-threadlist .threadlist .xh-svip-badge[data-xh-svip-scene="thread_list"] {
  max-height: 18px !important;
  padding-right: 6px !important;
  padding-left: 6px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, .12) !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .wuai-user-pill,
html body .card-threadlist .threadlist .xh-thread-meta .wuai-user-level-pill,
html body .card-threadlist .threadlist .xh-thread-meta .user-group-icon {
  max-height: 18px !important;
  font-weight: 500 !important;
  opacity: .88 !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap,
html body .card-threadlist .threadlist .xh-thread-title > .wuai-reward-list-badge {
  max-width: min(100%, 150px) !important;
  margin-left: 5px !important;
  vertical-align: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge {
  min-height: 18px !important;
  padding: 0 7px !important;
  background: linear-gradient(135deg, #ff7187 0%, #fb4b72 100%) !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  box-shadow: 0 2px 6px rgba(251, 75, 114, .16) !important;
}

html body .card-threadlist .threadlist .xh-thread-title .icon-top-1,
html body .card-threadlist .threadlist .xh-thread-title .icon-top-2,
html body .card-threadlist .threadlist .xh-thread-title .icon-top-3 {
  opacity: .86 !important;
}

@media (max-width: 575.98px) {
  html body .card-threadlist .threadlist > .xh-thread-item,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item {
    min-height: 60px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title,
  html body .card-threadlist .threadlist .subject.xh-thread-title,
  html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
    margin-bottom: 3px !important;
    line-height: 1.34 !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-row {
    gap: 5px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap,
  html body .card-threadlist .threadlist .xh-thread-title > .wuai-reward-list-badge {
    margin-top: 3px !important;
  }
}

/* Home/forum/search list title sync V2.2: match lgw36.cc mobile thread title metrics. */
html body .card-threadlist .threadlist .xh-thread-title,
html body .card-threadlist .threadlist .subject.xh-thread-title,
html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
  color: #343a40 !important;
  font-family: HarmonyOS_Regular, "Helvetica Neue", Helvetica, "Microsoft Yahei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
}

html body .card-threadlist .threadlist .xh-thread-title > a {
  color: #343a40 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  -webkit-text-fill-color: #343a40 !important;
}

html body .card-threadlist .threadlist .xh-thread-title > a > * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-title-gradient,
html body .card-threadlist .threadlist .xh-thread-title .wuai-title-rainbow,
html body .card-threadlist .threadlist .xh-thread-title .wuai-title-fire {
  -webkit-text-fill-color: transparent !important;
}

/* Home/forum/search pinned rows V2.4: compact spacing only, with original avatar scale. */
html body .card-threadlist .threadlist > .xh-thread-item.top_1,
html body .card-threadlist .threadlist > .xh-thread-item.top_2,
html body .card-threadlist .threadlist > .xh-thread-item.top_3,
html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_1,
html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_2,
html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_3 {
  gap: 6px !important;
  min-height: 56px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

html body .card-threadlist .threadlist > .xh-thread-item.top_1 .xh-thread-title,
html body .card-threadlist .threadlist > .xh-thread-item.top_2 .xh-thread-title,
html body .card-threadlist .threadlist > .xh-thread-item.top_3 .xh-thread-title {
  margin-bottom: 1px !important;
}

html body .card-threadlist .threadlist > .xh-thread-item.top_1 .xh-thread-meta-row,
html body .card-threadlist .threadlist > .xh-thread-item.top_2 .xh-thread-meta-row,
html body .card-threadlist .threadlist > .xh-thread-item.top_3 .xh-thread-meta-row {
  gap: 4px !important;
}

@media (max-width: 575.98px) {
  html body .card-threadlist .threadlist > .xh-thread-item.top_1,
  html body .card-threadlist .threadlist > .xh-thread-item.top_2,
  html body .card-threadlist .threadlist > .xh-thread-item.top_3,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_1,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_2,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item.top_3 {
    min-height: 54px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}

html body .card-threadlist .threadlist .xh-thread-title .xh-thread-top-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  margin-left: 4px !important;
  vertical-align: -1px !important;
}

html body .card-threadlist.wuai-list-card .nav-digest,
html body .card-threadlist .card-header-tabs .nav-digest,
html body .card-threadlist .wuai-list-header .nav-digest {
  display: none !important;
}

html body .card-threadlist .nav-tabs li:has(> a[href*="index-0-1"]),
html body .card-threadlist .nav-tabs li:has(> a[href*="digest=1"]),
html body .card-threadlist .card-header-tabs li:has(> a[href*="index-0-1"]),
html body .card-threadlist .card-header-tabs li:has(> a[href*="digest=1"]),
html body .card-threadlist .nav-tabs a[href*="index-0-1"],
html body .card-threadlist .nav-tabs a[href*="digest=1"],
html body .card-threadlist .card-header-tabs a[href*="index-0-1"],
html body .card-threadlist .card-header-tabs a[href*="digest=1"] {
  display: none !important;
}

html body .wuai-mobile-login-float {
  right: 0 !important;
  bottom: calc(55px + env(safe-area-inset-bottom)) !important;
  left: 0 !important;
  z-index: 1031 !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

html body .wuai-mobile-login-float .btn {
  min-width: 126px !important;
  padding: 10px 22px !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(124, 92, 255, .22) !important;
  pointer-events: auto !important;
}

/* Thread detail top author identity V7: final-layer override after profile/list CSS. */
html body .xh-thread-detail .wuai-thread-author {
  gap: 4px !important;
}

html body .xh-thread-detail .wuai-thread-author-avatar-link {
  margin-right: 0 !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-post-name {
  max-width: min(170px, 46vw) !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-post-name-link {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread {
  order: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 100% !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 3px 5px !important;
  margin: 2px 0 0 !important;
  overflow: visible !important;
}

/* Thread detail mobile reply sheet V3: compact half-screen editor + explicit close. */
html body.wuai-reply-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain !important;
  touch-action: none !important;
}

html body.wuai-reply-modal-open .thread-nav {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(110%) !important;
}

html body.wuai-reply-modal-open .wuai-post-actionbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(110%) !important;
}

html body #comment_input.modal_reply_text {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1095 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 10px calc(12px + env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(17, 24, 39, .28) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body #comment_input.modal_reply_text,
html body #comment_input.modal_reply_text > .card-body {
  touch-action: auto !important;
}

html body #comment_input.modal_reply_text > .card-body {
  position: relative !important;
  flex: 0 1 auto !important;
  width: min(100%, 560px) !important;
  height: auto !important;
  max-height: min(58dvh, 560px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 14px !important;
  border: 1px solid rgba(196, 181, 253, .76) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(76, 29, 149, .18) !important;
}

html body #comment_input.modal_reply_text .wuai-lite-visual-editor {
  min-height: 118px !important;
  max-height: 22dvh !important;
}

html body .wuai-lite-preview-item img.wuai-lite-preview-img {
  cursor: zoom-in !important;
}

html body #comment_input.modal_reply_text .wuai-lite-quick-toolbar-panel {
  margin-bottom: 0 !important;
}

html body #comment_input.modal_reply_text .wuai-lite-quick-preview {
  max-height: 112px !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}

html body #comment_input.modal_reply_text .wuai-lite-preview-item {
  width: 70px !important;
  height: 70px !important;
  border-radius: 12px !important;
}

html body #comment_input.modal_reply_text .post_user_info .badge-secondary {
  margin-right: 36px !important;
}

/* Thread reply compact v2: only tighten action-to-expand spacing. */
html body .xh-thread-detail .postlist .wuai-sub-reply-child-box {
  margin-top: 2px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-child-toggle {
  margin-top: 1px !important;
  line-height: 1.25 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-toggle {
  margin-top: 4px !important;
  line-height: 1.25 !important;
}

/* Thread reply compact v4: image-only comments should not reserve text spacing. */
html body .xh-thread-detail .postlist .message.wuai-message-image-only {
  margin-top: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only > .wuai-post-image-grid {
  margin-top: 0 !important;
  margin-bottom: 3px !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only + .wuai-sub-reply-box {
  margin-top: 3px !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only ~ .wuai-main-post-action-row {
  margin-top: 4px !important;
}

/* Thread comment image/subreply density v5. Scoped to post detail comments only. */
html body .xh-thread-detail .xh-comment-list > .xh-comment-item {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

html body .xh-thread-detail .postlist .message {
  margin-bottom: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body > p:empty,
html body .xh-thread-detail .postlist .wuai-post-message-body > div:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .xh-thread-detail .postlist .message.wuai-message-image-only,
html body .xh-thread-detail .postlist .message.xh-comment-image-only {
  margin-top: 2px !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only,
html body .xh-thread-detail .postlist .xh-comment-content.xh-comment-image-only {
  display: flow-root !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only > br,
html body .xh-thread-detail .postlist .wuai-post-message-body-image-only > p:empty,
html body .xh-thread-detail .postlist .wuai-post-message-body-image-only > div:empty {
  display: none !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid {
  gap: 6px !important;
  margin-top: 2px !important;
  margin-bottom: 4px !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only > .wuai-post-image-wrap {
  margin: 2px 6px 4px 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only ~ .wuai-main-post-action-row,
html body .xh-thread-detail .postlist .message.wuai-message-image-only > .wuai-main-post-action-row {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-main-post-action-row {
  align-items: center !important;
  gap: 4px 8px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  min-height: 28px !important;
}

html body .xh-thread-detail .postlist .wuai-main-post-action-row > a,
html body .xh-thread-detail .postlist .wuai-post-actions-floor > a {
  min-height: 28px !important;
  padding: 0 6px !important;
  line-height: 1 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-box {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  background: #f6f7fb !important;
  overflow: visible !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only + .wuai-sub-reply-box {
  margin-top: 6px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-item {
  gap: 7px !important;
  padding: 6px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #30343a !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  box-shadow: none !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-item + .wuai-sub-reply-item,
html body .xh-thread-detail .postlist .wuai-sub-reply-child-list .wuai-sub-reply-item + .wuai-sub-reply-item {
  margin-top: 4px !important;
  border-top: 1px solid rgba(226, 232, 240, .82) !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: 1px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-wrap {
  --xh-avatar-size: 24px !important;
  --xh-frame-scale: 1.35 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-img,
html body .xh-thread-detail .postlist .wuai-sub-reply-avatar > img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-main {
  flex-wrap: nowrap !important;
  gap: 0 4px !important;
  min-height: 20px !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-user,
html body .xh-thread-detail .postlist .wuai-sub-reply-target {
  min-width: 0 !important;
  max-width: 42vw !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-target {
  color: #737c8a !important;
  font-weight: 700 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-arrow {
  flex: 0 0 auto !important;
  margin: 0 1px !important;
  color: #778090 !important;
  font-size: 10px !important;
}

html body .xh-thread-detail .postlist .xh-identity-subcomment .wuai-user-badges {
  flex: 0 0 auto !important;
  max-width: 38px !important;
  height: 14px !important;
}

html body .xh-thread-detail .postlist .xh-identity-subcomment .wuai-user-badge-img {
  max-height: 14px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-content {
  margin-top: 1px !important;
  color: #252932 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-content > p:empty,
html body .xh-thread-detail .postlist .wuai-sub-reply-content > div:empty {
  display: none !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-meta {
  gap: 4px 10px !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-time,
html body .xh-thread-detail .postlist .wuai-sub-reply-action {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-actions {
  gap: 8px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-action,
html body .xh-thread-detail .postlist .wuai-sub-reply-toggle,
html body .xh-thread-detail .postlist .wuai-sub-reply-child-toggle {
  min-height: 24px !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: #778090 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-delete {
  color: #9a7b84 !important;
  font-weight: 700 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-toggle {
  margin-top: 5px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-child-box {
  margin-top: 3px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-child-list {
  margin-top: 3px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-child-toggle {
  margin-top: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-content .wuai-post-image-grid {
  gap: 5px !important;
  margin: 4px 0 5px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-content .wuai-post-image-wrap {
  margin: 3px 5px 2px 0 !important;
}

/* Thread comment time inline v6: keep relative time after identity icons. */
html body .xh-thread-detail .postlist .xh-identity-comment .wuai-post-date {
  order: 4 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-left: 2px !important;
  color: #9aa3ad !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  html body .xh-thread-detail .xh-comment-list > .xh-comment-item {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body {
    font-size: 14px !important;
    line-height: 1.58 !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only {
    line-height: 1 !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid {
    width: min(100%, 292px) !important;
    gap: 5px !important;
    margin-bottom: 3px !important;
  }

  html body .xh-thread-detail .postlist .wuai-main-post-action-row {
    gap: 2px 8px !important;
    margin-top: 6px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-box {
    margin-top: 7px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-item {
    gap: 6px !important;
    padding: 5px 0 !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-avatar {
    flex-basis: 26px !important;
    width: 26px !important;
    height: 26px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-wrap {
    --xh-avatar-size: 23px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-img,
  html body .xh-thread-detail .postlist .wuai-sub-reply-avatar > img {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-user,
  html body .xh-thread-detail .postlist .wuai-sub-reply-target {
    max-width: 34vw !important;
  }

html body .xh-thread-detail .postlist .wuai-sub-reply-content {
    font-size: 13px !important;
    line-height: 1.38 !important;
  }
}

/* Forum mobile core closeout V0: visible UI polish only. */
@media (max-width: 575.98px) {
  html body #body:has(.wuai-home-row),
  html body #body:has(.wuai-forum-row),
  html body #body:has(.xh-thread-row),
  html body #body:has(.wuai-more-panel),
  html body #body:has(.wuai-profile-basic) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  html body .wuai-home-row,
  html body .wuai-forum-row,
  html body .xh-thread-row,
  html body .wuai-home-main,
  html body .thread-main,
  html body #my_main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  html body #header .navbar.hidden-lg {
    min-height: 54px !important;
    border-bottom: 1px solid rgba(139, 92, 246, .08) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 8px 22px rgba(31, 35, 48, .045) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  html body #mobile_nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    min-height: 54px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  html body #mobile_nav .MobilemenuBtn,
  html body #mobile_nav > .navbar-brand,
  html body #mobile_nav > a.navbar-brand,
  html body #mobile_nav > .nav-item {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6b7280 !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  html body #mobile_nav > .navbar-brand.text-truncate {
    grid-column: 2 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 66vw !important;
    color: #1f2937 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 54px !important;
    text-align: center !important;
  }

  html body #mobile_nav #nav-usernotice,
  html body #mobile_nav .header_notice {
    position: relative !important;
  }

  html body #mobile_nav #nav-usernotice-unread-notices {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    width: auto !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
    text-align: center !important;
  }

  html body #mobile_nav #nav-usernotice-unread-notices i {
    display: none !important;
  }

  html body .wuai-site-announcement,
  html body .wuai-mobile-stat-inline .breadcrumb {
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  html body .wuai-mobile-stat-inline .breadcrumb {
    min-height: 42px !important;
    align-items: center !important;
    gap: 6px 8px !important;
    padding: 9px 10px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  html body .wuai-mobile-stat-inline .breadcrumb > div:first-child {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: wrap !important;
    gap: 5px 9px !important;
  }

  html body .wuai-mobile-stat-inline .text-small {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
  }

  html body .card-threadlist.wuai-list-card,
  html body .wuai-top-thread-card,
  html body .xh-thread-detail .card-thread,
  html body .xh-thread-detail .card-postlist {
    border-radius: 12px !important;
  }

  html body .card-threadlist .threadlist > .xh-thread-item,
  html body .card-threadlist .threadlist > li.thread.xh-thread-item {
    gap: 7px !important;
    padding: 9px 8px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-avatar-link,
  html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    flex-basis: 50px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-1,
  html body .card-threadlist .threadlist .xh-thread-list-avatar-link img.avatar-3,
  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
    --xh-avatar-size: 38px !important;
    --xh-frame-scale: 1.36 !important;
  }

  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-frame-img {
    width: 52px !important;
    height: 52px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title,
  html body .card-threadlist .threadlist .subject.xh-thread-title,
  html body .card-threadlist .threadlist .style3_subject.xh-thread-title {
    margin-bottom: 3px !important;
    font-size: 15px !important;
    line-height: 1.34 !important;
  }

  html body .card-threadlist .threadlist .xh-thread-card-meta-row,
  html body .card-threadlist .threadlist .xh-thread-meta-row {
    min-width: 0 !important;
    gap: 5px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta {
    max-width: calc(100% - 42px) !important;
  }

  html body .card-threadlist .threadlist .xh-thread-forum-tag,
  html body .card-threadlist .threadlist .style3-thread-forum-name {
    max-width: 78px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge,
  html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap {
    max-width: min(100%, 138px) !important;
  }

  html body .xh-thread-detail .card-thread .card-header {
    padding: 14px 13px 11px !important;
  }

  html body .xh-thread-detail .card-thread .card-body {
    padding: 15px 13px 14px !important;
  }

  html body .xh-thread-detail .xh-thread-title {
    margin-bottom: 10px !important;
    font-size: 19px !important;
    line-height: 1.32 !important;
  }

  html body .xh-thread-detail .wuai-thread-author {
    align-items: flex-start !important;
  }

  html body .xh-thread-detail .wuai-thread-author-frame,
  html body .xh-thread-detail .wuai-thread-author-avatar-link {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
  }

  html body .xh-thread-detail .wuai-thread-author-frame {
    --xh-avatar-size: 44px !important;
    --xh-frame-scale: 1.36 !important;
  }

  html body .xh-thread-detail .wuai-thread-author-avatar,
  html body .xh-thread-detail .wuai-thread-author-frame .xh-avatar-img {
    width: 44px !important;
    height: 44px !important;
  }

  html body .xh-thread-detail .wuai-thread-author-meta,
  html body .xh-thread-detail .wuai-post-head {
    flex-wrap: wrap !important;
  }

  html body .xh-thread-detail .wuai-thread-author-actions,
  html body .xh-thread-detail .wuai-post-actions-floor {
    width: 100% !important;
    margin-top: 3px !important;
  }

  html body .xh-thread-detail .card-thread .message.break-all,
  html body .xh-thread-detail .postlist .wuai-post-message-body {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body .xh-thread-detail .xh-comment-list > .xh-comment-item {
    gap: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  html body .xh-thread-detail .xh-comment-avatar,
  html body .xh-thread-detail .wuai-post-avatar-link {
    width: 50px !important;
    min-width: 50px !important;
    margin-right: 0 !important;
  }

  html body .xh-thread-detail .xh-comment-avatar img.avatar-3,
  html body .xh-thread-detail .xh-comment-avatar .xh-avatar-img {
    width: 38px !important;
    height: 38px !important;
  }

  html body .xh-thread-detail .xh-comment-main {
    min-width: 0 !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body {
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only {
    margin-top: 0 !important;
    line-height: 1 !important;
  }

  html body .xh-thread-detail .postlist .message .wuai-post-image-wrap {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }

  html body .xh-thread-detail .postlist .message .wuai-post-image-grid,
  html body .xh-thread-detail .postlist .wuai-post-message-body .wuai-post-image-grid {
    margin-top: 4px !important;
    margin-bottom: 5px !important;
  }

  html body .xh-thread-detail .postlist .wuai-main-post-action-row,
  html body .xh-thread-detail .postlist .wuai-post-actions-floor {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 9px !important;
    white-space: normal !important;
  }

  html body .xh-thread-detail .postlist .floor-parent {
    height: 20px !important;
    padding: 0 6px !important;
    line-height: 20px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-box {
    margin-top: 6px !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    background: #f7f8fb !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-item {
    padding: 4px 0 !important;
    background: transparent !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-meta {
    flex-wrap: wrap !important;
    gap: 3px 7px !important;
  }

  html body .xh-thread-detail .postlist .wuai-sub-reply-actions {
    flex-wrap: wrap !important;
  }

  html body #comment_input .card-body {
    padding: 12px !important;
  }

  html body #comment_input .post.newpost.media {
    margin: 0 !important;
  }

  html body #comment_input .wuai-lite-visual-editor {
    min-height: 104px !important;
    padding: 10px 11px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  html body #comment_input .wuai-lite-quick-primary-row {
    margin-top: 8px !important;
  }

  html body #comment_input .wuai-lite-quick-submit {
    min-height: 38px !important;
    border-radius: 12px !important;
  }

  html body #comment_input .wuai-lite-quick-toolbar {
    gap: 7px !important;
  }

  html body #comment_input .wuai-lite-quick-tool-left,
  html body #comment_input .wuai-lite-quick-tool-right {
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }

  html body #comment_input .wuai-lite-quick-toolbar .wuai-lite-upload-btn,
  html body #comment_input .wuai-lite-quick-reply #advanced_reply {
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  html body .wuai-more-panel {
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }

  html body .wuai-more-grid {
    gap: 9px !important;
    align-items: stretch !important;
  }

  html body .wuai-more-card,
  html body .wuai-more-feature-link {
    min-height: 134px !important;
    padding: 12px 8px 10px !important;
    border-radius: 14px !important;
  }

  html body .wuai-more-card .wuai-more-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    margin-bottom: 9px !important;
    border-radius: 12px !important;
  }

  html body .wuai-more-card .wuai-more-badge,
  html body .wuai-more-badge {
    top: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 16px) !important;
  }

  html body .wuai-profile-basic,
  html body .wuai-profile-basic * ,
  html body .wuai-my-mobile-head,
  html body .wuai-my-mobile-head * {
    min-width: 0 !important;
  }

  html body .wuai-my-hero-body {
    padding: 14px 12px !important;
  }

  html body .wuai-my-hero .wuai-my-profile-row {
    gap: 10px !important;
    padding: 9px !important;
  }

  html body .wuai-my-avatar,
  html body .wuai-my-hero .xh-avatar-img {
    width: 64px !important;
    height: 64px !important;
  }

  html body .wuai-my-name-row {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  html body .wuai-my-name .h4 {
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
  }

  html body .wuai-profile-link {
    min-height: 30px !important;
    padding: 0 9px !important;
    line-height: 30px !important;
  }

  html body .wuai-profile-panel,
  html body .wuai-my-level-card-standalone,
  html body .wuai-more-panel {
    border-radius: 14px !important;
  }

  html body .bottom-nav-bt {
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(139, 92, 246, .10) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 -8px 24px rgba(31, 35, 48, .08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  html body .bottom-nav-bt .row {
    height: auto !important;
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    padding-top: 5px !important;
    padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important;
  }

  html body .bottom-nav a.col {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
    overflow: visible !important;
  }

  html body .bottom-nav a.col > div:first-child {
    position: relative !important;
    display: inline-flex !important;
    min-width: 30px !important;
    height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .bottom-nav a i,
  html body .bottom-nav a .iconfont,
  html body .bottom-nav a .wuai-trade-dock-icon {
    font-size: 21px !important;
    line-height: 1 !important;
  }

  html body .bottom-nav .nav_font {
    margin-top: 0 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  html body .bottom-nav .btn.btn-primary.jb-blue {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    margin-top: -13px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(139, 92, 246, .22) !important;
  }

  html body .bottom-nav .badge {
    position: absolute !important;
    top: -6px !important;
    right: -13px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, .22) !important;
  }
}

@media (min-width: 576px) {
  html body .wuai-more-grid {
    align-items: stretch !important;
  }

  html body .wuai-more-card,
  html body .wuai-more-feature-link {
    height: 100% !important;
  }

  html body .xh-thread-detail .card-thread,
  html body .xh-thread-detail .card-postlist,
  html body .card-threadlist.wuai-list-card,
  html body .wuai-top-thread-card {
    border-radius: 12px !important;
  }
}

/* Thread detail and comments closeout V1: scoped UI polish only. */
html body .xh-thread-row,
html body .xh-thread-detail,
html body .xh-thread-detail .card-thread,
html body .xh-thread-detail .card-postlist,
html body .xh-thread-detail #comments,
html body .xh-thread-detail #comment_input {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

html body .xh-thread-detail .card-thread,
html body .xh-thread-detail .card-postlist,
html body .xh-thread-detail #comment_input {
  border: 1px solid rgba(139, 92, 246, .08) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(31, 35, 48, .045) !important;
}

html body .xh-thread-detail .card-thread .card-header,
html body .xh-thread-detail .card-thread .card-body,
html body .xh-thread-detail .card-thread .card-footer,
html body .xh-thread-detail .card-postlist > .card-header,
html body .xh-thread-detail .card-postlist > .card-body,
html body .xh-thread-detail #comment_input > .card-body {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body .xh-thread-detail .xh-thread-title {
  max-width: 100% !important;
  margin-bottom: 10px !important;
  color: #1f2937 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body .xh-thread-detail .xh-thread-title .badge,
html body .xh-thread-detail .xh-thread-title .label,
html body .xh-thread-detail .xh-thread-title .wuai-reward-list-badge,
html body .xh-thread-detail .xh-thread-title .wuai-reward-list-badge-wrap {
  display: inline-flex !important;
  max-width: min(100%, 158px) !important;
  vertical-align: baseline !important;
  white-space: normal !important;
}

html body .xh-thread-detail .wuai-thread-author {
  align-items: flex-start !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body .xh-thread-detail .wuai-thread-author .media-body,
html body .xh-thread-detail .xh-comment-main,
html body .xh-thread-detail .wuai-sub-reply-body {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .xh-thread-detail .xh-identity-thread,
html body .xh-thread-detail .xh-identity-comment,
html body .xh-thread-detail .xh-identity-subcomment {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 4px 6px !important;
}

html body .xh-thread-detail .xh-identity-thread,
html body .xh-thread-detail .xh-identity-comment {
  flex-wrap: wrap !important;
}

html body .xh-thread-detail .xh-identity-subcomment {
  flex-wrap: nowrap !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-post-name,
html body .xh-thread-detail .xh-identity-comment .wuai-post-name {
  flex: 0 1 auto !important;
  max-width: min(46vw, 178px) !important;
  min-width: 0 !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-post-name-link,
html body .xh-thread-detail .xh-identity-comment .wuai-post-name-link {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: bottom !important;
  white-space: nowrap !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges,
html body .xh-thread-detail .xh-identity-comment .wuai-user-badges,
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badges {
  order: 3 !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  width: auto !important;
  max-width: min(132px, 38vw) !important;
  min-width: 0 !important;
  gap: 3px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badge,
html body .xh-thread-detail .xh-identity-comment .wuai-user-badge,
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badge {
  flex: 0 0 auto !important;
  max-width: 28px !important;
  max-height: 16px !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badge-img,
html body .xh-thread-detail .xh-identity-comment .wuai-user-badge-img,
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badge-img {
  max-width: 28px !important;
  max-height: 16px !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .xh-identity-comment:not(.wuai-post-meta-line-owner) .wuai-user-badge:nth-child(n+3),
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badge:nth-child(n+2) {
  display: none !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badge:nth-child(n+5),
html body .xh-thread-detail .xh-identity-comment.wuai-post-meta-line-owner .wuai-user-badge:nth-child(n+5) {
  display: none !important;
}

html body .xh-thread-detail .wuai-thread-author-meta,
html body .xh-thread-detail .wuai-thread-author-stats,
html body .xh-thread-detail .wuai-thread-author-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 8px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-top: 3px !important;
}

html body .xh-thread-detail .wuai-thread-author-meta .ml-2,
html body .xh-thread-detail .wuai-thread-author-meta .mr-2 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html body .xh-thread-detail .xh-thread-content,
html body .xh-thread-detail .card-thread .message.break-all {
  color: #222733 !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body .xh-thread-detail .xh-thread-content p,
html body .xh-thread-detail .postlist .wuai-post-message-body p,
html body .xh-thread-detail .postlist .wuai-sub-reply-content p {
  margin-top: 0 !important;
  margin-bottom: .72em !important;
}

html body .xh-thread-detail .xh-thread-content img,
html body .xh-thread-detail .postlist .message img,
html body .xh-thread-detail .wuai-post-image {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
}

html body .xh-thread-detail .xh-thread-content pre,
html body .xh-thread-detail .xh-thread-content code,
html body .xh-thread-detail .postlist .wuai-post-message-body pre,
html body .xh-thread-detail .postlist .wuai-post-message-body code {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

html body .xh-thread-detail .card-thread .card-footer {
  padding: 10px 12px 12px !important;
  background: #fff !important;
}

html body .xh-thread-detail .card-thread .card-footer .plugin {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .card-thread .card-footer .plugin > * {
  max-width: 100% !important;
  min-width: 0 !important;
}

html body .xh-thread-detail .card-postlist > .card-header {
  padding: 11px 12px !important;
  background: #fff !important;
}

html body .xh-thread-detail .card-postlist > .card-header .d-flex {
  align-items: center !important;
  gap: 8px !important;
}

html body .xh-thread-detail .card-postlist .collapse_toggle {
  display: inline-flex !important;
  width: 30px !important;
  height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 4px !important;
  border-radius: 999px !important;
  color: #7c5cff !important;
  text-decoration: none !important;
}

html body .xh-thread-detail .card-postlist .postlist {
  margin-bottom: 0 !important;
}

html body .xh-thread-detail .xh-comment-list > .xh-comment-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, .8) !important;
}

html body .xh-thread-detail .xh-comment-list > .xh-comment-item:last-child {
  border-bottom: 0 !important;
}

html body .xh-thread-detail .xh-comment-avatar,
html body .xh-thread-detail .wuai-post-avatar-link {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  margin-right: 0 !important;
}

html body .xh-thread-detail .xh-comment-avatar img.avatar-3,
html body .xh-thread-detail .xh-comment-avatar .xh-avatar-img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
}

html body .xh-thread-detail .postlist .message {
  max-width: 100% !important;
  min-width: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  color: #2b2f3a !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body .xh-thread-detail .postlist .message.wuai-message-image-only,
html body .xh-thread-detail .postlist .message.xh-comment-image-only,
html body .xh-thread-detail .postlist .wuai-post-message-body-image-only,
html body .xh-thread-detail .postlist .xh-comment-content.xh-comment-image-only {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: min(100%, 316px) !important;
  max-width: 100% !important;
  margin: 2px 0 4px !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-wrap,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-wrap {
  width: auto !important;
  max-width: min(148px, 42vw) !important;
  margin: 0 5px 4px 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image {
  max-width: min(148px, 42vw) !important;
  max-height: 190px !important;
  object-fit: cover !important;
}

/* Thread image grid fix4: let uploaded images define height, no gray square tail. */
html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-grid {
  align-items: flex-start !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid .wuai-post-image-wrap,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-grid .wuai-post-image-wrap {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  line-height: 0 !important;
  background: transparent !important;
}

html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid .wuai-post-image,
html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-grid .wuai-post-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(136px, 42vw) !important;
  max-height: 190px !important;
  object-fit: contain !important;
  background: transparent !important;
}

html body .xh-thread-detail .postlist .wuai-post-actions-floor,
html body .xh-thread-detail .postlist .wuai-main-post-action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 7px !important;
  width: 100% !important;
  margin-top: 6px !important;
  white-space: normal !important;
}

html body .xh-thread-detail .postlist .wuai-post-actions-floor > a,
html body .xh-thread-detail .postlist .wuai-main-post-action-row > a,
html body .xh-thread-detail .postlist .floor-parent {
  display: inline-flex !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

html body .xh-thread-detail .postlist .wuai-post-actions-floor > a,
html body .xh-thread-detail .postlist .wuai-main-post-action-row > a {
  background: #f7f8fb !important;
  color: #717786 !important;
}

html body .xh-thread-detail .postlist .post_delete,
html body .xh-thread-detail .postlist .wuai-sub-reply-delete {
  color: #a06a76 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-box {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px !important;
  margin-bottom: 3px !important;
  padding: 8px 9px !important;
  border: 1px solid rgba(139, 92, 246, .08) !important;
  border-radius: 12px !important;
  background: #f8f7ff !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 7px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 6px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep replies after the first two collapsed until their own toggle opens. */
html body .xh-thread-detail .postlist .wuai-sub-reply-box:not(.is-expanded) > .wuai-sub-reply-item.wuai-sub-reply-extra {
  display: none !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-wrap {
  --xh-avatar-size: 23px !important;
  --xh-frame-scale: 1.35 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-img,
html body .xh-thread-detail .postlist .wuai-sub-reply-avatar > img {
  width: 23px !important;
  height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-content {
  margin-top: 2px !important;
  color: #252932 !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 9px !important;
  margin-top: 3px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-action,
html body .xh-thread-detail .postlist .wuai-sub-reply-toggle,
html body .xh-thread-detail .postlist .wuai-sub-reply-child-toggle {
  display: inline-flex !important;
  min-height: 26px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #747b8a !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body #comment_input {
  max-width: 100% !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  background: #fff !important;
}

html body #comment_input .post.newpost.media,
html body #comment_input .media-body,
html body #comment_input .wuai-lite-quick-reply,
html body #comment_input .message,
html body #comment_input .wuai-lite-quick-upload-panel {
  max-width: 100% !important;
  min-width: 0 !important;
}

html body #comment_input .post_user_info .d-flex {
  align-items: center !important;
  gap: 8px !important;
}

html body #comment_input .wuai-lite-visual-editor {
  max-width: 100% !important;
  min-height: 108px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(139, 92, 246, .12) !important;
  border-radius: 12px !important;
  background: #fbfbff !important;
  font-size: 14px !important;
  line-height: 1.52 !important;
  overflow-y: auto !important;
}

html body #comment_input .wuai-lite-quick-primary-row {
  display: flex !important;
  justify-content: flex-end !important;
}

html body #comment_input .wuai-lite-quick-submit {
  min-height: 38px !important;
  padding-right: 16px !important;
  padding-left: 16px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

html body #comment_input .wuai-lite-quick-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  max-width: 100% !important;
}

html body #comment_input .wuai-lite-quick-tool-left,
html body #comment_input .wuai-lite-quick-tool-right {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

html body #comment_input .wuai-lite-quick-tool-right {
  justify-content: flex-end !important;
}

html body #comment_input .wuai-lite-quick-upload,
html body #comment_input #advanced_reply {
  display: inline-flex !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #f7f8fb !important;
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

html body #comment_input .wuai-lite-preview-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-width: 100% !important;
  margin-top: 8px !important;
}

html body #comment_input .wuai-lite-preview-item {
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px !important;
}

@media (max-width: 991.98px) {
  html body:has(.xh-thread-detail) #body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  html body .xh-thread-detail {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  html body .thread-nav {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1032 !important;
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(139, 92, 246, .10) !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 -10px 24px rgba(31, 35, 48, .10) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  html body .wuai-post-actionbar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1033 !important;
    display: flex !important;
    min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(139, 92, 246, .10) !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 -10px 24px rgba(31, 35, 48, .10) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  html body .wuai-post-actionbar .wuai-post-action-input {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 42px !important;
    align-items: center !important;
    padding: 0 13px !important;
    border: 1px solid rgba(139, 92, 246, .12) !important;
    border-radius: 999px !important;
    background: #f7f8fb !important;
    color: #7b8190 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .wuai-post-actionbar .wuai-post-action-btn {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #566074 !important;
    box-shadow: none !important;
    line-height: 1 !important;
  }

  html body .wuai-post-actionbar .wuai-post-action-btn i {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  html body .wuai-post-actionbar .wuai-post-action-btn span {
    max-width: 18px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .thread-nav > .d-flex {
    align-items: center !important;
    gap: 8px !important;
    max-width: 720px !important;
    min-height: 46px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  html body .thread-nav .thread_comment_input {
    display: flex !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 0 13px !important;
    border: 1px solid rgba(139, 92, 246, .12) !important;
    border-radius: 999px !important;
    background: #f7f8fb !important;
    color: #7b8190 !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  html body .thread-nav .thread_comment_input em {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    font-style: normal !important;
    line-height: 42px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .thread-nav .thread_btm_func {
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 2px !important;
    margin-top: 0 !important;
  }

  html body .thread-nav .thread_btm_func > div {
    padding-right: 3px !important;
    padding-left: 3px !important;
  }

  html body .thread-nav .thread_btm_func a,
  html body .thread-nav .thread_btm_func .dropup > .iconfont {
    position: relative !important;
    display: inline-flex !important;
    width: 38px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #566074 !important;
    text-decoration: none !important;
  }

  html body .thread-nav .thread_btm_func .iconfont {
    font-size: 22px !important;
    line-height: 1 !important;
  }

  html body .thread-nav .thread_nav_pop_count {
    position: absolute !important;
    top: 2px !important;
    right: 0 !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 13px !important;
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  html body:has(.xh-thread-detail) #header .navbar.hidden-lg {
    min-height: 54px !important;
  }

  html body:has(.xh-thread-detail) #mobile_nav {
    min-height: 54px !important;
  }

  html body .xh-thread-detail .card-thread .card-header {
    padding: 13px 12px 10px !important;
  }

  html body .xh-thread-detail .card-thread .card-body {
    padding: 14px 12px 13px !important;
  }

  html body .xh-thread-detail .xh-thread-title {
    font-size: 18px !important;
    line-height: 1.34 !important;
  }

  html body .xh-thread-detail .xh-thread-content,
  html body .xh-thread-detail .card-thread .message.break-all {
    font-size: 15px !important;
    line-height: 1.68 !important;
  }

  html body .xh-thread-detail .wuai-thread-author-frame,
  html body .xh-thread-detail .wuai-thread-author-avatar-link {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
  }

  html body .xh-thread-detail .wuai-thread-author-frame {
    --xh-avatar-size: 42px !important;
    --xh-frame-scale: 1.36 !important;
  }

  html body .xh-thread-detail .wuai-thread-author-avatar,
  html body .xh-thread-detail .wuai-thread-author-frame .xh-avatar-img {
    width: 42px !important;
    height: 42px !important;
  }

  html body .xh-thread-detail .xh-identity-thread .wuai-post-name,
  html body .xh-thread-detail .xh-identity-comment .wuai-post-name {
    max-width: min(42vw, 156px) !important;
  }

  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges,
  html body .xh-thread-detail .xh-identity-comment .wuai-user-badges {
    max-width: min(108px, 32vw) !important;
  }

  html body .xh-thread-detail .xh-comment-list > .xh-comment-item {
    gap: 8px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  html body .xh-thread-detail .xh-comment-avatar,
  html body .xh-thread-detail .wuai-post-avatar-link {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
  }

  html body .xh-thread-detail .xh-comment-avatar img.avatar-3,
  html body .xh-thread-detail .xh-comment-avatar .xh-avatar-img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body {
    font-size: 14px !important;
    line-height: 1.56 !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-grid,
  html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-grid {
    width: min(100%, 292px) !important;
  }

  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image-wrap,
  html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image-wrap,
  html body .xh-thread-detail .postlist .wuai-post-message-body-image-only .wuai-post-image,
  html body .xh-thread-detail .postlist .xh-comment-image-only .wuai-post-image {
    max-width: min(136px, 42vw) !important;
  }

  html body #comment_input .card-body {
    padding: 11px !important;
  }

  html body #comment_input .wuai-lite-quick-toolbar {
    align-items: stretch !important;
  }

  html body #comment_input .wuai-lite-quick-tool-left,
  html body #comment_input .wuai-lite-quick-tool-right {
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
  }

  html body #comment_input .wuai-lite-quick-upload,
  html body #comment_input #advanced_reply {
    min-height: 34px !important;
  }
}

@media (max-width: 370px) {
  html body .thread-nav .thread_btm_func > div {
    padding-right: 1px !important;
    padding-left: 1px !important;
  }

  html body .wuai-post-actionbar {
    gap: 5px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  html body .wuai-post-actionbar .wuai-post-action-btn {
    flex-basis: 36px !important;
    width: 36px !important;
  }

  html body .thread-nav .thread_btm_func a,
  html body .thread-nav .thread_btm_func .dropup > .iconfont {
    width: 34px !important;
  }

  html body .xh-thread-detail .xh-identity-thread .wuai-post-name,
  html body .xh-thread-detail .xh-identity-comment .wuai-post-name {
    max-width: 38vw !important;
  }
}

/* Thread comment feedback v1.1: restore badges, avatar-frame proportions, and hide temporary actions. */
html body .xh-thread-detail .xh-identity-comment .wuai-user-badges {
  order: 7 !important;
  display: inline-flex !important;
  flex: 0 0 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: min(210px, 100%) !important;
  gap: 3px !important;
  margin: 2px 0 0 !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .xh-identity-comment .wuai-user-badge,
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badge {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: var(--wuai-badge-max, 64px) !important;
  max-height: var(--wuai-badge-h, 20px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body .xh-thread-detail .xh-identity-comment .wuai-user-badge-img,
html body .xh-thread-detail .xh-identity-subcomment .wuai-user-badge-img {
  display: block !important;
  width: auto !important;
  max-width: var(--wuai-badge-max, 64px) !important;
  max-height: var(--wuai-badge-h, 20px) !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .xh-identity-comment:not(.wuai-post-meta-line-owner) .wuai-user-badge:nth-child(-n+4),
html body .xh-thread-detail .xh-identity-comment.wuai-post-meta-line-owner .wuai-user-badge:nth-child(-n+4) {
  display: inline-flex !important;
}

html body .xh-thread-detail .xh-identity-comment .wuai-user-badge:nth-child(n+5) {
  display: none !important;
}

html body .xh-thread-detail .xh-identity-comment .wuai-post-date {
  order: 9 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  margin-top: 2px !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar,
html body .xh-thread-detail .postlist .wuai-sub-reply-avatar.xh-sub-avatar-slot {
  display: inline-flex !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-wrap {
  --xh-avatar-size: 34px !important;
  --xh-frame-scale: 1.45 !important;
  width: 34px !important;
  height: 34px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-img {
  width: 34px !important;
  height: 34px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-img {
  width: 49.3px !important;
  height: 49.3px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar > img:not(.xh-avatar-img) {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
  display: inline-flex !important;
  flex: 0 0 60px !important;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
  --xh-avatar-size: 40px !important;
  --xh-frame-scale: 1.5 !important;
  width: 40px !important;
  height: 40px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-img {
  width: 40px !important;
  height: 40px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-frame-img {
  width: 60px !important;
  height: 60px !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .postlist a[data-modal-url*="post-show_all_reply"] {
  display: none !important;
}

html body .wuai-post-actionbar [data-wuai-like],
html body .wuai-post-actionbar [data-wuai-fav],
html body .thread-nav .js-haya-post-like-thread-add,
html body .thread-nav .js-haya-post-like-thread-del,
html body .thread-nav .js-haya-favorite-add,
html body .thread-nav .js-haya-favorite-del {
  display: none !important;
}

@media (max-width: 430px) {
  html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
    flex-basis: 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
  }

  html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
    --xh-avatar-size: 40px !important;
    --xh-frame-scale: 1.5 !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* Xinghe editor publish polish V2: scoped to create/update editor pages only. */
html body .wuai-lite-editor-page {
  max-width: 780px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow-x: clip !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-card,
html body .wuai-lite-editor-page .wuai-lite-editor-form,
html body .wuai-lite-editor-page .wuai-lite-field,
html body .wuai-lite-editor-page .wuai-lite-upload-panel,
html body .wuai-lite-editor-page .wuai-lite-submit-row {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  margin-right: -2px !important;
  margin-left: -2px !important;
  border-radius: 0 0 18px 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html body .wuai-lite-editor-page .wuai-lite-input,
html body .wuai-lite-editor-page .wuai-lite-select {
  min-height: 48px !important;
  font-size: 16px !important;
}

html body .wuai-lite-editor-page .wuai-lite-textarea {
  min-height: 250px !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  padding-bottom: 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar::-webkit-scrollbar {
  display: none;
}

html body .wuai-lite-editor-page .wuai-lite-tool-btn,
html body .wuai-lite-editor-page .wuai-lite-tool-btn:hover,
html body .wuai-lite-editor-page .wuai-lite-tool-btn:focus {
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 14px !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar-state {
  flex: 1 1 auto !important;
  min-width: 72px !important;
  overflow: hidden !important;
  color: #7b8190 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar-state[data-tone="busy"],
html body .wuai-lite-editor-page .wuai-lite-upload-status[data-tone="busy"] {
  color: #7c3aed !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar-state[data-tone="danger"],
html body .wuai-lite-editor-page .wuai-lite-upload-status[data-tone="danger"] {
  color: #e11d48 !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-toolbar-state[data-tone="ok"],
html body .wuai-lite-editor-page .wuai-lite-upload-status[data-tone="ok"] {
  color: #16a34a !important;
}

html body .wuai-lite-editor-page .wuai-at-panel.is-open {
  margin-bottom: 10px !important;
}

html body .wuai-lite-editor-page .wuai-at-shell {
  max-height: min(420px, 62vh) !important;
}

html body .wuai-lite-editor-page .wuai-at-list {
  max-height: min(300px, calc(62vh - 112px)) !important;
}

html body .wuai-lite-editor-page .wuai-lite-upload-panel {
  border-color: rgba(139, 92, 246, .20) !important;
  background: #fbfaff !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

html body .wuai-lite-editor-page .wuai-lite-upload-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn,
html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn:hover,
html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn:focus,
html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn:active {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 92px !important;
  height: 48px !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(139, 92, 246, .24) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #8B5CF6 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn:hover,
html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn:focus {
  border-color: rgba(139, 92, 246, .40) !important;
  background: #f8f5ff !important;
  box-shadow: none !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-emoface {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

html body .wuai-lite-editor-page .wuai-lite-editor-emoface .wuai-emoji-panel {
  max-height: min(236px, 48vh) !important;
}

html body .wuai-lite-editor-page .wuai-lite-upload-status {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #7b8190 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .wuai-lite-editor-page .wuai-lite-upload-btn.is-uploading {
  pointer-events: none !important;
  opacity: .84 !important;
}

html body .wuai-lite-editor-page #addattach,
html body #comment_input .wuai-lite-quick-upload {
  position: relative !important;
  overflow: hidden !important;
}

html body .wuai-lite-editor-page #addattach,
html body .wuai-lite-editor-page #addattach:hover,
html body .wuai-lite-editor-page #addattach:focus,
html body .wuai-lite-editor-page #addattach:focus-within {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 118px !important;
  height: 48px !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  border-width: 1px !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #A855F7 0%, #8B5CF6 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

html body .wuai-lite-editor-page #addattach .wuai-lite-file-input,
html body #comment_input .wuai-lite-quick-upload .wuai-lite-file-input {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

html body .wuai-lite-editor-page .wuai-lite-progress {
  height: 9px !important;
  overflow: hidden !important;
  background: #eee7ff !important;
}

html body .wuai-lite-editor-page .wuai-lite-preview-list {
  align-items: flex-start !important;
  overflow: visible !important;
}

html body .wuai-lite-editor-page .wuai-lite-preview-item {
  border-color: rgba(139, 92, 246, .18) !important;
  box-shadow: 0 8px 18px rgba(31, 35, 48, .08) !important;
}

html body .wuai-lite-editor-page .wuai-lite-preview-remove {
  width: 26px !important;
  height: 26px !important;
  font-size: 18px !important;
}

html body .wuai-lite-editor-page .wuai-lite-submit-row {
  position: sticky !important;
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  z-index: 18 !important;
  justify-content: flex-end !important;
  padding-top: 10px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 48%) !important;
}

html body .wuai-lite-editor-page .wuai-lite-submit:disabled,
html body .wuai-lite-editor-page .wuai-lite-submit.is-submitting,
html body .wuai-lite-editor-page .wuai-lite-submit.is-waiting-upload {
  cursor: wait !important;
  opacity: .72 !important;
  box-shadow: none !important;
}

html body .wuai-editor-pro-page .wuai-editor-toolbar-wrap {
  max-width: 100% !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

html body .wuai-editor-pro-page .wuai-editor-toolbar {
  flex-wrap: nowrap !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html body .wuai-editor-pro-page .wuai-editor-toolbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 575.98px) {
  html body .wuai-lite-editor-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 6px 10px max(112px, calc(92px + env(safe-area-inset-bottom))) !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-editor-card {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-field > label {
    margin-bottom: 7px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-textarea {
    min-height: 236px !important;
    padding: 13px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-upload-actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-upload-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 118px !important;
    padding: 0 12px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn {
    min-width: 86px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-submit-row {
    margin-top: 14px !important;
    padding: 12px 0 0 !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-submit {
    width: 100% !important;
    min-height: 48px !important;
  }

  html body .wuai-lite-editor-page .wuai-at-shell {
    max-height: 58vh !important;
  }

  html body .wuai-lite-editor-page .wuai-at-list {
    max-height: calc(58vh - 112px) !important;
  }
}

@media (max-width: 374.98px) {
  html body .wuai-lite-editor-page .wuai-lite-upload-btn {
    min-width: 106px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-editor-emoji-btn {
    min-width: 78px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  html body .wuai-lite-editor-page .wuai-lite-upload-status {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* Xinghe V3.1: quick-reply toolbar alignment and editor emoji entry. */
html body #comment_input .wuai-lite-quick-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px 10px !important;
}

html body #comment_input .wuai-lite-quick-tool-left,
html body #comment_input .wuai-lite-quick-tool-right {
  display: flex !important;
  flex: initial !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 7px !important;
}

html body #comment_input .wuai-lite-quick-tool-left {
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

html body #comment_input .wuai-lite-quick-tool-right {
  justify-content: flex-end !important;
}

html body #comment_input .wuai-lite-tool-btn,
html body #comment_input .wuai-lite-quick-upload,
html body #comment_input #advanced_reply {
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  align-self: center !important;
}

html body #comment_input .wuai-lite-tool-btn {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
}

html body #comment_input .wuai-lite-quick-upload {
  flex: 0 0 auto !important;
  min-width: 104px !important;
  padding-right: 12px !important;
  padding-left: 12px !important;
}

html body #comment_input #advanced_reply,
html body #comment_input #advanced_reply:hover,
html body #comment_input #advanced_reply:focus {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: 112px !important;
  justify-content: center !important;
  padding: 0 14px !important;
}

@media (max-width: 575.98px) {
  html body #comment_input .wuai-lite-quick-toolbar {
    grid-template-columns: 1fr !important;
  }

  html body #comment_input .wuai-lite-quick-tool-right {
    justify-content: flex-start !important;
  }
}

/* Thread avatar frame containment V1: outer frame wraps the inner avatar. */
html body .xh-thread-detail .wuai-thread-author-avatar-link {
  display: inline-flex !important;
  flex: 0 0 64px !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 10px !important;
  overflow: visible !important;
  line-height: 0 !important;
}

html body .xh-thread-detail .wuai-thread-author-frame.xh-avatar-frame-wrap {
  --xh-avatar-size: 44px !important;
  --xh-frame-scale: 1.45 !important;
  display: block !important;
  flex: 0 0 64px !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .xh-thread-detail .wuai-thread-author-frame.xh-avatar-frame-wrap .xh-avatar-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

html body .xh-thread-detail .wuai-thread-author-frame.xh-avatar-frame-wrap .xh-avatar-frame-img {
  width: 64px !important;
  height: 64px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .wuai-thread-author-avatar-link > img.wuai-thread-author-avatar:not(.xh-avatar-img) {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar,
html body .xh-thread-detail .postlist .wuai-sub-reply-avatar.xh-sub-avatar-slot {
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  line-height: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-wrap {
  --xh-avatar-size: 34px !important;
  --xh-frame-scale: 1.45 !important;
  display: block !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 50px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

html body .xh-thread-detail .postlist .wuai-sub-reply-avatar .xh-avatar-frame-img {
  width: 50px !important;
  height: 50px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

html body .card-threadlist .threadlist .xh-thread-list-avatar-link {
  flex: 0 0 60px !important;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  line-height: 0 !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame {
  --xh-avatar-size: 40px !important;
  --xh-frame-scale: 1.5 !important;
  display: block !important;
  flex: 0 0 60px !important;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  margin: auto !important;
  overflow: visible !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

html body .card-threadlist .threadlist .xh-avatar-frame-wrap.xh-thread-list-avatar-frame .xh-avatar-frame-img {
  width: 60px !important;
  height: 60px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Thread header badge fit V1: enlarge the four owner icon badges only. */
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread,
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread {
  order: 8 !important;
  display: inline-flex !important;
  flex: 1 1 100% !important;
  width: min(284px, 100%) !important;
  max-width: min(284px, 100%) !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 5px 6px !important;
  margin: 5px 0 0 !important;
  overflow: visible !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge,
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: var(--wuai-badge-w, auto) !important;
  max-width: 64px !important;
  height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge-img,
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge img,
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge-img,
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge img {
  display: block !important;
  width: var(--wuai-badge-w, auto) !important;
  max-width: 64px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge:nth-child(-n+4),
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge:nth-child(-n+4) {
  display: inline-flex !important;
}

html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge:nth-child(n+5),
html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge:nth-child(n+5) {
  display: none !important;
}

@media (max-width: 430px) {
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread {
    width: min(260px, 100%) !important;
    max-width: min(260px, 100%) !important;
    gap: 4px 5px !important;
  }

  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge-img,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges.wuai-badge-scene-thread .wuai-user-badge img,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge-img,
  html body .xh-thread-detail .xh-identity-thread .wuai-user-badges-thread .wuai-user-badge img {
    max-width: 60px !important;
    height: 23px !important;
    max-height: 23px !important;
  }
}

/* Thread image grid fix4b: uploaded-image cells should not keep a square placeholder tail. */
html body .xh-thread-detail .message .wuai-post-image-grid .wuai-post-image-wrap,
html body .xh-thread-detail .wuai-post-message-body .wuai-post-image-grid .wuai-post-image-wrap,
html body .xh-thread-detail .card-thread .message .wuai-post-image-grid .wuai-post-image-wrap {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  line-height: 0 !important;
  background: transparent !important;
}

html body .xh-thread-detail .message .wuai-post-image-grid .wuai-post-image,
html body .xh-thread-detail .wuai-post-message-body .wuai-post-image-grid .wuai-post-image,
html body .xh-thread-detail .card-thread .message .wuai-post-image-grid .wuai-post-image {
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* V6.1 comment closeout: keep the floor badge beside the author block. */
html body .xh-thread-detail .postlist .wuai-post-head.wuai-post-head-floor-inline {
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

html body .xh-thread-detail .postlist .wuai-post-head-floor-inline > .wuai-post-meta-line {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

html body .xh-thread-detail .postlist .wuai-post-actions-floor.wuai-post-floor-inline {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-self: flex-start !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  gap: 0 !important;
  white-space: nowrap !important;
}

html body .xh-thread-detail .postlist .wuai-post-floor-inline > .floor-parent {
  min-height: 22px !important;
}

html body .xh-thread-detail .postlist .wuai-post-head-floor-inline + .message {
  margin-top: 8px !important;
}

html body .xh-thread-detail .postlist .wuai-post-head-floor-inline + .message.wuai-message-image-only {
  margin-top: 6px !important;
}

html body .xh-thread-detail .postlist .wuai-main-post-action-row {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* A zero-percent level bar must not inherit the decorative 8px minimum fill. */
html body .wuai-my-level-card-standalone .wuai-my-level-bar.is-zero > i {
  width: 0 !important;
  min-width: 0 !important;
  box-shadow: none !important;
}

/* Xinghe V6.3: keep style-3 thread metadata in one compact row. */
html body .card-threadlist .threadlist .xh-thread-main,
html body .card-threadlist .threadlist .xh-thread-title {
  min-width: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-title .wuai-reward-list-badge-wrap,
html body .card-threadlist .threadlist .xh-thread-title > .wuai-reward-list-badge {
  flex: 0 0 auto !important;
  max-width: min(45%, 160px) !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 50px !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
  overflow: hidden !important;
}

html body .card-threadlist .threadlist .xh-thread-meta {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

html body .card-threadlist .threadlist .xh-thread-meta .xh-thread-forum-tag,
html body .card-threadlist .threadlist .xh-thread-meta .style3-thread-forum-name {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-author {
  display: block !important;
  max-width: 108px !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #6f7b89 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-author-name,
html body .card-threadlist .threadlist .xh-thread-meta-last-name {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-identity,
html body .card-threadlist .threadlist .xh-thread-last-identity {
  display: inline-flex !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-identity:empty,
html body .card-threadlist .threadlist .xh-thread-last-identity:empty {
  display: none !important;
}

html body .card-threadlist .threadlist .xh-thread-last-reply {
  display: inline-flex !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 3px !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-reply-arrow {
  display: inline-flex !important;
  min-width: 12px !important;
  flex: 0 0 12px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: visible !important;
  font-size: 11px !important;
  opacity: .72 !important;
}

html body .card-threadlist .threadlist .xh-thread-last-user {
  display: inline-flex !important;
  max-width: 118px !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  gap: 2px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-last-name {
  max-width: 84px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-time {
  display: inline-flex !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html body .card-threadlist .threadlist .xh-thread-meta-dot {
  margin: 0 3px 0 1px !important;
  color: #b1b7c1 !important;
}

html body .card-threadlist .threadlist .xh-thread-replies {
  display: flex !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  flex: 0 0 50px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

@media (max-width: 575.98px) {
  html body .card-threadlist .threadlist .xh-thread-meta-row {
    grid-template-columns: minmax(0, 1fr) 40px !important;
    gap: 4px !important;
    margin-top: 6px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta {
    gap: 3px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-author {
    max-width: 84px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-identity {
    max-width: 58px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-user {
    max-width: 82px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-last-name {
    max-width: 68px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-replies {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-basis: 40px !important;
  }
}

@media (max-width: 380px) {
  html body .card-threadlist .threadlist .xh-thread-meta {
    gap: 2px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-author {
    max-width: 68px !important;
  }

  html body .card-threadlist .threadlist .xh-thread-last-reply > .xh-thread-last-user {
    display: none !important;
  }

  html body .card-threadlist .threadlist .xh-thread-meta-dot {
    display: none !important;
  }
}
