/* Comments use the same DOM and permissions in both visual modes. */
.comments { display: block; margin-top: 18px; border-top: 1px solid var(--line, #2b3f48); padding: 12px 0 0; font-size: 14px; min-width: 0; text-align: left; }
.comments summary { cursor: pointer; color: var(--accent, #53d781); font-weight: 600; width: fit-content; padding: 3px 0; }
.comments-content { padding-top: 12px; }
.comments-toolbar, .comment-form-actions, .comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comments-toolbar { justify-content: space-between; margin-bottom: 12px; }
.comments-toolbar small, .comments-empty, .comments-status, .comment-form-actions small { color: var(--muted, #96adb6); font-size: 12px; }
.comments button { font-size: 12px; padding: 7px 10px; }
.comment { padding: 13px 0; border-bottom: 1px solid var(--line, #2b3f48); }
.comment-author { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.comment-author time { margin-left: auto; color: var(--muted, #96adb6); font-size: 11px; }
.comment-author img, .comment-author .profile-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; padding: 0; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: 8px 0; }
.comment-body.deleted, .comment-reply-context { color: var(--muted, #96adb6); font-size: 12px; }
.comment-reply-context { border-left: 2px solid var(--accent, #53d781); padding-left: 8px; margin-top: 7px; }
.comment-form { display: grid; gap: 8px; margin-top: 14px; }
.comment-form label { display: grid; gap: 6px; font-size: 13px; }
.comment-form textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; background: #0a141b; color: #e8f0f2; border: 1px solid #354b55; border-radius: 7px; resize: vertical; font: inherit; }
.comments-status.error { color: #ffb1a5; }
.archive-card-shell > .comments { margin: 0; padding: 12px 16px; background: #0b1319; border-radius: 0 0 var(--radius, 8px) var(--radius, 8px); }
.archive-modal-caption .comments { width: 100%; }
.archive-modal-panel { overflow-y: auto; overscroll-behavior: contain; }
.map-sidebar .comments { flex-shrink: 0; }
@media (max-width: 760px) { .comment-author time { width: 100%; margin-left: 0; } .comment-form-actions .top-action { min-height: 38px; } }
@media print { .comments { display: none !important; } }
