/* ==========================================================================
   PLEXUS TEAMS v2.0 — DESIGN SYSTEM CORE STYLESHEET
   Strict Tokens: Deep Navy (#0f172a), Slate (#64748b, #94a3b8), Royal Blue (#3b82f6),
   Amber (#f59e0b / #d97706), Emerald (#10b981), Light Gray (#f8fafc)
   ========================================================================== */

:root {
  /* Color Palette */
  --color-navy-darkest: #0b1120;
  --color-navy-deep: #0f172a;
  --color-navy-card: #1e293b;
  --color-navy-light: #334155;
  --color-slate-labels: #64748b;
  --color-slate-links: #94a3b8;
  --color-slate-border: #e2e8f0;
  --color-slate-border-light: #f1f5f9;
  --color-workspace-bg: #f8fafc;
  --color-white: #ffffff;
  --color-title-dark: #1e293b;
  --color-text-main: #0f172a;
  
  /* Accents & States */
  --color-royal-blue: #3b82f6;
  --color-royal-blue-dark: #2563eb;
  --color-royal-blue-bg: #eff6ff;
  --color-royal-blue-border: #bfdbfe;
  
  --color-amber-primary: #f59e0b;
  --color-amber-hover: #d97706;
  --color-amber-cream-bg: #fef3c7;
  --color-amber-cream-text: #d97706;
  --gradient-plexus-amber: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  
  --color-emerald: #10b981;
  --color-emerald-bg: #ecfdf5;
  --color-emerald-border: #a7f3d0;
  
  --color-coral: #ef4444;
  --color-coral-bg: #fef2f2;
  --color-coral-border: #fecaca;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Elevation */
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-amber: 0 10px 30px rgba(217, 119, 6, 0.28);
}

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  background-color: var(--color-workspace-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Master Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   1. LEFT SIDEBAR (240px Fixed)
   ========================================================================== */
.sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 100%;
  background-color: var(--color-navy-deep);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.sidebar-brand {
  background-color: #070c18;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  box-sizing: border-box;
}

.sidebar-logo-img {
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.nav-section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-slate-labels);
  padding: 16px 20px 8px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 2px 10px;
  border-radius: 8px;
  color: var(--color-slate-links);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--color-white);
  background-color: rgba(30, 41, 59, 0.5);
}

.nav-item.active {
  background-color: var(--color-navy-card);
  color: var(--color-white);
  font-weight: 600;
}

.amber-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-amber-primary);
  box-shadow: 0 0 8px var(--color-amber-primary);
  display: inline-block;
  margin-right: -4px;
}

.nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  flex-shrink: 0;
}

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

.btn-download-installer-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 58, 138, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  color: #93c5fd;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-download-installer-sidebar:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(59, 130, 246, 0.35));
  border-color: rgba(96, 165, 250, 0.8);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-download-installer-sidebar svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}

.mesh-card {
  background: var(--color-navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.mesh-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-ring 2s infinite ease-out;
}

.mesh-title {
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
}

.mesh-details {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  color: var(--color-slate-links);
  gap: 2px;
}

.mesh-protocol {
  color: var(--color-slate-labels);
  font-size: 0.65rem;
}

/* ==========================================================================
   2. TOP HEADER BAR
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.top-header {
  height: 70px;
  min-height: 70px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 10;
}

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

.radar-pulsing-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-ping-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulse-dot 1.5s infinite;
}

.header-page-title {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-title-dark);
}

.header-mesh-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-slate-border);
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-download-installer-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-download-installer-header:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-download-installer-header svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy-deep);
}

.profile-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-royal-blue-dark);
  background-color: var(--color-royal-blue-bg);
  border: 1px solid var(--color-royal-blue-border);
  padding: 1px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-navy-deep);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-slate-border);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.btn-pill-logout {
  background-color: var(--color-coral-bg);
  color: var(--color-coral);
  border: 1px solid var(--color-coral-border);
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-pill-logout:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. WORKSPACE BODY & TOP CONTEXT BANNER
   ========================================================================== */
.workspace-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 40px;
}

