/* =========================================================================
   WHISPER DEDICATED LAYOUT & STYLES (Pixel-Perfect from whisper.png)
   ========================================================================= */

:root {
  --whisper-bg-page: #FAF6F0;
  --whisper-bg-card: #FFFFFF;
  --whisper-text-dark: #1E2522;
  --whisper-text-secondary: #4A574E;
  --whisper-text-muted: #8E9890;
  --whisper-accent-green: #F3621B;
  --whisper-accent-gold: #F3621B;
  --whisper-border: #EFE8DE;
}

body.whisper-page {
  background-color: var(--whisper-bg-page);
  color: var(--whisper-text-dark);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
}

/* Master 3-Column Grid */
.whisper-master-grid {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  gap: 1.75rem;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  margin: 1.5rem auto;
  padding: 0 2.5rem;
  align-items: start;
}

/* -------------------------------------------------------------------------
   COLUMN 1: TOPICS SIDEBAR
   ------------------------------------------------------------------------- */
.whisper-topics-card {
  background: var(--whisper-bg-card);
  border: 1px solid var(--whisper-border);
  border-radius: 20px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 2px 14px rgba(43, 66, 55, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.whisper-topics-label {
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--whisper-text-muted);
  margin-bottom: 0.65rem;
  padding-left: 0.5rem;
}

.whisper-topic-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--whisper-text-dark);
  transition: all 0.15s ease;
}

.whisper-topic-item:hover {
  background: #FFF3EA;
}

.whisper-topic-item.active {
  background: #FFE5D4;
  font-weight: 700;
}

.whisper-topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFF3EA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.whisper-topic-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.whisper-topic-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1E2522;
}

.whisper-topic-count {
  font-size: 0.72rem;
  color: var(--whisper-text-muted);
}

.whisper-explore-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--whisper-accent-green);
  text-decoration: none;
  margin-top: 0.85rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* -------------------------------------------------------------------------
   COLUMN 2: DISCUSSIONS & COMPOSER
   ------------------------------------------------------------------------- */
.whisper-center-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.whisper-page-header {
  margin-bottom: 0.25rem;
}

.whisper-main-heading {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #1A284D;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem 0;
}

.whisper-main-desc {
  font-size: 0.95rem;
  color: #232D28;
  margin: 0 0 0.15rem 0;
  font-weight: 500;
}

.whisper-main-tagline {
  font-size: 0.84rem;
  color: var(--whisper-text-muted);
  margin: 0;
}

.whisper-discussions-box {
  background: var(--whisper-bg-card);
  border: 1px solid var(--whisper-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(43, 66, 55, 0.03);
}

.whisper-disc-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--whisper-border);
}

.whisper-tab-group {
  display: flex;
  gap: 1.75rem;
}

.whisper-disc-tab {
  background: none;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--whisper-text-muted);
  cursor: pointer;
  padding-bottom: 0.75rem;
  margin-bottom: -0.8rem;
  transition: color 0.15s;
}

.whisper-disc-tab.active {
  color: #1E2522;
  border-bottom: 2px solid var(--whisper-accent-green);
}

.whisper-dropdown-top {
  background: none;
  border: 1px solid var(--whisper-border);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--whisper-text-secondary);
  cursor: pointer;
}

.whisper-disc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #F6F1EA;
  transition: background 0.15s;
}

.whisper-disc-row:hover {
  background: #FAF7F2;
}

.whisper-disc-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.whisper-disc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.whisper-disc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whisper-disc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E2522;
}

.whisper-disc-meta {
  font-size: 0.78rem;
  color: var(--whisper-text-muted);
}

.whisper-disc-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--whisper-text-muted);
}

.whisper-bookmark-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--whisper-text-muted);
  cursor: pointer;
  padding: 0;
}

.whisper-see-more-btn {
  width: 100%;
  padding: 0.85rem;
  background: #FAF7F2;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--whisper-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.whisper-see-more-btn:hover {
  background: #FFE5D4;
}

