@charset "UTF-8";
/**
 * LP Chat Room — frontend SCSS
 *
 * Clone of ThimPress AI Chatbot with Chatboz. HTML source:
 *   chatboz-ai-chatbot/assets/src/js/learnpress-chat/
 * Visual baseline:
 *   chatboz-ai-chatbot/assets/src/scss/learnpress-chat.scss
 * LP hook integration reference:
 *   chatboz-ai-chatbot/includes/Chat/LearnPressChat.php
 *
 * Pure SCSS — no Tailwind utilities, no @apply, no Tailwind import.
 * Every property a Tailwind utility class would provide in chatboz markup
 * is restated below in the matching BEM block.
 */
:root {
  /* Brand */
  --lp-chat-primary: var(--lp-primary-color, #ffb606);
  --lp-chat-primary-hover: var(--lp-primary-color-hover, #442e66);
  /* Surface */
  --lp-chat-bg: var(--lp-bg-light, #f7f7fb);
  --lp-chat-bg-soft: var(--lp-bg-white, #fff);
  /* Border */
  --lp-chat-border: var(--lp-border-color-light-grey, #e2e0db);
  --lp-chat-border-strong: var(--lp-border-color, #333);
  /* Text */
  --lp-chat-text: var(--lp-color-black, #333);
  --lp-chat-muted: #b0b0b0;
  --lp-chat-on-primary: #fff;
  /* Bubbles */
  --lp-chat-bubble-bg: #f3f4f6;
  --lp-chat-bubble-own-bg: var(--lp-chat-primary);
  --lp-chat-bubble-instructor-bg: linear-gradient(to right, #06b6d4, #0891b2);
  --lp-chat-bubble-ai-bg: linear-gradient(to right, #8b5cf6, #7c3aed);
  /* State */
  --lp-chat-danger: #ef4444;
  --lp-chat-warning: #f59e0b;
  --lp-chat-success: #10b981;
  --lp-chat-info: #3b82f6;
  /* Shape */
  --lp-chat-radius: var(--lp-border-radius, 8px);
  --lp-chat-radius-lg: 12px;
  --lp-chat-radius-pill: 999px;
  /* Elevation */
  --lp-chat-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --lp-chat-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* Z-index ladder (matches PHP `data-state` contract) */
  --lp-chat-z-launcher: 9999;
  --lp-chat-z-overlay: 10000;
  --lp-chat-z-settings: 10001;
}

.lp-chat-room {
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  color: var(--lp-chat-text);
  height: clamp(600px, 70vh, 900px);
  overflow: hidden;
}
.lp-chat-room__heading-wrapper {
  margin-bottom: 1rem;
}
.lp-chat-room__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.lp-chat-room__container {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.lp-chat-room__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--lp-chat-bg);
  min-height: 0;
}
.lp-chat-room--inline {
  /* default */
}
.lp-chat-room--overlay {
  border: 0;
  border-radius: 0;
  height: 100%;
}
.lp-chat-room__sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--lp-chat-border);
  background: var(--lp-bg-white, #fff);
  min-height: 0;
  transition: width 0.3s ease-in-out, transform 0.25s ease-in-out;
}
.lp-chat-room__sidebar[data-state=open] {
  display: flex;
}
.lp-chat-room__sidebar[data-state=closed] {
  display: none;
}
.lp-chat-room__sidebar--compact {
  display: none;
}
.lp-chat-room__sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lp-chat-room__sidebar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.lp-chat-room__sidebar-header-top .lp-chat-room__sidebar-eyebrow {
  margin: 0;
}
.lp-chat-room__sidebar-close {
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--lp-chat-radius);
  background: transparent;
  color: var(--lp-chat-muted);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.lp-chat-room__sidebar-close:hover {
  color: var(--lp-chat-text);
  background: var(--lp-chat-bg-soft);
}
.lp-chat-room__sidebar-close svg {
  width: 18px;
  height: 18px;
}
.lp-chat-room__sidebar-eyebrow {
  margin: 0 0 0.5rem;
}
.lp-chat-room__sidebar-title {
  margin: 0;
}
.lp-chat-room__search {
  position: relative;
  padding: 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-room__search-form {
  position: relative;
  margin-top: 0.75rem;
}
.lp-chat-room__search-label {
  font-size: 1rem;
}
.lp-chat-room__search-input {
  width: 100%;
  padding: 0.85rem 3.375rem 0.85rem 1.25rem;
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  font-size: 1rem;
  background: var(--lp-bg-white, #fff);
  font-weight: normal;
}
.lp-chat-room__search-input:focus {
  outline: 1px solid var(--lp-chat-primary);
  outline-offset: -1px;
}
.lp-chat-room__search-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.lp-chat-room__search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lp-chat-room__participants {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
}
.lp-chat-room__participants-eyebrow {
  padding-bottom: 0.25rem;
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--lp-chat-muted);
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-room__members {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lp-chat-room__member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  position: relative;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-room__member[data-user-id] {
  cursor: pointer;
}
.lp-chat-room__member[data-user-id]:hover, .lp-chat-room__member[data-user-id]:focus-visible {
  background: rgba(79, 70, 229, 0.08);
}
.lp-chat-room__member-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}
.lp-chat-room__member-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 1rem;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-chat-room__member-badge {
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
  border-radius: var(--lp-chat-radius);
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
}
.lp-chat-room__member-badge--moderator {
  background: var(--lp-chat-primary);
  color: #fff;
  border-color: var(--lp-chat-primary);
}
.lp-chat-room__member-badge--instructor {
  background: #06b6d4;
}
.lp-chat-room__member-badge--ai {
  background: #8b5cf6;
}
.lp-chat-room__member-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-chat-room__member-status--online {
  background: var(--lp-chat-success);
}
.lp-chat-room__member-status--offline {
  background: var(--lp-chat-muted);
  opacity: 0.4;
}
.lp-chat-room__member--skeleton {
  animation: lp-chat-pulse 1.4s ease-in-out infinite;
}
.lp-chat-room__member--skeleton .lp-chat-room__member-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-chat-border);
}
.lp-chat-room__member--skeleton .lp-chat-room__member-name-skeleton {
  display: inline-block;
  width: 80px;
  height: 12px;
  border-radius: 4px;
  background: var(--lp-chat-border);
}
.lp-chat-room__member:last-child {
  border-bottom: 0;
}
.lp-chat-room__sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--lp-chat-border);
  font-size: 1rem;
  background: var(--lp-bg-white, #fff);
}
.lp-chat-room__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.lp-chat-room__stat strong {
  color: var(--lp-chat-text);
}
.lp-chat-room__stat svg {
  width: 24px;
  height: 24px;
}
.lp-chat-room__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
  background: var(--lp-bg-white, #fff);
  flex-shrink: 0;
}
.lp-chat-room__header-text {
  flex: 1;
  min-width: 0;
}
.lp-chat-room__header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-chat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-chat-room__header-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-room__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  justify-content: flex-end;
}
.lp-chat-room__header-actions .lp-chat-room__btn {
  justify-content: center;
  white-space: nowrap;
}
.lp-chat-room__sidebar-toggle {
  appearance: none;
  border: 0;
  background: var(--lp-chat-bg);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--lp-chat-text);
  border-radius: var(--lp-chat-radius);
  transition: background-color 0.2s;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-chat-room__sidebar-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}
.lp-chat-room__sidebar-toggle:hover {
  background: var(--lp-chat-primary);
}
.lp-chat-room__sidebar-toggle:focus {
  outline: 0;
  outline-offset: 0;
  border: 0;
}
.lp-chat-room__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.7rem;
  min-height: 48px;
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: var(--lp-chat-text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.lp-chat-room__btn svg {
  width: 24px;
  height: 24px;
}
.lp-chat-room__btn:hover, .lp-chat-room__btn:focus {
  background: var(--lp-chat-primary);
  color: #fff;
  outline: none;
}
.lp-chat-room__btn--primary {
  background: var(--lp-chat-primary);
  color: var(--lp-chat-on-primary);
  border-color: var(--lp-chat-primary);
}
.lp-chat-room__btn--primary:hover {
  background: var(--lp-chat-primary-hover);
  border-color: var(--lp-chat-primary-hover);
}
.lp-chat-room__btn--secondary {
  background: var(--lp-chat-bg-soft);
}
.lp-chat-room__btn--secondary:hover {
  background: var(--lp-chat-border);
}
.lp-chat-room__btn--close {
  padding: 0.25rem;
  border-radius: 50%;
  color: var(--lp-chat-muted);
  min-height: auto;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  right: -10px;
  top: -10px;
  color: var(--lp-chat-text);
  background: var(--lp-chat-bg-soft);
  box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.1019607843);
}
.lp-chat-room__btn--close svg {
  width: 16px;
  height: 16px;
}
.lp-chat-room__btn--close:hover {
  color: #fff;
  background: var(--lp-chat-primary);
}
.lp-chat-room__btn--danger {
  background: var(--lp-chat-danger);
  color: #fff;
}
.lp-chat-room__btn--danger:hover {
  filter: brightness(0.92);
}
.lp-chat-room__messages {
  flex: 1 1 0%;
  overflow-y: auto;
  min-height: 0px;
  display: flex;
  padding: 1.25rem;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.25rem;
  max-height: 60vh;
}
.lp-chat-room__messages > .lp-load-ajax-element,
.lp-chat-room__messages .lp-target {
  display: contents;
}
.lp-chat-room__messages {
  scrollbar-width: thin;
  scrollbar-color: var(--lp-chat-border) transparent;
}
.lp-chat-room__messages::-webkit-scrollbar {
  width: 8px;
}
.lp-chat-room__messages::-webkit-scrollbar-thumb {
  background: var(--lp-chat-border);
  border-radius: 4px;
}
.lp-chat-room__messages::-webkit-scrollbar-track {
  background: transparent;
}
.lp-chat-room__messages.lp-loading-change {
  opacity: 0.6;
  pointer-events: none;
}
.lp-chat-room__messages:has(.lp-load-ajax-element.loaded) > .lp-chat-room__loading {
  display: none;
}
.lp-chat-room__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  color: var(--lp-chat-muted);
  font-size: 0.875rem;
}
.lp-chat-room__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--lp-chat-border);
  border-top-color: var(--lp-chat-primary);
  border-radius: 50%;
  animation: lp-chat-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.lp-chat-room__empty {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.lp-chat-room__empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--lp-chat-border-strong);
  background: #f1f2f8;
  margin: 0 auto 1.25rem;
}
.lp-chat-room__empty-icon svg {
  width: 40px;
  height: 40px;
}
.lp-chat-room__empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-chat-text);
}
.lp-chat-room__empty-desc {
  margin: 0;
  font-size: 0.875rem;
}
.lp-chat-room__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0.5rem;
  color: var(--lp-chat-muted);
}
.lp-chat-room__welcome-icon {
  color: var(--lp-chat-primary);
  opacity: 0.8;
}
.lp-chat-room__welcome-icon svg {
  width: 56px;
  height: 56px;
}
.lp-chat-room__welcome-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-chat-text);
}
.lp-chat-room__welcome-desc {
  margin: 0;
  font-size: 0.875rem;
}
.lp-chat-room__history-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-room__history-loader-text {
  font-style: italic;
}
.lp-chat-room__jump-btn {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--lp-chat-primary);
  color: var(--lp-chat-on-primary);
  border: 0;
  border-radius: var(--lp-chat-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--lp-chat-shadow-md);
  z-index: 3;
  transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}
