/* ═══════════════════════════════════════════════════════
   TayzoPrompter - Pace Mode Collaborative Simulation Styles
   ═══════════════════════════════════════════════════════ */

#pace-collab {
  background: radial-gradient(circle at 50% 100%, rgba(32, 61, 98, 0.08), transparent 70%), #06080d;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Device stage container */
.pace-stage {
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  margin: 60px auto 0 auto;
  border-radius: 28px;
  padding: 24px;
  box-sizing: border-box;
}

/* Generic mock window shells */
.mock-device {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-clip: padding-box;
  box-sizing: border-box;
}

/* Device Header / Titlebars */
.mock-titlebar {
  align-items: center;
  background: #0d0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  position: relative;
}

/* macOS traffic lights */
.mock-dots {
  display: flex;
  gap: 8px;
}
.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27c93f; }

.mock-title {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  left: 50%;
  letter-spacing: 0.02em;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.mock-badge {
  align-items: center;
  background: rgba(135, 200, 248, 0.1);
  border: 1px solid rgba(135, 200, 248, 0.25);
  border-radius: 20px;
  color: #87c8f8;
  display: flex;
  font-family: var(--font-title);
  font-size: 8px;
  font-weight: 700;
  gap: 4px;
  letter-spacing: 0.1em;
  margin-left: auto;
  padding: 3px 8px;
  text-transform: uppercase;
}
.mock-badge .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #87c8f8;
  animation: pulse-badge 1.8s infinite;
}

