

.chat-profile {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  border-left: 1px solid var(--color-border);
  transition: width var(--transition-slow);
  background: var(--color-card);
  z-index: 10;
}

.chat-profile.open {
  width: 300px;
}

.chat-profile-inner {
  width: 300px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
}

.chat-profile-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #646e78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.chat-profile-close svg {
  width: 16px;
  height: 16px;
}

.chat-profile-close:hover {
  background: var(--color-bg);
}

.chat-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.chat-profile-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
}

.chat-profile-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary, #646e78);
  text-align: center;
  margin-top: -12px;
}

.chat-profile-section {
  width: 100%;
}

.chat-profile-section-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary, #646e78);
  margin-bottom: 8px;
}

.chat-profile-about {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  line-height: 1.6;
}

.chat-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-profile-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.chat-profile-close {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 1279px) {
  .chat-profile.open {
    width: 260px;
  }
  .chat-profile-inner {
    width: 260px;
  }
}

@media (max-width: 991px) {
  .chat-profile.open {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: var(--color-card);
    z-index: 10;
    box-shadow: var(--shadow-panel);
  }
}

@media (max-width: 767px) {
  .chat-profile {
    display: none;
  }

  .chat-profile.open {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    border-radius: 0;
    background: var(--color-card);
    z-index: 20;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
