/* ========================================
   智慧会议系统 v6.0 - Design System
   Smart Meeting System Style
   ======================================== */

/* ========== CSS Variables ========== */
:root {
  /* Primary - Blue */
  --primary: #006EFF;
  --primary-light: #E8F0FF;
  --primary-dark: #0052CC;
  --primary-hover: #0058D6;

  /* AI Accent - Purple */
  --ai-primary: #7B61FF;
  --ai-light: #F0EBFF;
  --ai-dark: #5B3FD4;
  --ai-gradient: linear-gradient(135deg, #7B61FF 0%, #B44AFF 100%);
  --ai-glow: 0 0 20px rgba(123, 97, 255, 0.3);

  /* Neutral */
  --bg: #F5F6FA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #1E1F26;
  --bg-sidebar-hover: #2C2D35;
  --bg-sidebar-active: #363740;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text */
  --text-primary: #1F2329;
  --text-secondary: #646A73;
  --text-tertiary: #8F959E;
  --text-white: #FFFFFF;
  --text-sidebar: #B0B3B8;
  --text-sidebar-active: #FFFFFF;

  /* Border */
  --border: #DEE0E3;
  --border-light: #E8E8E8;
  --border-focus: #006EFF;

  /* Status */
  --success: #34C759;
  --success-light: #E8F8ED;
  --warning: #FF9500;
  --warning-light: #FFF3E0;
  --danger: #FF3B30;
  --danger-light: #FFEDED;
  --info: #006EFF;
  --info-light: #E8F0FF;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.16);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Sidebar */
  --sidebar-width: 220px;
  --sidebar-collapsed: 64px;
  --topbar-height: 56px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;

  /* Font */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ========== Reset ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ========== Layout ========== */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ========== Sidebar ========== */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal);
  z-index: 100;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--ai-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  list-style: none;
  padding: 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-sidebar);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  font-size: 14px;
  user-select: none;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.nav-item.active {
  background: var(--primary);
  color: var(--text-white);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 12px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--ai-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.user-detail {
  flex: 1;
  min-width: 0;
}

.user-name {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
}

.user-role {
  color: var(--text-sidebar);
  font-size: 11px;
  margin-top: 2px;
}

/* ========== Main Content ========== */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

#top-bar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 10;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

#page-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
  line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ai {
  background: var(--ai-gradient);
  color: white;
}
.btn-ai:hover { opacity: 0.9; box-shadow: var(--ai-glow); }

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { opacity: 0.9; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 4px 8px;
}
.btn-text:hover { background: var(--primary-light); }

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
}

/* ========== Cards ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== Stats ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--info-light); }
.stat-icon.purple { background: var(--ai-light); }
.stat-icon.green { background: var(--success-light); }
.stat-icon.orange { background: var(--warning-light); }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ========== Meeting List ========== */
.meeting-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.meeting-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.meeting-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.meeting-time-col {
  min-width: 80px;
  text-align: center;
}