.lp-chat-room__jump-btn:hover {
  background: var(--lp-chat-primary-hover);
}
.lp-chat-room__jump-btn:focus-visible {
  outline: 2px solid var(--lp-chat-primary);
  outline-offset: 2px;
}
.lp-chat-room__jump-btn-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.lp-chat-room__jump-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.5rem);
}
.lp-chat-room__typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--lp-chat-muted);
  min-height: 1.25rem;
}
.lp-chat-room__typing[data-state=hidden] {
  display: none;
}
.lp-chat-room__typing-dots {
  display: inline-flex;
  gap: 3px;
}
.lp-chat-room__typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lp-chat-muted);
  animation: lp-chat-typing-bounce 1.2s infinite ease-in-out;
}
.lp-chat-room__typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.lp-chat-room__typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
.lp-chat-room__typing-text {
  line-height: 1;
}
.lp-chat-room__composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  position: relative;
  background: var(--lp-chat-bg);
  flex-shrink: 0;
  padding: 1.25rem;
}
.lp-chat-room__composer .lp-chat-message__reply-chip {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 100%;
  margin-bottom: 0.375rem;
  z-index: 3;
}
.lp-chat-room__composer-icon, .lp-chat-room__composer-send {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--lp-chat-muted);
  border-radius: var(--lp-chat-radius);
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
  align-self: flex-end;
  position: absolute;
  transform: translateY(-50%);
}
.lp-chat-room__composer-icon svg, .lp-chat-room__composer-send svg {
  width: 24px;
  height: 24px;
  display: block;
}
.lp-chat-room__composer-icon:hover, .lp-chat-room__composer-send:hover {
  color: var(--lp-chat-primary);
}
.lp-chat-room__composer-icon:focus-visible, .lp-chat-room__composer-send:focus-visible {
  outline: 0;
}
.lp-chat-room__composer-icon:disabled, .lp-chat-room__composer-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}
.lp-chat-room__composer-icon {
  left: 2rem;
}
.lp-chat-room__composer-send {
  right: 2rem;
}
.lp-chat-room__composer-send svg path {
  stroke: #333333;
}
.lp-chat-room__composer-send:hover svg path {
  stroke: var(--lp-chat-primary);
}
.lp-chat-room__composer-send:focus {
  outline: 0;
}
.lp-chat-room__composer-send:disabled {
  background: var(--lp-chat-border);
}
.lp-chat-room__composer-input {
  flex: 1;
  min-width: 0;
  padding: 0.8125rem 3rem;
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  font-size: 1rem;
  line-height: 1.25;
  resize: none;
  background: var(--lp-chat-bg-soft);
  color: var(--lp-chat-text);
  box-sizing: border-box;
  min-height: 44px;
  max-height: 8rem;
  overflow-y: auto;
  font-family: inherit;
}
.lp-chat-room__composer-input::placeholder {
  color: var(--lp-chat-muted);
}
.lp-chat-room__composer-input:focus {
  outline: 2px solid var(--lp-chat-primary);
  outline-offset: -1px;
  border-color: transparent;
}
.lp-chat-room__composer-input:disabled {
  background: var(--lp-chat-bg-soft);
  color: var(--lp-chat-muted);
  cursor: not-allowed;
}
.lp-chat-room__member-menu {
  position: absolute;
  z-index: var(--lp-chat-z-settings);
  min-width: 180px;
  padding: 0.25rem;
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  box-shadow: var(--lp-chat-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  transform-origin: top left;
  animation: lp-chat-scale-in 0.15s ease-out;
}
.lp-chat-room__member-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--lp-chat-text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s;
}
.lp-chat-room__member-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.lp-chat-room__member-menu-item:hover {
  background: var(--lp-chat-bg-soft);
}
.lp-chat-room__member-menu-item:focus-visible {
  outline: 2px solid var(--lp-chat-primary);
  outline-offset: -2px;
}
.lp-chat-room__member-menu-item--danger {
  color: var(--lp-chat-danger);
}
.lp-chat-room__member-menu-item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
}
.lp-chat-room__mention-list {
  right: 1rem;
  padding: 0.25rem;
}
.lp-chat-room__mention-item {
  appearance: none;
  border-radius: 4px;
  color: var(--lp-chat-text);
}
.lp-chat-room__mention-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}
.lp-chat-room__mention-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}
.lp-chat-room__mention-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-chat-room__emoji-panel {
  padding: 0.5rem;
  gap: 0.5rem;
}
.lp-chat-room__emoji-panel[data-state=open] {
  display: flex;
}
.lp-chat-room__emoji-search-input:focus {
  outline: 2px solid var(--lp-chat-primary);
  outline-offset: -1px;
}
.lp-chat-room__emoji-item {
  appearance: none;
  line-height: 1;
}
.lp-chat-room__search-result {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  cursor: pointer;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-room__search-result:last-child {
  border-bottom: 0;
}
.lp-chat-room__search-result:hover {
  background: var(--lp-chat-bg-soft);
}
.lp-chat-room__search-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-room__search-result-author {
  font-weight: 600;
}
.lp-chat-room__search-result-snippet {
  font-size: 0.8125rem;
  color: var(--lp-chat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-chat-room__search-result-snippet mark {
  background: rgba(255, 235, 59, 0.4);
  padding: 0 2px;
  border-radius: 2px;
}
.lp-chat-room__search-empty {
  padding: 1rem;
  text-align: center;
  color: var(--lp-chat-muted);
  font-size: 0.875rem;
  margin: 0;
}
.lp-chat-room__toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 480px;
  padding: 0.625rem 1rem;
  background: var(--lp-chat-text);
  color: var(--lp-chat-on-primary);
  border-radius: var(--lp-chat-radius);
  box-shadow: var(--lp-chat-shadow-xl);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: var(--lp-chat-z-settings);
  animation: lp-chat-toast-in 0.25s ease-out;
}
.lp-chat-room__toast--success {
  background: var(--lp-chat-success);
}
.lp-chat-room__toast--error {
  background: var(--lp-chat-danger);
}
.lp-chat-room__toast--warning {
  background: var(--lp-chat-warning);
  color: var(--lp-chat-text);
}
.lp-chat-room__toast--info {
  background: var(--lp-chat-info);
}
.lp-chat-room__toast-icon svg {
  width: 18px;
  height: 18px;
}
.lp-chat-room__toast-message {
  flex: 1;
  min-width: 0;
}
.lp-chat-room__launcher {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  z-index: var(--lp-chat-z-launcher);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lp-chat-primary);
  color: var(--lp-chat-on-primary);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: var(--lp-chat-shadow-md);
  text-decoration: none;
  transform: translateY(-50%);
  transition: background-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.lp-chat-room__launcher:hover, .lp-chat-room__launcher:focus-visible {
  background: var(--lp-chat-primary-hover);
  outline: none;
  transform: translateY(calc(-50% - 1px));
}
.lp-chat-room__launcher:hover .lp-chat-room__launcher-label, .lp-chat-room__launcher:focus-visible .lp-chat-room__launcher-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.lp-chat-room__launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}
.lp-chat-room__launcher-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}
.lp-chat-room__launcher-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.lp-chat-room__launcher-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid rgba(17, 24, 39, 0.96);
  transform: translateY(-50%);
}

