:root {
  --bg: #090b10;
  --surface: rgba(16, 19, 28, 0.88);
  --surface-solid: #111520;
  --surface-elevated: #171c2b;
  --surface-2: rgba(22, 27, 41, 0.72);
  --border: rgba(255, 255, 255, 0.085);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #f3f5fa;
  --text-soft: #cbd5e1;
  --muted: #8b95ad;
  --primary: #6366f1;
  --primary-hover: #5255e5;
  --cyan: #38bdf8;
  --blue-meet: #8ab4f8;
  --danger: #ef4444;
  --success: #22c55e;
  --founder: #f59e0b;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(circle at 50% 8%, rgba(99, 102, 241, 0.11), transparent 46%),
    radial-gradient(circle at 18% 82%, rgba(56, 189, 248, 0.07), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select {
  font-family: inherit;
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(11, 14, 21, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.meet-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.meet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

#meetingTimer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.dot-sep {
  opacity: 0.4;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.status-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border: 1px solid var(--border);
  font-size: 11px;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill.active {
  border-color: rgba(138, 180, 248, 0.4);
  color: #dbeafe;
  background: rgba(138, 180, 248, 0.12);
}

.goal-wrap {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.goal-wrap:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(255, 255, 255, 0.055);
}

.goal-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-meet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.goal-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.voice-pill .voice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.voice-pill.elevenlabs {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.voice-pill.gemini {
  border-color: rgba(138, 180, 248, 0.38);
  background: rgba(138, 180, 248, 0.11);
  color: #cfe0ff;
}

.voice-pill.warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.msg-tts-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
}

.msg-tts-badge.elevenlabs {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.msg-tts-badge.gemini {
  border-color: rgba(138, 180, 248, 0.38);
  background: rgba(138, 180, 248, 0.11);
  color: #cfe0ff;
}

/* 3-Column Workspace */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 208px 1fr 355px;
  min-height: 0;
}

/* Left Navigation Rail */
.nav-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  background: rgba(11, 14, 21, 0.78);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border);
  gap: 18px;
  overflow-y: auto;
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 10px 6px;
}

.rail-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-subtle);
  color: #ffffff;
}

.rail-btn.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.rail-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.founder-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.founder-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111317;
}

.founder-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
}

.founder-sub {
  font-size: 11px;
  color: var(--muted);
}

/* Center Stage */
.stage {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 12px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
}

/* Roundtable Stage */
.roundtable-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 290px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(99, 102, 241, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(16, 19, 28, 0.94) 0%, rgba(11, 14, 21, 0.98) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.horizon-glow {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 22%;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(138, 180, 248, 0.1), transparent 70%);
  filter: blur(22px);
}

.floor-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -45px;
  height: 210px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(600px) rotateX(68deg);
  opacity: 0.45;
}

.holo-table-wrap {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: 500px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}

.holo-table {
  width: 460px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(138, 180, 248, 0.1), rgba(99, 102, 241, 0.06) 55%, rgba(12, 15, 24, 0.85) 85%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.12);
  transform: perspective(750px) rotateX(56deg);
  position: relative;
}

.table-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.table-ring.mid {
  inset: 34px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
}

.table-ring.inner {
  inset: 58px;
  border-color: rgba(138, 180, 248, 0.25);
}

.holo-globe {
  position: absolute;
  top: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #a5b4fc, #6366f1 65%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(165, 180, 252, 0.35);
  animation: spinOrbit 10s linear infinite;
}

.globe-ring.r2 {
  inset: 7px;
  border-color: rgba(56, 189, 248, 0.32);
  animation-direction: reverse;
  animation-duration: 7s;
}

@keyframes spinOrbit {
  0% { transform: rotateX(62deg) rotateZ(0deg); }
  100% { transform: rotateX(62deg) rotateZ(360deg); }
}

.roundtable-stage:not(.mode-3d) .holo-table-wrap,
.roundtable-stage:not(.mode-3d) .floor-grid {
  opacity: 0.14;
}

.stage-banner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dbeafe;
}

.banner-sub {
  font-size: 11.5px;
  color: var(--muted);
}

/* 5 Minimal Square Participant Cards */
.participants-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 14px;
  padding: 6px 4px;
}

.roundtable-stage.mode-3d .participant-tile:nth-child(1),
.roundtable-stage.mode-3d .participant-tile:nth-child(5),
.roundtable-stage.mode-3d .participant-tile:nth-child(3) {
  transform: none;
}

.participant-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(148px, 18.5%, 184px);
  aspect-ratio: 1 / 1;
  min-width: 148px;
  overflow: hidden;
  background: rgba(20, 24, 36, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.26);
}

.participant-tile:hover {
  border-color: var(--border-bright);
}

.participant-tile.speaking {
  border-color: var(--tile-accent, var(--blue-meet));
  transform: translateY(-4px) scale(1.02) !important;
  background: rgba(24, 30, 46, 0.94);
  box-shadow:
    0 0 0 3px rgba(138, 180, 248, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.4);
}

.participant-tile.thinking {
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.12);
}

