.bw-nav {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bw-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
  font: 700 17px Georgia, serif;
  letter-spacing: .5px;
}

.bw-nav-brand svg { width: 26px; height: 26px; }
.bw-nav-brand span { color: var(--gold); }

.bw-nav-banner {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212, 165, 101, 0.35));
}

.bw-hero-banner {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 22px rgba(212, 165, 101, 0.3));
}

.bw-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bw-nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font: 600 12.5px "Segoe UI", sans-serif;
  letter-spacing: .3px;
  transition: color .2s ease;
}

.bw-nav-links a:hover { color: var(--gold-bright); }

.bw-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 14px;
  color: var(--muted);
  flex: 1 1 220px;
  max-width: 320px;
}
.bw-nav-search svg { flex-shrink: 0; }
.bw-nav-search input {
  background: none; border: none; outline: none; color: var(--cream);
  font: 500 13px "Segoe UI", sans-serif; width: 100%;
}
.bw-nav-search input::placeholder { color: var(--muted); }

.bw-notif-dropdown { display: flex; align-items: center; }
.bw-notif-bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: 1px solid transparent; border-radius: 50%;
  color: var(--cream-dim); cursor: pointer;
  text-decoration: none;
}
.bw-notif-bell:hover { background: rgba(255,255,255,0.05); color: var(--cream); }
.bw-notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--danger); color: #fff;
  font: 700 10px/1 "Segoe UI", sans-serif;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.bw-notif-menu { min-width: 300px; max-width: 360px; max-height: 420px; overflow-y: auto; right: -8px; }
.bw-notif-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 10px; border-radius: 3px;
  color: var(--cream-dim); text-decoration: none; font-size: 12.5px;
}
.bw-notif-item:hover { background: rgba(255,255,255,0.05); }
.bw-notif-item.unread { background: rgba(212,165,101,0.07); }
.bw-notif-item.unread .txt { color: var(--cream); font-weight: 600; }
.bw-notif-item .when { color: var(--muted); font-size: 11px; }
.bw-notif-empty { padding: 16px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.bw-notif-viewall {
  display: block; text-align: center; margin-top: 4px; padding: 9px 10px;
  color: var(--gold); text-decoration: none; font: 600 12px "Segoe UI", sans-serif;
  border-top: 1px solid var(--line);
}
.bw-notif-viewall:hover { color: var(--gold-bright); }

@media (max-width: 760px) {
  .bw-nav-search { order: 3; flex-basis: 100%; max-width: none; }
}

.bw-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-dim);
  font-size: 12.5px;
  text-decoration: none;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid transparent;
  appearance: none;
  background: none;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
}
.bw-nav-user:hover { border-color: var(--line-strong); color: var(--cream-dim); }
.bw-nav-user strong { color: var(--gold); font-weight: 700; }

.bw-btn-sm { padding: 8px 16px; font-size: 12px; }

.bw-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.bw-page .bw-alert { text-align: left; }

.bw-page-narrow { max-width: 460px; }

.bw-auth-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 28px 32px;
}

.bw-auth-card h2 { font: 700 19px/1.3 "Segoe UI", sans-serif; color: var(--cream); margin: 0 0 6px; }
.bw-auth-card h2 span { color: var(--gold); }
.bw-auth-card .bw-lead { color: var(--cream-dim); margin: 0 0 22px; font-size: 13px; }

.bw-auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 12.5px;
}

.bw-auth-links a { color: var(--cream-dim); text-decoration: none; }
.bw-auth-links a:hover { color: var(--gold-bright); }

.bw-code-input {
  letter-spacing: 8px;
  font-size: 24px !important;
  text-align: center;
  font-family: "Consolas", monospace !important;
}

.bw-qr-box {
  background: #fff;
  border-radius: 3px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bw-manual-key {
  font: 600 15px/1.6 "Consolas", monospace;
  letter-spacing: 2px;
  color: var(--gold-bright);
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 18px;
  word-break: break-all;
}

.bw-backup-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  margin: 18px 0;
}

.bw-backup-codes div {
  font: 600 14px "Consolas", monospace;
  color: var(--cream);
  letter-spacing: 1px;
}

.bw-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.bw-security-row:last-child { border-bottom: none; }
.bw-security-row h3 { margin: 0 0 4px; font-size: 14.5px; color: var(--cream); }
.bw-security-row p { margin: 0; font-size: 12.5px; color: var(--cream-dim); }