.meeting-time {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.meeting-duration {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.meeting-info {
  flex: 1;
  min-width: 0;
}

.meeting-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.meeting-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meeting-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-upcoming { background: var(--info-light); color: var(--info); }
.badge-in_progress { background: var(--success-light); color: var(--success); }
.badge-ended { background: #F0F0F0; color: var(--text-tertiary); }
.badge-ai { background: var(--ai-light); color: var(--ai-primary); }

/* ========== Forms ========== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ========== Tabs ========== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}

.tab {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  user-select: none;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
}

/* ========== Toast ========== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }

/* ========== Meeting Room ========== */
.meeting-room {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* Room Header: Meeting Name + Tabs + Actions in one row */
.room-header {
  display: flex;
  align-items: center;
  background: #1A1B20;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
  min-height: 44px;
  flex-shrink: 0;
}

.room-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;
}

.room-header-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-header-number {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.room-header-timer {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.room-header-tabs {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.room-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Room Tabs */
.room-tabs {
  display: flex;
  gap: 0;
  background: #1A1B20;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
}

.room-tab {
  padding: 10px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.room-tab:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
}

.room-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
  background: rgba(123,97,255,0.08);
}

#room-tab-content {
  flex: 1;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Discussion tab needs no scroll (has its own internal scroll) */
#room-tab-content .discussion-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  flex: 1;
}

#room-tab-content .room-main {
  background: #0D0E12;
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
}

#room-tab-content .room-control-bar {
  background: #1A1B20;
}

.room-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* Video Grid */
.video-grid {
  flex: 1;
  display: grid;
  gap: 8px;
  padding: 8px;
  align-content: center;
  justify-content: center;
}

.video-grid.grid-1 { grid-template-columns: 1fr; max-width: 800px; margin: auto; }
.video-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.video-grid.grid-3 { grid-template-columns: 1fr 1fr; }
.video-grid.grid-4 { grid-template-columns: 1fr 1fr; }
.video-grid.grid-many { grid-template-columns: repeat(3, 1fr); }

.video-tile {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #1A1B20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.video-tile.human-tile {
  background: linear-gradient(135deg, #1A2332 0%, #1E2A3A 100%);
}

.video-tile.ai-tile {
  background: linear-gradient(135deg, #1A1530 0%, #2A1A40 100%);
  border: 1px solid rgba(123, 97, 255, 0.2);
}

.video-tile.ai-tile::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--ai-gradient);
  opacity: 0;
  z-index: -1;
  animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.15; }
}

.tile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.human-tile .tile-avatar {
  background: linear-gradient(135deg, #2A5298 0%, #1E3C72 100%);
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.ai-tile .tile-avatar {
  background: var(--ai-gradient);
  animation: aiAvatarPulse 2s ease-in-out infinite;
}

@keyframes aiAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(123, 97, 255, 0); }
}

.tile-name {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.tile-role {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.ai-tile .tile-role {
  color: rgba(123, 97, 255, 0.8);
}

.tile-speaking {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--success);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.ai-tile .tile-speaking {
  background: var(--ai-gradient);
}

/* Chat Panel */
.chat-panel {
  flex: 1;
  min-width: 0;
  background: #141519;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  transition: flex var(--transition-normal);
}

.chat-panel.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.chat-msg {
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.chat-msg-avatar.human {
  background: #2A5298;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.chat-msg-avatar.host {
  background: #FF9800;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.chat-msg-avatar.remote {
  background: #FF5722;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.chat-msg.host-msg {
  border-left: 3px solid #FF9800;
  padding-left: 8px;
}

.chat-msg.host-msg .chat-msg-name {
  color: #FF9800;
}

.chat-msg-avatar.ai {
  background: var(--ai-gradient);
}

.chat-msg-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.chat-msg.ai-msg .chat-msg-name {
  color: var(--ai-primary);
}

.chat-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.chat-msg-content {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  padding-left: 30px;
}

.chat-msg.ai-msg .chat-msg-content {
  color: rgba(255,255,255,0.9);
  border-left: 2px solid var(--ai-primary);
  padding-left: 12px;
  margin-left: 30px;
}

.chat-input-area {
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== LLM-style Chat Input Card ===== */
.chat-input-card-llm {
  background: #2a2b35;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-card-llm:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.llm-format-bar {
  display: flex; gap: 2px; padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.llm-format-bar button {
  background: none; border: none; color: rgba(255,255,255,0.5);
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.llm-format-bar button:hover { background: rgba(255,255,255,0.1); color: #fff; }
.llm-input-row {
  display: flex; align-items: flex-end; gap: 4px; padding: 8px 10px;
}
.llm-icon-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.llm-icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.llm-icon-btn.active { background: rgba(99,102,241,0.2); color: #6366f1; }
.llm-icon-btn.recording { background: rgba(231,76,60,0.2); color: #e74c3c; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

.llm-send-btn {
  background: #6366f1; border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.llm-send-btn:hover { background: #4f46e5; transform: scale(1.05); }
.llm-send-btn:active { transform: scale(0.95); }

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

.chat-input {
  flex: 1;
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--ai-primary);
}

.chat-input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Voice Input Button */
.chat-voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: #1E1F26;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  align-self: flex-end;
}
.chat-voice-btn:hover {
  background: rgba(123,97,255,0.2);
  border-color: var(--ai-primary);
}
.chat-voice-btn.recording {
  background: rgba(244,67,54,0.2);
  border-color: #F44336;
  animation: voice-pulse 1.2s infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,67,54,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(244,67,54,0); }
}

/* Control Bar */
.control-bar {
  height: 64px;
  background: #141519;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-family);
}

.control-btn:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.control-btn.active {
  color: var(--primary);
}

/* v8.5.2: Voice join button with pulse */
#btn-voice-join {
  position: relative;
}
#btn-voice-join.active {
  background: rgba(7,193,96,0.15);
  color: #07c160;
}
#voice-join-dot {
  animation: voice-pulse 2s ease-in-out infinite;
}
#voice-join-dot.connected {
  background: #07c160 !important;
}
@keyframes voice-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

.control-btn.danger {
  color: var(--danger);
}

.control-btn-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
}

.control-btn.active .control-btn-icon {
  background: var(--primary);
  color: white;
}

.control-btn-label {
  font-size: 10px;
}

.control-btn.end-meeting .control-btn-icon {
  background: var(--danger);
  color: white;
  width: auto;
  padding: 0 16px;
  border-radius: var(--radius-full);
}

/* ========== Participants Panel ========== */
.participants-panel {
  width: 280px;
  min-width: 200px;
  max-width: 400px;
  background: #141519;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.participants-panel.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

.panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.panel-close:hover { color: white; }

.participant-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.participant-item:hover {
  background: rgba(255,255,255,0.04);
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.participant-avatar.human {
  background: #2A5298;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.participant-avatar.ai {
  background: var(--ai-gradient);
}

.participant-name {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.participant-item.ai-item .participant-name {
  color: var(--ai-primary);
}

.participant-role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.participant-actions {
  display: flex;
  gap: 4px;
}

.participant-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.participant-action-btn:hover {
  background: var(--ai-primary);
  color: white;
}

/* ========== Create Meeting Form ========== */
.create-form {
  max-width: 720px;
}

.form-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Chip/Tag selector */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  user-select: none;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.chip.ai-chip.selected {
  background: var(--ai-light);
  border-color: var(--ai-primary);
  color: var(--ai-primary);
}

.chip-remove {
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
}

.chip-remove:hover { opacity: 1; }

/* ========== Settings ========== */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  max-width: 900px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-nav-item:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.settings-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.settings-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
}

.settings-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

/* ========== Data Table ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
  background: var(--bg);
}

/* ========== Empty State ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-state-hint {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========== Loading ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-tertiary);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

.dark-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

.dark-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  #sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
  }
  .nav-label, .logo-text, .user-detail { display: none; }
  .sidebar-header { padding: 16px 14px; }
  .nav-item { justify-content: center; padding: 10px; }
  .user-info { justify-content: center; }

  .chat-panel { width: 280px; min-width: 280px; }
  .participants-panel { width: 240px; min-width: 240px; }

  .form-row { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== AI Thinking Indicator ========== */
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--ai-primary);
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

.ai-thinking-dots {
  display: flex;
  gap: 4px;
}

.ai-thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-primary);
  animation: thinkingBounce 1.4s ease-in-out infinite;
}

.ai-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ========== Meeting Room Info Bar ========== */
.room-title {
  color: white;
  font-size: 15px;
  font-weight: 500;
}

.room-number {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-left: 12px;
}

.room-timer {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ========== v6.1 Enhanced Meeting Room Styles ========== */

/* Room action button (generate minutes) */
.room-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-family);
  transition: all var(--transition-fast);
}
.room-action-btn:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}
.room-action-label {
  font-size: 12px;
}

