/**
 * 见面模块 — 375×667 原型图风格（灰/蓝/紫分框）
 */

#meeting-pane,
#meeting-dimension-group-pane,
#meeting-space-select-pane,
#meeting-hypothesis-pane,
#group-chat-list-pane,
#group-chat-pane {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}

#meeting-pane.hidden,
#meeting-dimension-group-pane.hidden,
#meeting-space-select-pane.hidden,
#meeting-hypothesis-pane.hidden,
#group-chat-list-pane.hidden,
#group-chat-pane.hidden,
#meeting-favorites-pane.hidden,
#meeting-favorites-detail-pane.hidden {
  display: none !important;
}

.meeting-stage {
  width: 375px;
  max-width: 100%;
  height: 667px;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-sizing: border-box;
  position: relative;
}

.meeting-space-select-stage {
  flex: 1;
  min-height: 0;
  padding-top: 44px;
}

/* 顶栏胶囊标题（头像在 silas-phone-top） */
.meeting-prompt-bar {
  width: 255px;
  height: 26px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.2;
  color: #4b4068;
  text-align: center;
  padding: 0 12px;
  box-sizing: border-box;
}

.meeting-prompt-bar.hidden {
  display: none !important;
}

/* —— 空间维度选择列表 —— */
.meeting-space-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.meeting-space-row {
  position: relative;
  width: min(305px, calc(100% - 40px));
  height: 40px;
  box-sizing: border-box;
  border: 3px solid #c9c1ee;
  border-radius: 8px;
  background: #ffffff;
  color: #4b4068;
  font: inherit;
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 8px 0 14px;
  cursor: pointer;
  text-align: left;
}

.meeting-space-row:active {
  background: #faf9ff;
}

