/**
 * uuPrompt Forum ? professional skin (bbPress)
 */

:root {
  --uup-primary: #0284c7;
  --uup-primary-hover: #0369a1;
  --uup-primary-soft: #e0f2fe;
  --uup-ink: #0b1220;
  --uup-muted: #64748b;
  --uup-border: #e2e8f0;
  --uup-surface: #ffffff;
  --uup-bg: #f4f7fb;
  --uup-radius: 14px;
  --uup-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
  --uup-container: 1280px;
  --uup-nav-bg: rgba(255, 255, 255, 0.88);
  --uup-nav-link: #475569;
  --uup-nav-name: #334155;
}

/* 深色皮肤：与主站 cookie uuprompt-theme=dark 同步 */
body.uuprompt-forum.uup-theme-dark {
  --uup-primary: #38bdf8;
  --uup-primary-hover: #7dd3fc;
  --uup-primary-soft: #0c4a6e;
  --uup-ink: #e2e8f0;
  --uup-muted: #94a3b8;
  --uup-border: #1e293b;
  --uup-surface: #111827;
  --uup-bg: #0b1220;
  --uup-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --uup-nav-bg: rgba(17, 24, 39, 0.9);
  --uup-nav-link: #94a3b8;
  --uup-nav-name: #e2e8f0;
  color-scheme: dark;
}

.uup-container,
body.uuprompt-forum .entry-header,
body.uuprompt-forum .page-header,
body.uuprompt-forum .entry-content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .uup-container,
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content { max-width: 640px; }
}
@media (min-width: 768px) {
  .uup-container,
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content { max-width: 768px; }
}
@media (min-width: 1024px) {
  .uup-container,
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .uup-container,
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content { max-width: 1280px; }
}
@media (min-width: 1536px) {
  .uup-container,
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content { max-width: 1536px; }
}

body.uuprompt-forum #primary,
body.uuprompt-forum #main,
body.uuprompt-forum .content-area,
body.uuprompt-forum .site-main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.uuprompt-forum #masthead,
body.uuprompt-forum .site-header,
body.uuprompt-forum #colophon,
body.uuprompt-forum .site-footer,
body.uuprompt-forum .site-info,
body.uuprompt-forum .powered-by,
body.uuprompt-forum .widget-area,
body.uuprompt-forum .entry-footer,
body.uuprompt-forum .post-thumbnail,
body.uuprompt-forum .site-branding,
body.uuprompt-forum .primary-navigation-wrap,
body.uuprompt-forum .menu-button-container,
body.uuprompt-forum .skip-link {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.uuprompt-forum #page,
body.uuprompt-forum .site,
body.uuprompt-forum .site-content,
body.uuprompt-forum #content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

body.uuprompt-forum {
  background-color: var(--uup-bg) !important;
  background-image:
    radial-gradient(at 12% 18%, rgb(14 165 233 / 0.12) 0px, transparent 48%),
    radial-gradient(at 88% 8%, rgb(8 145 178 / 0.09) 0px, transparent 42%),
    radial-gradient(at 50% 100%, rgb(13 148 136 / 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--uup-ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ?? Top nav ?? */
.uup-forum-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--uup-nav-bg);
  border-bottom: 1px solid var(--uup-border);
}
.uup-forum-topnav__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.uup-forum-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: center;
}
.uup-forum-links a {
  color: var(--uup-nav-link) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
}
.uup-forum-links a:hover,
.uup-forum-links a.is-active {
  color: var(--uup-primary) !important;
}
.uup-forum-links a.uup-forum-brand {
  color: var(--uup-ink) !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.uup-forum-links a.uup-forum-brand span {
  color: var(--uup-primary);
}
.uup-forum-links a.uup-forum-home {
  color: var(--uup-primary) !important;
  font-weight: 700;
}
.uup-forum-user {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--uup-muted);
}
.uup-forum-user__name { color: var(--uup-nav-name); font-weight: 500; }
.uup-forum-user a {
  color: var(--uup-nav-link) !important;
  text-decoration: none !important;
}
.uup-forum-user a:hover { color: var(--uup-primary) !important; }
.uup-forum-user__sep { color: var(--uup-border); }
.uup-forum-user__register {
  color: var(--uup-primary) !important;
  font-weight: 600;
}

.uup-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--uup-border);
  background: var(--uup-surface);
  color: var(--uup-ink);
  cursor: pointer;
  padding: 0;
}
.uup-theme-toggle:hover {
  border-color: var(--uup-primary);
  color: var(--uup-primary);
}
.uup-theme-toggle__icon::before {
  content: '☾';
  font-size: 0.95rem;
  line-height: 1;
}
body.uup-theme-dark .uup-theme-toggle__icon::before {
  content: '☀';
}