/* Feature 1: Screen share tile */
.screen-share-tile {
  aspect-ratio: 16/9;
  background: #000;
}
.screen-share-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* Feature 2: Resize handles */
.resize-handle {
  width: 4px;
  cursor: col-resize;
  background: transparent;
  transition: background var(--transition-fast);
  flex-shrink: 0;
  z-index: 5;
}
.resize-handle:hover {
  background: var(--ai-primary);
}

/* Feature 3: Tile status indicator */
.tile-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
}
.status-dot.online {
  background: #4CAF50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}
.status-dot.ai-online {
  background: var(--ai-primary);
  box-shadow: 0 0 4px rgba(123, 97, 255, 0.5);
}
.status-text {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

/* Feature 3: Click hint on AI tiles */
.tile-click-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--ai-primary);
  background: rgba(123, 97, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.ai-tile:hover .tile-click-hint {
  opacity: 1;
}

/* Feature 3: AI tile speaking animation */
.ai-tile.speaking {
  border-color: var(--ai-primary);
  box-shadow: 0 0 20px rgba(123, 97, 255, 0.3);
}
.ai-tile.speaking .tile-avatar {
  animation: aiSpeakingPulse 0.8s ease-in-out infinite;
}
@keyframes aiSpeakingPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(123, 97, 255, 0); }
}

