* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  height: 100vh;
  overflow: hidden;
}

.page {
  display: none;
  height: 100vh;
}

.page.active {
  display: flex;
}

/* ===== 认证页面 ===== */
#authPage {
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header .logo {
  font-size: 48px;
  margin-bottom: 10px;
}

.auth-header h1 {
  font-size: 24px;
  color: #333;
}

.auth-header p {
  color: #888;
  margin-top: 5px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.auth-tabs .tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #888;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tabs .tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: 600;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.error-msg {
  color: #e74c3c;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
}

/* ===== 按钮 ===== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #667eea;
  color: #fff;
}

.btn-primary:hover {
  background: #5a67d8;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e4e4e4;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-success {
  background: #27ae60;
  color: #fff;
}

.btn-success:hover {
  background: #219a52;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* ===== 主布局 ===== */
.app-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: width 0.22s ease, transform 0.25s ease;
  overflow: hidden;
}

/* 侧边栏顶部：品牌 + 折叠按钮 */
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #667eea;
  white-space: nowrap;
  overflow: hidden;
}

.brand-logo {
  font-size: 20px;
}

.brand-text {
  font-size: 15px;
}

.btn-collapse {
  background: #f5f6fa;
  border: 1px solid #e6e8f0;
  color: #667eea;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  line-height: 1;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-collapse:hover {
  background: #e9ecfb;
}

/* 折叠后的图标栏（仅桌面端生效） */
@media (min-width: 769px) {
  .sidebar.collapsed {
    width: 64px;
  }

  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .user-detail,
  .sidebar.collapsed .nav-label {
    display: none;
  }

  .sidebar.collapsed .sidebar-top {
    justify-content: center;
    padding: 14px 8px;
  }

  .sidebar.collapsed .user-info {
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
  }

  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 8px;
  }

  .sidebar.collapsed .nav-item.active {
    border-right: none;
    border-left: 3px solid #667eea;
  }
}