/* Bottom Composer Card */
.whisper-compose-card {
  background: #FFFFFF;
  border: 1px solid var(--whisper-border);
  border-radius: 20px;
  padding: 1rem 1.35rem;
  box-shadow: 0 2px 14px rgba(43, 66, 55, 0.02);
}

.whisper-compose-input-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #FFF3EA;
  border: 1px solid #FFE5D4;
  border-radius: 16px;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
}

.whisper-compose-feather {
  font-size: 1.15rem;
}

.whisper-compose-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: #1E2522;
}

.whisper-compose-btn {
  background: var(--whisper-accent-green);
  color: #FFF;
  border: none;
  border-radius: 12px;
  padding: 0.45rem 1.15rem;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.whisper-compose-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding-left: 0.5rem;
}

.whisper-action-chip {
  font-size: 0.82rem;
  color: var(--whisper-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

/* -------------------------------------------------------------------------
   COLUMN 3: HOST, GUIDELINES, ACTIVE NOW
   ------------------------------------------------------------------------- */
.whisper-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.whisper-host-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(43, 66, 55, 0.04);
  min-height: 340px;
}

.whisper-host-img {
  width: 100%;
  height: 340px;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
}

.whisper-guidelines-card {
  background: #FFFFFF;
  border: 1px solid var(--whisper-border);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 14px rgba(43, 66, 55, 0.02);
}

.whisper-guidelines-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1E2522;
  margin: 0 0 0.85rem 0;
}

.whisper-guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.whisper-guideline-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #38463D;
}

.whisper-guidelines-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--whisper-accent-green);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
}

.whisper-active-card {
  background: #FFFFFF;
  border: 1px solid var(--whisper-border);
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 14px rgba(43, 66, 55, 0.02);
}

.whisper-active-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1E2522;
  margin: 0 0 0.75rem 0;
}

.whisper-active-avatars-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.whisper-active-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.whisper-active-count-badge {
  padding: 0.3rem 0.65rem;
  border-radius: 14px;
  background: #FFF3EA;
  border: 1px solid #FFE5D4;
  font-size: 0.76rem;
  font-weight: 700;
  color: #F3621B;
}

.wcr-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  background: #FAF7F2;
  border: 1px solid #F0E8DC;
  transition: background 0.15s;
}

.wcr-user-item:hover {
  background: #F4ECE0;
}

.wcr-user-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.wcr-user-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wcr-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.wcr-user-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #48BB78;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
}

.wcr-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wcr-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E2522;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcr-user-handle {
  font-size: 0.72rem;
  color: #8E9890;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcr-user-invite-btn {
  background: #FFFFFF;
  border: 1px solid #E0D6C8;
  border-radius: 12px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #F3621B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.wcr-user-invite-btn:hover {
  background: #F3621B;
  color: #FFFFFF;
  border-color: #F3621B;
}

.wcr-ribbon-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #EAE2D5;
  border-radius: 16px;
  padding: 2px 8px 2px 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #F3621B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.wcr-ribbon-chip:hover {
  background: #F4ECE0;
  border-color: #F3621B;
  transform: translateY(-1px);
}

.wcr-ribbon-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1200px) {
  .whisper-master-grid {
    grid-template-columns: 220px 1fr;
    padding: 0 1.5rem;
  }
  .whisper-right-col {
    display: none;
  }
}

@media (max-width: 768px) {
  .whisper-master-grid {
    grid-template-columns: 1fr;
    padding: 0 0.75rem;
    margin: 0.75rem auto;
    gap: 1rem;
  }
  .whisper-topics-card {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.6rem 0.75rem;
    border-radius: 16px;
  }
  .whisper-topics-card::-webkit-scrollbar {
    display: none;
  }
  .whisper-topics-card h3,
  .whisper-topics-card .whisper-explore-link {
    display: none;
  }
  .whisper-topics-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    white-space: nowrap;
  }
  .whisper-topic-item {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #FFF3EA;
    border: 1px solid var(--whisper-border);
    flex-shrink: 0;
    gap: 0.4rem;
  }
  .whisper-topic-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
  .whisper-topic-count {
    display: none;
  }
  .whisper-feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .whisper-new-disc-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================================
   FORUM CARD & NEW DISCUSSION BUTTON STYLES
   ========================================================================= */