.context-banner-card {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-slate-border);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-amber-cream-bg);
  color: var(--color-amber-cream-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon-badge svg {
  width: 24px;
  height: 24px;
}

.banner-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin-bottom: 3px;
}

.banner-subtitle {
  font-size: 0.82rem;
  color: var(--color-slate-labels);
  line-height: 1.4;
  max-width: 620px;
}

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

.banner-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  color: #065f46;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

.stat-subnet-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #334155;
  background-color: #f1f5f9;
  border: 1px solid var(--color-slate-border);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
}

/* Section Headings */
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-title-dark);
}

.section-subheading {
  font-size: 0.8rem;
  color: var(--color-slate-labels);
  display: block;
  margin-top: 2px;
}

.ping-latency {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-slate-labels);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-slate-border);
}

/* ==========================================================================
   4. 3-COLUMN WORKSTATION GRID & CARDS
   ========================================================================== */
.workstations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.workstation-card {
  background-color: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-slate-border);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.workstation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

/* Top Meta Row */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.workstation-micro-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-slate-labels);
  text-transform: uppercase;
}

.card-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.station-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.role-admin {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.role-member {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Status Badges */
.station-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 12px;
}

.status-online {
  background-color: var(--color-emerald-bg);
  color: var(--color-emerald);
  border: 1px solid var(--color-emerald-border);
}

.status-cloud {
  background-color: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.status-offline {
  background-color: var(--color-coral-bg);
  color: var(--color-coral);
  border: 1px solid var(--color-coral-border);
}

.status-calling {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.status-session {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-online .status-dot {
  background-color: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
  animation: pulse-dot 1.8s infinite;
}

.status-cloud .status-dot,
.status-dot-cloud {
  background-color: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
  animation: pulse-dot 1.8s infinite;
}

.status-offline .status-dot {
  background-color: var(--color-coral);
}

.status-calling .status-dot {
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-ring 1s infinite;
}

/* Card Main Profile */
.card-profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--color-navy-deep);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.card-identity-info {
  display: flex;
  flex-direction: column;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-user-name {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  letter-spacing: -0.01em;
}

.pill-you {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
}

.card-workstation-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-slate-labels);
  margin-top: 2px;
}

/* Tabular Network Metrics */
.card-metrics-table {
  background-color: #f8fafc;
  border: 1px solid var(--color-slate-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.metric-label {
  color: var(--color-slate-labels);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.metric-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #334155;
}

/* Card Action Area */
.card-action-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Circular Computer Icon Button */
.btn-computer-handshake {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: none;
  background-color: #fff7ed;
  border: 1px solid #ffedd5;
  color: #9a3412;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.computer-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-amber-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.computer-icon-circle svg {
  width: 18px;
  height: 18px;
}

.btn-computer-handshake:hover:not(:disabled) {
  background-color: #ffedd5;
  border-color: #fed7aa;
  color: #7c2d12;
  transform: translateY(-1px);
}

.btn-computer-handshake:hover:not(:disabled) .computer-icon-circle {
  background-color: var(--color-amber-hover);
  transform: scale(1.06);
}

.btn-computer-handshake:disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-computer-handshake:disabled .computer-icon-circle {
  background-color: #cbd5e1;
  color: #64748b;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   ACTIVE / CALLING / CONNECTED CARD OVERRIDE
   Signature Plexus Amber/Orange gradient with crisp white text
   ========================================================================== */
.workstation-card.is-active-calling,
.workstation-card.is-connected {
  background: var(--gradient-plexus-amber);
  border-color: #b45309;
  box-shadow: var(--shadow-amber);
  color: var(--color-white);
}

.workstation-card.is-active-calling .workstation-micro-tag,
.workstation-card.is-connected .workstation-micro-tag {
  color: rgba(255, 255, 255, 0.85);
}

.workstation-card.is-active-calling .card-user-name,
.workstation-card.is-connected .card-user-name {
  color: var(--color-white);
}

.workstation-card.is-active-calling .card-workstation-id,
.workstation-card.is-connected .card-workstation-id {
  color: rgba(255, 255, 255, 0.85);
}

.workstation-card.is-active-calling .card-avatar,
.workstation-card.is-connected .card-avatar {
  background-color: var(--color-white);
  color: #b45309;
  border-color: rgba(255, 255, 255, 0.35);
}

.workstation-card.is-active-calling .card-metrics-table,
.workstation-card.is-connected .card-metrics-table {
  background-color: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.workstation-card.is-active-calling .metric-label,
.workstation-card.is-connected .metric-label {
  color: rgba(255, 255, 255, 0.8);
}

.workstation-card.is-active-calling .metric-val,
.workstation-card.is-connected .metric-val {
  color: var(--color-white);
}

.workstation-card.is-active-calling .station-role-badge,
.workstation-card.is-connected .station-role-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.workstation-card.is-active-calling .btn-computer-handshake {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  cursor: pointer;
}

.workstation-card.is-active-calling .computer-icon-circle {
  background-color: var(--color-white);
  color: #b45309;
  animation: pulse-ring 1.2s infinite;
}

.btn-cancel-calling {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-calling:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Skeleton Loading Card */
.skeleton-card {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-labels);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   5. LOWER WORKSPACE: STAGE & TELEMETRY LOG
   ========================================================================== */
.lower-workspace-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.stage-card, .telemetry-card {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-slate-border);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-section-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-title-dark);
}

.card-section-desc {
  font-size: 0.78rem;
  color: var(--color-slate-labels);
  margin-top: 2px;
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid var(--color-slate-border);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* Direct Wi-Fi Peer Stage Viewport */
.stage-viewport-container {
  flex: 1;
  background: #090d16;
  border-radius: 12px;
  border: 1px solid #1e293b;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stage-screen-mockup {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 28px;
}

.screen-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.mockup-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-radar-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber-primary);
  margin-bottom: 14px;
}

.radar-scan-icon {
  width: 28px;
  height: 28px;
  animation: radar-sweep 4s linear infinite;
}

.mockup-headline {
  font-family: var(--font-sans);
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mockup-desc {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 18px;
}

.highlight-amber {
  color: var(--color-amber-primary);
  font-weight: 600;
}

.stage-capabilities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cap-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cap-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-emerald);
}

/* Telemetry & Signal Console */
.telemetry-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
  animation: pulse-dot 1.5s infinite;
}

.btn-clear-log {
  background: #f1f5f9;
  border: 1px solid var(--color-slate-border);
  color: var(--color-slate-labels);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-log:hover {
  background: #e2e8f0;
  color: var(--color-navy-deep);
}

.telemetry-console {
  flex: 1;
  background-color: #090d16;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  height: 260px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.4;
  word-break: break-all;
}

.log-time {
  color: #475569;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.log-tag {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tag-sys { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-ws { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-net { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-call { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-p2p { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.log-msg {
  color: #cbd5e1;
}

/* ==========================================================================
   6. IDENTITY CLAIM MODAL (STATION SELECTION)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  background-color: var(--color-white);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--color-slate-border);
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-brand-header {
  background: #070c18;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 20px 20px 0 0;
  margin: -36px -36px 24px -36px;
}

.modal-logo-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.modal-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--color-royal-blue-bg);
  color: var(--color-royal-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-royal-blue-border);
}

.modal-badge-icon svg {
  width: 26px;
  height: 26px;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy-deep);
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--color-slate-labels);
  margin-top: 3px;
}

.workstation-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.identity-option-card {
  background-color: #ffffff;
  border: 2px solid var(--color-slate-border);
  border-radius: 14px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.identity-option-card:hover {
  border-color: var(--color-royal-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.id-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.id-station-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-slate-labels);
}

.id-role-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.badge-admin {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.badge-member {
  background-color: #f8fafc;
  color: #475569;
}

.id-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy-deep);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.id-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
}

.id-presence-pill {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #94a3b8;
}

.id-presence-pill.online {
  background-color: var(--color-emerald-bg);
  color: var(--color-emerald);
}
.id-presence-pill.online .mini-dot {
  background-color: var(--color-emerald);
}

.id-select-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-royal-blue);
  margin-top: auto;
}

.modal-footer-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-slate-labels);
  border-top: 1px solid var(--color-slate-border);
  padding-top: 16px;
}

.info-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes modal-enter {
  0% { opacity: 0; transform: scale(0.94) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .workstations-grid {
    grid-template-columns: 1fr;
  }
  .lower-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   7. PHASE 2: LIVE COLLABORATION STAGE & VIEWPORT
   ========================================================================== */
.stage-header-row {
  flex-wrap: wrap;
  gap: 12px;
}

.stage-title-with-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-telemetry-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-telemetry-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-session {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid var(--color-slate-border);
}

.pill-session.is-active {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 800;
}

.pill-p2p {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid var(--color-slate-border);
}

.pill-p2p.is-connected {
  background-color: var(--color-emerald-bg);
  color: var(--color-emerald);
  border-color: var(--color-emerald-border);
}

.pill-res {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid var(--color-slate-border);
}

.pill-rtt {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid var(--color-slate-border);
}

.pill-mouse {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pill-mouse.is-tier1 {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
}

.pill-mouse.is-laser {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #10b981;
}

.pill-mouse.is-viewonly {
  background-color: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

/* Insecure Origin Flag Notice */
.insecure-origin-bar {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: #92400e;
  animation: modal-enter 0.2s ease-out;
}

.insecure-bar-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.insecure-icon {
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.insecure-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insecure-title {
  font-weight: 800;
  color: #78350f;
  font-size: 0.78rem;
}

.insecure-desc code {
  background: rgba(217, 119, 6, 0.12);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.insecure-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-copy-flag {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy-flag:hover {
  background: #d97706;
}

.btn-dismiss-bar {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: #92400e;
  cursor: pointer;
  padding: 0 4px;
}

/* Viewport Frame & Videos */
.stage-viewport-container {
  position: relative;
  background-color: var(--color-navy-darkest);
  border: 1px solid #1e293b;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
  display: none;
}

.remote-video-element.is-streaming {
  display: block;
}

.cursor-canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  display: none;
}

.cursor-canvas-layer.is-active {
  display: block;
}

.cursor-canvas-layer.is-interactive {
  pointer-events: auto;
}

.cursor-canvas-layer.cursor-laser {
  cursor: crosshair;
}

.cursor-canvas-layer.cursor-tier1 {
  cursor: default;
}

.cursor-canvas-layer.cursor-viewonly {
  cursor: default;
}

/* Phase 3: Viewport HUD Overlay */
.viewport-hud-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  pointer-events: none;
  z-index: 12;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-amber-primary);
  box-shadow: 0 0 8px var(--color-amber-primary);
  display: inline-block;
  flex-shrink: 0;
}

.hud-dot.is-emerald {
  background-color: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.hud-dot.is-blue {
  background-color: var(--color-royal-blue);
  box-shadow: 0 0 8px var(--color-royal-blue);
}

.hud-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* Standby overlay */
#stage-standby-overlay,
#stage-placeholder {
  display: flex;
}

#stage-standby-overlay.is-hidden,
#stage-placeholder.is-hidden {
  display: none !important;
}

/* Insecure Origin Setup Modal (Bug 4) */
.insecure-modal-card {
  max-width: 560px;
}

.insecure-steps-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 20px 0;
}

.insecure-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-navy-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.step-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border-radius: 6px;
  padding: 6px 10px;
  gap: 8px;
}

.step-code-box code {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  word-break: break-all;
}

.btn-step-copy {
  background: #334155;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-step-copy:hover {
  background: #475569;
}

/* Local Picture-in-Picture */
.local-pip-box {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 220px;
  height: 124px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  background-color: var(--color-navy-darkest);
  z-index: 10;
  transition: all 0.2s ease;
}

.local-pip-box:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.local-pip-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.pip-meta-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.pip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

/* Session Control Dock */
.stage-control-dock {
  margin-top: 14px;
  background-color: #f8fafc;
  border: 1px solid var(--color-slate-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dock-left, .dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.dock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-dock-primary {
  background-color: var(--color-emerald);
  color: #ffffff;
  border: 1px solid #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-dock-primary:hover:not(:disabled) {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-dock-primary.is-sharing {
  background-color: #f59e0b;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-dock-secondary {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.btn-dock-secondary:hover:not(:disabled) {
  background-color: #dbeafe;
}

.btn-dock-secondary.is-muted {
  background-color: var(--color-coral-bg);
  color: var(--color-coral);
  border-color: var(--color-coral-border);
}

.btn-dock-neutral {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid var(--color-slate-border);
}

.btn-dock-neutral:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: var(--color-navy-deep);
}

.btn-dock-danger {
  background-color: var(--color-coral);
  color: #ffffff;
  border: 1px solid #dc2626;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-dock-danger:hover:not(:disabled) {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.dock-btn:disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Phase 3: Mouse Sharing Mode Selector Group */
.dock-mouse-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #ffffff;
  border: 1px solid var(--color-slate-border);
  border-radius: 8px;
  padding: 3px 6px;
  margin-left: 4px;
}

.dock-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-slate-labels);
  letter-spacing: 0.06em;
  padding: 0 4px;
  user-select: none;
}

.dock-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.dock-mode-btn:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: var(--color-navy-deep);
}