.meeting-space-row-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-space-row-more {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.meeting-space-row-more:active {
  background: rgba(0, 0, 0, 0.06);
}

.meeting-play-back {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-play-back:active {
  background: #fff;
}

.meeting-usage-btn {
  position: absolute;
  left: 52px;
  top: 8px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-usage-btn.is-active,
.meeting-usage-btn:active {
  background: #fff;
  color: #6b5b95;
}

.meeting-usage-panel {
  position: absolute;
  left: 10px;
  top: 50px;
  z-index: 5;
  width: min(320px, calc(100% - 20px));
  max-height: min(420px, calc(100% - 120px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(201, 193, 238, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(75, 64, 104, 0.18);
  backdrop-filter: blur(8px);
}

.meeting-usage-panel.hidden {
  display: none !important;
}

.meeting-usage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
  color: #4b4068;
}

.meeting-usage-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.meeting-usage-close:active {
  background: rgba(0, 0, 0, 0.06);
}

.meeting-usage-body {
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.meeting-usage-section {
  margin-bottom: 10px;
}

.meeting-usage-provider {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.meeting-usage-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #888;
  word-break: break-all;
}

.meeting-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.meeting-usage-stat {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f5fb;
  border: 1px solid #ece8f5;
}

.meeting-usage-stat--highlight {
  margin-bottom: 8px;
  background: #fff8fb;
  border-color: #f7d6e3;
}

.meeting-usage-stat-label {
  display: block;
  font-size: 11px;
  color: #888;
}

.meeting-usage-stat-value {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  color: #4b4068;
}

.meeting-usage-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  color: #999;
}

.meeting-usage-last {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
}

.meeting-usage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meeting-usage-link {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #c9c1ee;
  background: #fff;
  color: #4b4068;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.meeting-usage-link--primary {
  background: var(--ui-accent-heart, #f7b3c4);
  border-color: transparent;
  color: #fff;
}

.meeting-usage-muted,
.meeting-usage-foot,
.meeting-usage-error {
  font-size: 11px;
  line-height: 1.45;
  color: #888;
}

.meeting-usage-error {
  color: #c0392b;
}

.meeting-usage-foot {
  margin: 10px 0 0;
}

.meeting-play-pane .meeting-scroll {
  scroll-padding-top: 44px;
}

.meeting-play-pane .meeting-scroll-inner {
  padding-top: 44px;
}

.meeting-space-menu {
  position: fixed;
  z-index: 280;
  min-width: 120px;
  padding: 6px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.meeting-space-menu.hidden {
  display: none !important;
}

.meeting-space-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  color: #333;
}

.meeting-space-menu-item:active {
  background: #f3f3f3;
}

.meeting-space-menu-item--danger {
  color: #c0392b;
}

/* —— 内容区 —— */
.meeting-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.meeting-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 12px;
  box-sizing: border-box;
}

.meeting-block {
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.meeting-block--narration {
  width: min(330px, calc(100% - 28px));
  border: 3px solid #bfbfbf;
  margin-right: auto;
  margin-left: auto;
}

.meeting-block--scene {
  width: min(340px, calc(100% - 24px));
  border: 3px solid #b8d4b0;
  background: #f6faf4;
  margin-right: auto;
  margin-left: auto;
  color: #4a5c44;
  font-size: 13px;
}

.meeting-block--user {
  width: min(305px, calc(100% - 48px));
  border: 3px solid #c9c1ee;
  margin-left: auto;
  margin-right: 12px;
  color: #333;
}

/* —— 角色回合：头像 + 心理/演绎框 —— */
.meeting-turn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: min(340px, calc(100% - 24px));
  margin-right: auto;
  margin-left: auto;
}

.meeting-turn-avatar {
  flex-shrink: 0;
  padding-top: 2px;
}

.meeting-turn-avatar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.meeting-turn-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-turn-stack .meeting-block {
  width: 100%;
  margin: 0;
}

/* 心理活动：浅色细框 + 灰色斜体（与动作语言框样式对调） */
.meeting-block--inner,
.meeting-block--thought {
  width: min(315px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
  color: #888;
  font-style: italic;
}

/* 动作 + 对白合并框：实色粗框 + 同色系深字 */
.meeting-block--perform {
  width: min(315px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.55;
}

/* 角色配色：马卡龙色系（心理框浅细，动作语言框实色深字） */
.meeting-block--char-0.meeting-block--perform,
.meeting-block--char-0.meeting-block--dialogue,
.meeting-block--char-0.meeting-block--narration {
  border: 3px solid #e8a0b0;
  background: #fff0f4;
  color: #b06878;
}
.meeting-block--char-0.meeting-block--inner,
.meeting-block--char-0.meeting-block--thought {
  border: 2px solid #ffd0dc;
  background: #fff8fa;
}

.meeting-block--char-1.meeting-block--perform,
.meeting-block--char-1.meeting-block--dialogue,
.meeting-block--char-1.meeting-block--narration {
  border: 3px solid #c0a8e0;
  background: #f6f0ff;
  color: #7860a0;
}
.meeting-block--char-1.meeting-block--inner,
.meeting-block--char-1.meeting-block--thought {
  border: 2px solid #d8ccf0;
  background: #fbf8ff;
}

.meeting-block--char-2.meeting-block--perform,
.meeting-block--char-2.meeting-block--dialogue,
.meeting-block--char-2.meeting-block--narration {
  border: 3px solid #90d8b8;
  background: #edfaf4;
  color: #489878;
}
.meeting-block--char-2.meeting-block--inner,
.meeting-block--char-2.meeting-block--thought {
  border: 2px solid #b8ecd8;
  background: #f6fdf9;
}

.meeting-block--char-3.meeting-block--perform,
.meeting-block--char-3.meeting-block--dialogue,
.meeting-block--char-3.meeting-block--narration {
  border: 3px solid #e8d868;
  background: #fffbeb;
  color: #989028;
}
.meeting-block--char-3.meeting-block--inner,
.meeting-block--char-3.meeting-block--thought {
  border: 2px solid #f0e8a0;
  background: #fffdf2;
}

.meeting-block--char-4.meeting-block--perform,
.meeting-block--char-4.meeting-block--dialogue,
.meeting-block--char-4.meeting-block--narration {
  border: 3px solid #90c0e8;
  background: #f0f8ff;
  color: #4878a8;
}
.meeting-block--char-4.meeting-block--inner,
.meeting-block--char-4.meeting-block--thought {
  border: 2px solid #b8d8f0;
  background: #f8fcff;
}

.meeting-block--char-5.meeting-block--perform,
.meeting-block--char-5.meeting-block--dialogue,
.meeting-block--char-5.meeting-block--narration {
  border: 3px solid #e8b898;
  background: #fff5ee;
  color: #a07048;
}
.meeting-block--char-5.meeting-block--inner,
.meeting-block--char-5.meeting-block--thought {
  border: 2px solid #f0d0b8;
  background: #fffaf6;
}

.meeting-empty {
  margin: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.meeting-sending {
  opacity: 0.55;
  pointer-events: none;
}

/* —— 底部输入 —— */
.meeting-composer {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.meeting-input {
  width: 270px;
  max-width: calc(100% - 90px);
  height: 46px;
  border: none;
  border-radius: 999px;
  background: #bfbfbf;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  box-sizing: border-box;
  outline: none;
}

.meeting-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.meeting-send {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--ui-accent-heart, #f7b3c4);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(247, 179, 196, 0.55);
  padding: 0;
}

.meeting-send:active {
  transform: scale(0.96);
}

.meeting-send-icon {
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.meeting-fav-home-btn {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-fav-home-btn:active {
  background: #fff;
}

.meeting-fav-collect-btn {
  position: absolute;
  left: 94px;
  top: 8px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-fav-collect-btn.is-active,
.meeting-fav-collect-btn:active {
  background: #fff;
  color: #6b5b95;
}

.meeting-collect-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #eee;
  font-size: 13px;
}

.meeting-collect-bar.hidden {
  display: none !important;
}

.meeting-favorites-title,
.meeting-favorites-detail-title {
  margin: 0;
  padding: 10px 48px 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #4b4068;
}

.meeting-favorites-stage,
.meeting-favorites-detail-stage {
  position: relative;
}

.meeting-fav-collection-list {
  padding-top: 4px;
}

.meeting-fav-detail-menu-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-fav-detail-scroll {
  scroll-padding-top: 52px;
}

.meeting-fav-detail-scroll .meeting-scroll-inner {
  padding-top: 52px;
}

.meeting-scroll--select-mode .meeting-block {
  cursor: pointer;
  position: relative;
}

.meeting-block--selected {
  outline: 2px solid var(--ui-accent-heart, #f7b3c4);
  outline-offset: 2px;
}

.meeting-block-select-check {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ui-accent-heart, #f7b3c4);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.meeting-scroll--select-mode .meeting-block--selected .meeting-block-select-check::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* —— 演绎假设推理 —— */
.meeting-hypothesis-entry-btn {
  width: min(305px, calc(100% - 40px));
  margin: 0 auto 10px;
  padding: 10px 14px;
  border: 3px solid #c9c1ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #4b4068;
  font: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(75, 64, 104, 0.08);
}

.meeting-hypothesis-entry-btn:active {
  background: #faf9ff;
}

.meeting-hypothesis-entry-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ui-accent-heart, #f7b3c4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.meeting-hypothesis-entry-text {
  flex: 1;
  line-height: 1.35;
  font-weight: 600;
}

.meeting-hypothesis-stage {
  position: relative;
}

.meeting-hypothesis-title {
  margin: 0;
  padding: 8px 48px 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #4b4068;
}

.meeting-hypothesis-clear-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
  height: 32px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #888;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-hypothesis-setup {
  flex-shrink: 0;
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(201, 193, 238, 0.85);
  background: rgba(255, 255, 255, 0.88);
}

.meeting-hypothesis-setup-summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4b4068;
  list-style: none;
}

.meeting-hypothesis-setup-summary::-webkit-details-marker {
  display: none;
}

.meeting-hypothesis-setup-hint {
  margin: 6px 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #888;
}

.meeting-hypothesis-label {
  display: block;
  margin: 6px 0 4px;
  font-size: 12px;
  color: #666;
}

.meeting-hypothesis-space-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 4px;
}

.meeting-hypothesis-brief {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 72px;
}

.meeting-hypothesis-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 8px;
}

.meeting-hypothesis-inner {
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meeting-hypothesis-empty {
  margin: 12px 4px;
  font-size: 13px;
  line-height: 1.55;
  color: #888;
  text-align: center;
}

.meeting-hypothesis-user {
  align-self: flex-end;
  max-width: min(280px, 92%);
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  background: #c9c1ee;
  color: #2a2440;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.meeting-hypothesis-assistant {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meeting-hypothesis-card {
  box-sizing: border-box;
  width: 100%;
  border-radius: 8px;
  border: 2px solid #d8d0f0;
  background: #fff;
  padding: 10px 12px;
}

.meeting-hypothesis-card-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6b5b95;
}

.meeting-hypothesis-card-body {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.meeting-hypothesis-chips {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 12px 4px;
  justify-content: center;
}

.meeting-hypothesis-chip {
  border: 1px solid #c9c1ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4b4068;
  font: inherit;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
}

.meeting-hypothesis-chip:active {
  background: #f3f0ff;
}

.meeting-hypothesis-composer .meeting-hypothesis-input {
  width: min(270px, calc(100% - 90px));
}

/* —— 空间分组管理 —— */
.meeting-space-manage-card {
  max-height: min(85vh, 640px);
  overflow-y: auto;
}

.meeting-space-manage-subtitle {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4b4068;
}

.meeting-space-manage-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #888;
}

.meeting-space-char-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-space-char-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f5fb;
  border: 1px solid #ece8f5;
}

.meeting-space-char-avatar-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
}

.meeting-space-char-avatar-btn:active {
  opacity: 0.85;
}

.meeting-space-char-avatar {
  display: block;
  width: 36px;
  height: 36px;
}

.meeting-space-char-avatar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.meeting-space-char-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.meeting-space-char-edit,
.meeting-space-char-del {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: #6b5b95;
  cursor: pointer;
}

.meeting-space-char-del {
  color: #c0392b;
}

.meeting-space-add-contact-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.meeting-space-add-contact-row select {
  flex: 1;
}

.meeting-space-manage-empty {
  font-size: 13px;
  color: #888;
  margin: 0 0 10px;
}

/* —— 群聊 —— */
.group-chat-create-panel {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 193, 238, 0.85);
  background: rgba(255, 255, 255, 0.88);
}

.group-chat-create-summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4b4068;
}

.group-chat-create-select {
  width: 100%;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  font: inherit;
  font-size: 13px;
}

.group-chat-create-btn {
  width: 100%;
}

.group-chat-row-more {
  flex-shrink: 0;
  padding: 0 8px;
  color: #888;
  cursor: pointer;
}

/* 群聊：微信式对话线程 */
.group-chat-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.group-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 8px;
  -webkit-overflow-scrolling: touch;
}

.group-chat-thread-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-chat-msg .group-chat-msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
  min-width: 0;
}

.group-chat-msg.me .bubble {
  max-width: 78%;
}

.group-chat-nickname {
  font-size: 0.72rem;
  color: #888;
  margin: 0 0 3px 2px;
  line-height: 1.2;
}

.group-chat-composer {
  flex-shrink: 0;
}

.bubble.other.bubble-char-0 {
  background: linear-gradient(165deg, #fff8fa 0%, #fff0f4 48%, #ffd8e4 100%);
  color: #333;
  border: 2px solid #e8a0b0;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

.bubble.other.bubble-char-1 {
  background: linear-gradient(165deg, #fbf8ff 0%, #f6f0ff 48%, #e8d8f8 100%);
  color: #333;
  border: 2px solid #c0a8e0;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

.bubble.other.bubble-char-2 {
  background: linear-gradient(165deg, #f6fdf9 0%, #edfaf4 48%, #c8f0dc 100%);
  color: #333;
  border: 2px solid #90d8b8;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

.bubble.other.bubble-char-3 {
  background: linear-gradient(165deg, #fffdf2 0%, #fffbeb 48%, #fff0b0 100%);
  color: #333;
  border: 2px solid #e8d868;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

.bubble.other.bubble-char-4 {
  background: linear-gradient(165deg, #f8fcff 0%, #f0f8ff 48%, #c8e0f8 100%);
  color: #333;
  border: 2px solid #90c0e8;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

.bubble.other.bubble-char-5 {
  background: linear-gradient(165deg, #fffaf6 0%, #fff5ee 48%, #ffd8c0 100%);
  color: #333;
  border: 2px solid #e8b898;
  border-bottom-left-radius: var(--radius-sm, 4px);
}

#meeting-dimension-group-pane .meeting-stage.meeting-space-select-stage {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: 100%;
  width: 100%;
}

#meeting-space-select-pane {
  position: relative;
}

.meeting-group-manage-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-group-manage-btn:active {
  background: #fff;
  color: #6b5b95;
}

.meeting-char-color-btn {
  position: absolute;
  left: 52px;
  top: 8px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #4b4068;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-char-color-btn:active {
  background: #fff;
  color: #6b5b95;
}

.meeting-char-color-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.45;
}

.meeting-char-color-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meeting-char-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.meeting-char-color-name {
  flex: 0 0 72px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
}

.meeting-char-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meeting-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.meeting-color-swatch.is-active {
  border-color: #6b5b95;
  box-shadow: 0 0 0 2px rgba(107, 91, 149, 0.25);
}

.meeting-color-swatch--0 { background: linear-gradient(165deg, #fff8fa, #ffd8e4); border-color: #ffb7c5; }
.meeting-color-swatch--1 { background: linear-gradient(165deg, #fbf8ff, #e8d8f8); border-color: #d4c4f0; }
.meeting-color-swatch--2 { background: linear-gradient(165deg, #f6fdf9, #c8f0dc); border-color: #b8e6d2; }
.meeting-color-swatch--3 { background: linear-gradient(165deg, #fffdf2, #fff0b0); border-color: #f0e878; }
.meeting-color-swatch--4 { background: linear-gradient(165deg, #f8fcff, #c8e0f8); border-color: #b8d8f8; }
.meeting-color-swatch--5 { background: linear-gradient(165deg, #fffaf6, #ffd8c0); border-color: #ffd4b8; }

#meeting-space-group-title {
  text-align: center;
  margin: 0 40px 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}

#meeting-space-select-back {
  z-index: 3;
}