.whisper-new-disc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F3621B;
  color: #FFFDF8;
  border: none;
  border-radius: 20px;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 66, 55, 0.15);
  transition: all 0.2s ease;
}
.whisper-new-disc-btn:hover {
  background: #385547;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 66, 55, 0.22);
}

.whisper-forum-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem 1.45rem;
  border-bottom: 1px solid #F0E8DC;
  transition: background 0.18s ease;
}
.whisper-forum-card:hover {
  background: rgba(250, 245, 238, 0.45);
}

.wfc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.wfc-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
}
.wfc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(43,66,55,0.08);
}
.wfc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wfc-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1E2522;
  line-height: 1.35;
}
.wfc-byline {
  font-size: 0.78rem;
  color: #8E9890;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.wfc-byline strong {
  color: #F3621B;
}
.wfc-topic-pill {
  background: #FFF3EA;
  border: 1px solid #FFE5D4;
  padding: 1px 8px;
  border-radius: 10px;
  color: #4A5D52;
  font-size: 0.74rem;
  font-weight: 600;
}
.wfc-dot {
  color: #C5BCB0;
}

.wfc-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.wfc-btn-haven {
  background: #FFF3EA;
  border: 1px solid #FFE5D4;
  border-radius: 14px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  color: #F3621B;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wfc-btn-haven:hover {
  background: #F3621B;
  color: #FFFDF8;
}
.wfc-btn-save {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wfc-btn-save:hover {
  background: #FFF3EA;
  border-color: #FFE5D4;
}

.wfc-content {
  font-size: 0.88rem;
  color: #38463D;
  line-height: 1.6;
  margin-left: 54px;
}

.wfc-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 54px;
  font-size: 0.78rem;
  color: #8E9890;
}
.wfc-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.wfc-live {
  color: #4A7563;
  font-weight: 600;
}
.wfc-sara-btn {
  margin-left: auto;
  background: #FFF3EA;
  border: 1px solid #FFE5D4;
  border-radius: 14px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: #F3621B;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wfc-sara-btn:hover {
  background: #F3621B;
  color: #FFFDF8;
}

.wfc-replies {
  margin-left: 54px;
}
.wfc-reply-bar {
  display: flex;
  gap: 0.5rem;
  margin-left: 54px;
  margin-top: 0.3rem;
}
.wfc-reply-input {
  flex: 1;
  padding: 0.45rem 0.85rem;
  border: 1px solid #E0D6C8;
  border-radius: 16px;
  font-size: 0.82rem;
  outline: none;
  background: #FAF7F2;
  transition: border-color 0.18s;
}
.wfc-reply-input:focus {
  border-color: #F3621B;
  background: #FFF;
}
.wfc-reply-btn {
  background: #F3621B;
  color: #FFF;
  border: none;
  border-radius: 16px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.wfc-reply-btn:hover {
  background: #385547;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Real-Time Typing Indicator in Discussion Cards ── */
.wfc-typing-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 54px;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #4A7563;
  font-style: italic;
}
.wfc-typing-indicator.active {
  display: flex;
}
.wfc-typing-dots {
  display: inline-flex;
  gap: 3px;
}
.wfc-typing-dot {
  width: 4px;
  height: 4px;
  background: #4A7563;
  border-radius: 50%;
  animation: typingDotPulse 1.2s infinite ease-in-out;
}
.wfc-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wfc-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDotPulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ── Report & Block Actions ── */
.wfc-more-menu-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #8E9890;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.wfc-more-menu-btn:hover {
  background: #EFE8DE;
  color: #1E2522;
}

.wfc-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #FFFFFF;
  border: 1px solid #EFE8DE;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(43,66,55,0.12);
  z-index: 100;
  min-width: 140px;
  overflow: hidden;
  animation: modalIn 0.15s ease;
}
.wfc-dropdown-menu.open {
  display: block;
}
.wfc-dropdown-item {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  text-align: left;
  background: none;
  border: none;
  color: #1E2522;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s;
}
.wfc-dropdown-item:hover {
  background: #FFF3EA;
}
.wfc-dropdown-item.danger {
  color: #C53030;
}
.wfc-dropdown-item.danger:hover {
  background: #FFF5F5;
}