/* ?? Footer ?? */
.uup-forum-footer {
  margin-top: 2.5rem;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  color: #cbd5e1;
}
.uup-forum-footer__inner {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.uup-forum-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .uup-forum-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .uup-forum-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}
.uup-forum-footer__brand a {
  display: inline-block;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff !important;
  text-decoration: none !important;
}
.uup-forum-footer__brand p {
  margin: 0.75rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}
.uup-forum-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.uup-forum-footer ul { list-style: none; margin: 0; padding: 0; }
.uup-forum-footer li + li { margin-top: 0.5rem; }
.uup-forum-footer ul a {
  font-size: 0.875rem;
  color: #94a3b8 !important;
  text-decoration: none !important;
}
.uup-forum-footer ul a:hover { color: #fff !important; }
.uup-forum-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
@media (min-width: 640px) {
  .uup-forum-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.uup-forum-footer__bottom p { margin: 0; }
.uup-forum-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.uup-forum-footer__legal a {
  color: #64748b !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ?? Page title ?? */
body.uuprompt-forum .entry-header,
body.uuprompt-forum .page-header {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
body.uuprompt-forum .entry-header .entry-title,
body.uuprompt-forum .page-header .page-title {
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  color: var(--uup-ink) !important;
  margin: 0 !important;
}
body.uuprompt-forum .entry-content {
  margin-bottom: 2.5rem !important;
  padding-bottom: 2rem !important;
}

/* ?? bbPress shell ?? */
#bbpress-forums {
  background: var(--uup-surface);
  border: 1px solid var(--uup-border);
  border-radius: var(--uup-radius);
  box-shadow: var(--uup-shadow);
  padding: 1.35rem 1.5rem 1.75rem;
  font-size: 15px;
  line-height: 1.6;
  clear: both;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}
#bbpress-forums a {
  color: var(--uup-primary);
  text-decoration: none;
}
#bbpress-forums a:hover {
  color: var(--uup-primary-hover);
  text-decoration: underline;
}
#bbpress-forums .bbp-breadcrumb {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--uup-muted);
}
#bbpress-forums .bbp-breadcrumb p { margin: 0; }
#bbpress-forums .bbp-breadcrumb a { color: var(--uup-muted); }

/* Hide noisy default notices on topic */
body.uuprompt-forum.single-topic #bbpress-forums .bbp-template-notice.info,
body.uuprompt-forum.single-forum #bbpress-forums > .bbp-template-notice.info {
  display: none !important;
}

/* ?? Search ?? */
.uup-forum-search,
#bbpress-forums .bbp-search-form {
  float: none !important;
  margin: 0 0 1.25rem;
}
.uup-forum-search form,
#bbpress-forums .bbp-search-form form > div,
#bbpress-forums #bbp-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
#bbpress-forums #bbp_search {
  flex: 1;
  border: 1px solid var(--uup-border) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem !important;
  background: #fff !important;
  min-width: 0;
  box-shadow: none !important;
}
#bbpress-forums #bbp_search_submit,
#bbpress-forums .button,
#bbpress-forums button[type="submit"],
#bbpress-forums .bbp-submit-wrapper button,
.uup-forum-search button {
  background: var(--uup-primary) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 0.65rem 1.15rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
}
#bbpress-forums #bbp_search_submit:hover,
#bbpress-forums .button:hover,
.uup-forum-search button:hover {
  background: var(--uup-primary-hover) !important;
}