/* Feature 3: Participant info enhancement */
.participant-info {
  flex: 1;
  min-width: 0;
}
.participant-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.host-badge {
  display: inline-block;
  font-size: 10px;
  background: var(--primary);
  color: white;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: middle;
}
.participant-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.participant-status-dot.online {
  background: #4CAF50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* Feature 4: TTS button in chat messages */
.chat-msg-tts-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-left: auto;
}
.chat-msg-tts-btn:hover {
  opacity: 0.8;
}

.thinking-indicator .chat-msg-content {
  color: var(--text-tertiary);
  font-style: italic;
}
.thinking-indicator .dots::after {
  content: '';
  animation: dots 1.5s steps(4,end) infinite;
}
@keyframes dots {
  0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; }
}

.chat-msg-tts-btn:hover {
  color: var(--ai-primary);
  background: rgba(123, 97, 255, 0.1);
}

/* Feature 5: Chat toolbar */
.chat-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.chat-toolbar-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.chat-toolbar-btn:hover {
  background: rgba(123, 97, 255, 0.15);
  color: var(--ai-primary);
}

/* Feature 5: Chat input textarea auto-resize handled inline */

/* Feature 5: Markdown rendered content styles */
.msg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
.msg-table th {
  background: rgba(123, 97, 255, 0.15);
  color: var(--ai-primary);
  padding: 6px 10px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}
.msg-table td {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.msg-code-block {
  background: #0D0E12;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-size: 12px;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.msg-inline-code {
  background: rgba(123, 97, 255, 0.1);
  color: var(--ai-primary);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
}

.msg-h {
  color: rgba(255,255,255,0.95);
  margin: 8px 0 4px;
  font-weight: 600;
}
.msg-h2 { font-size: 16px; }
.msg-h3 { font-size: 14px; }
.msg-h4 { font-size: 13px; }

.msg-ul, .msg-ol {
  padding-left: 20px;
  margin: 4px 0;
}
.msg-li, .msg-oli {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin: 2px 0;
}

.msg-quote {
  border-left: 3px solid var(--ai-primary);
  padding: 4px 12px;
  margin: 6px 0;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  background: rgba(123, 97, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.msg-link {
  color: var(--ai-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(123, 97, 255, 0.3);
}
.msg-link:hover {
  color: white;
  border-bottom-color: white;
}

/* Feature 5: Chart block */
.chart-block {
  background: rgba(123, 97, 255, 0.06);
  border: 1px solid rgba(123, 97, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 8px 0;
}
.chart-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ai-primary);
  margin-bottom: 8px;
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-bar-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}
.chart-bar-track {
  flex: 1;
  height: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  background: var(--ai-gradient);
  border-radius: 8px;
  transition: width 0.5s ease;
  min-width: 4px;
}
.chart-bar-value {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  width: 30px;
  flex-shrink: 0;
}

/* Feature 5: Video/Image in chat */
.chat-msg-content video,
.chat-msg-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 4px 0;
}

/* ========== v7.0 Voice Conference Panel ========== */

/* Voice Control Bar - bottom of meeting room */
.voice-control-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: #1A1B20;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.voice-control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  min-width: 80px;
}

.voice-control-btn .voice-btn-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.voice-control-btn .voice-btn-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* Disconnected state */
.voice-control-btn.disconnected {
  background: transparent;
}
.voice-control-btn.disconnected .voice-btn-icon {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}

/* Muted state */
.voice-control-btn.muted {
  background: transparent;
}
.voice-control-btn.muted .voice-btn-icon {
  background: rgba(255,59,48,0.15);
  color: #FF3B30;
}

/* Active (speaking) state */
.voice-control-btn.active {
  background: rgba(52,199,89,0.1);
}
.voice-control-btn.active .voice-btn-icon {
  background: #34C759;
  color: white;
  animation: voiceSpeakingPulse 1.5s ease-in-out infinite;
}

@keyframes voiceSpeakingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(52, 199, 89, 0); }
}

/* Voice loading spinner */
@keyframes voiceSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.voice-spin {
  animation: voiceSpin 1s linear infinite;
}

