[hidden] { display: none !important; }

#accountEntry .account-admin-link {
  margin-inline-start: 6px;
  padding: 5px 9px;
  border: 2px solid #000;
  border-radius: 5px;
  background: var(--gold);
  color: #3a2b00;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
#accountEntry .account-admin-link:hover { background: #ffe283; }

.post-card-heading,
.my-post-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.post-card-heading h4,
.my-post-heading h4 { margin: 0; }
.post-source-badge,
.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.post-source-badge { color: var(--ink-dim); background: #0c1030; border: 1px solid var(--line); }
.review-badge.pending { color: #ffe082; background: #3a356d; border: 1px solid #7168b6; }
.review-badge.approved { color: #a7f3b9; background: #123b26; border: 1px solid #2f8d55; }
.review-badge.rejected { color: #ffc0c0; background: #431b28; border: 1px solid #a94b5e; }
.post-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 2px; }
.post-tag {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid #6d638f;
  border-radius: 999px;
  background: #191b40;
  color: #d8d0ff;
  font-size: 10px;
  line-height: 1.5;
}
.tag-suggestions {
  display: grid;
  gap: 7px;
  margin-top: -2px;
  padding: 8px 9px;
  border: 1px dashed #c9a86a;
  border-radius: 7px;
  background: rgba(255, 253, 245, .82);
}
.tag-suggestions-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.tag-suggestions-head span { color: #a45a1f; font-size: 11px; font-weight: 800; }
.tag-suggestions-head small { color: var(--ink-dim); font-size: 10px; }
.tag-suggestion-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-suggestion {
  padding: 3px 9px;
  border: 1px solid #c9a86a;
  border-radius: 999px;
  background: #fff8e7;
  color: #6b4318;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}
.tag-suggestion:hover,
.tag-suggestion:focus-visible { border-color: #a45a1f; background: #ffe9b8; outline: none; }
.tag-suggestion-empty { color: var(--ink-dim); font-size: 11px; line-height: 1.5; }

.post-account-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 12px;
}
.post-account-row #postAccountSlot { display: flex; align-items: center; }
.post-image-field { display: grid; gap: 6px; color: var(--ink-dim); font-size: 12px; }
.post-image-preview { display: grid; gap: 6px; }
.post-image-preview img {
  display: block;
  width: min(100%, 320px);
  max-height: 220px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 8px;
}
.post-image-preview small { color: var(--ink-dim); font-size: 11px; }
.post-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.post-form-actions small { color: var(--ink-dim); font-size: 11px; }

.my-posts-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
.my-posts-toolbar .feature-help { margin: 0; }
.my-posts-panel {
  margin: 0 0 12px;
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 48, .55);
}
.my-posts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.my-posts-head b { color: var(--gold); font-size: 12px; }
.my-posts-head small { color: var(--ink-dim); font-size: 10px; }
.my-post-card { border-left-width: 4px; }
.my-post-card.status-pending { border-left-color: #8b83da; }
.my-post-card.status-approved { border-left-color: var(--green); }
.my-post-card.status-rejected { border-left-color: var(--red); }
.review-note { margin-top: 6px; color: var(--ink-dim); font-size: 11px; }
.review-reason {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 7px 8px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: rgba(255, 107, 107, .09);
  font-size: 12px;
  line-height: 1.55;
}
.review-reason b { color: #ff9b9b; }
.review-reason span { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-state { padding: 10px; color: var(--ink-dim); font-size: 12px; text-align: center; }
.review-state.error { color: #ff9b9b; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  padding: 2px 7px;
  border: 1px solid #6d638f;
  border-radius: 999px;
  background: #191b40;
  color: #d8d0ff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.ai-loading,
.ai-fallback-note {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 11px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fffdf5;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
.ai-fallback-note b { color: #a45a1f; }
.ai-answer-card {
  margin: 8px 0 12px;
  padding: 12px;
  border: 2px solid #c9a86a;
  border-radius: 9px;
  background: linear-gradient(145deg, #fffdf5, #f8edda);
  box-shadow: 0 8px 22px rgba(78, 56, 26, .12);
}
.ai-answer-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.ai-answer-head b { color: #a45a1f; font-size: 13px; }
.ai-answer-head span { color: var(--ink-dim); font-size: 10px; }
.ai-answer-text { color: var(--ink); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-answer-caption { margin: 9px 0 0; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--ink-dim); font-size: 11px; }
.ai-source-card { border-left: 3px solid #6d638f; }

@media (max-width: 39rem) {
  .my-posts-head { align-items: flex-start; flex-direction: column; }
  .post-form-actions .btn { width: 100%; }
  #accountEntry .account-admin-link { margin-inline-start: 0; }
}