.dock-mode-btn.is-active {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

.dock-mode-btn#btn-mode-tier1.is-active {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}

.dock-mode-btn#btn-mode-tier2.is-active {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.22);
  font-weight: 800;
}

.dock-mode-btn#btn-mode-laser.is-active {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

.dock-mode-btn#btn-mode-viewonly.is-active {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.dock-mode-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Phase 4: Host OS Control Lock Button */
.btn-host-lock {
  border: 1px solid var(--color-slate-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-host-lock.locked {
  background-color: #f8fafc;
  color: #475569;
  border-color: var(--color-slate-border);
}

.btn-host-lock.locked:hover {
  background-color: #f1f5f9;
  color: var(--color-navy-deep);
}

.btn-host-lock.unlocked {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  animation: pulse-ring 2.5s infinite ease-out;
}

.btn-host-lock.unlocked:hover {
  background-color: #fde68a;
  color: #92400e;
}

/* Mouse Control in Workstation Cards */
.mouse-control-val {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.mouse-control-val.active-tier1 {
  color: #d97706;
}

.mouse-control-val.active-tier2 {
  color: #dc2626;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
}

.mouse-control-val.active-laser {
  color: #059669;
}

.mouse-control-val.active-viewonly {
  color: #64748b;
}

/* Phase 4: Stage Telemetry Pill Tier 2 State */
.stage-telemetry-pill.pill-mouse.is-tier2 {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.25);
  animation: pulse-ring 1.8s infinite ease-out;
}

/* Phase 4: Red/Amber Safety Banner at Top of Stage Viewport */
.tier2-killswitch-banner {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 25;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.94) 0%, rgba(180, 83, 9, 0.94) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(254, 202, 202, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  animation: modal-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.killswitch-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.killswitch-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse-dot 1s infinite alternate;
  flex-shrink: 0;
}

.killswitch-banner-text {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-revoke-killswitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: #dc2626;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-revoke-killswitch:hover {
  background-color: #fee2e2;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.killswitch-icon {
  width: 14px;
  height: 14px;
}

/* Phase 4: Emergency Kill-Switch Toast Notification */
.tier2-killswitch-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.35);
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toast-alert-icon {
  width: 28px;
  height: 28px;
  color: #ef4444;
  flex-shrink: 0;
}

.toast-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.04em;
}