.bw-badge {
  display: inline-block;
  font: 700 10.5px/1 "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
}

.bw-badge-on { background: rgba(127,179,122,0.15); color: var(--success); }
.bw-badge-off { background: rgba(212,165,101,0.12); color: var(--gold); }

.bw-session-list { list-style: none; margin: 0; padding: 0; }
.bw-session-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--cream-dim);
}
.bw-session-list li:last-child { border-bottom: none; }
.bw-session-list .bw-session-current { color: var(--gold); font-weight: 700; }

/* --- Forum: boards, threads, posts ---------------------------------- */

.bw-page-wide { max-width: 1400px; }

.bw-avatar {
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: cover;
}

.bw-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-weight: 700;
  font-family: "Segoe UI", sans-serif;
}

.bw-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 32px 0 12px;
}

.bw-section-title:first-child { margin-top: 0; }

.bw-section-title h2 {
  font: 700 17px "Segoe UI", sans-serif;
  color: var(--cream);
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

/* Board / category index */
.bw-board-group { margin-bottom: 28px; }

.bw-board-group h3 {
  font: 700 13px "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 10px;
}

.bw-board-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.bw-board-row:hover { border-color: var(--line-strong); }
.bw-board-row[data-href] { cursor: pointer; }

.bw-board-icon {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 16px;
}

.bw-board-info { flex: 1; min-width: 0; }
.bw-board-info .bw-board-title { font: 700 14.5px "Segoe UI", sans-serif; color: var(--cream); }
.bw-board-info .bw-board-desc { font-size: 12.5px; color: var(--cream-dim); margin-top: 2px; }

.bw-board-stats {
  display: flex;
  gap: 22px;
  font-size: 11.5px;
  color: var(--cream-dim);
  text-align: center;
  flex-shrink: 0;
}

.bw-board-stats div strong { display: block; color: var(--cream); font-size: 13px; }

.bw-board-lastpost {
  width: 200px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bw-board-lastpost .t { min-width: 0; }
.bw-board-lastpost-title { color: var(--cream); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-board-lastpost .t span { color: var(--muted); }

/* Thread table */
.bw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }

.bw-thread-table { width: 100%; border-collapse: collapse; background: var(--bg-2); }

.bw-thread-table th {
  text-align: left;
  font: 700 11px "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.bw-thread-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.bw-thread-table tr:last-child td { border-bottom: none; }

.bw-thread-main { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.bw-thread-title { font: 700 14px "Segoe UI", sans-serif; color: var(--cream); text-decoration: none; }
.bw-thread-title:hover { color: var(--gold-bright); }
.bw-thread-title.unread { color: var(--gold-bright); }

.bw-unread-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 4px rgba(212,165,101,0.7);
}

.bw-convo-message {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 10px;
}

.bw-convo-avatar { flex-shrink: 0; }
.bw-convo-body { flex: 1; min-width: 0; }
.bw-convo-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bw-convo-meta span { color: var(--muted); font-size: 11.5px; }

.bw-poll { margin-bottom: 20px; }
.bw-poll-question { font-size: 16px; margin: 0 0 14px; }

.bw-poll-option-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13.5px;
}
.bw-poll-option-pick:hover { border-color: var(--line-strong); }

.bw-poll-results { display: flex; flex-direction: column; gap: 12px; }
.bw-poll-result-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.bw-poll-result-label span:last-child { color: var(--cream-dim); }
.bw-poll-bar { height: 8px; background: var(--bg-0); border-radius: 4px; overflow: hidden; }
.bw-poll-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.bw-poll-footer { margin-top: 14px; font-size: 11.5px; color: var(--muted); }

.bw-online-widget { margin-top: 28px; }
.bw-online-widget h4 { font: 700 13px "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .5px; color: var(--gold-bright); margin: 0 0 8px; }
.bw-online-summary { color: var(--cream-dim); font-size: 12.5px; margin: 0 0 12px; }
.bw-online-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bw-online-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 12.5px; font-weight: 600; }

/* Homepage two-column layout + sidebar widgets (Discord, Team online, Statistiken, Neueste Mitglieder) */
.bw-index-layout { margin-top: 4px; }
.bw-index-layout .bw-profile-sidebar { width: 260px; }

.bw-member-list { display: flex; flex-direction: column; gap: 12px; }
.bw-member-row { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bw-member-row .t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bw-member-row .t > span:first-child { font-weight: 700; font-size: 12.5px; line-height: 1.2; }
.bw-member-row-sub { font-size: 11px; color: var(--muted); text-decoration: none; }
.bw-member-row .bw-rank-pill { font-size: 9px; padding: 2px 7px; align-self: flex-start; }

.bw-stats-list { display: flex; flex-direction: column; gap: 9px; }
.bw-stats-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--cream-dim); }
.bw-stats-row strong { color: var(--cream); font-weight: 700; }
.bw-stats-row strong a { color: var(--gold-bright); text-decoration: none; }
.bw-stats-row strong a:hover { text-decoration: underline; }

.bw-discord-widget p { font-size: 12px; color: var(--cream-dim); margin: 0 0 12px; line-height: 1.5; }
.bw-discord-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #5865F2; border-color: #5865F2; color: #fff; }
.bw-discord-btn:hover { background: #4752c4; border-color: #4752c4; color: #fff; }

@media (max-width: 760px) {
  .bw-index-layout { flex-direction: column; }
  .bw-index-layout .bw-profile-sidebar { width: 100%; }
}
.bw-thread-meta { font-size: 11.5px; color: var(--cream-dim); margin-top: 3px; }
.bw-thread-meta a { color: var(--cream-dim); }

.bw-col-replies, .bw-col-views { text-align: center; white-space: nowrap; color: var(--cream-dim); font-size: 13px; }

.bw-col-lastpost { white-space: nowrap; }
.bw-lastpost-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bw-lastpost-row .t a { color: var(--cream); text-decoration: none; }
.bw-lastpost-row .t span { display: block; color: var(--muted); }

.bw-pill { display: inline-block; font: 700 10px/1 "Segoe UI", sans-serif; letter-spacing: .3px; padding: 3px 8px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.bw-pill-pinned { background: rgba(212,165,101,0.15); color: var(--gold); }
.bw-pill-closed { background: rgba(217,122,106,0.15); color: var(--danger); }
.bw-pill-banned { background: rgba(217,122,106,0.15); color: var(--danger); display: inline-flex; align-items: center; gap: 4px; }
.bw-pill-banned svg { flex-shrink: 0; }

/* Thread / post view */
.bw-thread-header { margin-bottom: 20px; }
.bw-thread-header h1 { font: 700 22px "Segoe UI", sans-serif; color: var(--cream); margin: 0; }

.bw-thread-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bw-thread-title-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bw-back-btn {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  padding: 8px 12px;
}

.bw-thread-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--cream-dim);
}
.bw-thread-meta-row .bw-pill { margin-left: 0; }
.bw-thread-meta-row .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.bw-thread-meta-row .meta-item svg { flex-shrink: 0; opacity: .8; }
.bw-thread-meta-row .meta-item a { color: var(--cream-dim); text-decoration: none; }
.bw-thread-meta-row .meta-item a:hover { color: var(--gold-bright); }
.bw-thread-meta-row .bw-meta-closed { color: var(--danger); }

.bw-tags-box { margin-top: 20px; }
.bw-tags-box h3 { font: 700 13px "Segoe UI", sans-serif; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 12px; }

.bw-notification-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--cream-dim);
}
.bw-notification-row:last-child { border-bottom: none; }
.bw-notification-row:hover { background: rgba(255,255,255,0.03); }
.bw-notification-row.unread .txt { color: var(--cream); font-weight: 600; }
.bw-notification-row .when { color: var(--muted); font-size: 12px; margin-top: 2px; }