/* Voice button SVG icon sizing */
.voice-control-btn .voice-btn-icon svg {
  display: block;
}

/* Voice Panel - sidebar section */
.voice-panel {
  background: #141519;
  border-left: 1px solid rgba(255,255,255,0.06);
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.25s ease, min-width 0.25s ease;
}

.voice-panel.collapsed {
  width: 0;
  min-width: 0;
  border-left: none;
}

.voice-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-panel-title {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Voice Mode Bar (host only) */
.voice-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.voice-mode-btn {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  white-space: nowrap;
}

.voice-mode-btn:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.voice-mode-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.voice-mode-btn.danger {
  border-color: rgba(255,59,48,0.3);
  color: #FF3B30;
}

.voice-mode-btn.danger:hover {
  background: rgba(255,59,48,0.15);
}

/* Voice Section */
.voice-section {
  margin-bottom: 8px;
}

.voice-section-title {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 8px 4px;
  font-weight: 500;
}

/* Voice Participant Row */
.voice-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.voice-participant:hover {
  background: rgba(255,255,255,0.04);
}

.voice-participant.speaking {
  background: rgba(52,199,89,0.08);
}

.voice-participant.muted {
  background: rgba(255,59,48,0.04);
}

.voice-participant.me {
  background: rgba(0,110,255,0.06);
}

/* Voice Avatar */
.voice-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #2A5298;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.voice-avatar.speaking-pulse {
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4);
  animation: voiceAvatarPulse 1.5s ease-in-out infinite;
}

@keyframes voiceAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
}

.voice-info {
  flex: 1;
  min-width: 0;
}

