@charset "UTF-8";

.comment-thread { margin-top: 19px; }
.comment-thread.is-expanded { margin-top: 32px; }
.comment-heading { margin: 0; color: var(--secondary); font-size: 14px; font-weight: 500; line-height: 1.7; }
.comment-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 0; background: transparent; color: var(--secondary); font-size: 12px; }
.comment-toggle:hover { color: var(--green); }
.comment-toggle .icon { width: 16px; height: 16px; }
.comment-caret { margin-left: 3px; transition: transform .18s; }
.comment-toggle[aria-expanded="true"] .comment-caret { transform: rotate(180deg); }
.comment-panel { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 17px; animation: comment-in .18s ease-out; }
.comment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.comment-toolbar .text-link { min-height: 32px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; }
.comment-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.comment-name { color: var(--ink); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.comment-badge { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.comment-badge.is-author { background: var(--sage); border-color: transparent; color: var(--badge-ink); }
.comment-date { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.comment-delete { margin-left: auto; min-height: 32px; padding: 4px 0 4px 9px; color: var(--muted); background: transparent; font-size: 11px; }
.comment-delete:hover { color: var(--danger); }
.comment-body { margin: 7px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.comment-empty, .comment-status { color: var(--muted); font-size: 12px; line-height: 1.8; }
.comment-empty { margin: 17px 0 22px; }
.comment-status:empty { display: none; }
.comment-more { margin: 8px 0 0; padding-left: 0; font-size: 12px; }
.comment-error { margin: 12px 0; color: var(--danger); font-size: 12px; line-height: 1.8; }
.comment-compose-toggle { min-height: 36px; margin-top: 13px; padding: 5px 0; color: var(--secondary); font-size: 12px; }
.comment-compose-toggle[aria-expanded="true"] { color: var(--muted); }
.comment-compose-toggle:hover { color: var(--green); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 23px; }
.is-expanded .comment-form { margin-top: 10px; }
.comment-form label { display: grid; gap: 7px; color: var(--secondary); font-size: 12px; }
.comment-form input, .comment-form textarea { width: 100%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.7; }
.comment-nickname { max-width: 235px; }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comment-counter { color: var(--muted); font: 10px/1.5 var(--mono); }
.comment-form-bottom .button { min-height: 38px; padding: 8px 16px; font-size: 12px; }
.comment-privacy { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.comment-author-hint { margin: 0; color: var(--green); font-size: 12px; }
.comment-thread button:disabled { cursor: wait; opacity: .55; }
.draft-with-comments { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.draft-with-comments .draft-row { border-bottom: 0; }
.draft-with-comments .comment-thread { margin: 0 0 0 13px; }
@keyframes comment-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .comment-thread { margin-top: 15px; }
  .comment-panel { margin-top: 9px; }
  .comment-meta { gap: 5px 8px; }
  .comment-date { font-size: 10px; }
  .comment-nickname { max-width: none; }
  .comment-form input, .comment-form textarea { font-size: 16px; }
  .comment-delete { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .comment-panel { animation: none; } .comment-caret { transition: none; } }