.bw-search-form { display: flex; gap: 10px; }
.bw-search-form input {
  flex: 1; background: var(--bg-0); border: 1px solid var(--line); border-radius: 3px;
  color: var(--cream); font: 500 14px "Segoe UI", sans-serif; padding: 11px 14px;
}
.bw-search-excerpt {
  margin-top: 6px; font-size: 12.5px; color: var(--cream-dim);
  background: var(--bg-0); border-left: 2px solid var(--gold); padding: 6px 10px;
}

.bw-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bw-team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease;
}
.bw-team-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.bw-team-card-info { min-width: 0; }
.bw-team-card-info .name { font: 700 14px "Segoe UI", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-team-card-info .stats { font-size: 11.5px; color: var(--cream-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-team-card-info .since { font-size: 11px; color: var(--muted); margin-top: 2px; }

.bw-site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.bw-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.bw-footer-links a { color: var(--cream-dim); text-decoration: none; font-size: 12px; }
.bw-footer-links a:hover { color: var(--gold-bright); }
.bw-footer-copy { color: var(--muted); font-size: 11.5px; }

/* --- File upload fields (avatar/cover) --- */

.bw-field-label {
  display: block;
  font: 600 11.5px/1 "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 8px;
}

.bw-upload-field {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  margin-bottom: 10px;
}

.bw-upload-preview {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-2) center/cover no-repeat;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
  overflow: hidden;
}

.bw-upload-preview.bw-upload-preview-wide {
  width: 100px;
  height: 56px;
  border-radius: 4px;
}

.bw-upload-controls { flex: 1; min-width: 0; }

.bw-upload-controls .bw-btn { margin-bottom: 6px; }

.bw-upload-filename {
  display: block;
  font-size: 12px;
  color: var(--cream-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-upload-toggle-url {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--cream-dim);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.bw-upload-toggle-url:hover { color: var(--gold-bright); }

/* --- Generic dropdown menu (thread options, etc.) --- */

.bw-dropdown { position: relative; flex-shrink: 0; }

.bw-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  padding: 6px;
  z-index: 40;
}

.bw-dropdown-menu[hidden] { display: none; }

.bw-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  background: none;
  border: none;
  padding: 9px 10px;
  color: var(--cream-dim);
  font: 500 13px "Segoe UI", sans-serif;
  border-radius: 3px;
  cursor: pointer;
}

.bw-dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--cream); }
.bw-dropdown-item-danger { color: var(--danger); }
.bw-dropdown-item-danger:hover { background: rgba(217,122,106,0.12); color: var(--danger); }

