/* Panda Campus V2 — social relationship inbox. */
body.panda-app .conversations-phone {
  padding: 76px 0 104px;
  background:
    radial-gradient(circle at 7% 10%, rgba(139, 110, 255, 0.1), transparent 28%),
    radial-gradient(circle at 96% 9%, rgba(255, 196, 54, 0.14), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbfaff 58%, #fffdf8 100%);
}

body.panda-app .conversations-phone .pc-page-heading {
  margin-bottom: 13px;
}

body.panda-app .conversations-phone .pc-page-heading h1 {
  font-size: 30px;
}

body.panda-app .conversations-phone .pc-page-heading span {
  background: rgba(255, 195, 57, 0.18);
  color: #946508;
}

.conversation-social-dock {
  display: flex;
  justify-content: space-between;
  gap: 11px;
  margin: 0 0 15px;
  padding: 2px var(--pc-inset) 5px;
  overflow-x: auto;
  scroll-padding-inline: var(--pc-inset);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.conversation-social-dock::-webkit-scrollbar { display: none; }

.conversation-social-person {
  flex: 0 0 58px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #191620;
  font-family: inherit;
  scroll-snap-align: start;
}

.conversation-social-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffc43d, #ff75b6 48%, #815cff);
  box-shadow: 0 8px 20px rgba(89, 68, 120, 0.12);
}

.conversation-social-avatar::before {
  position: absolute;
  inset: 3px;
  border: 2px solid #fff;
  border-radius: 15px;
  content: "";
}

.conversation-social-avatar img,
.conversation-social-avatar b {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.conversation-social-avatar b {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8064ff, #5b39e2);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.conversation-social-avatar.green b { background: linear-gradient(145deg, #55d7ad, #1fa67b); }

.conversation-social-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #47d294;
}

.conversation-social-person.is-panda .conversation-social-avatar {
  background: linear-gradient(135deg, #ffd05c, #ffad32);
}

.conversation-social-person strong {
  max-width: 64px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-social-person small {
  color: #96909e;
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

body.panda-app .conversations-phone .conversations-search-row {
  margin-bottom: 10px;
}

.conversation-kind-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 var(--pc-inset) 11px;
  padding: 4px;
  border: 1px solid rgba(35, 31, 44, 0.045);
  border-radius: 16px;
  background: rgba(244, 242, 248, 0.78);
}

.conversation-kind-tabs button {
  height: 31px;
  padding: 0 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #807a89;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
}

.conversation-kind-tabs button.is-active {
  background: rgba(255, 255, 255, 0.98);
  color: #18151e;
  box-shadow: 0 5px 14px rgba(35, 30, 45, 0.07);
}

body.panda-app .conversations-phone .conversation-list {
  margin-top: 0;
}

body.panda-app .conversations-phone .conversation-swipe-row {
  min-height: 82px;
  border-radius: 21px;
}

body.panda-app .conversations-phone .conversation-row {
  grid-template-columns: 49px minmax(0, 1fr) 35px;
  min-height: 82px;
  padding: 11px 12px;
  border-color: rgba(40, 34, 49, 0.05);
  border-radius: 21px;
  box-shadow: 0 10px 24px rgba(33, 28, 43, 0.055);
}

body.panda-app .conversations-phone .conversation-copy { gap: 3px; }
body.panda-app .conversations-phone .conversation-title strong { font-size: 13px; }
body.panda-app .conversations-phone .conversation-preview { margin-top: 1px; font-size: 9px; }
body.panda-app .conversations-phone .conversation-context { margin-top: 1px; }

.conversation-avatar.panda {
  overflow: hidden;
  background: linear-gradient(145deg, #fff8dd, #ffe39b);
}

.conversation-avatar.panda img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-panda-row {
  border-color: rgba(255, 190, 44, 0.32) !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 202, 64, 0.17), transparent 40%),
    rgba(255, 255, 255, 0.96) !important;
}

.conversation-panda-row .conversation-context b {
  background: #fff3ca;
  color: #9d6a00;
}

.conversation-panda-signal {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd058, #ffb52f);
  color: #241b09;
  box-shadow: 0 7px 16px rgba(255, 183, 40, 0.22);
}

.conversation-panda-signal svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

body.panda-app .conversations-phone .conversations-filter-panel {
  top: 232px;
}

@media (max-width: 380px) {
  .conversation-social-dock { gap: 11px; }
  .conversation-social-person { flex-basis: 55px; }
}

/* PepperLab Agent — keep the inbox native, calm and recognisably branded. */
.conversation-social-person.is-pepperlab .conversation-social-avatar {
  overflow: hidden;
  isolation: isolate;
  background: #effbf4;
  box-shadow: 0 8px 20px rgba(0, 158, 83, 0.12);
}

.conversation-social-person.is-pepperlab .conversation-social-avatar::before {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.98);
}

.conversation-social-person.is-pepperlab .conversation-social-avatar img {
  position: relative;
  z-index: 1;
  width: 42px;
  max-width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

.conversation-social-person.is-pepperlab .conversation-social-avatar i {
  z-index: 3;
  background: #20bd72;
}

.conversation-social-person.is-pepperlab strong {
  color: #173f2b;
}

.conversation-social-person.is-pepperlab small {
  color: #4c8769;
}

body.panda-app .conversations-phone .conversation-pepperlab-row {
  border-color: rgba(0, 158, 83, 0.14);
  background:
    radial-gradient(circle at 96% 0%, rgba(0, 158, 83, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(22, 80, 51, 0.065);
}

.conversation-avatar.pepperlab {
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.98);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 126, 66, 0.12);
}

.conversation-avatar.pepperlab img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

/* Real portraits keep one shared crop line without changing any conversation copy. */
.conversation-avatar:not(.panda) {
  overflow: hidden;
}

.conversation-avatar:not(.panda) > img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

.conversation-avatar.pepperlab i {
  z-index: 2;
  background: #20bd72;
}

.conversation-pepperlab-row .conversation-context b {
  background: #e8f8ef;
  color: #087a43;
}

.conversation-pepperlab-row .conversation-progress-ring {
  background: conic-gradient(#00a85a calc(var(--conversation-progress) * 1%), #e9f2ed 0);
  box-shadow: 0 6px 14px rgba(0, 158, 83, 0.12);
}
