/*
 * just-bbc public theme for Apache Answer 2.0.1.
 * Original stylesheet written for the just-bbc forum: a compact, fixed-header
 * desktop forum shell with a 1080px card layout. Every rule here is
 * hand-authored for this project. Scoped to public routes so the Answer admin
 * UI stays native.
 */

:root {
  --jb-dark: #333;
  --jb-fade: #555;
  --jb-gray: #888;
  --jb-accent: #2ea44f;
  --jb-accent-hover: #45ca6b;
  --jb-text: #333;
  --jb-link: #555;
  --jb-link-hover: #333;
  --jb-surface: #fff;
  --jb-surface-soft: #fbfbfb;
  --jb-border: rgba(0, 0, 0, 0.06);
  --jb-grid: #d4d4d4;
  --jb-page: #fffcf8;
  --jb-muted: #858585;
  --jb-radius: 3px;
  --jb-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  --jb-panel-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.1);
  --jb-btn-border: rgba(27, 31, 35, 0.15);
}

body.jbbc-public-body {
  min-width: 0;
  margin: 0;
  color: var(--jb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    "WenQuanYi Micro Hei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background-color: var(--jb-page);
  -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 500px) {
  body.jbbc-public-body {
    background-image: linear-gradient(var(--jb-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--jb-grid) 1px, transparent 1px);
    background-size: 32px 32px;
  }
}

body.jbbc-public-body a {
  color: var(--jb-link);
  text-decoration: none;
}

body.jbbc-public-body a:hover,
body.jbbc-public-body a:focus-visible {
  color: var(--jb-link-hover);
}

body.jbbc-public-body ::selection {
  color: #fff;
  background: var(--jb-accent);
}

.jbbc-skip-link {
  position: fixed;
  top: 4px;
  left: 8px;
  z-index: 2000;
  padding: 5px 10px;
  color: #fff !important;
  background: var(--jb-accent);
  border-radius: 4px;
  transform: translateY(-150%);
}

.jbbc-skip-link:focus {
  transform: translateY(0);
}

/* ============================= Public header ============================ */
/*
 * Header geometry, navigation visibility, and breakpoint behavior belong to
 * the compiled Header SCSS. Keep only database-served color compatibility
 * here; duplicate dimensions in this file previously reversed mobile rules.
 */
#header.jbbc-public-header {
  color: var(--jb-text);
  background: var(--jb-surface);
  border-color: var(--jb-border);
  box-shadow: var(--jb-shadow);
}

#header.jbbc-public-header .jbbc-public-brand,
#header.jbbc-public-header .jbbc-public-brand-name,
#header.jbbc-public-header .jbbc-public-nav-link,
#header.jbbc-public-header .jbbc-public-search .placeholder-search {
  color: var(--jb-text);
}

#header.jbbc-public-header .jbbc-public-search .placeholder-search {
  background: var(--jb-surface);
  border-color: var(--jb-border);
  box-shadow: none;
}

#header.jbbc-public-header .jbbc-public-icon-button:hover,
#header.jbbc-public-header .jbbc-public-icon-button:focus-visible,
#header.jbbc-public-header .jbbc-public-nav-link:hover,
#header.jbbc-public-header .jbbc-public-nav-link.active {
  color: var(--jb-accent);
}

#header.jbbc-public-header .jbbc-public-account .dropdown-toggle img {
  border-radius: 15%;
}

#header.jbbc-public-header .jbbc-public-mobile-nav,
#header.jbbc-public-header .jbbc-public-mobile-search-panel {
  background: var(--jb-surface);
  box-shadow: var(--jb-shadow);
}

/* Topic geometry and state styles live in the compiled QuestionList SCSS. */
.jbbc-topic-excerpt,
.jbbc-topic-tags {
  display: none !important;
}