.bw-dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.bw-dropdown-form { display: flex; gap: 6px; padding: 5px 6px; }
.bw-dropdown-form select {
  flex: 1;
  min-width: 0;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--cream);
  font-size: 12px;
  padding: 7px 8px;
}
.bw-breadcrumb { font-size: 12px; color: var(--cream-dim); margin-bottom: 14px; }
.bw-breadcrumb a { color: var(--cream-dim); text-decoration: none; }
.bw-breadcrumb a:hover { color: var(--gold-bright); }

.bw-post {
  display: flex;
  gap: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
}

.bw-post-side { width: 168px; flex-shrink: 0; text-align: center; }
.bw-post-side .bw-avatar { width: 76px; height: 76px; font-size: 30px; margin-bottom: 8px; }
.bw-post-side .username { font: 700 14px "Segoe UI", sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.bw-post-side .username a { color: inherit; text-decoration: none; }
.bw-post-side .username a:hover { text-decoration: underline; }

.bw-presence-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ba55c;
  box-shadow: 0 0 0 2px rgba(59,165,92,0.25);
  cursor: default;
}

.bw-avatar-wrap { position: relative; display: inline-block; vertical-align: middle; }
.bw-avatar-presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  box-shadow: 0 0 0 2px var(--bg-2);
}

.group-pill-row { margin-top: 8px; }
.bw-post-side .group-pill {
  display: inline-block;
  font: 700 10.5px "Segoe UI", sans-serif;
  padding: 3px 10px;
  border-radius: 3px;
}

.bw-post-side-stats {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.bw-post-side-stats .stat-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
}
.bw-post-side-stats .stat-row strong { color: var(--cream-dim); font-weight: 700; }

.bw-post-body { flex: 1; min-width: 0; }
.bw-post-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bw-post-content { color: var(--cream); font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }
.bw-post-actions { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bw-post-actions-left { display: flex; align-items: center; gap: 10px; }

.bw-vote-widget { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bw-vote-form { display: inline-flex; }

.bw-vote-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--cream-dim);
  font: 600 12px "Segoe UI", sans-serif; padding: 6px 11px; border-radius: 20px; cursor: pointer;
}
.bw-vote-btn svg { display: block; }
.bw-vote-btn:hover { border-color: var(--line); color: var(--cream); }
.bw-vote-btn.bw-vote-up.active { background: rgba(59,165,92,0.15); border-color: #3ba55c; color: #3ba55c; }
.bw-vote-btn.bw-vote-down.active { background: rgba(217,122,106,0.15); border-color: var(--danger); color: var(--danger); }

.bw-vote-readonly {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; padding: 6px 4px;
}

.bw-reply-box { margin-top: 24px; }
.bw-reply-box textarea {
  width: 100%; min-height: 140px; resize: vertical;
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 3px;
  color: var(--cream); font: 500 14px "Segoe UI", sans-serif; padding: 12px 14px;
}

.bw-empty-state { text-align: center; color: var(--cream-dim); padding: 40px 20px; font-size: 13.5px; }

.bw-activity-log-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
}