/* ?? Forum / topic list cards ?? */
.uup-forum-list__head,
.uup-topic-list__head {
  display: none;
}
@media (min-width: 900px) {
  .uup-forum-list__head,
  .uup-topic-list__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 88px 160px;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--uup-muted);
    border-bottom: 1px solid var(--uup-border);
    margin-bottom: 0.5rem;
  }
}
.uup-forum-list__body,
.uup-topic-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.uup-forum-card,
.uup-topic-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--uup-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  list-style: none !important;
  margin: 0 !important;
}
@media (min-width: 900px) {
  .uup-forum-card,
  .uup-topic-card {
    grid-template-columns: minmax(0, 1fr) 88px 88px 160px;
    align-items: center;
  }
}
.uup-forum-card:hover,
.uup-topic-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.uup-forum-card__main,
.uup-topic-card__main {
  min-width: 0;
}
.uup-forum-card__main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.uup-forum-card__icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.22);
}
.uup-forum-card:nth-child(2) .uup-forum-card__icon {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
}
.uup-forum-card:nth-child(3) .uup-forum-card__icon {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.uup-forum-card__title,
.uup-topic-card__title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--uup-ink) !important;
  text-decoration: none !important;
  line-height: 1.35;
}
.uup-forum-card__title:hover,
.uup-topic-card__title:hover {
  color: var(--uup-primary) !important;
}
.uup-forum-card__desc,
.uup-forum-card__desc p {
  margin: 0.35rem 0 0;
  color: var(--uup-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.uup-topic-card__meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--uup-muted);
}
.uup-topic-card__meta img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 0.2rem;
}
.uup-topic-card__sep { margin: 0 0.35rem; color: #cbd5e1; }

.uup-forum-card__stat,
.uup-topic-card__stat {
  text-align: center;
}
.uup-forum-card__stat strong,
.uup-topic-card__stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--uup-ink);
  line-height: 1.2;
}
.uup-forum-card__stat span,
.uup-topic-card__stat span {
  font-size: 11px;
  color: var(--uup-muted);
}
.uup-forum-card__fresh,
.uup-topic-card__fresh {
  font-size: 0.8rem;
  color: var(--uup-muted);
  text-align: left;
}
@media (min-width: 900px) {
  .uup-forum-card__fresh,
  .uup-topic-card__fresh { text-align: right; }
}
.uup-forum-card__fresh-author img,
.uup-topic-card__fresh-author img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px;
  vertical-align: middle;
}

/* Reset bbPress default ul/li leftovers inside cards */
#bbpress-forums .uup-forum-card,
#bbpress-forums .uup-topic-card,
#bbpress-forums .uup-reply-card {
  list-style: none;
}
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}

/* ?? Topic view ?? */
.uup-topic-view__actions,
.uup-forum-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.uup-forum-view__intro {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--uup-border);
  border-radius: 10px;
  color: var(--uup-muted);
  font-size: 0.9rem;
}
.uup-topic-view__count {
  margin: 0.35rem 0 0.85rem;
  font-size: 13px;
  color: var(--uup-muted);
}
.uup-topic-view__count .bbp-pagination {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.uup-reply-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.uup-reply-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--uup-border);
  border-radius: 12px;
  background: #fff;
  margin: 0 !important;
}
@media (max-width: 640px) {
  .uup-reply-card {
    grid-template-columns: 1fr;
  }
}
.uup-reply-card__aside {
  text-align: center;
  font-size: 12px;
  color: var(--uup-muted);
}
.uup-reply-card__aside img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--uup-border);
}
.uup-reply-card__aside .bbp-author-name {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--uup-ink) !important;
  text-decoration: none !important;
  word-break: break-word;
}
.uup-reply-card__aside .bbp-author-role {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.uup-reply-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 12px;
  color: var(--uup-muted);
}
.uup-reply-card__permalink {
  color: var(--uup-muted) !important;
}
.uup-reply-card__content {
  color: var(--uup-ink);
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: break-word;
}
.uup-reply-card__content p:first-child { margin-top: 0; }
.uup-reply-card__content p:last-child { margin-bottom: 0; }