body:has(.lp-ai-assistant__toggle) .lp-chat-room__launcher {
  top: calc(50% + 70px);
}

.lp-chat-message {
  display: flex;
  align-self: flex-start;
  gap: 1.25rem;
  max-width: 80%;
  position: relative;
  animation: lp-chat-bubble-in 0.22s ease-out;
}
.lp-chat-message:hover .lp-chat-message__actions {
  opacity: 1;
  pointer-events: auto;
}
.lp-chat-message__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}
.lp-chat-message__avatar img {
  width: 100%;
  height: 100%;
  display: block;
}
.lp-chat-message__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.lp-chat-message__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-message__author {
  color: var(--lp-chat-text);
  font-size: 0.75rem;
  line-height: 1.5;
}
.lp-chat-message__author--instructor {
  color: #0891b2;
}
.lp-chat-message__author--ai {
  color: #7c3aed;
}
.lp-chat-message__badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: var(--lp-chat-radius);
  font-weight: 500;
}
.lp-chat-message__badge--instructor {
  background: #cffafe;
  color: #0891b2;
}
.lp-chat-message__badge--ai {
  background: #ede9fe;
  color: #7c3aed;
}
.lp-chat-message__time {
  font-size: 0.6875rem;
  color: var(--lp-chat-muted);
  white-space: nowrap;
}
.lp-chat-message__bubble {
  display: inline-block;
  position: relative;
  padding: 0.75rem;
  border-radius: var(--lp-chat-radius);
  background: var(--lp-chat-bg-soft);
  color: var(--lp-chat-text);
  word-wrap: break-word;
  max-width: min(32rem, 100%);
}
.lp-chat-message__content {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
.lp-chat-message__content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-chat-message__content code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0 0.25rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.lp-chat-message--own {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.lp-chat-message--own .lp-chat-message__body {
  align-items: flex-end;
}
.lp-chat-message--own .lp-chat-message__meta {
  flex-direction: row-reverse;
}
.lp-chat-message--optimistic .lp-chat-message__bubble {
  opacity: 0.7;
}
.lp-chat-message--removing {
  pointer-events: none;
  animation: lp-chat-bubble-out 0.16s ease-in forwards;
}
.lp-chat-message--pinned-flash .lp-chat-message__bubble {
  animation: lp-chat-pin-flash 0.85s ease-out;
}
.lp-chat-message--failed {
  opacity: 0.5;
}
.lp-chat-message--failed .lp-chat-message__bubble {
  border: 1px dashed var(--lp-chat-danger);
}
.lp-chat-message__actions {
  position: absolute;
  bottom: calc(100% + 0.25rem);
  right: 0;
  display: flex;
  gap: 0.125rem;
  padding: 0.125rem;
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  box-shadow: var(--lp-chat-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 2;
}
.lp-chat-message__action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--lp-chat-muted);
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}
.lp-chat-message__action svg {
  width: 14px;
  height: 14px;
  display: block;
}
.lp-chat-message__action:hover {
  background: var(--lp-chat-bg-soft);
  color: var(--lp-chat-text);
}
.lp-chat-message__action:focus-visible {
  outline: 2px solid var(--lp-chat-primary);
  outline-offset: 1px;
}
.lp-chat-message__action--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--lp-chat-danger);
}
.lp-chat-message__reply-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.375rem;
  background: var(--lp-chat-bg-soft);
  border-left: 3px solid var(--lp-chat-primary);
  border-radius: var(--lp-chat-radius);
  font-size: 0.8125rem;
  animation: lp-chat-bubble-in 0.18s ease-out;
}
.lp-chat-message__reply-icon {
  color: var(--lp-chat-primary);
  flex-shrink: 0;
}
.lp-chat-message__reply-icon svg {
  width: 14px;
  height: 14px;
}
.lp-chat-message__reply-name {
  font-weight: 600;
  color: var(--lp-chat-text);
  flex-shrink: 0;
}
.lp-chat-message__reply-excerpt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lp-chat-muted);
}
.lp-chat-message__reply-close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--lp-chat-muted);
  padding: 0 0.25rem;
}
.lp-chat-message__reply-close:hover {
  color: var(--lp-chat-text);
}
.lp-chat-message__reply-preview {
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-left: 2px solid var(--lp-chat-primary);
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
  border-radius: 4px;
}
.lp-chat-message__edited {
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--lp-chat-muted);
  margin-left: 0.25rem;
}