.bw-activity-log-item .who { color: var(--cream); font-weight: 600; font-size: 12.5px; margin-bottom: 3px; }
.bw-activity-log-item .who a { color: inherit; text-decoration: none; }
.bw-activity-log-item .who a:hover { color: var(--gold-bright); }
.bw-activity-log-item .what { color: var(--cream-dim); }

/* --- Admin Control Panel (separate chrome from the public forum theme) --- */

.bw-acp-shell { display: flex; width: 100%; min-height: 100vh; align-items: stretch; }

.bw-acp-rail {
  width: 92px;
  flex-shrink: 0;
  background: var(--bg-0);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}

.bw-acp-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  color: var(--cream-dim);
  text-decoration: none;
  font: 600 10.5px "Segoe UI", sans-serif;
  text-align: center;
  border-left: 3px solid transparent;
}

.bw-acp-rail-item .i { display: flex; align-items: center; justify-content: center; line-height: 1; }
.bw-acp-rail-item:hover { color: var(--cream); }
.bw-acp-rail-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(212,165,101,0.07); }
.bw-acp-rail-back { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }

.bw-acp-subnav {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}

.bw-acp-subnav h4 {
  font: 700 11px "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 12px;
  padding: 0 8px;
}

.bw-acp-subnav a {
  display: block;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: 3px;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13px;
  border-left: 2px solid transparent;
}

.bw-acp-subnav a:hover { color: var(--cream); background: rgba(255,255,255,0.03); }
.bw-acp-subnav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(212,165,101,0.08); }

.bw-tabs { display: flex; gap: 8px; }

.bw-btn-confirm-armed {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #fff !important;
}

.bw-acp-content { flex: 1; min-width: 0; padding: 32px 40px 60px; max-width: 1160px; }
.bw-acp-content h1 { font: 700 22px "Segoe UI", sans-serif; color: var(--cream); margin: 0 0 22px; }
.bw-acp-content .bw-alert { max-width: 640px; }

@media (max-width: 760px) {
  .bw-acp-shell { flex-direction: column; }
  .bw-acp-rail { width: 100%; flex-direction: row; overflow-x: auto; }
  .bw-acp-rail-item { flex-direction: row; gap: 8px; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .bw-acp-rail-item.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  .bw-acp-rail-back { margin-top: 0; border-top: none; padding-top: 14px; }
  .bw-acp-subnav { width: 100%; }
  .bw-acp-content { padding: 24px 20px 40px; }
}

/* --- User-facing account settings (Profil/Sicherheit als Kategorien) --- */

.bw-settings-shell { display: flex; gap: 28px; align-items: flex-start; }

.bw-settings-nav {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 14px;
  position: sticky;
  top: 78px;
}

.bw-settings-nav h4 {
  font: 700 11px "Segoe UI", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 12px;
  padding: 0 8px;
}

.bw-settings-nav a {
  display: block;
  padding: 10px 10px;
  margin-bottom: 2px;
  border-radius: 3px;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 2px solid transparent;
}

.bw-settings-nav a:hover { color: var(--cream); background: rgba(255,255,255,0.03); }
.bw-settings-nav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(212,165,101,0.08); font-weight: 600; }

.bw-settings-content { flex: 1; min-width: 0; }
.bw-settings-content h1 { font: 700 20px "Segoe UI", sans-serif; color: var(--cream); margin: 0 0 20px; }

@media (max-width: 700px) {
  .bw-settings-shell { flex-direction: column; }
  .bw-settings-nav { width: 100%; position: static; display: flex; align-items: center; gap: 4px; overflow-x: auto; }
  .bw-settings-nav h4 { display: none; }
  .bw-settings-nav a { white-space: nowrap; }
}

/* --- Visual refinement pass: real depth instead of flat panels --- */