/* Forms */
#bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--uup-border);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.25rem;
  background: #f8fafc;
}
#bbpress-forums fieldset.bbp-form legend {
  font-weight: 700;
  padding: 0 0.4rem;
  color: var(--uup-ink);
}
#bbpress-forums fieldset.bbp-form label {
  color: var(--uup-muted);
  font-size: 13px;
  font-weight: 600;
}
#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="password"],
#bbpress-forums fieldset.bbp-form textarea {
  border: 1px solid var(--uup-border) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.85rem !important;
  background: #fff !important;
  width: 100%;
  box-shadow: none !important;
}
#bbpress-forums .bbp-login-form,
#bbpress-forums .bbp-no-reply {
  border: 1px solid var(--uup-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  margin-top: 1rem;
}

/* Prompt banner */
.uup-prompt-topic-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}
.uup-prompt-topic-banner__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 0.35rem;
}
.uup-prompt-topic-banner__link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none !important;
}
.uup-prompt-topic-banner__link:hover {
  text-decoration: underline !important;
}
.uup-prompt-topic-banner__hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* Legacy list fallbacks still used by some screens */
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  display: none !important;
}

/* ===== TinyMCE / wp_editor on forum forms ===== */
body.uuprompt-forum #bbpress-forums div.bbp-the-content-wrapper {
  border: 1px solid var(--uup-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body.uuprompt-forum #bbpress-forums .wp-editor-wrap {
  border: none !important;
}
body.uuprompt-forum #bbpress-forums .wp-editor-tools {
  padding: 0.35rem 0.5rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--uup-border);
}
body.uuprompt-forum #bbpress-forums .wp-editor-container {
  border: none !important;
}
body.uuprompt-forum #bbpress-forums .mce-tinymce,
body.uuprompt-forum #bbpress-forums .mce-panel {
  border: none !important;
  box-shadow: none !important;
}
body.uuprompt-forum #bbpress-forums .mce-toolbar-grp {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--uup-border) !important;
}
body.uuprompt-forum #bbpress-forums textarea.bbp-the-content,
body.uuprompt-forum #bbpress-forums .wp-editor-area {
  min-height: 220px !important;
  border: none !important;
  box-shadow: none !important;
}
body.uuprompt-forum #bbpress-forums fieldset.bbp-form legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--uup-ink);
  padding: 0;
}
body.uuprompt-forum #bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--uup-border) !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.35rem 1.5rem !important;
  background: #fff;
}

/* ===== Layout repair: TT1 narrow column + bbPress floats + TinyMCE ===== */
body.uuprompt-forum .entry-header,
body.uuprompt-forum .page-header,
body.uuprompt-forum .entry-content {
  max-width: min(100%, 1280px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box !important;
}
@media (min-width: 1536px) {
  body.uuprompt-forum .entry-header,
  body.uuprompt-forum .page-header,
  body.uuprompt-forum .entry-content {
    max-width: min(100%, 1536px) !important;
  }
}

/* Kill Twenty Twenty-One per-child ~610px column for forum content */
body.uuprompt-forum .entry-content > *,
body.uuprompt-forum .entry-content > #bbpress-forums,
body.uuprompt-forum .entry-content > .alignwide {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body.uuprompt-forum #bbpress-forums,
body.uuprompt-forum #bbpress-forums.bbpress-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  clear: both !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Neutralize default bbPress float author/content layout */
body.uuprompt-forum #bbpress-forums div.bbp-reply-author,
body.uuprompt-forum #bbpress-forums div.bbp-topic-author,
body.uuprompt-forum #bbpress-forums div.bbp-forum-author,
body.uuprompt-forum #bbpress-forums li.bbp-body div.bbp-reply-author {
  float: none !important;
  position: static !important;
  width: auto !important;
  clear: none !important;
}
body.uuprompt-forum #bbpress-forums div.bbp-reply-content,
body.uuprompt-forum #bbpress-forums div.bbp-topic-content,
body.uuprompt-forum #bbpress-forums div.bbp-forum-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}

body.uuprompt-forum #bbpress-forums .bbp-pagination,
body.uuprompt-forum #bbpress-forums .bbp-pagination-count,
body.uuprompt-forum #bbpress-forums .bbp-pagination-links,
body.uuprompt-forum #bbpress-forums .bbp-topic-tags,
body.uuprompt-forum #bbpress-forums .bbp-submit-wrapper {
  float: none !important;
  width: auto !important;
  clear: both !important;
}

