.posts-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.post-composer, .post-feed { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.post-panel-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.post-panel-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.post-panel-heading > .muted { font-size: 11px; }
#post-form { padding: 20px; }
#post-form > label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 8px; font-size: 12px; font-weight: 500; }
#post-title { margin-bottom: 20px; }
#post-body { display: block; width: 100%; min-height: 140px; max-height: 420px; resize: vertical; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 4px; background: #fff; color: inherit; font: inherit; font-size: 13px; line-height: 1.7; }
#post-body:focus { outline: 2px solid #dbe8ff; border-color: var(--primary); }
.media-kind { display: flex; align-items: center; gap: 24px; margin: 20px 0 12px; padding: 0; border: 0; }
.media-kind legend { float: left; margin-right: 20px; font-size: 12px; }
.media-kind label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; }
.media-kind input { width: 14px; min-height: 0; height: 14px; margin: 0; accent-color: var(--primary); }
.media-picker { padding: 14px; border: 1px dashed #cfd5df; border-radius: 4px; background: #fafbfc; }
.media-picker > label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 500; }
#post-files { width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
#post-files::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 1px solid #cfd5df; border-radius: 4px; background: #fff; color: #344054; cursor: pointer; }
.media-picker .field-hint { margin-top: 10px; line-height: 1.7; }
.media-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.preview-item { position: relative; min-width: 0; margin: 0; }
.preview-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.preview-item.video-preview { grid-column: 1 / -1; }
.preview-item video { display: block; width: 100%; max-height: 240px; border-radius: 4px; background: #17202c; }
.preview-item figcaption { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); }
.remove-media { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #d7dde5; border-radius: 4px; background: #fff; color: #344054; font-size: 16px; line-height: 1; }
.file-summary { margin-top: 8px; color: var(--muted); font-size: 11px; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.composer-actions .primary-button { width: auto; margin: 0; min-width: 100px; min-height: 34px; padding: 7px 16px; font-size: 12px; }
.composer-actions .field-hint { margin: 0; font-size: 11px; }
.upload-status { margin-top: 16px; }
.upload-status label { font-size: 12px; color: var(--muted); }
.upload-status progress { display: block; width: 100%; height: 6px; margin-top: 8px; accent-color: var(--primary); }
.post-feed > .message { margin: 16px 20px; }
.posts-empty, .posts-loading { padding: 64px 24px; text-align: center; color: var(--muted); font-size: 12px; }
.posts-empty strong { display: block; margin-bottom: 8px; color: #344054; font-size: 14px; font-weight: 500; }
.post-card { padding: 20px; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.post-author { color: #344054; font-weight: 500; }
.post-card h3 { margin: 0 0 8px; color: #202833; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.post-body { color: #4d596b; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body.collapsed { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-expand { margin-top: 6px; }
.post-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.post-media-grid a { display: block; min-width: 0; }
.post-media-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f5f6f8; }
.post-media-grid.single-image { grid-template-columns: minmax(0, 320px); }
.post-media-grid.single-image img { max-height: 360px; aspect-ratio: auto; }
.post-video { display: block; width: 100%; max-height: 360px; margin-top: 16px; border-radius: 4px; background: #17202c; }
.media-error { margin-top: 6px; font-size: 11px; color: #b42318; }
.post-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.post-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.post-action-button { min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #5e6979; font-size: 12px; font-variant-numeric: tabular-nums; }
.post-action-button:hover:not(:disabled) { border-color: #b7c9ea; background: #f7faff; color: var(--primary); }
.post-action-button[aria-pressed="true"] { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; }
.comments-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.comments-heading h4 { margin: 0; font-size: 13px; font-weight: 600; }
.comment-list { padding: 0; margin: 0; list-style: none; }
.comment-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.comment-content { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.comment-author { font-size: 12px; color: #344054; font-weight: 500; overflow-wrap: anywhere; }
.comment-body { color: #4d596b; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 12px; }
.comment-list-message { padding: 10px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.comment-form { margin-top: 16px; }
.comment-input { display: block; width: 100%; min-height: 78px; resize: vertical; padding: 9px 11px; border: 1px solid #cfd5df; border-radius: 4px; color: inherit; background: #fff; font: inherit; font-size: 12px; line-height: 1.8; }
.comment-input:focus { border-color: var(--primary); outline: 2px solid #dbe8ff; }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.comment-form-actions .field-hint { margin: 0; font-size: 11px; }
.comment-form-actions .primary-button { width: auto; min-height: 32px; padding: 5px 12px; margin: 0; font-size: 12px; }
.comment-form .message, .interaction-message { margin-top: 10px; }
.more-comments { margin-top: 12px; }
@media (max-width: 980px) {
  .posts-layout { grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 16px; }
  .post-panel-heading, #post-form, .post-card { padding: 16px; }
  .composer-actions { align-items: flex-start; }
}
@media (max-width: 760px) {
  .posts-layout { grid-template-columns: minmax(0, 1fr); }
  .post-composer { max-width: none; }
  .post-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