.bw-card, .bw-auth-card {
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

.bw-board-row, .bw-post, .bw-table-wrap, .bw-acp-subnav a.active, .bw-settings-nav a.active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bw-avatar-fallback, img.bw-avatar {
  border: 2px solid var(--line-strong);
}

.bw-post-side .bw-avatar { border-width: 3px; }

.bw-badge, .bw-pill {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.bw-post {
  transition: border-color .15s ease;
}
.bw-post:hover { border-color: var(--line-strong); }

.bw-board-row {
  transition: transform .12s ease, border-color .12s ease;
}
.bw-board-row:hover { transform: translateY(-1px); }

.bw-thread-title { font-weight: 700; }

.bw-nav {
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* --- Rich (contenteditable) post editor: toolbar + surface + footer + popovers --- */

.bw-editor {
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: border-color .15s ease;
}
.bw-editor:focus-within { border-color: var(--line-strong); }

.bw-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.bw-editor-group { display: flex; align-items: center; gap: 2px; }
.bw-editor-sep { width: 1px; align-self: stretch; margin: 3px 5px; background: var(--line-strong); opacity: .6; }

.bw-editor-toolbar button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cream-dim);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font: 600 13px "Segoe UI", sans-serif;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.bw-editor-toolbar button svg { display: block; }
.bw-editor-toolbar button:hover { background: var(--bg-2); border-color: var(--line); color: var(--gold-bright); }
.bw-editor-toolbar button:active { background: rgba(212,165,101,0.14); }

.bw-editor-surface {
  width: 100%;
  min-height: 180px;
  background: var(--bg-0);
  color: var(--cream);
  font: 500 14px/1.7 "Segoe UI", sans-serif;
  padding: 16px 18px;
  outline: none;
  overflow-wrap: break-word;
}
.bw-editor-surface:empty::before,
.bw-editor-surface > p:only-child:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.bw-editor-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}

.bw-editor-preview-btn {
  width: auto !important;
  padding: 0 16px !important;
  height: 30px;
  font-size: 11.5px !important;
  letter-spacing: .3px;
}

/* --- Toolbar popovers: emoji picker, link dialog, table grid --- */

.bw-editor-popover {
  z-index: 300;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 12px;
  min-width: 220px;
}

.bw-editor-popover-title { font: 700 13px "Segoe UI", sans-serif; color: var(--cream); margin-bottom: 8px; }
.bw-editor-popover-label { display: block; font-size: 11px; color: var(--cream-dim); margin: 8px 0 4px; }
.bw-editor-popover input[type="text"] {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--cream);
  font: 500 13px "Segoe UI", sans-serif;
  padding: 8px 10px;
  box-sizing: border-box;
}
.bw-editor-popover-row { display: flex; gap: 6px; }
.bw-editor-popover-row input { flex: 1; }

.bw-emoji-popover { width: 260px; }
.bw-emoji-search { margin-bottom: 8px; }
.bw-emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; max-height: 180px; overflow-y: auto; }
.bw-emoji-grid button {
  appearance: none; background: transparent; border: 1px solid transparent; border-radius: 4px;
  font-size: 18px; line-height: 1; padding: 6px 0; cursor: pointer;
}
.bw-emoji-grid button:hover { background: var(--bg-0); border-color: var(--line); }

.bw-table-grid { display: grid; gap: 2px; margin-bottom: 6px; }
.bw-table-grid span { width: 16px; height: 16px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 2px; }
.bw-table-grid span.on { background: var(--gold); border-color: var(--gold-bright); }
.bw-table-grid-label { font-size: 11.5px; color: var(--cream-dim); text-align: center; }

.bw-editor-preview {
  min-height: 180px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 0 0 3px 3px;
  padding: 12px 14px;
}

.bw-post-content blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(212,165,101,0.06);
  padding: 8px 14px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--cream-dim);
}

.bw-post-content pre {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  font: 400 12.5px/1.6 "Consolas", monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 10px 0;
}

.bw-post-content ul, .bw-post-content ol { margin: 10px 0; padding-left: 22px; }
.bw-post-content p { margin: 0 0 10px; }
.bw-post-content p:last-child { margin-bottom: 0; }
.bw-bbcode-img { max-width: 100%; border-radius: 3px; margin: 10px 0; display: block; }

.bw-post-content table {
  border-collapse: collapse;
  margin: 10px 0;
  max-width: 100%;
}
.bw-post-content table td, .bw-post-content table th {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 13px;
}
.bw-post-content table th { background: var(--bg-0); color: var(--gold-bright); }