.lp-chat-mention {
  text-decoration: none;
}

.lp-chat-room-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--lp-chat-z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lp-chat-room-overlay[data-state=open] {
  display: flex;
}
.lp-chat-room-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: lp-chat-fade-in 0.2s ease-out;
}
.lp-chat-room-overlay__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  height: 85vh;
  background: var(--lp-chat-bg);
  border-radius: var(--lp-chat-radius-lg);
  box-shadow: var(--lp-chat-shadow-xl);
  display: flex;
  flex-direction: column;
  animation: lp-chat-scale-in 0.2s ease-out;
}
.lp-chat-room-overlay__panel .lp-chat-room {
  border: 0;
  border-radius: 0;
  height: 100%;
}
.lp-chat-room-overlay__panel .lp-chat-room__container {
  height: 100%;
  min-height: 0;
}
.lp-chat-room-overlay__sr-title {
  position: absolute;
  left: -9999px;
}

.lp-chat-modal {
  position: fixed;
  inset: 0;
  z-index: var(--lp-chat-z-settings);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lp-chat-modal[data-state=open] {
  display: flex;
}
.lp-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: lp-chat-fade-in 0.2s ease-out;
}
.lp-chat-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  background: var(--lp-chat-bg);
  border-radius: var(--lp-chat-radius-lg);
  box-shadow: var(--lp-chat-shadow-xl);
  display: flex;
  flex-direction: column;
  animation: lp-chat-scale-in 0.2s ease-out;
}
.lp-chat-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
  background: #fff;
}
.lp-chat-modal__header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.lp-chat-modal__icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff8c4;
  color: var(--lp-chat-primary);
  flex-shrink: 0;
  border-radius: var(--lp-chat-radius);
}
.lp-chat-modal__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.lp-chat-modal__title {
  margin: 0 0 0.5rem;
}
.lp-chat-modal__description {
  margin: 0;
  font-size: 1rem;
  color: var(--lp-chat-muted);
}
.lp-chat-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  position: absolute;
  right: -10px;
  top: -10px;
  color: var(--lp-chat-text);
  background: var(--lp-chat-bg-soft);
  border-radius: 50%;
  box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.1019607843);
}
.lp-chat-modal__close svg {
  width: 16px;
  height: 16px;
  display: block;
}
.lp-chat-modal__close:hover {
  color: #fff;
  background: var(--lp-chat-primary);
}
.lp-chat-modal__tabs {
  display: flex;
  gap: 1.25rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
  overflow-x: auto;
}
.lp-chat-modal__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--lp-chat-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: color 0.2s, border-color 0.2s;
}
.lp-chat-modal__tab:hover, .lp-chat-modal__tab.is-active, .lp-chat-modal__tab[aria-selected=true] {
  color: var(--lp-chat-primary);
  border-width: 0 0 1px;
  border-bottom-color: var(--lp-chat-primary);
}
.lp-chat-modal__tab:hover svg path, .lp-chat-modal__tab.is-active svg path, .lp-chat-modal__tab[aria-selected=true] svg path {
  fill: var(--lp-chat-primary);
}
.lp-chat-modal__tab:focus {
  outline: 0;
}
.lp-chat-modal__body {
  padding: 1.25rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  flex: 1;
}
.lp-chat-modal__pane {
  display: none;
}
.lp-chat-modal__pane.is-active {
  display: block;
}
.lp-chat-modal__notice {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--lp-chat-radius);
  font-size: 0.875rem;
}
.lp-chat-modal__notice p {
  margin: 0;
}
.lp-chat-modal__notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.lp-chat-modal__notice--info {
  background: #d5f2fe;
  color: #007aff;
}
.lp-chat-modal__notice--warning {
  background: #fff0c5;
  color: #ff9500;
}
.lp-chat-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lp-chat-modal__list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  font-size: 0.875rem;
}
.lp-chat-modal__list-item-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}
.lp-chat-modal__list-item-info {
  flex: 1;
  min-width: 0;
}
.lp-chat-modal__list-item-name {
  font-weight: 600;
  color: var(--lp-chat-text);
}
.lp-chat-modal__list-item-meta {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-modal__list-item-actions {
  flex-shrink: 0;
}
.lp-chat-modal__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.lp-chat-modal__stat {
  padding: 1.25rem;
  border-radius: var(--lp-chat-radius);
  background: var(--lp-chat-bg-soft);
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}
.lp-chat-modal__stat-label {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-modal__stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--lp-chat-text);
}
.lp-chat-modal__stat--messages .lp-chat-modal__stat--left {
  background: #d5f2fe;
}
.lp-chat-modal__stat--messages .lp-chat-modal__stat--left svg path {
  fill: #007aff;
}
.lp-chat-modal__stat--response .lp-chat-modal__stat--left {
  background: #dff8cf;
}
.lp-chat-modal__stat--active .lp-chat-modal__stat--left {
  background: rgba(175, 82, 222, 0.1019607843);
}
.lp-chat-modal__stat--pinned .lp-chat-modal__stat--left {
  background: rgba(255, 45, 85, 0.1019607843);
}
.lp-chat-modal__stat--pinned .lp-chat-modal__stat--left svg path {
  fill: #ff3b30;
}
.lp-chat-modal__stat--left {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.lp-chat-modal__stat--right {
  display: flex;
  flex-direction: column;
}
.lp-chat-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid var(--lp-chat-border);
  background: var(--lp-chat-bg-soft);
}

/* Surface 1 — Course page (discussion tab + modern layout) */
.learnpress.course .lp-chat-room,
.lp-modern-course .lp-chat-room,
.course-tab-panel--discussion .lp-chat-room {
  width: 100%;
  height: clamp(600px, 70vh, 900px);
  min-height: 0;
  margin: 1rem 0;
}
.learnpress.course .lp-chat-message__content,
.learnpress.course .lp-chat-room__sidebar-title,
.learnpress.course .lp-chat-room__header-title,
.lp-modern-course .lp-chat-message__content,
.lp-modern-course .lp-chat-room__sidebar-title,
.lp-modern-course .lp-chat-room__header-title,
.course-tab-panel--discussion .lp-chat-message__content,
.course-tab-panel--discussion .lp-chat-room__sidebar-title,
.course-tab-panel--discussion .lp-chat-room__header-title {
  all: revert;
  font: inherit;
}