/* 移动端：侧边栏抽屉 + 遮罩 + 菜单按钮 */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: #667eea;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px !important;
    z-index: 1001;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* 移动端不显示折叠按钮（改用遮罩关闭） */
  .sidebar .btn-collapse {
    display: none;
  }

  .content {
    padding: 66px 14px 16px;
  }

  .messages-container {
    height: calc(100vh - 150px);
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.user-info .avatar {
  font-size: 32px;
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-detail {
  flex: 1;
  overflow: hidden;
}

.user-detail .nickname {
  font-weight: 600;
  font-size: 15px;
}

.user-detail .username {
  font-size: 12px;
  color: #888;
}

.btn-logout {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
}

.btn-logout:hover {
  color: #e74c3c;
}

.nav-menu {
  flex: 1;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-item:hover {
  background: #f5f6fa;
  color: #333;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(102,126,234,0.1), transparent);
  color: #667eea;
  border-right: 3px solid #667eea;
  font-weight: 600;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-header h2 {
  font-size: 20px;
  color: #333;
}

/* ===== 群组列表 ===== */
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.group-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #eee;
  transition: all 0.2s;
  cursor: pointer;
}

.group-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.group-card .group-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.group-card .group-desc {
  color: #888;
  font-size: 13px;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card .group-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
}

.group-card .badge-owner {
  background: #667eea;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.group-card .badge-member {
  background: #e0e0e0;
  color: #666;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.group-card .pending-count {
  background: #e74c3c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.section {
  margin-bottom: 30px;
}

.section h3 {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
  padding-left: 4px;
}

.empty-state {
  text-align: center;
  color: #aaa;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
}

/* ===== 消息中心 ===== */
.messages-container {
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.messages-sidebar {
  width: 220px;
  border-right: 1px solid #eee;
  padding: 16px;
  overflow-y: auto;
}

.messages-sidebar h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.msg-group-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  transition: background 0.2s;
}

.msg-group-item:hover {
  background: #f5f6fa;
}

.msg-group-item.active {
  background: #667eea;
  color: #fff;
}

.messages-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#noGroupSelected {
  flex: 1;
}

.messages-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.messages-header h3 {
  font-size: 16px;
}

.group-notice {
  font-size: 13px;
  color: #e67e22;
  margin-top: 4px;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.msg-item {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.msg-item .sender-avatar {
  width: 36px;
  height: 36px;
  background: #667eea;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.msg-item.is-notice .sender-avatar {
  background: #e67e22;
}

.msg-bubble {
  background: #f5f6fa;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 70%;
}

.msg-item.is-notice .msg-bubble {
  background: #fff8e1;
  border-left: 3px solid #e67e22;
}

.msg-bubble .msg-sender {
  font-size: 13px;
  color: #667eea;
  font-weight: 600;
}

.msg-item.is-notice .msg-bubble .msg-sender {
  color: #e67e22;
}

.msg-bubble .msg-content {
  margin-top: 4px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}

.msg-bubble .msg-time {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}

.msg-badge {
  background: #667eea;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 4px;
}

.owner-send-area {
  border-top: 1px solid #eee;
  padding: 12px 16px;
  background: #fafafa;
}

.owner-send-area textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  resize: none;
  min-height: 60px;
  font-family: inherit;
}

.owner-send-area textarea:focus {
  outline: none;
  border-color: #667eea;
}

.send-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.member-read-only {
  border-top: 1px solid #eee;
  padding: 14px;
  text-align: center;
  color: #999;
  background: #fafafa;
  font-size: 13px;
}

/* ===== 好友 ===== */
.friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.friend-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #eee;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.friend-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.friend-card .avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
  overflow: hidden;
}

.friend-info .nickname {
  font-weight: 600;
  margin-bottom: 4px;
}

.friend-info .username {
  font-size: 12px;
  color: #888;
}

.friend-info .owner-groups {
  font-size: 12px;
  color: #667eea;
  margin-top: 6px;
}

.friend-info .chat-hint {
  font-size: 12px;
  color: #27ae60;
  margin-top: 6px;
}

/* ===== 搜索 ===== */
.search-box {
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 口令相关弹窗需显示在侧边栏与其他弹窗之上 */
#passcodeGateModal,
#passcodeManageModal {
  z-index: 1300;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 420px;
  max-height: 80vh;
  overflow: hidden;
  z-index: 1;
}

.modal-content.large {
  width: min(900px, 94vw);
  max-height: 92vh;
}

/* 群聊弹窗：加大消息显示区域 */
#groupDetailModal .modal-body {
  max-height: calc(92vh - 64px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  font-size: 17px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0 6px;
}

.close-btn:hover {
  color: #333;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  max-height: calc(80vh - 60px);
}

/* ===== 群详情 ===== */
.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* 未读消息数量徽标 */
.unread-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* 可折叠的成员列表 */
.member-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  background: #f7f8fc;
  border-radius: 8px;
}

.member-toggle-arrow {
  font-size: 12px;
  color: #888;
}

.member-list-body {
  margin-top: 10px;
}

.member-count-only {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.member-row:hover {
  background: #f5f6fa;
}

.member-row .member-avatar {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-row .member-info {
  flex: 1;
}

.member-row .member-name {
  font-size: 14px;
  font-weight: 500;
}

.member-row .member-sub {
  font-size: 12px;
  color: #888;
}

.member-row .member-actions {
  display: flex;
  gap: 6px;
}

.member-row.status-pending {
  background: #fff8e1;
}

.member-badge {
  background: #667eea;
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 6px;
}

.member-badge.owner {
  background: #e67e22;
}

.member-badge.pending {
  background: #f39c12;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  animation: slideDown 0.3s ease;
}

.toast.hidden {
  display: none;
}

.toast.success {
  background: #27ae60;
}

.toast.error {
  background: #e74c3c;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.badge {
  background: #e74c3c;
  color: #fff;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

/* 表单提示 / 成员提示 */
.form-hint {
  font-size: 12px;
  color: #8a8fa8;
  background: #f5f6fa;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.member-hint {
  background: #eef1fe;
  color: #5560b8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* 群已满员 */
.full-notice {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.badge-full {
  background: #e74c3c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

/* 会员剩余时长 */
.user-expiry {
  font-size: 12px;
  color: #e67e22;
  margin-top: 3px;
  font-weight: 500;
}

/* 群主口令按钮（昵称下方） */
.btn-passcode {
  margin: 8px 16px 4px;
  padding: 8px 12px;
  background: #fff8e1;
  border: 1px solid #f0d78c;
  color: #b9770e;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-passcode:hover {
  background: #fdf0cd;
}

/* 口令弹窗 */
.gate-question {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.passcode-status {
  font-size: 13px;
  color: #888;
  background: #f7f8fc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.passcode-tip {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
  line-height: 1.5;
}

.sidebar.collapsed .btn-passcode {
  display: none;
}

/* 移动端：消息中心纵向堆叠，给消息区更大空间 */
@media (max-width: 768px) {
  .messages-container {
    flex-direction: column;
    height: calc(100vh - 160px);
  }

  .messages-sidebar {
    width: 100%;
    max-height: 132px;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
  }

  .msg-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .msg-group-item {
    margin-bottom: 0;
  }

  .messages-header {
    padding: 12px 14px;
  }

  .messages-list {
    padding: 12px 14px;
  }

  .msg-bubble {
    max-width: 85%;
  }

  .owner-send-area {
    padding: 10px 12px;
  }
}

/* ===== 群聊弹窗 ===== */
.chat-section {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  background: #f7f8fc;
  border-radius: 10px;
  padding: 12px;
  height: clamp(340px, 48vh, 620px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  color: #aaa;
  font-size: 13px;
  text-align: center;
  margin: auto;
}

.chat-msg {
  display: flex;
  gap: 8px;
}

.chat-msg.mine {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg.is-notice .chat-avatar {
  background: #e67e22;
}

.chat-body {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 76%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chat-msg.mine .chat-body {
  background: #eef1fe;
}

.chat-msg.is-notice .chat-body {
  background: #fff8e1;
  border-left: 3px solid #e67e22;
}

.chat-sender {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 3px;
}

.chat-msg.is-notice .chat-sender {
  color: #e67e22;
}

.chat-text {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-time {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

.chat-read {
  color: #2e9e5b;
  font-weight: 600;
}

.chat-input-area {
  margin-top: 10px;
}

.chat-input-area textarea {
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: #667eea;
}

.chat-input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.chat-input-actions select {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.chat-readonly {
  margin-top: 10px;
  text-align: center;
  color: #999;
  font-size: 13px;
  background: #fafafa;
  padding: 12px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .modal-content.large {
    width: 94vw;
    max-height: 96vh;
  }

  #groupDetailModal .modal-body {
    max-height: calc(96vh - 60px);
    padding: 12px;
  }

  .chat-messages {
    height: clamp(320px, 62vh, 620px);
  }

  .chat-body {
    max-width: 82%;
  }
}

.hidden {
  display: none !important;
}