.bw-spoiler {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}
.bw-spoiler-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-0);
  color: var(--gold-bright);
  font: 700 12.5px "Segoe UI", sans-serif;
  cursor: pointer;
  user-select: none;
}
.bw-spoiler-title::before { content: "▸"; display: inline-block; transition: transform 0.15s ease; }
.bw-spoiler.bw-spoiler-open .bw-spoiler-title::before { transform: rotate(90deg); }
.bw-spoiler-body {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--cream-dim);
  display: none;
}
.bw-spoiler.bw-spoiler-open .bw-spoiler-body { display: block; }
/* While composing, the body must stay visible/editable - only collapse in read (posted) view. */
.bw-editor-surface .bw-spoiler-body { display: block; }

/* --- New-thread form: status radios + tags (WoltLab-Layout) --- */

.bw-status-options { display: flex; gap: 10px; flex-wrap: wrap; }

.bw-status-option {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  color: var(--cream-dim);
}

.bw-status-option input { accent-color: var(--gold); }
.bw-status-option:has(input:checked) { border-color: var(--gold); color: var(--cream); background: rgba(212,165,101,0.06); }

.bw-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(143,176,216,0.12);
  color: #8fb0d8;
  margin: 0 6px 6px 0;
}

/* --- Social profile page --- */

.bw-profile-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  margin-bottom: 24px;
}

.bw-profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-0), #241d12 60%, var(--bg-0)), var(--bg-0);
  background-size: cover;
  background-position: center;
  position: relative;
}

.bw-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 24px 18px;
  margin-top: -54px;
  position: relative;
  flex-wrap: wrap;
}

.bw-profile-avatar-wrap { position: relative; flex-shrink: 0; }
.bw-profile-avatar-wrap .bw-avatar { width: 108px; height: 108px; font-size: 42px; border: 4px solid var(--bg-2); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

.bw-online-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  border: 3px solid var(--bg-2);
}
.bw-online-dot.offline { background: var(--muted); }

.bw-profile-identity { padding-bottom: 4px; flex: 1; min-width: 200px; }
.bw-profile-identity h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 22px "Segoe UI", sans-serif; color: var(--cream); margin: 0 0 6px; }
.bw-profile-meta { font-size: 12px; color: var(--cream-dim); line-height: 1.6; }
.bw-profile-meta a { color: var(--gold-bright); text-decoration: none; }

.bw-tier-pill {
  display: inline-block;
  font: 700 10.5px/1 "Segoe UI", sans-serif;
  letter-spacing: .3px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}


.bw-rank-pill {
  display: inline-block;
  font: 700 10.5px/1 "Segoe UI", sans-serif;
  letter-spacing: .3px;
  padding: 4px 10px;
  border-radius: 3px;
  color: #14181c;
}

.bw-profile-actions { display: flex; gap: 10px; padding-bottom: 4px; flex-shrink: 0; }

.bw-profile-stats {
  display: flex;
  border-top: 1px solid var(--line);
}

.bw-profile-stats div {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
}
.bw-profile-stats div:last-child { border-right: none; }
.bw-profile-stats strong { display: block; font-size: 17px; color: var(--gold-bright); }
.bw-profile-stats span { font-size: 11px; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .3px; }

.bw-profile-layout { display: flex; gap: 24px; align-items: flex-start; }
.bw-profile-main { flex: 1; min-width: 0; }
.bw-profile-sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

.bw-profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}

.bw-profile-tabs a {
  padding: 10px 16px;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.bw-profile-tabs a:hover { color: var(--cream); }
.bw-profile-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }

.bw-sidebar-widget {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bw-sidebar-widget h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12.5px "Segoe UI", sans-serif;
  color: var(--gold-bright);
  margin: 0 0 12px;
}

.bw-sidebar-widget h4 .bw-count { background: var(--bg-0); color: var(--cream-dim); font-size: 10.5px; padding: 2px 7px; border-radius: 10px; }

.bw-avatar-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-avatar-grid a { display: block; }
.bw-avatar-grid .bw-avatar { width: 36px; height: 36px; font-size: 14px; }
.bw-sidebar-empty { color: var(--muted); font-size: 12px; }