/* Answer fallback while the first skeleton/list chunk is loading. */
.jbbc-page-main .list-group {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

.jbbc-page-main .list-group-item {
  border-color: rgba(0, 0, 0, 0.05);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ======================= Question and reply content ===================== */
.jbbc-post,
.jbbc-reply-item {
  position: relative;
  padding: 8px;
  color: var(--jb-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jbbc-reply-item.answer-item {
  border-top: 0;
}

.jbbc-post-title h1,
.jbbc-post-title,
.questionDetailPage .jbbc-post-title h1 {
  margin: 0 0 10px;
  padding: 0 8px;
  color: var(--jb-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.jbbc-post-title a {
  color: var(--jb-text) !important;
}

.jbbc-post-author-row,
.jbbc-reply-author-row {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.jbbc-post-avatar,
.jbbc-reply-avatar,
.jbbc-replies-avatar,
.jbbc-post-author-avatar,
.jbbc-reply-author-avatar,
.jbbc-replies-author-avatar {
  width: 40px;
  height: 40px;
  margin: 0 10px 4px 0;
  flex: 0 0 40px;
}

.jbbc-post-avatar img,
.jbbc-reply-avatar img,
.jbbc-replies-avatar img,
.jbbc-post-avatar .avatar,
.jbbc-reply-avatar .avatar,
.jbbc-replies-avatar .avatar {
  width: 40px !important;
  height: 40px !important;
  object-fit: cover;
  border-radius: 15% !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.jbbc-post-author-info,
.jbbc-reply-author-info,
.jbbc-post-author,
.jbbc-reply-author,
.jbbc-replies-author {
  min-width: 0;
  padding-top: 1px;
  flex: 1 1 auto;
  font-size: 11px;
}

.jbbc-post-author-name,
.jbbc-reply-author-name,
.jbbc-replies-author-name {
  margin-right: 5px;
  color: var(--jb-fade) !important;
  font-size: 15px;
  font-weight: 700;
}

.jbbc-post-author-info strong,
.jbbc-reply-author-info strong {
  color: var(--jb-text);
  font-size: 11px;
}

/* 楼主 role badge */
.jbbc-role-badge {
  margin: 0 4px;
  padding: 0 3px;
  display: inline-block;
  color: #00eaff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  background: transparent;
  border: 1px solid #00eaff;
  border-radius: 3px;
  white-space: nowrap;
}

.jbbc-post-meta,
.jbbc-reply-meta,
.jbbc-replies-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  color: var(--jb-muted);
  font-size: 11px;
}

.jbbc-post-meta a,
.jbbc-reply-meta a,
.jbbc-replies-meta a {
  color: var(--jb-muted);
}

.jbbc-floor-link,
.jbbc-reply-floor,
.jbbc-replies-floor {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--jb-fade) !important;
  font-size: 13px;
}

.jbbc-post-content,
.jbbc-reply-content,
.questionDetailPage .post-content,
.questionDetailPage .fmt {
  margin: 14px 0 16px !important;
  overflow: hidden;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.questionDetailPage .fmt p,
.questionDetailPage .post-content p {
  margin: 10px 0;
}

.questionDetailPage .fmt a,
.questionDetailPage .post-content a {
  color: #0dbc79;
}

.questionDetailPage .fmt img,
.questionDetailPage .post-content img {
  max-width: 95%;
  height: auto;
  margin: 1rem 2.5%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.questionDetailPage .fmt blockquote,
.questionDetailPage .post-content blockquote {
  min-width: 200px;
  padding: 1ex 10px;
  margin: 1em;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.05);
  border-left: 4px solid rgba(0, 0, 0, 0.1);
}

.questionDetailPage .fmt code,
.questionDetailPage .fmt pre,
.questionDetailPage .post-content code,
.questionDetailPage .post-content pre {
  padding: 4px 8px;
  overflow: auto;
  font-family: monospace;
  background: rgba(255, 255, 153, 0.33);
  border: 1px solid #eec;
  border-radius: 2px;
}

.jbbc-post-tags {
  margin: 0 0 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.jbbc-post-tag {
  height: 20px;
  padding: 0 5px;
  color: var(--jb-link) !important;
  font-size: 11px;
  line-height: 20px;
  background: var(--jb-surface-soft);
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Post/reply action row: plain icon-text items, right aligned. */
.jbbc-post-actions,
.jbbc-reply-actions {
  min-height: 21px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.jbbc-action-button,
.jbbc-post-actions .btn,
.jbbc-reply-actions .btn {
  min-height: 0;
  padding: 0;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  color: #999;
  font-size: 13px;
  line-height: 1.5;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.jbbc-post-actions .btn:last-child,
.jbbc-reply-actions .btn:last-child,
.jbbc-action-button:last-child {
  margin-right: 0;
}

.jbbc-action-button:hover,
.jbbc-post-actions .btn:hover,
.jbbc-reply-actions .btn:hover {
  color: var(--jb-link-hover);
  background: transparent;
}

.jbbc-post-actions .btn i,
.jbbc-post-actions .btn svg,
.jbbc-reply-actions .btn i,
.jbbc-reply-actions .btn svg {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  font-size: 12px;
}

.jbbc-action-button span,
.jbbc-post-actions .btn span,
.jbbc-reply-actions .btn span {
  margin-left: 4px;
}

.jbbc-accepted {
  padding: 1px 6px;
  color: #fff;
  font-size: 10px;
  background: var(--jb-accent);
  border-radius: 3px;
}

.jbbc-replies-head {
  min-height: 36px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jbbc-replies-head h2,
.jbbc-replies-head h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.jbbc-comments {
  margin-top: 7px;
  font-size: 12px;
}

.questionDetailPage .answer-item.pt-4 {
  padding-top: 10px !important;
}

.jbbc-green-button {
  min-height: 27px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 25px;
  background: var(--jb-accent);
  border: 1px solid var(--jb-btn-border);
  border-radius: 4px;
  box-shadow: 0 1px rgba(27, 31, 35, 0.1);
}

.jbbc-green-button:hover {
  color: #fff !important;
  background: var(--jb-accent-hover);
}
/* ========================= Login and registration ======================= */
.jbbc-auth-page {
  color: var(--jb-text);
}

.jbbc-auth-panel {
  width: 100%;
  padding: 0 8px 20px;
}

.jbbc-auth-title,
.jbbc-auth-panel h1,
.jbbc-auth-panel legend {
  margin: 5px 0 12px;
  padding-bottom: 10px;
  color: var(--jb-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jbbc-auth-form {
  width: 100%;
  max-width: none;
}

.jbbc-auth-form .form-label {
  margin: 5px 0;
  font-size: 13px;
}

.jbbc-auth-form .form-control,
.jbbc-auth-form input[type="email"],
.jbbc-auth-form input[type="password"],
.jbbc-auth-form input[type="text"] {
  width: 100%;
  min-height: 33px;
  margin: 5px 0;
  color: var(--jb-text);
  font-size: 13px;
  background: var(--jb-surface);
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jbbc-auth-form .form-control:focus {
  border-color: var(--jb-accent);
  box-shadow: 0 0 0 1px rgba(46, 164, 79, 0.12);
}

.jbbc-public-page .btn-primary,
.jbbc-public-page .btn-outline-primary:hover {
  color: #fff;
  background: var(--jb-accent);
  border-color: var(--jb-btn-border);
}

.jbbc-public-page .btn-primary:hover,
.jbbc-public-page .btn-primary:focus {
  color: #fff;
  background: var(--jb-accent-hover);
  border-color: var(--jb-btn-border);
}

.jbbc-public-page .btn-outline-primary {
  color: var(--jb-accent);
  border-color: var(--jb-accent);
}

.jbbc-public-page .form-control:focus,
.jbbc-public-page .form-select:focus {
  border-color: var(--jb-accent);
  box-shadow: 0 0 0 0.15rem rgba(46, 164, 79, 0.12);
}

/* Tag landing keeps the stream compact; context lives in the right rail. */
.jbbc-page-main > .tag-box {
  display: none;
}

/* ========================== Publish (ask) page ========================== */
.jbbc-editor-page {
  width: 100%;
}

.jbbc-editor-title-group {
  margin-bottom: 12px;
}

.jbbc-editor-title-input,
.jbbc-editor-page .jbbc-editor-title-input.form-control {
  padding: 8px;
  color: var(--jb-text);
  font-size: 16px;
  font-weight: 400;
  background: var(--jb-surface);
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.jbbc-editor-title-input:focus {
  border-bottom-color: var(--jb-accent);
  box-shadow: none;
  outline: 0;
}

.jbbc-editor-title-input::placeholder {
  color: #999;
}

.jbbc-editor-shell {
  background: var(--jb-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.jbbc-editor-shell--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

.jbbc-editor-shell--fullscreen .jbbc-editor-stage {
  flex: 1 1 auto;
  overflow: auto;
}

.jbbc-editor-tabbar {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jbbc-editor-tabs {
  height: 40px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.jbbc-editor-tab {
  position: relative;
  padding: 0 12px;
  color: var(--jb-link);
  font-size: 14px;
  line-height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.jbbc-editor-tab:hover {
  color: var(--jb-link-hover);
}

.jbbc-editor-tab.active {
  color: var(--jb-text);
  font-weight: 700;
}

.jbbc-editor-tab.active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--jb-dark);
}

.jbbc-editor-tabbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jbbc-editor-md-hint {
  color: #999;
  font-size: 12px;
}

.jbbc-editor-screen-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jb-link);
  font-size: 14px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.jbbc-editor-screen-toggle:hover {
  color: var(--jb-link-hover);
  background: rgba(0, 0, 0, 0.05);
}

/* Editor stage: 内容 / 预览 / 对照 modes. */
.jbbc-editor-stage {
  position: relative;
}

.jbbc-editor-stage .md-editor-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.jbbc-editor-stage .md-editor-wrap .toolbar-wrap {
  padding: 4px 8px;
  background: var(--jb-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jbbc-editor-stage .md-editor-wrap .toolbar-wrap .btn,
.jbbc-editor-stage .md-editor-wrap .toolbar-wrap button {
  color: var(--jb-link);
}

.jbbc-editor-stage .md-editor-wrap .toolbar-wrap .btn:hover,
.jbbc-editor-stage .md-editor-wrap .toolbar-wrap button:hover {
  color: var(--jb-link-hover);
}

.jbbc-editor-stage .cm-editor {
  min-height: 340px;
  font-size: 14px;
}

.jbbc-editor-shell--fullscreen .cm-editor {
  min-height: 100%;
}

.jbbc-editor-stage .preview-wrap {
  margin-top: 0 !important;
  padding: 12px !important;
  min-height: 120px;
  color: #444;
  font-size: 14px;
  border-radius: 0;
}

/* 内容: editor only. */
.jbbc-editor-stage--edit .preview-wrap {
  display: none;
}

/* 预览: rendered result only. */
.jbbc-editor-stage--preview .md-editor-wrap {
  display: none;
}

.jbbc-editor-stage--preview .preview-wrap {
  min-height: 340px;
}

/* 对照: editor and preview side by side. */
.jbbc-editor-stage--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.jbbc-editor-stage--split .md-editor-wrap {
  min-width: 0;
}

.jbbc-editor-stage--split .preview-wrap {
  min-width: 0;
  min-height: 340px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.jbbc-editor-actionbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jbbc-editor-board {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jbbc-editor-board-icon {
  color: var(--jb-link);
  font-size: 14px;
}

.jbbc-editor-board-label {
  margin: 0;
  color: var(--jb-link);
  font-size: 13px;
  white-space: nowrap;
}

.jbbc-editor-board-select,
.jbbc-editor-board .form-select {
  width: auto;
  min-width: 96px;
  height: 30px;
  padding: 2px 26px 2px 8px;
  color: var(--jb-text);
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.jbbc-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jbbc-editor-discard {
  color: var(--jb-gray);
  font-size: 13px;
  text-decoration: none;
}

.jbbc-editor-page .jbbc-green-button {
  min-height: 32px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--jb-btn-border);
}

.jbbc-editor-notice {
  box-sizing: border-box;
  margin-top: 30px;
  padding: 12px 20px 16px;
  background: var(--jb-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
}

.jbbc-editor-notice h4 {
  margin: 4px 0 8px;
  color: var(--jb-accent);
  font-size: 16px;
  font-weight: 700;
}

.jbbc-editor-notice hr {
  margin: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.jbbc-editor-notice ul {
  margin: 10px 0;
  padding-left: 20px;
}

.jbbc-editor-notice li {
  margin: 4px 0;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.jbbc-editor-notice li::marker {
  color: var(--jb-gray);
}

.jbbc-editor-notice p {
  margin: 10px 0 0;
  color: #444;
  font-size: 14px;
}

/* Reply editor on detail page reuses the same compact editor look. */
#jbbc-reply-editor .md-editor-wrap {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ====================== Responsive breakpoints ========================= */
@media screen and (max-width: 1030px) {
  /* Header breakpoints are defined by the compiled Header SCSS. */
}

@media screen and (max-width: 800px) {
  .jbbc-editor-stage--split {
    grid-template-columns: 1fr;
  }

  .jbbc-editor-stage--split .preview-wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 0;
  }
}

@media screen and (max-width: 620px) {
  /* Search collapse and mobile navigation are defined by Header SCSS. */
}

@media screen and (max-width: 500px) {
  body.jbbc-public-body {
    background: #f8f8f8;
    -webkit-text-size-adjust: 100%;
  }

  .jbbc-post,
  .jbbc-reply-item {
    padding: 8px;
  }

  .jbbc-editor-notice {
    margin-top: 20px;
    padding: 10px 14px 12px;
  }

  .jbbc-floating-actions {
    right: 12px;
    bottom: 20px;
  }

}

/* ============================== Dark mode =============================== */
[data-bs-theme="dark"] {
  --jb-text: #aaa;
  --jb-link: #c5c5c5;
  --jb-link-hover: #fcfcfc;
  --jb-surface: #272727;
  --jb-surface-soft: #3b3b3b;
  --jb-grid: #555;
  --jb-page: #8c8f95;
  --jb-muted: #858585;
}

[data-bs-theme="dark"] body.jbbc-public-body {
  background-color: var(--jb-page);
}

[data-bs-theme="dark"] #header.jbbc-public-header {
  background: var(--jb-surface);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

[data-bs-theme="dark"] #header.jbbc-public-header .jbbc-public-brand,
[data-bs-theme="dark"] #header.jbbc-public-header .jbbc-public-brand-name,
[data-bs-theme="dark"] #header.jbbc-public-header .jbbc-public-nav-link,
[data-bs-theme="dark"] #header.jbbc-public-header .placeholder-search {
  color: var(--jb-link);
}

[data-bs-theme="dark"] #header.jbbc-public-header .jbbc-public-brand-logo {
  color: var(--jb-link);
}

[data-bs-theme="dark"] .jbbc-post-content,
[data-bs-theme="dark"] .jbbc-reply-content,
[data-bs-theme="dark"] .questionDetailPage .fmt {
  color: #ddd;
}

[data-bs-theme="dark"] .jbbc-editor-shell,
[data-bs-theme="dark"] .jbbc-editor-notice {
  background: var(--jb-surface);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .jbbc-editor-title-input,
[data-bs-theme="dark"] .jbbc-editor-page .jbbc-editor-title-input.form-control {
  color: var(--jb-text);
  background: var(--jb-surface);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .jbbc-editor-stage .md-editor-wrap .toolbar-wrap {
  background: var(--jb-surface);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .jbbc-editor-tab.active::after {
  background: var(--jb-link-hover);
}

[data-bs-theme="dark"] .jbbc-editor-notice li,
[data-bs-theme="dark"] .jbbc-editor-notice p {
  color: #ccc;
}

[data-bs-theme="dark"] .jbbc-auth-form .form-control,
[data-bs-theme="dark"] .jbbc-auth-form input {
  color: var(--jb-text);
  background: var(--jb-surface-soft);
  border-color: #555;
}

@media (prefers-reduced-motion: reduce) {
  #header.jbbc-public-header .jbbc-public-search {
    transition: none;
  }
}