.toast-desc {
  font-size: 0.74rem;
  color: #e2e8f0;
}

/* ==========================================================================
   8. INSTANT ACCEPT POP-UP MODAL (PHASE 2)
   ========================================================================== */
.incoming-modal-card {
  max-width: 520px;
  text-align: center;
  padding: 36px 32px 30px;
  border-radius: 24px;
  border: 1px solid var(--color-slate-border);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.incoming-radar-pulse-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-emerald);
  pointer-events: none;
}

.ring-outer {
  inset: -14px;
  animation: pulse-ring 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  animation-delay: 0.4s;
}

.ring-inner {
  inset: -4px;
  animation: pulse-ring 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.incoming-avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--color-navy-deep);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3.5px solid var(--color-emerald);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.4);
  position: relative;
  z-index: 2;
}

.incoming-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.incoming-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.incoming-station-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-labels);
}

.incoming-headline {
  font-family: var(--font-sans);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.incoming-meta-text {
  font-size: 0.8rem;
  color: var(--color-slate-labels);
  margin-bottom: 22px;
  line-height: 1.4;
}

.incoming-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.incoming-spec-item {
  background: #f8fafc;
  border: 1px solid var(--color-slate-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.incoming-spec-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-royal-blue);
  flex-shrink: 0;
}

.incoming-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-incoming-accept {
  flex: 1.6;
  background-color: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-incoming-accept:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

.btn-incoming-accept svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.btn-incoming-decline {
  flex: 1;
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.btn-incoming-decline:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.btn-incoming-decline svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* ==========================================================================
   PHASE 5: ZERO-CLOUD LAN QUICK FILE DROP, CLIPBOARD SYNC & PHYSICAL DRIVER
   ========================================================================== */

/* Stage Control Dock: Physical Mouse Driver Injection Toggle */
.btn-driver-toggle {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid var(--color-slate-border);
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-driver-toggle:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.btn-driver-toggle.is-armed {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  animation: pulse-ring 1.5s infinite;
}

.btn-driver-toggle.is-armed svg {
  stroke: #ffffff;
}

/* Join Active Session Mesh Button on Workstation Card */
.btn-join-mesh-session {
  background: rgba(255, 255, 255, 0.28) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-join-mesh-session:hover {
  background: rgba(255, 255, 255, 0.42) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-join-mesh-session .computer-icon-circle {
  background-color: #ffffff !important;
  color: #b45309 !important;
  animation: pulse-ring 1.1s infinite;
}

/* Zero-Cloud LAN Quick File Drop & Shared Clipboard Panel */
.lan-sharing-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.lan-share-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lan-share-icon {
  width: 18px;
  height: 18px;
}

.pill-lan-drop {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.lan-share-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lan-sharing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  .lan-sharing-grid {
    grid-template-columns: 1fr;
  }
}

.lan-share-col {
  background-color: #f8fafc;
  border: 1px solid var(--color-slate-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.col-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-mini-icon {
  width: 16px;
  height: 16px;
  color: var(--color-amber-primary);
}

.col-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-text);
}

.col-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  background-color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.col-subdesc {
  font-size: 0.8rem;
  color: var(--color-slate-muted);
  margin-bottom: 14px;
}

/* Clipboard Sync Controls */
.clipboard-input-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clipboard-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-slate-border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-slate-text);
  background-color: #ffffff;
  resize: vertical;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.clipboard-textarea:focus {
  outline: none;
  border-color: var(--color-amber-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.clipboard-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clipboard-hint {
  font-size: 0.72rem;
  color: var(--color-slate-muted);
}

.btn-push-clipboard {
  background: var(--gradient-plexus-amber);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-push-clipboard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.btn-push-clipboard .btn-svg-icon {
  width: 14px;
  height: 14px;
}

/* Active Received Clipboard Box */
.active-clipboard-display {
  margin-top: 14px;
  background-color: #ffffff;
  border: 1px solid var(--color-slate-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.clip-display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.clip-sender-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.clip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emerald);
}

.clip-sender-name {
  font-weight: 700;
  color: var(--color-slate-text);
  font-family: var(--font-mono);
}

.clip-time {
  color: var(--color-slate-muted);
  font-size: 0.7rem;
}

.btn-copy-clipboard {
  background-color: #f1f5f9;
  border: 1px solid var(--color-slate-border);
  color: #1e293b;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-copy-clipboard:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

.btn-copy-clipboard.is-copied {
  background-color: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.btn-copy-icon {
  width: 12px;
  height: 12px;
}

.clip-content-box {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #334155;
  background-color: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 110px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #e2e8f0;
}

/* File Drop Zone & Target Selection */
.file-target-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.target-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-muted);
}

.file-target-select {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-text);
  background-color: #ffffff;
  border: 1px solid var(--color-slate-border);
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
}

.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
  border-color: var(--color-amber-primary);
  background-color: #fefce8;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-icon {
  width: 20px;
  height: 20px;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-headline {
  font-size: 0.85rem;
  color: var(--color-slate-text);
}

.dropzone-limit {
  font-size: 0.72rem;
  color: var(--color-slate-muted);
}

.btn-browse-file {
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.15s ease;
}

.btn-browse-file:hover {
  background-color: #0f172a;
}

/* Shared Files List */
.shared-files-container {
  margin-top: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shared-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.shared-files-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-slate-text);
}

.shared-files-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-slate-muted);
}

.shared-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.no-files-placeholder {
  padding: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-slate-muted);
  background-color: #ffffff;
  border: 1px solid var(--color-slate-border);
  border-radius: 8px;
}

.file-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid var(--color-slate-border);
  border-radius: 8px;
  padding: 8px 12px;
  gap: 10px;
  transition: all 0.15s ease;
}

.file-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.file-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.file-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #eff6ff;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-item-icon svg {
  width: 16px;
  height: 16px;
}

.file-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}