@keyframes pulse-badge {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* 1. Main Talent Prompter Screen */
.talent-device {
  height: 380px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
  z-index: 2;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}
.talent-device .device-inner {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.talent-device.highlighted .device-inner {
  border-color: rgba(135, 200, 248, 0.35);
  box-shadow: 0 0 40px rgba(135, 200, 248, 0.12), 0 40px 80px rgba(0, 0, 0, 0.85);
}

.talent-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #04060a;
}

.talent-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 130px 48px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.talent-text {
  font-family: var(--font-body);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
}
.talent-text .pw {
  display: inline-block;
  padding: 0 4px;
  transition: color 0.3s ease;
}
.talent-text .pw.active-pace {
  color: #ffffff;
}

/* Guide assets */
.talent-device .focus-arrow {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #87c8f8;
  opacity: 0.85;
}
.talent-device .guide-line {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 50%;
  border-top: 1.5px dashed rgba(135, 200, 248, 0.35);
  transform: translateY(-50%);
  z-index: 9;
}

/* Toast alert overlay */
.pace-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(13, 15, 20, 0.9);
  border: 1px solid rgba(135, 200, 248, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  color: #87c8f8;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pace-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* 2. Phone Remote Operator Device */
.operator-device {
  height: 380px;
  flex: 0 0 auto;
  max-width: 0;
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.95);
  overflow: hidden;
  z-index: 5;
  border: 0px solid #111115; /* phone frame bezel starts collapsed */
  border-radius: 36px; /* modern smartphone rounded corners */
  transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.operator-device.visible {
  max-width: 296px; /* content 280px + phone bezel 16px */
  opacity: 1;
  border-width: 8px; /* thick premium phone bezel */
  transform: translate3d(0, 0, 0) scale(1);
}
.operator-device.highlighted {
  border-color: #272a33;
  box-shadow: 0 0 35px rgba(91, 127, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.85);
}

.operator-content {
  flex: 1;
  background: #0a0a0f; /* rp002 bg-primary */
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Emulating rp002 screens */
.operator-view {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
}
.operator-view.active {
  display: flex;
}

/* WPM / Font Adjust Layout elements (Emulating rp002 styles.css) */
.collab-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.collab-btn {
  flex: 1;
  background: #222240; /* rp002 bg-elevated */
  border: none;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 10px;
  box-sizing: border-box;
  transition: background 0.15s, transform 0.1s;
}
.collab-btn:active {
  transform: scale(0.96);
}
.collab-btn.active-play {
  background: #5b7fff; /* rp002 accent */
}
.collab-btn svg {
  fill: currentColor;
}
.collab-btn .btn-lbl {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Mode Segmented Controls */
.collab-segmented {
  display: flex;
  background: #0a0a0f;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.collab-segment {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 6px;
  cursor: pointer;
  text-align: center;
}
.collab-segment.active {
  background: #5b7fff;
  color: #ffffff;
}

/* Slider values adjust panel */
.collab-slider-panel {
  background: #141420; /* bg-secondary */
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.collab-slider-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.collab-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #222240;
  border-radius: 8px;
  padding: 4px;
}
.collab-adjust {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collab-adjust-val {
  font-family: var(--font-body);
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
}

/* Sidebar Preview Panel */
.collab-preview {
  background: #1a1a2e; /* rp002 bg-card */
  border-radius: 10px;
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}
.collab-preview-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.collab-preview-text {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.collab-preview-text .pw {
  display: inline;
}
.collab-preview-text .pw.active-pace {
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.collab-preview-text .pw.active-pace::before {
  content: '';
  position: absolute;
  top: -1px; left: -2px; right: -2px; bottom: -1px;
  background: rgba(91, 127, 255, 0.15);
  border: 1px solid rgba(91, 127, 255, 0.4);
  border-radius: 3px;
  z-index: -1;
}

/* Settings mock screen */
.operator-settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px;
}
.settings-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-header-lbl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.settings-rail {
  width: 100%;
  height: 6px;
  background: #222240;
  border-radius: 3px;
  position: relative;
}
.settings-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5b7fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  transition: left 0.3s ease;
}
.settings-fill {
  height: 100%;
  background: rgba(91, 127, 255, 0.5);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Mini Touch screen */
.operator-touch-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}
.touch-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 10px;
}
.touch-btn {
  height: 80px;
  border-radius: 16px;
  background: #222240;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.touch-btn svg {
  fill: currentColor;
}
.touch-btn:active {
  transform: scale(0.95);
}
.touch-btn.active {
  background: #5b7fff;
}
.touch-btn-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.touch-row-large {
  display: flex;
}
.touch-btn-large {
  flex: 1;
  height: 90px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.06);
}


/* 3. Remote Laptop Browser Monitor */
.monitor-device {
  height: 380px; /* Unified height */
  flex: 0 0 auto;
  max-width: 0;
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.95);
  overflow: hidden;
  z-index: 1;
  border: 0px solid rgba(255, 255, 255, 0.08);
  transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.monitor-device.visible {
  max-width: 402px; /* content 400px + border 2px */
  opacity: 0.85;
  border-width: 1px;
  transform: translate3d(0, 0, 0) scale(1);
}

.browser-header {
  background: #141420;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}
.browser-controls {
  display: flex;
  gap: 6px;
}
.browser-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}
.browser-address {
  flex: 1;
  background: #0a0a0f;
  border-radius: 6px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 9px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-viewport {
  flex: 1;
  background: #04060a;
  position: relative;
  overflow: hidden;
}
.browser-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 90px 24px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.browser-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
}
.browser-text .pw {
  display: inline-block;
  padding: 0 2px;
}
.browser-text .pw.active-pace {
  color: #ffffff;
}
.monitor-device .focus-arrow {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  z-index: 10;
  color: #87c8f8;
  opacity: 0.85;
}
.monitor-device .guide-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  border-top: 1px dashed rgba(135, 200, 248, 0.25);
  transform: translateY(-50%);
  z-index: 9;
}


/* Tap Gesture Animation overlay */
.tap-indicator {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91, 127, 255, 0.25);
  border: 1.5px solid #ffffff;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  display: none;
}
.tap-indicator.animating {
  display: block;
  animation: tap-pulse 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tap-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}


/* ── Responsive rules ── */
.device-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}