body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper),
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper),
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper),
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) {
  align-items: stretch !important;
  gap: 10px;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons,
body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-wrapper,
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons,
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-wrapper,
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons,
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-wrapper,
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons,
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-wrapper {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons > a,
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons > a,
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons > a,
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons > a {
  display: flex;
  height: 100%;
  min-width: 0;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
.learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
.lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
.course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button {
  height: 100%;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper .discussion-modern-wrapper,
.learnpress.course .course-buttons__wrapper .discussion-modern-wrapper,
.lp-modern-course .course-buttons__wrapper .discussion-modern-wrapper,
.course-tab-panel--discussion .course-buttons__wrapper .discussion-modern-wrapper {
  margin: 0;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button,
.learnpress.course .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button,
.lp-modern-course .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button,
.course-tab-panel--discussion .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0.6875rem 1.25rem;
  background: var(--lp-chat-bg-soft);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  color: var(--lp-chat-text);
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
body.single-lp_course.learnpress-page .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button:hover,
.learnpress.course .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button:hover,
.lp-modern-course .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button:hover,
.course-tab-panel--discussion .course-buttons__wrapper .discussion-modern-wrapper .discussion-modern-button:hover {
  background: var(--lp-chat-primary);
  border-color: var(--lp-chat-primary);
  color: var(--lp-chat-on-primary);
}
@media (max-width: 1200px) {
  body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
  body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
  .learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
  .learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
  .lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
  .lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button,
  .course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons .lp-button,
  .course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .course-buttons button {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  body.single-lp_course.learnpress-page .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-button,
  .learnpress.course .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-button,
  .lp-modern-course .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-button,
  .course-tab-panel--discussion .course-buttons__wrapper:has(.discussion-modern-wrapper) .discussion-modern-button {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Surface 2 — Course item page (lesson / quiz / assignment) */
body.single-lp_lesson #lp-chat-room-launcher,
body.single-lp_lesson .lp-chat-room__launcher,
body.single-lp_quiz #lp-chat-room-launcher,
body.single-lp_quiz .lp-chat-room__launcher,
body.single-lp_assignment #lp-chat-room-launcher,
body.single-lp_assignment .lp-chat-room__launcher,
.lp-course-item-content #lp-chat-room-launcher,
.lp-course-item-content .lp-chat-room__launcher {
  z-index: calc(var(--lp-chat-z-launcher) + 1);
}

#lp-chat-room-overlay {
  z-index: var(--lp-chat-z-overlay);
}

#lp-chat-room-settings {
  z-index: var(--lp-chat-z-settings);
}

/* Admin bar offset — keep fixed overlay below the WP admin bar */
.admin-bar .lp-chat-room-overlay {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .lp-chat-room-overlay {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  .admin-bar .lp-chat-room-overlay {
    top: 0;
  }
}

/* Surface 3 — Profile page (Messages tab) */
.lp-profile #profile-content-messages .lp-chat-rooms-list,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list {
  margin: 0;
  padding: 0;
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__empty,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__empty,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__empty,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__empty {
  padding: 2rem;
  text-align: center;
  color: var(--lp-chat-muted);
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__items,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__items,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__items,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__item,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__item,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__item,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__item {
  background: var(--lp-chat-bg);
  border: 1px solid var(--lp-chat-border);
  border-radius: var(--lp-chat-radius);
  transition: border-color 0.25s, background-color 0.25s;
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__item:hover,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__item:hover,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__item:hover,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__item:hover {
  border-color: var(--lp-chat-primary);
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__link,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__link,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__link,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__name,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__name,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__name,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__name {
  font-weight: 600;
}
.lp-profile #profile-content-messages .lp-chat-rooms-list__time,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__time,
.lp-user-profile #profile-content-messages .lp-chat-rooms-list__time,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-rooms-list__time {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-profile #profile-content-messages .lp-chat-room--inline,
.lp-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-room--inline,
.lp-user-profile #profile-content-messages .lp-chat-room--inline,
.lp-user-profile .profile-content-tabs__tab[data-content=messages] .lp-chat-room--inline {
  height: clamp(500px, 70vh, 900px);
  min-height: 0;
}

@keyframes lp-chat-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lp-chat-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes lp-chat-typing-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes lp-chat-toast-in {
  from {
    transform: translate(-50%, 1rem);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
@keyframes lp-chat-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lp-chat-scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes lp-chat-bubble-in {
  from {
    transform: translateY(0.25rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes lp-chat-bubble-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(0.25rem);
    opacity: 0;
  }
}
@keyframes lp-chat-pin-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  }
  45% {
    box-shadow: 0 0 0 0.375rem rgba(245, 158, 11, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .lp-chat-room,
  .lp-chat-room *,
  .lp-chat-message,
  .lp-chat-modal,
  .lp-chat-room-overlay {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 1200px) {
  .lp-chat-room__header-text {
    flex: 1 1 0;
  }
  .lp-chat-room__header-subtitle {
    display: none;
  }
  .lp-chat-room__header-actions {
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
  }
  .lp-chat-room__header-actions .lp-chat-room__btn:not(.lp-chat-room__btn--close) {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    position: relative;
  }
  .lp-chat-room__header-actions .lp-chat-room__btn:not(.lp-chat-room__btn--close)[data-tooltip]::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 10;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .lp-chat-room__header-actions .lp-chat-room__btn:not(.lp-chat-room__btn--close)[data-tooltip]:hover::after, .lp-chat-room__header-actions .lp-chat-room__btn:not(.lp-chat-room__btn--close)[data-tooltip]:focus-visible::after {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .lp-chat-room__header-actions .lp-chat-room__btn:not(.lp-chat-room__btn--close) > span:not([aria-hidden=true]) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .lp-chat-room__sidebar {
    width: 220px;
  }
}
/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .lp-chat-room__container {
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .lp-chat-room__sidebar {
    display: none;
    width: 100%;
    transform: translateX(-100%);
  }
  .lp-chat-room__sidebar[data-state=open] {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--lp-chat-bg);
    transform: translateX(0);
  }
  .lp-chat-room__messages {
    min-height: 0;
  }
  .lp-chat-room__sidebar-close {
    display: inline-flex;
  }
  .lp-chat-room__header {
    padding: 0.5rem 0.75rem;
  }
  .lp-chat-room__composer {
    padding: 0.5rem 0.75rem;
  }
  .lp-chat-room__composer .lp-chat-message__reply-chip {
    left: 0.75rem;
    right: 0.75rem;
  }
  .lp-chat-room__launcher {
    right: 1rem;
  }
  .lp-chat-room-overlay__panel {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .lp-chat-modal {
    padding: 0.5rem;
  }
  .lp-chat-modal__panel {
    max-width: 100%;
  }
  .lp-chat-modal__stats {
    grid-template-columns: 1fr;
  }
  .lp-chat-modal__tabs {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
  .lp-chat-modal__body {
    padding: 0.75rem;
  }
  .lp-chat-modal__header {
    padding: 0.75rem;
  }
  .lp-chat-modal__footer {
    padding: 0.75rem;
  }
  .lp-chat-message {
    max-width: 90%;
  }
}
/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .lp-chat-room__emoji-panel {
    width: calc(100vw - 2rem);
    left: 1rem;
  }
  .lp-chat-room__mention-list {
    left: 0.5rem;
    right: 0.5rem;
  }
}
/* =============================================================================
   CHAT-12-06 — Moderation polish: pinned bar, banned/muted indicators
   ========================================================================== */
.lp-chat-room__pinned-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 235, 59, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 4;
}
.lp-chat-room__pinned-bar-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b5b00;
}
.lp-chat-room__pinned-bar-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.lp-chat-room__pinned-bar-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  line-height: 1.4;
}
.lp-chat-room__pinned-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 6rem;
  overflow-y: auto;
}
.lp-chat-room__pinned-bar-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lp-chat-room__pinned-bar-item:hover, .lp-chat-room__pinned-bar-item:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}
.lp-chat-room__pinned-bar-name {
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-chat-room__pinned-bar-excerpt {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-chat-message--pinned {
  position: relative;
}
.lp-chat-message--pinned::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23eab308"><path d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"/></svg>') no-repeat center/contain;
  opacity: 0.9;
}
.lp-chat-message.lp-chat-message--own.lp-chat-message--pinned::after {
  right: auto;
  left: 0.25rem;
}
.lp-chat-message--banned-author {
  opacity: 0.4;
  filter: grayscale(1);
}

.lp-chat-message__action--active {
  color: #eab308;
}

.lp-chat-room__member--muted .lp-chat-room__member-name {
  text-decoration: line-through;
  opacity: 0.65;
}
.lp-chat-room__member--banned .lp-chat-room__member-name {
  color: #dc2626;
  text-decoration: line-through;
  opacity: 0.65;
}

.lp-chat-room__composer--locked {
  opacity: 0.65;
}
.lp-chat-room__composer--locked [data-target=composer-input],
.lp-chat-room__composer--locked button[type=submit] {
  cursor: not-allowed;
}

/* =============================================================================
   CHAT-13 — Message interactions: reply quote, edited, tombstone, reactions
   ========================================================================== */
.lp-chat-message__reply-quote {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
  max-width: 100%;
  min-width: 0;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background-color 0.15s ease;
}
.lp-chat-message__reply-quote:hover, .lp-chat-message__reply-quote:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}
.lp-chat-message__reply-quote-name {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}
.lp-chat-message__reply-quote-excerpt {
  display: block;
  max-width: 100%;
  color: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-chat-message__reply-quote--deleted {
  cursor: default;
  font-style: italic;
}
.lp-chat-message__reply-quote--deleted:hover {
  background: rgba(0, 0, 0, 0.03);
}

.lp-chat-message__edited {
  margin-left: 0.35rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-style: italic;
  cursor: help;
}

.lp-chat-message--deleted .lp-chat-message__bubble {
  opacity: 0.65;
}
.lp-chat-message--deleted .lp-chat-message__actions {
  display: none !important;
}
.lp-chat-message--deleted .lp-chat-message__reactions .lp-chat-message__reaction {
  cursor: default;
  opacity: 0.7;
}

.lp-chat-message__content--deleted {
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
}

.lp-chat-message__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.lp-chat-message__reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.lp-chat-message__reaction:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.lp-chat-message__reaction--mine {
  background: rgba(34, 139, 230, 0.12);
  border-color: rgba(34, 139, 230, 0.35);
  color: #1864ab;
}
.lp-chat-message__reaction[disabled] {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

.lp-chat-message__reaction-emoji {
  font-size: 1rem;
}

.lp-chat-message__reaction-count {
  font-weight: 600;
}

.lp-chat-message__reaction-picker {
  position: fixed;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 50;
  animation: lp-chat-scale-in 0.15s ease-out;
}

.lp-chat-message__reaction-pick {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.lp-chat-message__reaction-pick:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.15);
}

/* =============================================================================
   CHAT-14 — Composer polish: emoji grid, mentions, reason prompt
   ========================================================================== */
/* Emoji picker (Phase 05 stub fleshed out). */
.lp-chat-room__emoji-panel {
  position: absolute;
  bottom: 100%;
  left: 0.5rem;
  margin-bottom: 0.5rem;
  width: 280px;
  max-height: 320px;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--lp-chat-border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 30;
  animation: lp-chat-scale-in 0.15s ease-out;
  overflow: hidden;
}
.lp-chat-room__emoji-panel[data-state=open] {
  display: flex;
}

.lp-chat-room__emoji-search {
  padding: 0.5rem;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-room__emoji-search-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--lp-chat-border);
  border-radius: 6px;
  font-size: 0.85rem;
}

.lp-chat-room__emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.15rem;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.lp-chat-room__emoji-item {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.lp-chat-room__emoji-item:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.15);
}
.lp-chat-room__emoji-item--hidden {
  display: none;
}

/* Mention autocomplete dropdown. */
.lp-chat-room__mention-list {
  position: absolute;
  bottom: 100%;
  left: 0.5rem;
  margin-bottom: 0.5rem;
  width: 240px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lp-chat-border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 30;
  animation: lp-chat-scale-in 0.15s ease-out;
}
.lp-chat-room__mention-list-empty {
  padding: 0.75rem;
  text-align: center;
  color: var(--lp-chat-muted);
  font-size: 0.8125rem;
}

.lp-chat-room__mention-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
}
.lp-chat-room__mention-item:hover, .lp-chat-room__mention-item.is-selected {
  background: rgba(34, 139, 230, 0.12);
}
.lp-chat-room__mention-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Inline mention chip rendered inside bubbles. */
.lp-chat-mention {
  display: inline;
  padding: 0 0.25rem;
  border-radius: 4px;
  background: rgba(34, 139, 230, 0.12);
  color: #1864ab;
  font-weight: 600;
  cursor: pointer;
}
.lp-chat-mention--mine {
  background: rgba(34, 139, 230, 0.25);
}

/* Ban / mute reason prompt — positioned inside .lp-chat-room__main. */
.lp-chat-room__reason-prompt {
  position: absolute;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--lp-chat-border);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  width: min(320px, 100vw - 2rem);
  animation: lp-chat-reason-in 0.15s ease-out;
}
.lp-chat-room__reason-prompt-label {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.lp-chat-room__reason-prompt-input {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--lp-chat-border);
  border-radius: 6px;
  padding: 0.35rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}
.lp-chat-room__reason-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

/* =============================================================================
   CHAT-15 — Moderator power: announcement, room-lock banner, room mgmt modal
   ========================================================================== */
.lp-chat-room__announcement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--lp-chat-border);
  font-size: 0.85rem;
  line-height: 1.4;
}
.lp-chat-room__announcement--low {
  background: rgba(34, 139, 230, 0.08);
  color: #1864ab;
}
.lp-chat-room__announcement--medium {
  background: rgba(245, 159, 0, 0.12);
  color: #b35900;
}
.lp-chat-room__announcement--high {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
  font-weight: 600;
}
.lp-chat-room__announcement-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.lp-chat-room__announcement-content {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.lp-chat-room__lock-banner {
  padding: 0.5rem 0.75rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
  color: var(--lp-chat-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--lp-chat-border);
}

/* Room management modal — moderator-only aggregated panel */
.lp-chat-modal--room-management {
  position: fixed;
  inset: 0;
  z-index: var(--lp-chat-z-settings);
  display: none;
}
.lp-chat-modal--room-management[data-state=open] {
  display: block;
}
.lp-chat-modal--room-management .lp-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  animation: lp-chat-fade-in 0.2s ease-out;
}
.lp-chat-modal--room-management .lp-chat-modal__dialog {
  position: relative;
  max-width: 640px;
  margin: 4rem auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  animation: lp-chat-scale-in 0.15s ease-out;
}
.lp-chat-modal--room-management .lp-chat-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-modal--room-management .lp-chat-modal__title {
  margin: 0;
}
.lp-chat-modal--room-management .lp-chat-modal__body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}
.lp-chat-modal--room-management .lp-chat-modal__section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-modal--room-management .lp-chat-modal__section:last-child {
  border-bottom: 0;
}
.lp-chat-modal--room-management .lp-chat-modal__section-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-chat-modal--room-management .lp-chat-modal__count {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
}
.lp-chat-modal--room-management .lp-chat-modal__announcement-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--lp-chat-border);
  border-radius: 6px;
  padding: 0.5rem;
  resize: vertical;
  font-size: 0.875rem;
  font-family: inherit;
}
.lp-chat-modal--room-management .lp-chat-modal__priority,
.lp-chat-modal--room-management .lp-chat-modal__status-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.lp-chat-modal--room-management .lp-chat-modal__priority button,
.lp-chat-modal--room-management .lp-chat-modal__status-toggle button {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--lp-chat-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.8125rem;
}
.lp-chat-modal--room-management .lp-chat-modal__priority button.is-active,
.lp-chat-modal--room-management .lp-chat-modal__status-toggle button.is-active {
  background: var(--lp-chat-primary);
  color: #fff;
  border-color: var(--lp-chat-primary);
}
.lp-chat-modal--room-management .lp-chat-modal__section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.lp-chat-modal--room-management .lp-chat-modal__member-list {
  max-height: 280px;
  overflow-y: auto;
}
.lp-chat-modal--room-management .lp-chat-modal__member-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
}
.lp-chat-modal--room-management .lp-chat-modal__member-row:last-child {
  border-bottom: 0;
}
.lp-chat-modal--room-management .lp-chat-modal__member-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.lp-chat-modal--room-management .lp-chat-modal__member-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-chat-modal--room-management .lp-chat-modal__member-badges {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.lp-chat-modal--room-management .lp-chat-modal__member-badge {
  font-size: 0.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}
.lp-chat-modal--room-management .lp-chat-modal__member-badge--mod {
  background: rgba(34, 139, 230, 0.18);
  color: #1864ab;
}
.lp-chat-modal--room-management .lp-chat-modal__member-badge--banned {
  background: rgba(220, 38, 38, 0.18);
  color: #991b1b;
}
.lp-chat-modal--room-management .lp-chat-modal__member-badge--muted {
  background: rgba(245, 159, 0, 0.18);
  color: #b35900;
}
.lp-chat-modal--room-management .lp-chat-modal__member-actions {
  display: flex;
  gap: 0.2rem;
}
.lp-chat-modal--room-management .lp-chat-modal__inline-btn {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--lp-chat-border);
  background: #fff;
  cursor: pointer;
}
.lp-chat-modal--room-management .lp-chat-modal__inline-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}
.lp-chat-modal--room-management .lp-chat-modal__inline-btn--danger {
  border-color: var(--lp-chat-danger);
  color: var(--lp-chat-danger);
}
.lp-chat-modal--room-management .lp-chat-modal__inline-btn--danger:hover {
  background: rgba(220, 38, 38, 0.08);
}
.lp-chat-modal--room-management .lp-chat-modal__empty {
  padding: 1rem;
  text-align: center;
  color: var(--lp-chat-muted);
  font-size: 0.85rem;
}