/* =========================================================================
   TOPIC CHAT ROOMS (Whisper Live Topic Rooms)
   ========================================================================= */
.whisper-chatroom-card {
  background: #FFFFFF;
  border: 1px solid var(--whisper-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(43, 66, 55, 0.04);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 560px;
}

.wcr-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--whisper-border);
  background: #FAF7F2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wcr-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wcr-room-icon {
  font-size: 2rem;
  line-height: 1;
}

.wcr-room-meta h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #1E2522;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wcr-room-desc {
  font-size: 0.8rem;
  color: #6E7C72;
  margin: 2px 0 0 0;
}

.wcr-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wcr-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #FFE5D4;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F3621B;
}

.wcr-live-dot {
  width: 7px;
  height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
}

.wcr-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wcr-search-input {
  width: 140px;
  padding: 0.35rem 0.75rem 0.35rem 1.8rem;
  font-size: 0.78rem;
  border: 1px solid #FFE5D4;
  border-radius: 20px;
  background: #FFFFFF;
  outline: none;
  transition: width 0.25s;
}

.wcr-search-input:focus {
  width: 190px;
  border-color: #4A7563;
}

.wcr-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #FCFAF6;
  scroll-behavior: smooth;
}

.wcr-msg-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  animation: modalIn 0.2s ease;
  position: relative;
}

.wcr-msg-row:hover .wcr-msg-actions {
  opacity: 1;
  pointer-events: auto;
}

.wcr-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #FFF3EA;
}

.wcr-msg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wcr-msg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.wcr-msg-author {
  font-weight: 700;
  color: #1E2522;
}

.wcr-msg-badge {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 8px;
  background: #EAE3D6;
  color: #4B5950;
  font-weight: 600;
}

.wcr-msg-time {
  font-size: 0.75rem;
  color: #8E9890;
}

.wcr-msg-content {
  background: #FFFFFF;
  border: 1px solid #EFE8DE;
  border-radius: 4px 16px 16px 16px;
  padding: 0.75rem 1rem;
  color: #2D3732;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(43, 66, 55, 0.02);
  position: relative;
  word-break: break-word;
}

.wcr-msg-content.user-msg {
  background: #F4EFE6;
  border-color: #E6DCce;
}

.wcr-msg-actions {
  position: absolute;
  top: -10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #FFE5D4;
  border-radius: 16px;
  padding: 2px 6px;
  box-shadow: 0 4px 12px rgba(43,66,55,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.wcr-act-btn {
  background: none;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4A7563;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.12s;
}

.wcr-act-btn:hover {
  background: #FFF3EA;
}

.wcr-act-btn.danger {
  color: #C53030;
}

.wcr-typing-bar {
  padding: 0.35rem 1.5rem;
  font-size: 0.78rem;
  color: #4A7563;
  font-style: italic;
  display: none;
  align-items: center;
  gap: 6px;
  background: #FCFAF6;
}

.wcr-typing-bar.active {
  display: flex;
}

.wcr-composer {
  padding: 0.9rem 1.25rem;
  background: #FFFFFF;
  border-top: 1px solid var(--whisper-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wcr-input-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FAF7F2;
  border: 1.5px solid #FFE5D4;
  border-radius: 18px;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  transition: border-color 0.2s;
}

.wcr-input-row:focus-within {
  border-color: #4A7563;
  background: #FFFFFF;
}

.wcr-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #1E2522;
  font-family: var(--font-sans);
}

.wcr-send-btn {
  background: var(--whisper-accent-green);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wcr-send-btn:hover {
  background: #1C2D25;
}

.wcr-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6E7C72;
  padding: 0 0.4rem;
}

.wcr-tools-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wcr-tool-chip {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.wcr-tool-chip:hover {
  color: #1E2522;
}

.wcr-sara-chip {
  color: #F3621B;
  font-weight: 600;
}



