/* T4640-G07: Sayfa Asistani Diyalektik Sohbet Arayuzu (Okur/Editor/Moderator/Admin, Kilavuz Sekmesi, AR RTL, 390px Cakismasiz) */
.fz-t4640-assistant-dock {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 940;
  max-width: min(360px, calc(100vw - 24px));
  box-sizing: border-box;
  font-family: inherit;
}
html[dir="rtl"] .fz-t4640-assistant-dock {
  right: auto;
  left: 16px;
}
.fz-t4640-assistant-panel {
  background: #FAF5EC;
  border: 1px solid rgba(112, 45, 59, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  display: none;
}
.fz-t4640-assistant-panel.is-open {
  display: block;
}
.fz-t4640-assistant-head {
  background: #702D3B;
  color: #FAF5EC;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fz-t4640-role-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #C59B27;
  color: #0F172A;
}
.fz-t4640-chat-bubbles {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
}
.fz-chat-bubble {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.42;
  max-width: 88%;
}
.fz-chat-bubble.is-bot {
  background: #FAF5EC;
  color: #1E293B;
  border: 1px solid rgba(112, 45, 59, 0.18);
  align-self: flex-start;
}
.fz-chat-bubble.is-user {
  background: #702D3B;
  color: #FFFFFF;
  align-self: flex-end;
}
@media (max-width: 480px) {
  .fz-t4640-assistant-dock {
    bottom: 118px;
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}
