.course-comment-staff-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.course-comment-staff-composer { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.course-comment-staff-composer strong { color: var(--ink); font-weight: 750; }

.course-comment-community-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 22px;
}
.course-comment-community-identity > div { display: grid; gap: 3px; }
.course-comment-community-identity > div > span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.course-comment-community-identity > div > strong { font-size: 18px; }
.course-comment-community-identity > div > small { color: var(--muted); }
.course-comment-community-identity > form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; width: min(100%, 620px); }
.course-comment-community-identity > form > label { grid-column: 1 / -1; font-weight: 750; }
.course-comment-community-identity > form > div,
.course-comment-admin-reply form > div { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.course-comment-admin-reply { padding: 0 22px 20px; }
.course-comment-admin-reply form { display: grid; gap: 10px; padding: 18px; border: 1px solid #eadde2; border-radius: 16px; background: #fffafb; }
.course-comment-admin-reply label { font-size: 14px; }
.course-comment-admin-reply textarea { width: 100%; min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; font: inherit; line-height: 1.5; resize: vertical; box-sizing: border-box; }
.course-comment-admin-reply textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(255,40,93,.12); }
.course-comment-admin-reply-preview { margin: 0 22px 20px; padding: 16px 18px; border-left: 3px solid var(--brand); border-radius: 0 13px 13px 0; background: #fff8fa; }
.course-comment-admin-reply-preview > div { display: flex; align-items: center; gap: 9px; }
.course-comment-admin-reply-preview > div span { padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; font-weight: 750; }
.course-comment-admin-reply-preview p { margin: 7px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.course-comment-moderation-actions > button { min-height: 44px; }
.course-comment-answer-button { display: inline-flex; align-items: center; gap: 8px; border-color: var(--brand) !important; color: var(--brand-dark) !important; transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.course-comment-answer-button span { color: #ce718b; font-size: 18px; line-height: 1; transition: color .16s ease, transform .16s ease; }
.course-comment-answer-button:hover { border-color: var(--brand-dark) !important; background: var(--brand-dark) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(194, 34, 69, .2); transform: translateY(-2px); }
.course-comment-answer-button:hover span { color: #fff; transform: translateX(-2px); }
.course-comment-answer-button:focus-visible { outline: 3px solid rgba(255, 40, 93, .22); outline-offset: 3px; }
.course-comment-answer-button:active { box-shadow: none; transform: translateY(0); }
.course-comment-answer-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(28, 24, 37, .28); }
.course-comment-answer-dialog::backdrop { background: rgba(22, 18, 28, .52); backdrop-filter: blur(3px); }
.course-comment-answer-dialog > form { display: grid; gap: 18px; padding: 24px; }
.course-comment-answer-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.course-comment-answer-dialog header span { color: var(--brand-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.course-comment-answer-dialog h2 { margin: 4px 0 0; font-size: 25px; }
.course-comment-answer-dialog header > button { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 0; border-radius: 10px; background: #f5f2f6; color: var(--muted); font-size: 25px; cursor: pointer; }
.course-comment-answer-context { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 14px; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; background: #fff7f9; }
.course-comment-answer-context strong { font-size: 14px; }
.course-comment-answer-context p { margin: 5px 0 0; color: #514956; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.admin-comment-like { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 5px 7px; border: 0; border-radius: 11px; background: transparent; color: #272432; font: inherit; font-size: 13px; cursor: pointer; transition: color .16s ease, background .16s ease, transform .12s ease; }
.admin-comment-like:hover { background: #ffe9ef; color: var(--brand); }
.admin-comment-like:focus-visible { outline: 3px solid rgba(255, 40, 93, .22); outline-offset: 2px; }
.admin-comment-like:active { transform: scale(.9); }
.admin-comment-like:disabled { opacity: .6; cursor: wait; }
.admin-comment-like svg { width: 23px; height: 23px; overflow: visible; fill: transparent; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s ease, stroke .18s ease, transform .18s ease; }
.admin-comment-like.is-liked { color: var(--brand); }
.admin-comment-like.is-liked svg { fill: currentColor; stroke: currentColor; }
.admin-comment-like.is-pulsing svg { animation: course-comment-heart-pulse .28s ease-out; }
.admin-comment-like [data-admin-comment-like-count][hidden] { display: none; }
.course-comment-answer-dialog label { font-size: 14px; font-weight: 600; }
.course-comment-answer-dialog textarea { width: 100%; min-height: 150px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font: inherit; line-height: 1.5; resize: vertical; box-sizing: border-box; }
.course-comment-answer-dialog textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(255, 40, 93, .12); }
.course-comment-answer-dialog footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

@media (max-width: 700px) {
  .course-comment-community-identity { align-items: stretch; flex-direction: column; }
  .course-comment-community-identity > form { grid-template-columns: 1fr; }
  .course-comment-community-identity > form > div { justify-content: stretch; }
  .course-comment-community-identity > form > div button { flex: 1; }
  .course-comment-content > header { align-items: center; flex-wrap: wrap; }
  .course-comment-staff-badge { order: 3; }
  .course-comment-admin-reply { padding-left: 16px; padding-right: 16px; }
  .course-comment-admin-reply-preview { margin-left: 16px; margin-right: 16px; }
  .course-comment-moderation-actions > button { width: 100%; }
  .course-comment-answer-dialog > form { gap: 15px; padding: 19px; }
  .course-comment-answer-dialog h2 { font-size: 21px; }
  .course-comment-answer-dialog textarea { min-height: 130px; }
  .course-comment-answer-dialog footer > button { flex: 1; }
}