/* =============================================================================
   CHAT-16 — Reading experience: search, settings panes, receipts, tooltip, banner
   ========================================================================== */
/* Sidebar search results dropdown.
   `.lp-chat-room__search { position: relative }` is already set by the
   `&__search` rule in the core sidebar block, so it is not repeated here. */
.lp-chat-room__search-results {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 100%;
  margin-top: -0.25rem;
  z-index: 25;
  background: #fff;
  border: 1px solid var(--lp-chat-border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
}
.lp-chat-room__search-results--empty {
  padding: 1rem;
  text-align: center;
  color: var(--lp-chat-muted);
  font-size: 0.85rem;
}
.lp-chat-room__search-results-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lp-chat-room__search-results-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.lp-chat-room__search-results-item mark {
  background: rgba(255, 235, 59, 0.35);
  padding: 0 0.15rem;
  border-radius: 2px;
}
.lp-chat-room__search-results-name {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
}
.lp-chat-room__search-results-excerpt {
  display: block;
  font-size: 0.8125rem;
  color: var(--lp-chat-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-chat-room__search-results-time {
  display: block;
  font-size: 0.7rem;
  color: var(--lp-chat-muted);
  margin-top: 0.1rem;
}

/* Settings modal — user rows + stat cards */
.lp-chat-modal__user-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lp-chat-modal__user-row img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.lp-chat-modal__user-row-name {
  font-weight: 600;
  font-size: 0.875rem;
}
.lp-chat-modal__user-row-reason {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}

.lp-chat-modal__pinned-row {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lp-chat-modal__pinned-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}
.lp-chat-modal__pinned-row-time {
  color: var(--lp-chat-muted);
  font-size: 0.75rem;
}
.lp-chat-modal__pinned-row-excerpt {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--lp-chat-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-chat-modal__pinned-row-actions {
  display: flex;
  gap: 0.25rem;
}

.lp-chat-modal__empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--lp-chat-muted);
  font-size: 0.875rem;
}

/* Reactor tooltip — hover above a reaction chip */
.lp-chat-message__reaction-tooltip {
  position: fixed;
  z-index: 60;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  animation: lp-chat-scale-in 0.12s ease-out;
  pointer-events: none;
}

/* Composer banner — banned / muted viewer state */
.lp-chat-room__viewer-banner {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--lp-chat-border);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  font-size: 0.875rem;
}
.lp-chat-room__viewer-banner--muted {
  background: rgba(245, 159, 0, 0.08);
  color: #b35900;
}
.lp-chat-room__viewer-banner-title {
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.lp-chat-room__viewer-banner-reason {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin: 0;
}
.lp-chat-room__viewer-banner-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

.lp-chat-room-access-notice {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: var(--lp-chat-radius);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  text-align: center;
}
.lp-chat-room-access-notice__title {
  margin: 0;
  font-weight: 700;
}
.lp-chat-room-access-notice__reason {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  opacity: 0.86;
}
.lp-chat-room-access-notice .lp-chat-room__btn {
  margin-top: 0.75rem;
}

/* =============================================================================
   CHAT-17 — Presence + mobile polish
   ========================================================================== */
/* Presence dots on member rows (Phase 17 sub-task 01) */
.lp-chat-room__member-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  flex-shrink: 0;
}

.lp-chat-room__member[data-online="1"] .lp-chat-room__member-status {
  background: #22c55e;
}

/* Sidebar stats grid (Phase 17 sub-task 03) */
.lp-chat-room__sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.lp-chat-room__sidebar-stats-item {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}
.lp-chat-room__sidebar-stats-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lp-chat-primary);
}
.lp-chat-room__sidebar-stats-label {
  font-size: 0.65rem;
  color: var(--lp-chat-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =============================================================================
   CHAT-18 — Instructor "Chat Management" profile tab
   ========================================================================== */
.lp-chat-management {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lp-chat-management__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lp-chat-management__title h3 {
  margin: 0 0 0.5rem;
  font-size: 1.625rem;
}
.lp-chat-management__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--lp-chat-muted);
}
.lp-chat-management__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.lp-chat-management__stat-card {
  background: #f7f7fb;
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.lp-chat-management__stat-card--messages .lp-chat-management__stat-card-left {
  background: #d5f2fe;
}
.lp-chat-management__stat-card--messages .lp-chat-management__stat-card-left svg path {
  fill: #007aff;
}
.lp-chat-management__stat-card--response .lp-chat-management__stat-card-left {
  background: #dff8cf;
}
.lp-chat-management__stat-card--active .lp-chat-management__stat-card-left {
  background: rgba(175, 82, 222, 0.1019607843);
}
.lp-chat-management__stat-card--pinned .lp-chat-management__stat-card-left {
  background: rgba(255, 45, 85, 0.1019607843);
}
.lp-chat-management__stat-card--pinned .lp-chat-management__stat-card-left svg path {
  fill: #ff3b30;
}
.lp-chat-management__stat-card .lp-chat-management__stat-card-left {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.lp-chat-management__stat-value {
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--lp-chat-text);
  line-height: 1.1;
  margin: 0.5rem 0 0;
}
.lp-chat-management__stat-label {
  font-size: 0.875rem;
  color: var(--lp-chat-text);
  text-transform: uppercase;
}
.lp-chat-management__switcher {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lp-chat-border);
}
.lp-chat-management__section-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.lp-chat-management__section-description {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--lp-chat-muted);
}
.lp-chat-management__select {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lp-chat-border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--lp-chat-bg);
}
.lp-chat-management__chat-wrap {
  margin-top: 1rem;
}
.lp-chat-management__chat-mount {
  min-height: 200px;
}
.lp-chat-management__empty {
  margin-top: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--lp-chat-muted);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  font-size: 0.9rem;
}
.lp-chat-management__notice {
  padding: 1rem;
  background: rgba(34, 139, 230, 0.08);
  color: #1864ab;
  border-radius: 8px;
  font-size: 0.9rem;
}
.lp-chat-management__loading {
  padding: 2rem;
  text-align: center;
  color: var(--lp-chat-muted);
}
.lp-chat-management {
  /* Room list inside the manage-rooms modal */
}
.lp-chat-management__room-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lp-chat-management__room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}
.lp-chat-management__room-row[data-state=with-room] {
  background: rgba(34, 197, 94, 0.08);
}
.lp-chat-management__room-row-meta {
  flex: 1;
  min-width: 0;
}
.lp-chat-management__room-row-title {
  display: block;
  font-weight: 600;
  color: var(--lp-chat-text);
  text-decoration: none;
  margin-bottom: 0.15rem;
}
.lp-chat-management__room-row-title:hover {
  color: var(--lp-chat-primary);
}
.lp-chat-management__room-row-status {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
}
.lp-chat-management__room-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Instructor-rooms modal — re-uses .lp-chat-modal base */
.lp-chat-modal--instructor-rooms {
  position: fixed;
  inset: 0;
  z-index: var(--lp-chat-z-settings);
  display: none;
}
.lp-chat-modal--instructor-rooms[data-state=open] {
  display: block;
}
.lp-chat-modal--instructor-rooms .lp-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  animation: lp-chat-fade-in 0.2s ease-out;
}
.lp-chat-modal--instructor-rooms .lp-chat-modal__dialog {
  position: relative;
  max-width: 600px;
  margin: 4rem auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  animation: lp-chat-scale-in 0.15s ease-out;
}
.lp-chat-modal--instructor-rooms .lp-chat-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lp-chat-border);
}
.lp-chat-modal--instructor-rooms .lp-chat-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.lp-chat-modal--instructor-rooms .lp-chat-modal__body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

