/* المحادثات — واجهة متناسقة مع المساعد الذكي */
.phms-chat {
  font-family: "Cairo", sans-serif;
  font-weight: 500;
}

/* النافذة العائمة (زر 💬) — لا تُفتح تلقائياً، تبقى على تنسيق app.css */
.phms-chat:not(.phms-chat--page) .phms-chat__aurora {
  display: none;
}

.phms-chat:not(.phms-chat--page) .phms-chat__panel {
  display: none;
  position: absolute;
  left: 0;
  bottom: 70px;
  width: min(500px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 90px));
  border-radius: 20px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(165deg, #0d1f3a 0%, #0a0f1e 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-direction: column;
}

.phms-chat:not(.phms-chat--page).phms-chat--open .phms-chat__panel {
  display: flex;
}

.phms-chat:not(.phms-chat--page) .phms-chat__head {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(10, 15, 30, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* RTL: العنوان يميناً — أزرار الإغلاق والفتح في أقصى اليسار على نفس السطر */
.phms-chat:not(.phms-chat--page) .phms-chat__head-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.phms-chat:not(.phms-chat--page) .phms-chat__brand {
  flex: 1;
  min-width: 0;
}

.phms-chat:not(.phms-chat--page) .phms-chat__popout {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.phms-chat:not(.phms-chat--page) .phms-chat__close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.phms-chat:not(.phms-chat--page) .phms-chat__intro {
  display: none;
}

.phms-chat:not(.phms-chat--page) .phms-chat__titles h2 {
  font-size: 1rem;
  margin: 0;
}

.phms-chat:not(.phms-chat--page) .phms-chat__avatar {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.phms-chat:not(.phms-chat--page) .phms-chat__panel-inner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.phms-chat:not(.phms-chat--page) .phms-chat__layout {
  grid-template-columns: 148px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.phms-chat:not(.phms-chat--page) .phms-chat__sidebar {
  overflow: visible;
  padding: 8px 4px 8px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 24, 0.4);
}

.phms-chat:not(.phms-chat--page) .phms-chat__sidebar-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-list {
  flex: 0 0 auto;
  overflow: visible;
  gap: 5px;
  scrollbar-width: none;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-btn {
  padding: 6px 7px;
  gap: 7px;
  border-radius: 11px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-icon {
  width: 32px;
  height: 32px;
  border-width: 1.5px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-text strong {
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phms-chat:not(.phms-chat--page) .phms-chat__conv-text small {
  display: none;
}

.phms-chat:not(.phms-chat--page) .phms-chat__main {
  min-width: 0;
  overflow: hidden;
}

.phms-chat:not(.phms-chat--page) .phms-chat__main-head {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.phms-chat:not(.phms-chat--page) .phms-chat__days {
  padding: 6px 8px;
  gap: 4px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__composer {
  padding: 8px 10px 10px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__composer-row {
  align-items: flex-end;
  gap: 8px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__composer-tools {
  gap: 6px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__composer-row .phms-chat__send {
  min-width: 72px;
  max-width: 84px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.phms-chat:not(.phms-chat--page) .phms-chat__tool-btn {
  min-width: 50px;
  min-height: 50px;
  padding: 10px;
  border-radius: 14px;
}

.phms-chat:not(.phms-chat--page) .phms-chat__tool-btn .phms-chat__ico {
  width: 28px;
  height: 28px;
}

/* لوحة المحادثة — هيكل مثل المساعد الذكي */
.phms-chat__panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phms-chat__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* صفحة المحادثات الكاملة — نفس أسلوب المساعد الذكي */
.phms-chat--page .phms-chat__panel {
  border-radius: 28px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: #0a0f1e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 48px 120px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.phms-chat--page .phms-chat__orb {
  filter: blur(48px);
  opacity: 0.55;
  animation: chatOrbFloat 14s ease-in-out infinite;
}

.phms-chat--page .phms-chat__orb--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: #6366f1;
  animation-delay: 0s;
}

.phms-chat--page .phms-chat__orb--2 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -40px;
  background: #06b6d4;
  animation-delay: -4s;
}

.phms-chat--page .phms-chat__orb--3 {
  width: 220px;
  height: 220px;
  top: 40%;
  left: 35%;
  background: #a855f7;
  animation-delay: -8s;
}

/* نافذة عائمة — خلفية مبسطة */
.phms-chat:not(.phms-chat--page) .phms-chat__aurora {
  inset: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
}

.phms-chat__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  animation: chatOrbFloat 16s ease-in-out infinite;
}

.phms-chat__orb--purple {
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: 12%;
  background: #a855f7;
}

.phms-chat__orb--purple::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: 60px;
  right: -80px;
  border-radius: 50%;
  background: #7c3aed;
  filter: blur(48px);
  opacity: 0.55;
  animation: chatOrbFloat 18s ease-in-out infinite reverse;
}

@keyframes chatOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -10px) scale(1.05); }
}

.phms-chat__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* الهيدر — صفحة كاملة (مثل المساعد) */
.phms-chat--page .phms-chat__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(12px);
}

.phms-chat--page .phms-chat__panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.phms-chat--page .phms-chat__titles h2 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}

.phms-chat--page .phms-chat__intro {
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.82);
}

.phms-chat--page .phms-chat__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.45rem;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
}

.phms-chat:not(.phms-chat--page) .phms-chat__panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.phms-chat:not(.phms-chat--page) .phms-chat__layout {
  flex: 1 1 auto;
  min-height: 0;
}

.phms-chat__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.phms-chat__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #22d3ee, #818cf8);
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.28);
}

.phms-chat__titles h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

.phms-chat__intro {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.45;
}

.phms-chat__close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.phms-chat__layout {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.phms-chat--page .phms-chat__layout {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(220px, 280px) 1fr;
}

.phms-chat--page .phms-chat__sidebar {
  background: rgba(0, 0, 0, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.phms-chat--page .phms-chat__conv-btn {
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(30, 41, 82, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.phms-chat--page .phms-chat__conv-btn:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.32);
}

.phms-chat--page .phms-chat__conv-btn.is-active {
  background: rgba(99, 102, 241, 0.42);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.phms-chat--page .phms-chat__messages {
  padding: 18px 20px;
  gap: 12px;
}

.phms-chat--page .phms-chat__bubble--mine {
  border-radius: 20px 20px 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(8px);
}

.phms-chat--page .phms-chat__bubble--other {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px 20px 20px 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.phms-chat--page .phms-chat__composer {
  padding: 14px 22px 18px;
  background: rgba(8, 12, 24, 0.65);
  backdrop-filter: blur(12px);
}

.phms-chat--page .phms-chat__composer-row {
  gap: 12px;
  align-items: flex-end;
}

.phms-chat--page .phms-chat__composer textarea {
  min-height: 48px;
  padding: 12px 14px;
}

.phms-chat--page .phms-chat__composer-row .phms-chat__send {
  min-width: 100px;
  padding: 12px 18px;
  font-size: 0.95rem;
}

.phms-chat__sidebar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px;
  background: rgba(8, 12, 24, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}

.phms-chat--page .phms-chat__sidebar {
  overflow: hidden;
}

.phms-chat__sidebar-label {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
}

.phms-chat__sidebar-status {
  flex-shrink: 0;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #f87171;
  line-height: 1.4;
}

.phms-chat__sidebar-status.is-loading {
  color: #67e8f9;
}

.phms-chat__conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.phms-chat--page .phms-chat__conv-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

.phms-chat--page .phms-chat__conv-list::-webkit-scrollbar {
  width: 5px;
}

.phms-chat--page .phms-chat__conv-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 999px;
}

.phms-chat__conv-empty {
  padding: 10px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.65);
  text-align: center;
}

.phms-chat__conv-btn {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
  padding: 10px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: right;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.phms-chat__conv-btn.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.phms-chat__conv-btn--group.is-active {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(6, 182, 212, 0.18);
}

.phms-chat__conv-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(145deg, #1e293b, #334155);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.phms-chat__conv-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phms-chat__conv-icon--user {
  background: linear-gradient(145deg, #312e81, #4338ca);
}

.phms-chat__conv-icon--user:not(:has(img)) {
  background:
    linear-gradient(145deg, #312e81, #4338ca)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d2fe' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c1.5-3.5 4.5-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E")
    center/58% no-repeat;
}

.phms-chat__conv-icon--group {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(145deg, #0e7490, #4f46e5);
}

.phms-chat__conv-icon--group img {
  object-fit: cover;
}

.phms-chat__conv-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.phms-chat__conv-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.phms-chat__conv-text small {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phms-chat__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.phms-chat__main-head {
  flex-shrink: 0;
  padding: 10px 14px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(8, 12, 24, 0.35);
}

.phms-chat__days {
  flex-shrink: 0;
}

.phms-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.phms-chat__bubble {
  max-width: min(85%, 420px);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

/* RTL: رسائلي يمين — رسائل الآخرين يسار */
.phms-chat__bubble--mine {
  align-self: flex-start;
  margin-inline-end: auto;
  margin-inline-start: 0;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.75), rgba(6, 182, 212, 0.65));
  border-color: rgba(255, 255, 255, 0.12);
}

.phms-chat__bubble--other {
  align-self: flex-end;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.phms-chat__composer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  background: rgba(8, 12, 24, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.phms-chat__composer-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.phms-chat__composer-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.phms-chat__composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 46px;
  max-height: 120px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 11px 14px;
  resize: none;
  box-sizing: border-box;
}

.phms-chat__composer-row .phms-chat__send,
.phms-chat__composer-row .phms-chat__send.btn,
.phms-chat__composer-row .phms-chat__send.btn.primary {
  width: auto;
  min-width: 92px;
  max-width: 110px;
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  height: auto;
  margin: 0;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, #22d3ee, #6366f1);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 16px;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  cursor: pointer;
}

.phms-chat__tool-btn {
  border-radius: 12px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: rgba(15, 23, 42, 0.55);
}

/* صفحة المحادثات — خلفية ولوحة مركّزة مثل المساعد الذكي */
body.chat-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(900px 420px at 10% -20%, rgba(118, 82, 255, 0.2), transparent),
    linear-gradient(180deg, #060b16 0%, #0a1424 100%);
}

body.chat-page > .app-site-footer {
  flex-shrink: 0;
  margin-top: auto;
  z-index: 20;
  max-width: none;
  width: 100%;
  border-top-color: rgba(129, 140, 248, 0.22);
}

body.chat-page .top-nav {
  flex: 0 0 auto;
  position: relative;
  top: auto;
  z-index: 40;
  margin: 8px 12px 0;
}

body.chat-page .chat-page-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px 8px;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
}

body.chat-page .chat-page-wrap.container {
  gap: 0;
}

body.chat-page .phms-chat--page {
  position: static;
  left: auto;
  bottom: auto;
  z-index: 1;
  width: min(1140px, 98vw);
  height: min(88dvh, 900px);
  max-height: calc(100dvh - 210px);
  min-height: min(62dvh, 680px);
  margin: 0 auto;
  flex: 0 1 auto;
}

body.chat-page .phms-chat--page .phms-chat__panel {
  height: 100%;
  min-height: 0;
  max-height: none;
}

@media (max-width: 900px) {
  body.chat-page .phms-chat--page {
    width: min(100vw - 20px, 98vw);
    height: calc(100dvh - 120px);
    min-height: 0;
    max-height: calc(100dvh - 120px);
  }
}

@media (max-width: 640px) {
  body.chat-page .top-nav {
    margin: 6px 8px 0;
  }

  body.chat-page .chat-page-shell {
    padding: 8px 10px 10px;
  }

  .phms-chat__layout {
    grid-template-columns: 1fr;
  }

  .phms-chat__sidebar {
    max-height: 180px;
  }
}

body.theme-light.chat-page {
  background:
    radial-gradient(900px 420px at 10% -20%, rgba(147, 197, 253, 0.35), transparent),
    linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
}

body.theme-light .phms-chat--page .phms-chat__panel {
  background: #f0f9ff;
  border-color: #a5b4fc;
}

body.theme-light .phms-chat--page .phms-chat__head {
  background: rgba(255, 255, 255, 0.55);
}

body.theme-light .phms-chat--page .phms-chat__orb--1 {
  opacity: 0.35;
  background: #818cf8;
}

body.theme-light .phms-chat--page .phms-chat__orb--2 {
  opacity: 0.3;
  background: #22d3ee;
}

body.theme-light .phms-chat--page .phms-chat__orb--3 {
  opacity: 0.28;
  background: #c084fc;
}

body.theme-light .phms-chat--page .phms-chat__titles h2 {
  color: #0f2748;
}

body.theme-light .phms-chat--page .phms-chat__intro {
  color: #475569;
}

body.theme-light .phms-chat--page .phms-chat__sidebar {
  background: rgba(255, 255, 255, 0.45);
}

body.theme-light .phms-chat--page .phms-chat__bubble--other {
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  border-color: #cbd5e1;
}

body.theme-light .phms-chat__composer textarea {
  background: #fff;
  color: #0f2748;
  border-color: #93c5fd;
}

body.theme-light .phms-chat__conv-btn {
  background: #fff;
  color: #0f2748;
}

body.theme-light .phms-chat__conv-icon {
  border-color: #93c5fd;
}

body.theme-light .phms-chat__conv-icon--user:not(:has(img)) {
  background:
    linear-gradient(145deg, #dbeafe, #e0e7ff)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c1.5-3.5 4.5-5 7-5s5.5 1.5 7 5'/%3E%3C/svg%3E")
    center/58% no-repeat;
}

body.theme-light .phms-chat__conv-icon--group {
  border-color: #38bdf8;
}

body.theme-light .phms-chat__titles h2,
body.theme-light .phms-chat__main-head {
  color: #0f2748;
}