@media (max-width: 768px) {
  .pace-stage {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 12px;
  }
  .talent-device,
  .monitor-device.visible,
  .operator-device.visible {
    width: 100%;
    max-width: 440px;
    flex: none;
    height: 340px;
  }
  
  .device-inner {
    width: 100% !important; /* Force fit inside smaller viewport shells */
  }
  .talent-text {
    font-size: 1.35rem;
  }
  .talent-canvas {
    padding: 90px 24px;
  }
  
  .collab-slider-lbl {
    font-size: 9px;
  }
  .collab-adjust-val {
    min-width: 32px;
    font-size: 10px;
  }
  .collab-adjust {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   Real-Time Collaboration Sync Hub Styles
   ═══════════════════════════════════════════════════════ */

.collab-sync-hub {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.sync-users-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

/* User Nodes */
.sync-user-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  flex: 0 0 auto;
  opacity: 1;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.sync-user-node.assistant-node,
.sync-user-node.talent-node {
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.sync-user-node.assistant-node.visible,
.sync-user-node.talent-node.visible {
  width: 120px;
  opacity: 1;
}

/* SVG Container */
.user-graphic-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #0d0f14;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 10px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 5;
}

.sync-user-node.visible .user-graphic-container,
.producer-node .user-graphic-container {
  border-color: rgba(255, 255, 255, 0.15);
}

.sync-user-node.visible:hover .user-graphic-container,
.producer-node:hover .user-graphic-container {
  transform: translateY(-2px);
  border-color: rgba(91, 127, 255, 0.4);
  box-shadow: 0 12px 30px rgba(91, 127, 255, 0.15), 0 0 15px rgba(91, 127, 255, 0.05);
}

.user-svg {
  width: 100%;
  height: 100%;
}

/* Labels and Subtext */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.user-role {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-device {
  font-family: var(--font-body);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
  white-space: nowrap;
}

/* Line Connection Segments */
.sync-line-segment {
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  top: -15px; /* aligns vertically with the center of the 60px SVG container */
  flex: 1;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  min-width: 0;
}

.sync-line-segment.visible {
  max-width: 160px;
  opacity: 1;
  background: linear-gradient(90deg, rgba(91, 127, 255, 0.1), rgba(135, 200, 248, 0.6), rgba(91, 127, 255, 0.1));
  box-shadow: 0 0 6px rgba(135, 200, 248, 0.15);
}

/* Glowing Flow Pulse */
.connector-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #87c8f8, 0 0 16px #5b7fff;
  top: -3px; /* centers the 8px dot on the 2px line */
  left: 0;
  opacity: 0;
}

.sync-line-segment.visible .connector-pulse {
  animation: pulse-flow 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Offset the second pulse slightly for cascading flow */
.segment-2-3.visible .connector-pulse {
  animation-delay: 0.6s;
}

@keyframes pulse-flow {
  0% {
    left: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Mobile Responsiveness for Sync Hub */
@media (max-width: 768px) {
  .collab-sync-hub {
    margin-top: 20px;
  }
  .sync-users-row {
    padding: 0 12px;
  }
  .sync-user-node {
    width: 90px;
  }
  .sync-user-node.assistant-node.visible,
  .sync-user-node.talent-node.visible {
    width: 90px;
  }
  .user-graphic-container {
    width: 48px;
    height: 48px;
    padding: 8px;
    margin-bottom: 6px;
  }
  .sync-line-segment {
    top: -12px; /* aligns with center of 48px container */
  }
  .sync-line-segment.visible {
    max-width: 70px;
  }
  .user-role {
    font-size: 9px;
  }
  .user-device {
    font-size: 8px;
  }
}

/* ═══════════════════════════════════════════════════════
   Mini Prompter Drag & Overlay Simulation Styles
   ═══════════════════════════════════════════════════════ */

.mini-prompter-simulation-container {
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: #090d16 !important;
  position: relative;
  overflow: hidden;
}

.mock-desktop {
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #080c14 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  user-select: none;
}

/* Menu Bar */
.desktop-menubar {
  width: 100%;
  height: 24px;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.menubar-left {
  font-weight: 500;
  word-spacing: 8px;
}

.menubar-right {
  display: flex;
  gap: 8px;
}

/* Webcam Lens */
.desktop-camera-lens {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.camera-glass {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3b82f6 0%, transparent 80%);
}

.camera-led {
  position: absolute;
  left: 18px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #334155;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: camera-led-glow 14s infinite linear;
}

@keyframes camera-led-glow {
  0%, 25%, 85%, 100% {
    background: #334155;
    box-shadow: none;
  }
  30%, 80% {
    background: #10b981;
    box-shadow: 0 0 6px #10b981, 0 0 12px #10b981;
  }
}

/* Mock Meeting App */
.mock-meeting-app {
  position: absolute;
  top: 36px;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: #070a12;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.meeting-header {
  height: 30px;
  background: #0f1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
}

.meeting-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 500;
}

.meeting-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-blink 1.5s infinite alternate;
}

@keyframes pulse-blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.meeting-body {
  flex: 1;
  padding: 8px;
  min-height: 0;
  box-sizing: border-box;
}

/* 2x2 Video Conference Grid */
.meeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.video-feed {
  background: #111625;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
}

.video-feed.speaker-active {
  border-color: rgba(91, 127, 255, 0.5);
  box-shadow: inset 0 0 10px rgba(91, 127, 255, 0.15);
  animation: speaker-active-pulse 14s infinite linear;
}

@keyframes speaker-active-pulse {
  0%, 25%, 85%, 100% {
    border-color: transparent;
    box-shadow: none;
  }
  30%, 80% {
    border-color: rgba(91, 127, 255, 0.5);
    box-shadow: inset 0 0 10px rgba(91, 127, 255, 0.15);
  }
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-svg {
  width: 18px;
  height: 18px;
}

.user-avatar.sarah { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.user-avatar.michael { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.user-avatar.david { background: linear-gradient(135deg, #10b981, #059669); }
.user-avatar.alex { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

.feed-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Presenter Slide Mock */
.feed-video-content {
  position: absolute;
  inset: 0;
  background: #0f1322;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-mock {
  width: 80%;
  height: 60%;
  background: #182035;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slide-bar {
  height: 6px;
  border-radius: 2px;
}

.slide-bar.blue {
  background: #3b82f6;
  width: 40%;
  height: 8px;
}

.slide-bar.text-line {
  background: rgba(255, 255, 255, 0.2);
  width: 90%;
}

.slide-bar.text-line-short {
  background: rgba(255, 255, 255, 0.2);
  width: 60%;
}

/* Active Speaker Waveform Indicator */
.feed-speaking-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}

.feed-speaking-indicator span {
  width: 2px;
  height: 100%;
  background: #3b82f6;
  border-radius: 1px;
  animation: speaking-wave 1s infinite alternate;
}

.feed-speaking-indicator span:nth-child(2) {
  animation-delay: 0.2s;
  height: 60%;
}

.feed-speaking-indicator span:nth-child(3) {
  animation-delay: 0.4s;
  height: 80%;
}

@keyframes speaking-wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Meeting Footer controls */
.meeting-footer {
  height: 32px;
  background: #0f1322;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.control-btn {
  width: 20px;
  height: 20px;
  background: #272f4d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  cursor: pointer;
  color: white;
}

.control-btn.share.active {
  background: #10b981;
}

.control-btn.leave {
  width: 32px;
  border-radius: 4px;
  background: #ef4444;
  font-weight: bold;
}

/* Draggable Mini Prompter Widget Overlay */
.draggable-mini-window {
  position: absolute;
  width: 240px;
  height: 106px;
  padding: 12px 14px 10px;
  box-sizing: border-box;
  z-index: 20;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  animation: drag-window 14s infinite ease-in-out;
}

@keyframes drag-window {
  /* Starts at bottom-left */
  0%, 20% {
    left: 20px;
    top: 215px;
    background: rgba(8, 12, 19, 0.85);
    border-color: rgba(155, 186, 222, 0.16);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
  /* Dragged to top-center (eyeline placement) */
  32%, 60% {
    left: calc(50% - 120px);
    top: 56px;
    background: rgba(8, 12, 19, 0.85);
    border-color: rgba(155, 186, 222, 0.16);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  }
  /* Ghost Mode Activated (transparent style overlay) */
  65%, 82% {
    left: calc(50% - 120px);
    top: 56px;
    background: rgba(8, 12, 19, 0.25);
    border-color: rgba(91, 127, 255, 0.55);
    box-shadow: 0 15px 40px rgba(91, 127, 255, 0.15), 0 0 15px rgba(91, 127, 255, 0.1);
  }
  /* Return to normal and drag back down */
  85% {
    left: calc(50% - 120px);
    top: 56px;
    background: rgba(8, 12, 19, 0.85);
    border-color: rgba(155, 186, 222, 0.16);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  }
  /* Reset */
  93%, 100% {
    left: 20px;
    top: 215px;
    background: rgba(8, 12, 19, 0.85);
    border-color: rgba(155, 186, 222, 0.16);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
}

.draggable-mini-window .mini-window-header {
  border-bottom: 1px solid rgba(158, 188, 224, 0.08);
  padding-bottom: 6px;
  cursor: grab;
}

.draggable-mini-window .mini-window-header:active {
  cursor: grabbing;
}

/* Scroller viewport inside widget */
.mini-window-viewport {
  height: 42px;
  overflow: hidden;
  margin: 8px 0;
  position: relative;
}

.mini-window-scroll-text {
  font-family: var(--font-title);
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  animation: scroll-widget-text 14s infinite linear;
}

.mini-window-scroll-text .highlight {
  color: #94d0fc;
  text-shadow: 0 0 15px rgba(135, 200, 248, 0.25);
}

@keyframes scroll-widget-text {
  0%, 35% {
    transform: translateY(0);
  }
  35%, 82% {
    transform: translateY(-28px);
  }
  85%, 100% {
    transform: translateY(0);
  }
}

/* Dynamic Ghost Mode text status changes */
.ghost-status-wrapper {
  position: relative;
  width: 100px;
  height: 10px;
}

.ghost-status-text {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.ghost-status-text.ghost-off {
  animation: ghost-text-off-fade 14s infinite linear;
}

.ghost-status-text.ghost-on {
  color: #87c8f8;
  font-weight: 600;
  animation: ghost-text-on-fade 14s infinite linear;
}

@keyframes ghost-text-off-fade {
  0%, 64%, 83%, 100% { opacity: 1; }
  65%, 82% { opacity: 0; }
}

@keyframes ghost-text-on-fade {
  0%, 64%, 83%, 100% { opacity: 0; }
  65%, 82% { opacity: 1; }
}

.draggable-mini-window .mini-window-footer {
  border-top: 1px solid rgba(158, 188, 224, 0.08);
  padding-top: 6px;
  font-size: 8px;
  color: rgba(255,255,255,0.4);
}

/* Simulated cursor movement path */
.simulated-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: move-cursor 14s infinite ease-in-out;
}

@keyframes move-cursor {
  /* Cursor enters from bottom-right */
  0% {
    left: calc(100% - 40px);
    top: 290px;
  }
  /* Reaches widget titlebar at bottom-left */
  14% {
    left: 140px; /* 20px + 120px */
    top: 227px; /* 215px + 12px */
  }
  /* Clicks/grabs titlebar */
  15%, 19% {
    left: 140px;
    top: 227px;
  }
  /* Drags widget to top-center (below camera) */
  32% {
    left: 50%;
    top: 68px; /* 56px + 12px */
  }
  /* Holds in place (releasing click) */
  33%, 38% {
    left: 50%;
    top: 68px;
  }
  /* Glides away to the right */
  48% {
    left: calc(100% - 60px);
    top: 150px;
  }
  /* Rests while widget scrolls and demo plays */
  83% {
    left: calc(100% - 60px);
    top: 150px;
  }
  /* Returns back down to widget titlebar to drag it back */
  90% {
    left: 50%;
    top: 68px;
  }
  /* Grab to reset widget */
  91%, 92% {
    left: 50%;
    top: 68px;
  }
  /* Moves to bottom right starting point */
  98%, 100% {
    left: calc(100% - 40px);
    top: 290px;
  }
}

/* Cursor icon toggles pointer vs hand grabbing */
.simulated-cursor .cursor-arrow-icon {
  animation: cursor-icon-pointer-fade 14s infinite linear;
}

.simulated-cursor .cursor-hand-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  color: #ffffff;
  animation: cursor-icon-hand-fade 14s infinite linear;
}

@keyframes cursor-icon-pointer-fade {
  0%, 14%, 39%, 93%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  15%, 38%, 91%, 92% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes cursor-icon-hand-fade {
  0%, 14%, 39%, 93%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  15%, 38%, 91%, 92% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Camera Alignment Guidelines overlay */
.alignment-guidelines {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 15;
}

.guide-line-vert {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.4) 60%, transparent 100%);
  position: relative;
  left: 0;
  opacity: 0;
  animation: guide-line-fade-in 14s infinite linear;
  border-radius: 1px;
}

.guide-label {
  position: absolute;
  top: 30px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: guide-line-fade-in 14s infinite linear;
}

@keyframes guide-line-fade-in {
  0%, 30%, 83%, 100% {
    opacity: 0;
  }
  35%, 80% {
    opacity: 1;
  }
}

/* Mobile responsive fixes for visual slot */
@media (max-width: 480px) {
  .draggable-mini-window {
    width: 200px;
    height: 94px;
  }
  @keyframes drag-window {
    0%, 20% {
      left: 10px;
      top: 220px;
    }
    32%, 82% {
      left: calc(50% - 100px);
      top: 56px;
    }
    93%, 100% {
      left: 10px;
      top: 220px;
    }
  }
  @keyframes move-cursor {
    0% {
      left: calc(100% - 30px);
      top: 290px;
    }
    14% {
      left: 110px; /* 10px + 100px */
      top: 230px; /* 220px + 10px */
    }
    15%, 19% {
      left: 110px;
      top: 230px;
    }
    32% {
      left: 50%;
      top: 66px; /* 56px + 10px */
    }
    33%, 38% {
      left: 50%;
      top: 66px;
    }
    48% {
      left: calc(100% - 40px);
      top: 150px;
    }
    83% {
      left: calc(100% - 40px);
      top: 150px;
    }
    90% {
      left: 50%;
      top: 66px;
    }
    91%, 92% {
      left: 50%;
      top: 66px;
    }
    98%, 100% {
      left: calc(100% - 30px);
      top: 290px;
    }
  }
}

/* ── Mobile Vertical Product Demonstrations ──────────── */
@media (max-width: 900px) {
  #pace-collab {
    padding: 78px 18px;
  }

  #pace-collab .section-inner {
    width: 100%;
  }

  .collab-sync-hub {
    margin: 30px auto 8px;
  }

  .sync-users-row {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .sync-user-node,
  .sync-user-node.assistant-node.visible,
  .sync-user-node.talent-node.visible {
    width: 100%;
    max-width: 210px;
    min-height: 92px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
  }

  .sync-user-node.assistant-node,
  .sync-user-node.talent-node {
    width: 100%;
    max-width: 210px;
    height: 0;
    min-height: 0;
    opacity: 0;
  }

  .sync-user-node.assistant-node.visible,
  .sync-user-node.talent-node.visible {
    height: 92px;
    opacity: 1;
  }

  .user-graphic-container {
    width: 52px;
    height: 52px;
    margin: 0;
    flex: 0 0 auto;
  }

  .user-info {
    align-items: flex-start;
  }

  .user-role {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .user-device {
    font-size: 0.72rem;
    white-space: normal;
  }

  .sync-line-segment {
    top: 0;
    width: 2px;
    height: 0;
    flex: 0 0 auto;
    max-width: none;
    opacity: 0;
    background: rgba(255, 255, 255, 0.06);
    transition:
      height 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.45s ease;
  }

  .sync-line-segment.visible {
    width: 2px;
    height: 44px;
    max-width: none;
    opacity: 1;
    background: linear-gradient(180deg, rgba(91, 127, 255, 0.1), rgba(135, 200, 248, 0.68), rgba(91, 127, 255, 0.1));
  }

  .connector-pulse {
    top: 0;
    left: -3px;
  }

  .sync-line-segment.visible .connector-pulse {
    animation: mobile-pulse-flow 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes mobile-pulse-flow {
    0% {
      top: 0%;
      opacity: 0;
    }
    15% {
      opacity: 1;
    }
    85% {
      opacity: 1;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }

  .pace-stage {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 34px auto 0;
    padding: 0;
    border-radius: 0;
  }

  .talent-device,
  .operator-device.visible,
  .monitor-device.visible {
    width: 100%;
    max-width: none;
    height: 340px;
    flex: none;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .talent-device {
    display: block;
    overflow: visible;
  }

  .talent-device .device-inner,
  .operator-device .device-inner,
  .monitor-device .device-inner {
    width: 100% !important;
  }

  .operator-device {
    align-self: center;
    width: min(100%, 316px);
    max-width: 0;
  }

  .operator-device.visible {
    max-width: min(100%, 316px);
    border-width: 8px;
  }

  .monitor-device {
    align-self: stretch;
  }

  .monitor-device.visible {
    opacity: 1;
    border-width: 1px;
  }

  .talent-canvas {
    padding: 118px 30px;
  }

  .talent-text {
    font-size: 1.36rem;
    line-height: 1.58;
  }

  .talent-device .focus-arrow {
    left: 12px;
    transform: translateY(-50%) scale(0.75);
  }

  .talent-device .guide-line {
    left: 32px;
    right: 26px;
  }

  .pace-toast {
    top: 54px;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
  }

  .operator-content {
    padding: 12px;
  }

  .collab-slider-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .collab-slider-controls {
    width: 100%;
    justify-content: space-between;
  }

  .browser-canvas {
    padding: 112px 28px;
  }

  .browser-text {
    font-size: 1rem;
    line-height: 1.58;
  }

  .monitor-device .focus-arrow {
    left: 10px;
  }

  .monitor-device .guide-line {
    left: 28px;
    right: 24px;
  }

  .mock-title {
    max-width: 66%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 430px) {
  .talent-device,
  .operator-device.visible,
  .monitor-device.visible {
    height: 318px;
  }

  .talent-canvas {
    padding: 104px 24px;
  }

  .talent-text {
    font-size: 1.18rem;
  }

  .browser-canvas {
    padding: 100px 24px;
  }

  .browser-text {
    font-size: 0.9rem;
  }

  .collab-btn {
    padding: 8px 6px;
  }

  .touch-btn {
    height: 68px;
  }

  .touch-btn-large {
    height: 76px;
  }

  .meeting-title,
  .meeting-actions,
  .menubar-left,
  .menubar-right {
    display: none;
  }
}