/* =============================================================================
   Ban / Mute polish — animations + visual state (post-Phase 17 follow-up)
   ========================================================================== */
/* Reason prompt — duration picker + hint + leave animation */
.lp-chat-room__reason-prompt {
  animation: lp-chat-reason-in 0.15s ease-out;
}
.lp-chat-room__reason-prompt--leaving {
  animation: lp-chat-scale-out 0.16s ease-in forwards;
}
.lp-chat-room__reason-prompt-duration {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}
.lp-chat-room__reason-prompt-duration-label {
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lp-chat-room__reason-prompt-duration-select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--lp-chat-border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
}
.lp-chat-room__reason-prompt-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--lp-chat-muted);
  font-style: italic;
}

@keyframes lp-chat-reason-in {
  from {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes lp-chat-scale-out {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
  }
}
/* Member row — banned / muted visual state with smooth transitions */
.lp-chat-room__member {
  transition: opacity 0.25s ease, background-color 0.25s ease, filter 0.25s ease;
}
.lp-chat-room__member--muted {
  opacity: 0.65;
  filter: grayscale(35%);
}
.lp-chat-room__member--muted .lp-chat-room__member-name {
  text-decoration: line-through;
  text-decoration-color: rgba(245, 159, 0, 0.55);
  text-decoration-thickness: 1.5px;
  color: #b35900;
}
.lp-chat-room__member--muted::after {
  content: "🔇";
  margin-left: auto;
  font-size: 0.85rem;
  animation: lp-chat-badge-in 0.25s ease-out;
}
.lp-chat-room__member--banned {
  opacity: 0.55;
  filter: grayscale(60%);
}
.lp-chat-room__member--banned .lp-chat-room__member-name {
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.6);
  text-decoration-thickness: 1.5px;
  color: #991b1b;
}
.lp-chat-room__member--banned::after {
  content: "⛔";
  margin-left: auto;
  font-size: 0.85rem;
  animation: lp-chat-badge-in 0.25s ease-out;
}
.lp-chat-room__member {
  /* If both states apply, the ban indicator wins. */
}
.lp-chat-room__member--banned.lp-chat-room__member--muted::after {
  content: "⛔";
}

/* Bubble dim animation when a sender is banned */
.lp-chat-message {
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.lp-chat-message--banned-author {
  opacity: 0.42;
  filter: grayscale(35%);
  animation: lp-chat-bubble-dim 0.35s ease-out;
}
.lp-chat-message--banned-author .lp-chat-message__bubble {
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.45);
}

@keyframes lp-chat-badge-in {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes lp-chat-bubble-dim {
  0% {
    opacity: 1;
    filter: grayscale(0);
  }
  100% {
    opacity: 0.42;
    filter: grayscale(35%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-chat-room__member,
  .lp-chat-message,
  .lp-chat-room__member--muted::after,
  .lp-chat-room__member--banned::after,
  .lp-chat-message--banned-author {
    transition: none !important;
    animation: none !important;
  }
}