.bw-wall-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bw-wall-comment:last-child { border-bottom: none; }
.bw-wall-comment .bw-avatar { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
.bw-wall-comment .bw-wall-body { flex: 1; min-width: 0; }
.bw-wall-comment .bw-wall-meta { font-size: 12px; margin-bottom: 4px; }
.bw-wall-comment .bw-wall-meta strong { color: var(--cream); }
.bw-wall-comment .bw-wall-meta span { color: var(--muted); margin-left: 8px; }
.bw-wall-comment .bw-wall-text { font-size: 13.5px; color: var(--cream-dim); white-space: pre-wrap; }
.bw-wall-comment .bw-wall-actions { margin-top: 6px; display: flex; gap: 12px; }
.bw-wall-comment .bw-wall-actions a, .bw-wall-comment .bw-wall-actions button {
  background: none; border: none; padding: 0; color: var(--muted); font-size: 11.5px; cursor: pointer; text-decoration: none;
}
.bw-wall-comment .bw-wall-actions a:hover, .bw-wall-comment .bw-wall-actions button:hover { color: var(--gold); }
.bw-wall-replies { margin-top: 12px; padding-left: 20px; border-left: 2px solid var(--line); }

.bw-activity-item, .bw-rating-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bw-activity-item:last-child, .bw-rating-item:last-child { border-bottom: none; }
.bw-activity-item .meta, .bw-rating-item .meta { color: var(--cream-dim); font-size: 12px; margin-bottom: 6px; }
.bw-activity-item .meta a, .bw-rating-item .meta a { color: var(--gold-bright); text-decoration: none; }
.bw-activity-item .snippet, .bw-rating-item .snippet {
  background: var(--bg-0);
  border-left: 2px solid var(--line-strong);
  padding: 8px 12px;
  color: var(--cream-dim);
  font-size: 12.5px;
}

.bw-subtab-toggle { display: flex; gap: 8px; margin-bottom: 16px; }

.bw-about-section { margin-bottom: 22px; }
.bw-about-section h3 { font: 700 13px "Segoe UI", sans-serif; color: var(--gold-bright); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 10px; }
.bw-about-section p { color: var(--cream-dim); font-size: 13.5px; white-space: pre-wrap; margin: 0; }

@media (max-width: 760px) {
  .bw-profile-layout { flex-direction: column; }
  .bw-profile-sidebar { width: 100%; }
  .bw-profile-stats { flex-wrap: wrap; }
  .bw-profile-stats div { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
}

/* --- Curated board/badge icons, welcome hero, subforum chips, trophy showcase --- */

.bw-icon-picker { display: flex; flex-wrap: wrap; gap: 6px; }

.bw-icon-swatch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--cream-dim);
  cursor: pointer;
}

.bw-icon-swatch:hover { border-color: var(--line-strong); color: var(--cream); }
.bw-icon-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.bw-icon-swatch:has(input:checked) { background: rgba(212,165,101,0.12); border-color: var(--gold); color: var(--gold); }

.bw-badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
}

.bw-flash-badge { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-weight: 600; }
.bw-flash-badge .bw-badge-circle { border-width: 1px; }

.bw-subboard-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }

.bw-subboard-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--cream-dim); text-decoration: none; font-size: 12px; }
.bw-subboard-chip svg { color: var(--gold); flex-shrink: 0; }
.bw-subboard-chip:hover { color: var(--gold-bright); }

.bw-subboard-sep { color: var(--line-strong); font-size: 11px; }

.bw-welcome-hero {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.bw-welcome-hero h1 { font: 700 30px Georgia, serif; color: var(--cream); margin: 0 0 6px; }
.bw-welcome-hero h1 span { color: var(--gold); }
.bw-welcome-hero .bw-welcome-tagline { color: var(--gold-bright); font-size: 14px; font-weight: 600; letter-spacing: .3px; margin: 0 0 14px; }
.bw-welcome-hero .bw-welcome-text { color: var(--cream-dim); font-size: 14px; line-height: 1.7; max-width: 640px; margin: 0 auto 18px; }

.bw-trophy-list { display: flex; flex-direction: column; gap: 10px; }

.bw-trophy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
}

.bw-trophy-item.bw-trophy-featured { background: rgba(212,165,101,0.08); box-shadow: inset 0 0 0 1px rgba(212,165,101,0.3); }

.bw-trophy-item .t { min-width: 0; }
.bw-trophy-item .t strong { display: block; color: var(--cream); font-size: 12.5px; }
.bw-trophy-item .t span { color: var(--cream-dim); font-size: 11px; line-height: 1.4; }

.bw-account-badge-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-account-badge-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
  padding: 10px 6px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}
.bw-account-badge-option:hover { border-color: var(--line-strong); }
.bw-account-badge-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.bw-account-badge-option:has(input:checked) { border-color: var(--gold); background: rgba(212,165,101,0.08); }
.bw-account-badge-option span.name { font-size: 11px; color: var(--cream-dim); line-height: 1.3; }