body.uuprompt-forum #bbpress-forums .uup-reply-list,
body.uuprompt-forum #bbpress-forums .uup-reply-card,
body.uuprompt-forum #bbpress-forums ul.bbp-replies,
body.uuprompt-forum #bbpress-forums li.bbp-body {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Reply form + TinyMCE stay inside the card */
body.uuprompt-forum #bbpress-forums .bbp-reply-form,
body.uuprompt-forum #bbpress-forums .bbp-topic-form,
body.uuprompt-forum #bbpress-forums form#new-post {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 0 !important;
  box-sizing: border-box !important;
}
body.uuprompt-forum #bbpress-forums fieldset.bbp-form {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
body.uuprompt-forum #bbpress-forums div.bbp-the-content-wrapper,
body.uuprompt-forum #bbpress-forums .wp-editor-wrap,
body.uuprompt-forum #bbpress-forums .wp-editor-container,
body.uuprompt-forum #bbpress-forums .mce-tinymce,
body.uuprompt-forum #bbpress-forums .mce-container,
body.uuprompt-forum #bbpress-forums .mce-stack-layout,
body.uuprompt-forum #bbpress-forums .mce-edit-area,
body.uuprompt-forum #bbpress-forums .mce-edit-area iframe,
body.uuprompt-forum #bbpress-forums textarea.bbp-the-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}
body.uuprompt-forum #bbpress-forums .mce-toolbar-grp,
body.uuprompt-forum #bbpress-forums .mce-top-part,
body.uuprompt-forum #bbpress-forums .mce-container-body {
  max-width: 100% !important;
  overflow-x: auto !important;
}

.uup-prompt-topic-banner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* —— 深色皮肤：盖过写死的白底 —— */
body.uuprompt-forum.uup-theme-dark {
  background-image:
    radial-gradient(at 12% 18%, rgb(14 165 233 / 0.14) 0px, transparent 48%),
    radial-gradient(at 88% 8%, rgb(8 145 178 / 0.1) 0px, transparent 42%),
    radial-gradient(at 50% 100%, rgb(13 148 136 / 0.08) 0px, transparent 50%) !important;
}
body.uuprompt-forum.uup-theme-dark #bbpress-forums #bbp_search,
body.uuprompt-forum.uup-theme-dark .uup-forum-card,
body.uuprompt-forum.uup-theme-dark .uup-topic-card,
body.uuprompt-forum.uup-theme-dark .bbp-form,
body.uuprompt-forum.uup-theme-dark fieldset.bbp-form,
body.uuprompt-forum.uup-theme-dark .bbp-reply-form,
body.uuprompt-forum.uup-theme-dark .bbp-topic-form,
body.uuprompt-forum.uup-theme-dark .bbp-template-notice,
body.uuprompt-forum.uup-theme-dark div.bbp-template-notice,
body.uuprompt-forum.uup-theme-dark .bbp-pagination,
body.uuprompt-forum.uup-theme-dark li.bbp-body,
body.uuprompt-forum.uup-theme-dark li.bbp-header,
body.uuprompt-forum.uup-theme-dark li.bbp-footer,
body.uuprompt-forum.uup-theme-dark .bbp-reply-content,
body.uuprompt-forum.uup-theme-dark .bbp-topic-content,
body.uuprompt-forum.uup-theme-dark .wp-editor-container,
body.uuprompt-forum.uup-theme-dark textarea,
body.uuprompt-forum.uup-theme-dark input[type="text"],
body.uuprompt-forum.uup-theme-dark input[type="search"],
body.uuprompt-forum.uup-theme-dark select {
  background: var(--uup-surface) !important;
  color: var(--uup-ink) !important;
  border-color: var(--uup-border) !important;
}
body.uuprompt-forum.uup-theme-dark .uup-forum-card:hover,
body.uuprompt-forum.uup-theme-dark .uup-topic-card:hover {
  border-color: var(--uup-primary) !important;
  box-shadow: var(--uup-shadow) !important;
}
body.uuprompt-forum.uup-theme-dark .uup-topic-card__sep {
  color: var(--uup-muted) !important;
}
body.uuprompt-forum.uup-theme-dark .uup-forum-footer {
  border-top-color: #0f172a;
  background: #020617;
}