.tile-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.state-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-chip.live {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.founder-chip {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.state-chip.speaking {
  background: rgba(138, 180, 248, 0.16);
  color: #dbeafe;
  border-color: rgba(138, 180, 248, 0.4);
}

.tile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
  flex: 1;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: var(--tile-accent, var(--primary));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.founder-avatar {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111317;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  opacity: 0.2;
}

.participant-tile.speaking .waveform {
  opacity: 1;
}

.waveform span {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 3px;
  background: var(--tile-accent, var(--blue-meet));
}

.participant-tile.speaking .waveform span {
  animation: pulseBar 0.65s infinite ease-in-out;
}

.participant-tile.speaking .waveform span:nth-child(2) { animation-delay: 0.12s; }
.participant-tile.speaking .waveform span:nth-child(3) { animation-delay: 0.24s; }
.participant-tile.speaking .waveform span:nth-child(4) { animation-delay: 0.36s; }
.participant-tile.speaking .waveform span:nth-child(5) { animation-delay: 0.48s; }

@keyframes pulseBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.tile-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.tile-identity {
  min-width: 0;
  flex: 1;
}

.member-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.participant-tile:hover .mention-btn,
.mention-btn:hover {
  opacity: 1;
  border-color: var(--border-bright);
  color: #fff;
}

/* Floating Pill Control Dock */
.floating-dock-wrap {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
}

.control-dock {
  position: relative;
  z-index: 50;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(16, 19, 28, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.custom-select.open {
  z-index: 120;
}

/* Custom Interactive Dropdown Component */
.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rounds-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custom-select {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(138, 180, 248, 0.65);
  background: rgba(138, 180, 248, 0.1);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.14);
}

.custom-select-prefix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.custom-select-value {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--blue-meet);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 290px;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border-radius: 12px;
  background: #131826;
  border: 1px solid var(--border-bright);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.custom-select.open-down .custom-select-menu {
  top: calc(100% + 6px);
  transform: translateY(-6px) scale(0.98);
}

.custom-select.open-up .custom-select-menu {
  bottom: calc(100% + 6px);
  transform: translateY(6px) scale(0.98);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.custom-select-option.selected {
  background: rgba(138, 180, 248, 0.13);
  color: #ffffff;
}

.custom-select-opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.custom-select-opt-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.custom-select-opt-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  white-space: normal;
}

.custom-select-check {
  width: 14px;
  height: 14px;
  color: var(--blue-meet);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
}

.custom-select-option.selected .custom-select-check {
  opacity: 1;
}

/* Modal variant of custom select */
.field-row .custom-select-trigger {
  padding: 8px 10px;
  background: rgba(9, 11, 16, 0.85);
  border-radius: 8px;
  font-size: 12.5px;
}

.field-row .custom-select-menu {
  width: 100%;
  max-width: none;
}

/* Right Live Transcript Sidebar */
.transcript-panel {
  display: flex;
  flex-direction: column;
  background: rgba(11, 14, 21, 0.9);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  min-height: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-scroll-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}

.auto-scroll-toggle input[type="checkbox"] {
  accent-color: var(--primary);
}

.transcript-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.msg-card {
  background: rgba(22, 26, 38, 0.72);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--msg-color, var(--blue-meet));
  border-radius: 11px;
  padding: 10px 12px;
}

.msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.msg-speaker {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--msg-color, var(--text));
}

.msg-role {
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 6px;
}

.msg-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.msg-body {
  font-size: 13px;
  line-height: 1.5;
  color: #e6ebf5;
  white-space: pre-wrap;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.94);
}

.composer input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.composer input:focus {
  border-color: rgba(138, 180, 248, 0.6);
}

/* Buttons */
.btn, .icon-btn {
  border-radius: 9px;
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn.active {
  border-color: rgba(138, 180, 248, 0.48);
  background: rgba(138, 180, 248, 0.14);
  color: #e0ecff;
}

.icon-btn.recording {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.2);
}

#ttsBtn .icon-sound-off {
  display: none;
}

#ttsBtn:not(.active) .icon-sound-on {
  display: none;
}

#ttsBtn:not(.active) .icon-sound-off {
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-primary-outline {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #e0e7ff;
}

.btn-primary-outline:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.65);
}

.btn-secondary:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 11.5px;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn:disabled, .icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Interactive Team & API Studio Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0e121c;
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
}

.modal-header, .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.modal-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
}

.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-save-hint {
  font-size: 11.5px;
  color: var(--muted);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.modal-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.settings-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--border-subtle);
}

.summary-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.summary-stat-pill.ready {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.09);
  color: #86efac;
}

.summary-stat-pill.info {
  border-color: rgba(138, 180, 248, 0.35);
  background: rgba(138, 180, 248, 0.09);
  color: #cfe0ff;
}

.neural-tts-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.tts-studio-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17, 21, 32, 0.85);
}

.tts-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tts-priority-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c7d2fe;
}

.tts-priority-tag.secondary {
  color: var(--blue-meet);
}

.tts-field-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.key-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.key-status-pill.live {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.key-status-pill.demo {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.input-with-action {
  display: flex;
  align-items: center;
  background: rgba(9, 11, 16, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.input-with-action:focus-within {
  border-color: rgba(138, 180, 248, 0.65);
}

.input-with-action input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  padding: 8px 10px !important;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}

.key-toggle-btn {
  padding: 6px 10px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.key-toggle-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.settings-seat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 22px 0;
}

.seat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seat-tab:hover {
  border-color: var(--border-bright);
  color: #fff;
}

.seat-tab.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.55);
  color: #ffffff;
}

.seat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.settings-members {
  padding: 14px 22px 18px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}

.member-config {
  background: rgba(22, 26, 38, 0.72);
  border: 1px solid var(--border);
  border-top: 2px solid var(--seat-color, var(--primary));
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.15s ease;
}

.member-config.hidden-seat {
  display: none;
}

.member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.member-config h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.member-card-sub {
  font-size: 11px;
  color: var(--muted);
}

.member-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-row label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.field-row input, .field-row select {
  background: rgba(9, 11, 16, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-row input:focus {
  border-color: rgba(138, 180, 248, 0.65);
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 1fr 330px;
  }
  .nav-rail {
    display: none;
  }
  .roundtable-stage.mode-3d .participant-tile {
    transform: none;
  }
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .transcript-panel {
    max-height: 280px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .member-subgrid {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-wrap: wrap;
  }
}
