.app-comments { margin-top: 20px; padding: 16px 0; border: 0; border-radius: 0; background: var(--surface); }
.app-comments-head { margin: 0 0 18px; }
.app-comments-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 20px; }
.app-comments-head h2 span { min-width: 30px; height: 25px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--on-primary); background: var(--primary); font-size: 12px; }
.app-comment-composer { padding-bottom: 25px; }
.app-comment-composer .comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.app-comment-composer .comment-form p { margin: 0; }
.app-comment-editor, .app-comment-composer .comment-form-cookies-consent, .app-comment-composer .form-submit, .app-comment-composer .logged-in-as, .app-comment-composer .comment-notes { grid-column: 1 / -1; }
.app-comment-field label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.app-comment-field input, .app-comment-editor textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--soft); font: inherit; outline: 0; }
.app-comment-field input { min-height: 43px; padding: 0 12px; }
.app-comment-editor textarea { height: 50px; min-height: 50px; padding: 12px 14px; resize: vertical; }
.app-comment-field input:focus, .app-comment-editor textarea:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.app-comment-cookies label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.app-comment-cookies input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.app-comment-composer .form-submit { display: flex; justify-content: flex-end; }
.app-comment-submit { padding: 10px 20px; border: 0; border-radius: 999px; color: var(--on-primary); background: var(--primary); cursor: pointer; font-weight: 700; }
.app-comment-submit:disabled { cursor: wait; opacity: .65; }
.app-comment-status { grid-column: 1 / -1; min-height: 18px; margin: 0 !important; color: var(--muted); font-size: 12px; }
.app-comment-status.is-success { color: var(--success); }.app-comment-status.is-error { color: var(--danger); }
.app-comment-item { animation: app-comment-in .35s ease; }
.app-comment-list, .app-comment-list .children { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.app-comment-list .children { position: relative; margin: 14px 0 0 23px; padding-left: 30px; }
.app-comment-list .children:before { content: ""; position: absolute; left: 0; top: -8px; bottom: 28px; width: 1px; background: var(--line); }
.app-comment { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; }
.app-comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.app-comment-main { min-width: 0; }
.app-comment-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.app-comment-author { color: var(--ink); font-size: 14px; }
.app-comment-time { margin-left: 7px; color: var(--muted); font-size: 11px; }
.app-comment-actions { display: flex; gap: 10px; font-size: 11px; }
.app-comment-actions a { color: var(--muted); font-weight: 500; }
.app-comment-actions a:hover { color: var(--primary); }
.app-comment-content { color: var(--ink); font-size: 13px; line-height: 1.65; }
.app-comment-content p { margin: 0 0 7px; }.app-comment-content p:last-child { margin-bottom: 0; }
.app-comment-awaiting { margin: 0 0 7px; color: var(--warning); font-size: 11px; }
.app-comment-pagination { margin-top: 20px; color: var(--primary); }
body.dark-mode .app-comments { background: var(--surface); }
body.dark-mode .app-comment-content { color: var(--ink); }
body.dark-mode .app-comment-field input, body.dark-mode .app-comment-editor textarea { background: var(--soft); }
@keyframes app-comment-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 561px) {
	.app-comments { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
}
@media (max-width: 560px) {
	.app-comment-composer .comment-form { grid-template-columns: 1fr; }
	.app-comment-composer .form-submit { justify-content: stretch; }
	.app-comment-submit { width: 100%; }
	.app-comment { grid-template-columns: 38px minmax(0,1fr); gap: 9px; }
	.app-comment-avatar img { width: 38px; height: 38px; }
	.app-comment-header { align-items: flex-start; flex-direction: column; gap: 3px; }
	.app-comment-time { display: block; margin-left: 0; }
	.app-comment-list .children { margin-left: 8px; padding-left: 16px; }
}