.file-item-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--color-slate-muted);
}

.file-sender-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.sender-wael { background-color: #fef3c7; color: #b45309; }
.sender-razan { background-color: #ecfdf5; color: #059669; }
.sender-nadia { background-color: #eff6ff; color: #1d4ed8; }

.btn-download-file {
  background-color: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-download-file:hover {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.btn-download-file svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   REQUIREMENT 1: AMBER TAB WARNING BANNER
   ========================================================================== */
.tab-warning-banner {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 30;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.95) 0%, rgba(180, 83, 9, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 240, 138, 0.55);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4);
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-warning-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-warning-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 12px #ffffff;
  animation: pulse-dot 0.9s infinite alternate;
  flex-shrink: 0;
}

.tab-warning-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-warning-headline {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tab-warning-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fef3c7;
}

.tab-warning-sub strong {
  color: #ffffff;
  text-decoration: underline;
}

.tab-warning-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-reselect-entire-screen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #b45309;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.btn-reselect-entire-screen:hover {
  background-color: #fef3c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reselect-icon {
  width: 15px;
  height: 15px;
}

.btn-dismiss-tab-warning {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-dismiss-tab-warning:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   REQUIREMENT 3: SLEEK PRESENTER STATUS HUD
   ========================================================================== */
.presenter-sharing-hud {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.90) 0%, rgba(10, 15, 30, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: auto;
}

.presenter-hud-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-hud-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-hud-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.presenter-hud-card {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 34px 40px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.presenter-beacon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.presenter-beacon-wrap .beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: beacon-expand 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.presenter-beacon-wrap .ring-2 {
  animation-delay: 1.1s;
}

@keyframes beacon-expand {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.beacon-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
}

.beacon-icon {
  width: 26px;
  height: 26px;
}

.presenter-hud-title {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 30%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin: 0;
}

.presenter-hud-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.presenter-hud-desc strong.highlight-cyan {
  color: #38bdf8;
  font-weight: 700;
}

.presenter-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.presenter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chip-green {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.chip-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 1s infinite alternate;
}

.chip-icon {
  width: 13px;
  height: 13px;
}

.presenter-guidance-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guidance-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.guidance-bullet {
  color: #10b981;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.presenter-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.btn-presenter-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-presenter-action:hover {
  background: rgba(71, 85, 105, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

.btn-presenter-action svg {
  width: 14px;
  height: 14px;
}

.btn-presenter-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-presenter-stop:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.btn-presenter-stop svg {
  width: 14px;
  height: 14px;
}