.voice-name {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-status {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

.voice-participant.speaking .voice-status {
  color: #34C759;
}

.voice-participant.muted .voice-status {
  color: #FF3B30;
}

/* Voice Action Buttons */
.voice-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.voice-action-btn.allow {
  background: rgba(52,199,89,0.15);
  color: #34C759;
}

.voice-action-btn.allow:hover {
  background: #34C759;
  color: white;
}

.voice-action-btn.mute {
  background: rgba(255,59,48,0.15);
  color: #FF3B30;
}

.voice-action-btn.mute:hover {
  background: #FF3B30;
  color: white;
}

/* Speaking indicator on video tiles */
.video-tile.speaking {
  border: 2px solid #34C759;
  box-shadow: 0 0 16px rgba(52, 199, 89, 0.3);
}

.video-tile.speaking .tile-speaking {
  height: 4px;
  background: #34C759;
  animation: speakingBar 0.8s ease-in-out infinite;
}

@keyframes speakingBar {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ASR interim text overlay */
#asr-interim {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Voice join button */
.voice-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #34C759 0%, #30B050 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  width: 100%;
}

.voice-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.voice-join-btn:active {
  transform: translateY(0);
}

/* Voice connection status */
.voice-connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.voice-connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.voice-connection-dot.connected {
  background: #34C759;
  box-shadow: 0 0 4px rgba(52, 199, 89, 0.5);
}

.voice-connection-dot.connecting {
  background: #FF9500;
  animation: connectingPulse 1s infinite;
}

@keyframes connectingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Voice volume meter */
.voice-volume-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.voice-volume-bar {
  width: 3px;
  background: #34C759;
  border-radius: 2px;
  transition: height 0.1s;
}

.voice-volume-bar:nth-child(1) { height: 4px; }
.voice-volume-bar:nth-child(2) { height: 8px; }
.voice-volume-bar:nth-child(3) { height: 12px; }
.voice-volume-bar:nth-child(4) { height: 8px; }
.voice-volume-bar:nth-child(5) { height: 4px; }

/* Voice quality indicator */
.voice-quality-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .voice-panel {
    width: 240px;
    min-width: 240px;
  }
  
  .voice-control-bar {
    gap: 6px;
    padding: 6px 8px;
    flex-wrap: wrap;
  }
  
  .voice-control-btn {
    padding: 6px 8px;
    min-width: 56px;
  }
  
  .voice-control-btn .voice-btn-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .voice-control-btn .voice-btn-label {
    font-size: 10px;
  }

  .voice-quality-indicator {
    padding: 2px 6px;
    font-size: 9px;
  }

  .voice-connection-status {
    font-size: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .voice-control-bar {
    gap: 4px;
    padding: 4px 6px;
  }
  
  .voice-control-btn {
    padding: 4px 6px;
    min-width: 48px;
  }
  
  .voice-control-btn .voice-btn-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .voice-control-btn .voice-btn-label {
    font-size: 9px;
  }

  .voice-quality-indicator {
    display: none;  /* 小屏幕隐藏质量指示器 */
  }
}

/* Touch-friendly: larger tap targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .voice-control-btn {
    min-height: 60px;
  }
  
  .voice-action-btn {
    width: 36px;
    height: 36px;
  }
  
  .voice-mode-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ===== WeChat-style Chat Enhancements ===== */
.emoji-picker-bar{display:flex;flex-wrap:wrap;gap:2px;padding:8px;background:#2a2a3e;border-top:1px solid rgba(255,255,255,.1);max-height:180px;overflow-y:auto}
.emoji-item:hover{background:rgba(255,255,255,.15);border-radius:4px}
.voice-msg-overlay{position:absolute;bottom:100%;left:0;right:0;background:rgba(0,0,0,.85);color:#fff;padding:16px;display:flex;justify-content:center;align-items:center;z-index:10;border-radius:8px 8px 0 0}
.voice-msg-indicator{display:flex;align-items:center;gap:12px;font-size:14px}
.rec-dot{width:10px;height:10px;background:#fa5151;border-radius:50%;animation:pulse 1s infinite}
.voice-msg-hint{color:#999;font-size:12px}

/* Voice message bubble in chat */
.chat-msg-content .voice-bubble{display:flex;align-items:center;gap:8px;cursor:pointer;min-width:80px;padding:4px 0}
.chat-msg-content .voice-bubble .play-icon{font-size:18px}
.chat-msg-content .voice-bubble .wave{display:flex;align-items:center;gap:2px;height:16px}
.chat-msg-content .voice-bubble .wave span{width:3px;background:currentColor;border-radius:2px;animation:wave 1s ease-in-out infinite}
.chat-msg-content .voice-bubble .wave span:nth-child(1){height:6px;animation-delay:0s}
.chat-msg-content .voice-bubble .wave span:nth-child(2){height:10px;animation-delay:.1s}
.chat-msg-content .voice-bubble .wave span:nth-child(3){height:14px;animation-delay:.2s}
.chat-msg-content .voice-bubble .wave span:nth-child(4){height:10px;animation-delay:.3s}
.chat-msg-content .voice-bubble .wave span:nth-child(5){height:6px;animation-delay:.4s}
.chat-msg-content .voice-bubble .dur{font-size:12px;color:var(--text2)}
.chat-msg-content .voice-text{font-size:12px;color:var(--text2);margin-top:4px;font-style:italic}

/* Image bubble in chat */
.chat-msg-content .img-bubble{max-width:220px;border-radius:8px;overflow:hidden;cursor:pointer;margin:4px 0}
.chat-msg-content .img-bubble img{width:100%;display:block;border-radius:8px}

/* Call record bubble */
.chat-msg-content .call-bubble{display:flex;align-items:center;gap:6px;color:var(--text2);font-size:13px}
.chat-msg-content .call-bubble .call-icon{font-size:16px}

@keyframes wave{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.3)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* ===== Group Voice Call (WeChat-style) ===== */
.group-call-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:1000}
.group-call-panel{background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);border-radius:16px;padding:24px;min-width:320px;max-width:400px;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.group-call-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:16px}
.group-call-header span:last-child{color:#07c160;font-size:14px;font-weight:600}
.group-call-participants{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:16px 0;max-height:200px;overflow-y:auto}
.call-participant{display:flex;flex-direction:column;align-items:center;gap:4px;width:60px}
.call-p-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600}
.call-p-avatar.me{background:linear-gradient(135deg,#07c160,#06ad56);color:#fff}
.call-p-avatar.remote{background:linear-gradient(135deg,#FF9800,#F57C00);color:#fff}
.call-p-avatar.ai{background:linear-gradient(135deg,#576b95,#3a5178);color:#fff}
.call-p-name{font-size:11px;text-align:center;color:rgba(255,255,255,.8);max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-call-controls{display:flex;justify-content:center;gap:20px;margin-top:20px}
.group-call-btn{width:56px;height:56px;border-radius:50%;border:none;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.15);color:#fff;transition:all .2s}
.group-call-btn:hover{background:rgba(255,255,255,.25)}
.group-call-btn.active{background:rgba(255,255,255,.3)}
.group-call-btn.hangup{background:#fa5151}
.group-call-btn.hangup:hover{background:#e04040}
.panel-action-btn:hover{opacity:.85}

/* v10.0: LLM-style attach button */
.llm-attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
}
.llm-attach-btn:hover {
  color: var(--primary, #07c160);
  background: rgba(7, 193, 96, 0.1);
}

/* v10.0: Screen share card in chat */
.screen-share-card img {
  max-width: 100%;
  border-radius: 6px;
}
.screen-share-card {
  max-width: 400px;
}

/* ==================== Calendar View - Desk Calendar ==================== */
.desk-cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 28px 32px;
  min-height: 100%;
  background: linear-gradient(180deg, #E8E8F0 0%, #F5F6FA 30%, #F0F0F5 100%);
}

/* Bottom stand - the triangular support of a desk calendar */
.dc-stand {
  width: 70%;
  max-width: 700px;
  height: 28px;
  background: linear-gradient(180deg, #B8B8C8 0%, #9898A8 40%, #808090 80%, #707080 100%);
  border-radius: 0 0 8px 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.1),
    inset 0 2px 3px rgba(255,255,255,0.3);
  position: relative;
}
/* Stand shadow on the "desk" */
.dc-stand::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 5%;
  right: 5%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, transparent 70%);
}

/* Calendar page - the "paper" sitting on the stand */
.dc-page {
  width: 100%;
  max-width: 900px;
  background: linear-gradient(180deg, #FEFEFE 0%, #FAFAFA 100%);
  border-radius: 3px 3px 6px 6px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05),
    0 3px 8px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.1),
    0 16px 48px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Subtle paper texture */
.dc-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.dc-page > * {
  position: relative;
  z-index: 2;
}

/* Header - purple binding strip with holes */
.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 18px;
  background: linear-gradient(135deg, #5E5CE6 0%, #706EE8 50%, #5E5CE6 100%);
  color: #fff;
  position: relative;
  box-shadow: 0 2px 8px rgba(94,92,230,0.3);
}
/* Binding holes decoration */
.dc-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 24px,
    rgba(255,255,255,0.2) 24px,
    rgba(255,255,255,0.2) 30px,
    transparent 30px,
    transparent 54px
  );
}
/* Metal ring detail */
.dc-header::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 4px,
    transparent 4px,
    transparent 54px
  );
}
.dc-month {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.dc-nav {
  display: flex;
  gap: 6px;
}
.dc-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.dc-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.dc-btn-now {
  background: #fff;
  color: #5E5CE6;
  border-color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.dc-btn-now:hover {
  background: #F0EEFF;
}

/* Weekday header row */
.dc-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #5E5CE6;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.dc-wk {
  padding: 8px 0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

/* Calendar grid */
.dc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #E8E8E8;
  gap: 1px;
}

/* Day cell - like writing on paper */
.dc-d {
  min-height: 88px;
  padding: 4px 6px;
  cursor: pointer;
  transition: background 0.12s;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.dc-d:hover {
  background: #F5F3FF;
}

/* Today */
.dc-d-today {
  background: #F0EDFF !important;
  box-shadow: inset 0 0 0 2px #5E5CE6;
}
.dc-n-today {
  background: #5E5CE6 !important;
  color: #fff !important;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(94,92,230,0.4);
}

/* Other month - faded like pencil marks */
.dc-d-other {
  background: #FAFAFA;
}
.dc-d-other .dc-n {
  color: #C8C8C8;
}
.dc-d-other .dc-evt {
  opacity: 0.35;
}

/* Date number */
.dc-n {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 2px;
  line-height: 26px;
  height: 26px;
}

/* Events container */
.dc-evts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

/* Event bar - like colored sticky notes on the calendar */
.dc-evt {
  font-size: 11px;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.5;
  transition: all 0.12s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.dc-evt:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.dc-more {
  font-size: 10px;
  color: #5E5CE6;
  padding: 0 5px;
  cursor: pointer;
  font-weight: 500;
}
.dc-more:hover {
  text-decoration: underline;
}

/* Legend */
.dc-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-top: 1px solid #E8E8E8;
  font-size: 12px;
  color: #6B7280;
  background: #FAFAFA;
}
.dc-lg {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dc-lg i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Day meeting list in modal */
.di {
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #F9FAFB;
  cursor: pointer;
  transition: background 0.12s;
}
.di:hover { background: #F0EEFF; }
.di-t { font-weight:600; font-size:14px; color:#1F2937; margin-bottom:3px; }
.di-m { font-size:12px; color:#6B7280; }

/* Meeting detail */
.mdtl { padding:4px 0; }
.mdtl-r { display:flex; padding:8px 0; border-bottom:1px solid #F3F4F6; font-size:14px; }
.mdtl-r:last-child { border-bottom:none; }
.mdtl-l { width:72px; flex-shrink:0; color:#6B7280; font-weight:500; }

/* Responsive */
@media (max-width: 768px) {
  .desk-cal { padding: 10px 8px 16px; }
  .dc-stand { width: 85%; height: 16px; }
  .dc-header { flex-direction:column; gap:8px; align-items:flex-start; padding:10px 14px; }
  .dc-month { font-size:16px; }
  .dc-d { min-height:55px; padding:2px 3px; }
  .dc-evt { font-size:9px; padding:1px 3px; box-shadow:none; }
  .dc-n { font-size:10px; }
  .dc-n-today { width:20px; height:20px; font-size:10px; }
  .dc-grid { gap: 0; }
}


/* ==================== Voting Resolution ==================== */
.vt-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #F5F6FA;
}
.vt-header {
  padding: 20px 24px;
  background: #5E5CE6;
  color: #fff;
}
.vt-header-title {
  font-size: 20px;
  font-weight: 700;
}
.vt-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vt-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vt-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}
.vt-status {
  font-size: 12px;
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.vt-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.vt-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vt-bar-label {
  width: 36px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
  flex-shrink: 0;
}
.vt-bar-track {
  flex: 1;
  height: 24px;
  background: #F3F4F6;
  border-radius: 12px;
  overflow: hidden;
}
.vt-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.vt-bar-approve {
  background: linear-gradient(90deg, #34C759, #30D158);
}
.vt-bar-oppose {
  background: linear-gradient(90deg, #FF3B30, #FF6259);
}
.vt-bar-abstain {
  background: linear-gradient(90deg, #8E8E93, #AEAEB2);
}
.vt-bar-count {
  width: 80px;
  font-size: 12px;
  color: #6B7280;
  text-align: right;
  flex-shrink: 0;
}
.vt-total {
  font-size: 13px;
  color: #8E8E93;
  margin-bottom: 8px;
}
.vt-close-btn {
  padding: 6px 16px;
  background: #FF3B30;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.vt-close-btn:hover {
  background: #E02D24;
}

/* Vote popup in meeting room */
.vote-popup {
  text-align: center;
  padding: 20px;
}
.vote-popup-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1F2937;
}
.vote-popup-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.vote-opt-btn {
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  min-width: 80px;
}
.vote-opt-approve {
  background: #E8F8ED;
  color: #34C759;
  border-color: #34C759;
}
.vote-opt-approve:hover {
  background: #34C759;
  color: #fff;
}
.vote-opt-abstain {
  background: #F3F4F6;
  color: #8E8E93;
  border-color: #8E8E93;
}
.vote-opt-abstain:hover {
  background: #8E8E93;
  color: #fff;
}
.vote-opt-oppose {
  background: #FFEDED;
  color: #FF3B30;
  border-color: #FF3B30;
}
.vote-opt-oppose:hover {
  background: #FF3B30;
  color: #fff;
}
.vote-popup-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E8E8E8;
}
.vote-view-result {
  background: none;
  border: none;
  color: #5E5CE6;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  padding: 6px 12px;
}
.vote-view-result:hover {
  text-decoration: underline;
}

/* ===== ICP Footer ===== */
.icp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 3px 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 100;
  border-top: 1px solid #e2e8f0;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.icp-footer span { display: inline; }
.icp-footer .icp-sep { margin: 0 6px; color: #cbd5e1; }
.icp-footer a {
  color: #64748b;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s;
}
.icp-footer a:hover { color: #2563eb; text-decoration: underline; }
/* Ensure main content has bottom padding so footer doesn't overlap */
#main-content { padding-bottom: 28px !important; }
