.blog-member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.blog-member-toolbar.hidden {
  display: none !important;
}

.blog-member-user {
  font-size: 0.9rem;
  color: var(--text-muted, #6b665c);
  margin-right: auto;
}

.blog-member-compose {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface-alt, #edebe4);
  border: 1px solid var(--border, #d6d0c4);
  border-radius: 10px;
}

.blog-member-compose.hidden {
  display: none !important;
}

.blog-compose-title {
  font-family: var(--font-serif);
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.blog-compose-hint {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.blog-compose-form,
.blog-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.bb-field > span {
  color: var(--text-muted);
  font-weight: 600;
}

.bb-input,
.bb-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface, #faf7f2);
  box-sizing: border-box;
}

.bb-textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

.bb-body-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.bb-body-tab {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  background: var(--surface-alt, #edebe4);
  font-size: 0.85rem;
  cursor: pointer;
}

.bb-body-tab.active {
  background: var(--surface, #faf7f2);
  border-bottom-color: var(--surface, #faf7f2);
  font-weight: 600;
}

.bb-body-preview {
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #faf7f2);
  line-height: 1.6;
  overflow: auto;
}

.bb-body-preview.hidden,
.bb-textarea.hidden {
  display: none !important;
}

.bb-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.bb-btn-primary {
  background: var(--accent-secondary, #2f5d50);
  color: #fff;
}

.bb-btn-danger {
  background: #b42318;
  color: #fff;
  border: none;
  margin-right: auto;
}

.bb-btn-text {
  background: transparent;
  color: var(--accent-secondary);
  text-decoration: underline;
}

.blog-compose-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.bb-auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.bb-auth-tab {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.bb-auth-tab.active {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--accent-secondary);
}

.bb-error {
  color: #b42318;
  font-size: 0.88rem;
  margin: 0;
}

.bb-error.hidden,
.blog-guest-auth.hidden {
  display: none !important;
}

.member-post-card {
  position: relative;
}

.member-post-card--pending {
  opacity: 0.92;
}

.member-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff4e5;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

.member-card-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 12px;
  margin-top: -8px;
}

.member-card-actions button {
  background: none;
  border: none;
  color: var(--accent-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.member-card-actions .bb-delete {
  color: #b42318;
}

.member-post-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.member-post-status--pending {
  background: #fff4e5;
  color: #b45309;
}

.member-post-status--rejected {
  background: #fdecea;
  color: #b42318;
}

.member-post-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 8px;
}

.member-post-toolbar.hidden {
  display: none !important;
}

.member-post-back {
  margin: 32px 0;
  text-align: center;
}

.member-post-back a {
  color: var(--accent-secondary);
  font-weight: 600;
}

.member-post-body {
  line-height: 1.8;
}

.member-post-body h2,
.member-post-body h3 {
  font-family: var(--font-serif);
  margin-top: 1.5em;
}

.member-post-body pre {
  overflow-x: auto;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: 6px;
}

.member-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

.bb-cover-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bb-file {
  font-size: 0.85rem;
}

.bb-cover-preview {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  border: 1px solid var(--border);
}

.bb-cover-preview.hidden {
  display: none !important;
}

.bb-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.member-post-card .post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-community-hint {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-alt, #edebe4);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-community-hint a {
  color: var(--accent-secondary, #2f5d50);
  font-weight: 600;
}
