.post-panel { scroll-margin-top: 20px; }
.post-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.post-heading .muted { margin: 0; }
.post-panel input,
.post-panel textarea { width: 100%; box-sizing: border-box; border: 1px solid #dedee8; border-radius: 10px; padding: 12px; background: var(--card, #fff); color: inherit; font: inherit; }
.post-panel input { margin-top: 8px; }
.post-editor-label { display: block; font-size: 14px; margin-bottom: 8px; }
.post-editor-shell { overflow: hidden; margin: 10px 0 16px; border: 1px solid #dedee8; border-radius: 12px; background: var(--card, #fff); }
.post-editor-shell:focus-within { border-color: #8068ea; box-shadow: 0 0 0 3px #8068ea20; }
.post-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid #ece8f2; background: #faf9fd; }
.post-editor-toolbar button { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; color: #625b6b; font: inherit; font-size: 13px; cursor: pointer; }
.post-editor-toolbar button:hover { border-color: #ded7ee; background: #fff; color: #7257d7; }
.post-link-popover { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #ece8f2; background: #f8f6fd; font-size: 13px; }
.post-link-popover label { margin: 0; white-space: nowrap; }
.post-link-popover input { flex: 1 1 220px; width: auto; min-width: 0; margin: 0; padding: 8px 10px; }
.post-link-popover button { padding: 8px 11px; border: 1px solid #ded7ee; border-radius: 7px; color: #7257d7; background: #fff; white-space: nowrap; }
.post-link-popover button:hover { background: #eee9fb; }
.post-rich-editor { min-height: 260px; padding: 18px; outline: 0; overflow-wrap: anywhere; line-height: 1.8; }
.post-rich-editor:empty::before { content: attr(data-placeholder); color: #aaa4b0; pointer-events: none; }
.post-rich-editor h2,
.post-rich-editor h3 { margin: 18px 0 8px; line-height: 1.45; }
.post-rich-editor p,
.post-rich-editor div { margin: 8px 0; }
.post-rich-editor img,
.post-rich-editor video { display: block; max-width: 100%; max-height: 520px; margin: 16px auto; border-radius: 10px; background: #f1eef6; }
.post-rich-editor a { color: #7257d7; text-decoration: underline; }
.post-editor-footer { min-height: 36px; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; box-sizing: border-box; border-top: 1px solid #ece8f2; color: #91899b; font-size: 12px; }
#post-upload-status { overflow-wrap: anywhere; }
#post-character-count.over-limit { color: #c6415e; font-weight: 700; }
.post-form-actions { display: flex; align-items: center; gap: 14px; }
#post-compose-cancel { color: #827992; padding: 10px; }
#post-error { color: #c6415e; font-size: 13px; }
.post-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; padding: 20px 0; border-top: 1px solid #eeedf4; }
.post-open { min-width: 0; text-align: left; color: inherit; }
.post-open strong { display: block; font-size: 17px; line-height: 1.5; color: var(--text, #555); overflow-wrap: anywhere; }
.post-open p { margin: 7px 0 0; color: #777; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #96929f; font-size: 12px; }
.post-meta strong { color: #766b82; font-size: 13px; }
.post-reply-count { align-self: center; min-width: 54px; text-align: center; color: #7862df; font-size: 13px; }
.post-empty { color: #96929f; padding: 24px 0; border-top: 1px solid #eeedf4; }
.post-pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 18px 0 4px; }
.post-pager button { border: 1px solid #e2deee; border-radius: 8px; padding: 9px 14px; color: #7862df; }
.post-pager button:disabled { color: #aaa; }
.post-thread { margin-top: 24px; padding: 22px; border: 1px solid #e7e2f0 !important; border-radius: 14px !important; background: #faf9fd !important; }
.post-thread-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.post-thread h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.post-thread-body { margin: 20px 0; overflow-wrap: anywhere; line-height: 1.85; font-size: 15px; }
.post-thread-body p,
.post-thread-body div { margin: 10px 0; }
.post-thread-body h2,
.post-thread-body h3 { margin: 22px 0 10px; line-height: 1.45; }
.post-thread-body img,
.post-thread-body video { display: block; max-width: 100%; max-height: 620px; margin: 18px auto; border-radius: 12px; background: #eeeaf4; }
.post-thread-body a { color: #7257d7; text-decoration: underline; overflow-wrap: anywhere; }
.post-thread-body blockquote { margin: 14px 0; padding: 4px 16px; border-left: 4px solid #cfc4ed; color: #6f6877; }
.post-thread-actions button,
.post-reply-delete { color: #a86e80; font-size: 12px; }
.post-replies { margin-top: 22px; border-top: 1px solid #e6e0ee; }
.post-reply { padding: 16px 0; border-bottom: 1px solid #ece7f2; }
.post-reply p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.post-reply-form { margin-top: 20px; }
.post-reply-form textarea { background: #fff; }
.post-thread-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; font-size: 12px; }
.post-thread-pager button { color: #7862df; }
@media (max-width: 767px) {
  .post-heading { align-items: stretch; flex-direction: column; }
  #post-compose-toggle { align-self: flex-start; }
  .post-list-item { grid-template-columns: 1fr; gap: 8px; }
  .post-reply-count { text-align: left; }
  .post-thread { padding: 16px !important; }
  .post-thread-header { flex-direction: column; }
  .post-rich-editor { min-height: 220px; padding: 14px; }
  .post-editor-toolbar { flex-wrap: nowrap; overflow-x: auto; }
  .post-editor-toolbar button { flex: 0 0 auto; }
}
