/* Conversas por aula. Formulários e respostas funcionam sem JavaScript. */
.comments-section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.comments-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.comments-heading > .icon { width: 30px; height: 30px; color: #9e7761; stroke-width: 1.25; }
.comments-heading h2 { font-size: 23px; margin: 8px 0 10px; }
.comments-heading p { font-size: 12px; line-height: 1.8; }
.comments-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 7px; vertical-align: middle; background: #282a2e; color: #c6c7ce; border: 1px solid #36383f; border-radius: 6px; font-size: 11px; letter-spacing: 0; margin-left: 5px; }
.comment-compose { padding: 22px; background: linear-gradient(130deg, #1f1e1c, #191b1e 60%); }
.comment-compose-title { display: flex; align-items: center; gap: 9px; color: #aaa7a5; font-size: 11px; margin-bottom: 20px; }
.comment-compose-title > .icon { width: 17px; height: 17px; color: var(--accent); }
.comment-compose-title strong { color: #e0dad5; font-weight: 600; }
.comment-form label { display: block; color: #d7d7de; font-size: 12px; margin-bottom: 9px; }
.comment-form textarea, .comment-form input[type=text] { width: 100%; color: #ececf0; background: #121416; border: 1px solid #3a3b40; border-radius: 8px; font: inherit; font-size: 12px; line-height: 1.8; padding: 12px 14px; }
.comment-form textarea { display: block; resize: vertical; min-height: 105px; }
.comment-form textarea::placeholder, .comment-form input::placeholder { color: #91939c; }
.comment-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.comment-form-bottom { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 16px; }
.comment-timestamp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-timestamp label { margin: 0; font-size: 10px; line-height: 1.8; }
.comment-timestamp label span { display: block; color: #999ba5; }
.comment-timestamp input[type=text] { width: 91px; padding: 8px 10px; font-size: 11px; }
.comment-form-bottom .btn { min-height: 40px; font-size: 10px; white-space: nowrap; }
.comment-form-bottom .btn .icon { width: 15px; height: 15px; }
.comment-form-hint { font-size: 9px; line-height: 1.8; margin-top: 14px; color: #93959f; }
.comments-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 27px 0 16px; }
.comments-list-heading strong { font-weight: 500; color: #c5c6ce; font-size: 11px; }
.comments-list-heading > span { color: #8e919c; font-size: 9px; }
.comments-empty { text-align: center; padding: 34px 25px; border: 1px dashed #36383e; border-radius: 12px; }
.comments-empty > .icon { color: #b99b88; width: 28px; height: 28px; margin-bottom: 15px; }
.comments-empty h3 { font-size: 17px; margin-bottom: 10px; }
.comments-empty p { max-width: 420px; margin: auto; font-size: 11px; line-height: 1.9; }
.comment-thread { padding: 20px; margin-bottom: 15px; overflow: hidden; scroll-margin-top: 90px; }
.thread-state { display: flex; align-items: center; gap: 6px; width: fit-content; font-size: 9px; color: #aaaab5; margin: 0 0 17px; }
.thread-state .icon { width: 13px; height: 13px; }
.thread-state.answered { color: #a8cfb0; }
.comment-message { display: flex; align-items: flex-start; gap: 12px; }
.comment-avatar { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border: 1px solid #44414a; border-radius: 10px; background: #2b2831; color: #c6b7da; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.comment-message-body { min-width: 0; flex: 1; }
.comment-author { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; overflow-wrap: anywhere; }
.comment-author > strong { font-size: 12px; font-weight: 600; }
.comment-message time { display: block; font-size: 9px; color: #92949f; margin-top: 3px; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #d0d1d8; font-size: 12px; line-height: 1.9; margin-top: 12px; }
.instructor-badge, .hidden-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; line-height: 1.5; border: 1px solid #75513a; color: #ffc094; background: #ff77480e; border-radius: 4px; padding: 2px 6px; }
.instructor-badge .icon { width: 10px; height: 10px; }
.hidden-badge { color: #e1bdcd; border-color: #66505e; }
.from-instructor .comment-avatar { background: #39291f; border-color: #785137; color: #ffae78; }
.comment-time { display: inline-flex; align-items: center; gap: 5px; color: #efac8f; font-size: 10px; background: #ff774813; border: 1px solid #ff774826; border-radius: 5px; padding: 3px 7px; margin-top: 10px; }
.comment-time .icon { width: 11px; height: 11px; }
.comment-replies { display: grid; gap: 22px; margin: 20px 0 0 15px; padding: 20px 0 0 25px; border-left: 1px solid #494137; border-top: 1px solid #2d2e34; }
.comment-reply-form { border-top: 1px solid #303138; margin-top: 20px; padding-top: 14px; }
.comment-reply-form > summary { cursor: pointer; color: #dcb29c; font-size: 10px; padding: 4px 0; }
.comment-reply-form > summary .icon { width: 14px; height: 14px; margin: 0 4px; }
.comment-reply-form[open] > summary { margin-bottom: 17px; }
.comment-moderation { margin-top: 10px; }
.comment-moderation summary { cursor: pointer; font-size: 9px; color: #92949f; }
.comment-moderation form { margin-top: 8px; padding: 12px; background: #222126; border: 1px solid #484049; border-radius: 7px; }
.comment-moderation p { font-size: 10px; margin-bottom: 10px; }
.comment-moderation .btn { font-size: 9px; min-height: 32px; padding: 7px 10px; }
.comment-hidden { padding: 12px; border: 1px dashed #66515b; border-radius: 8px; background: #32263030; }
.comment-notice, .instructor-notice { padding: 12px 15px; border: 1px solid #435c49; background: #223027; border-radius: 8px; font-size: 11px; color: #c4e0c9; margin-bottom: 18px; }
.instructor-notice { background: #30261e; border-color: #5c4631; color: #dcc2aa; }
.instructor-notice .icon { width: 14px; height: 14px; margin-right: 5px; }
.comments-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.comments-pagination span { font-size: 10px; color: #aaa; }
.comments-pagination .btn { font-size: 10px; }
@media(max-width:700px) {
  .comments-heading h2 { font-size: 22px; }
  .comments-heading > .icon { display: none; }
  .comment-compose, .comment-thread { padding: 18px; }
  .comment-form-bottom { align-items: stretch; flex-direction: column; gap: 14px; }
  .comment-timestamp { justify-content: space-between; }
  .comment-form-bottom .btn { width: 100%; font-size: 12px; }
  .comment-form-hint { font-size: 10px; }
  .comment-form textarea { font-size: 13px; }
  .comment-replies { margin-left: 4px; padding-left: 14px; }
  .comment-message { gap: 9px; }
  .comment-avatar { width: 27px; height: 27px; border-radius: 8px; }
  .comment-author > strong { font-size: 12px; }
  .comments-list-heading { align-items: flex-start; }
  .comments-list-heading > span { max-width: 85px; text-align: right; }
}
