/* ==========================================================================
   AURA Multi-Device Ecosystem & Interactive Watch Simulation Lab Styles
   Enterprise Multi-Device Interactive Testbed
   ========================================================================== */

:root {
  --sim-bg-page: #090c13;
  --sim-surface-base: #0f1422;
  --sim-surface-card: #14192b;
  --sim-surface-card-hover: #1a2138;
  --sim-surface-subtle: rgba(255, 255, 255, 0.04);

  --sim-border: rgba(255, 255, 255, 0.09);
  --sim-border-hover: rgba(255, 255, 255, 0.2);

  --sim-amber: #f59e0b;
  --sim-amber-glow: #fbbf24;
  --sim-amber-bg: rgba(245, 158, 11, 0.12);
  --sim-yellow: #FFCF00;

  --sim-purple: #818cf8;
  --sim-purple-glow: #a5b4fc;
  --sim-purple-bg: rgba(129, 140, 248, 0.12);

  --sim-green: #10b981;
  --sim-green-bg: rgba(16, 185, 129, 0.14);

  --sim-red: #ef4444;
  --sim-red-bg: rgba(239, 68, 68, 0.14);

  --sim-cyan: #38bdf8;

  --sim-text-primary: #f8fafc;
  --sim-text-secondary: #94a3b8;
  --sim-text-muted: #64748b;
  --sim-text-sand: #e6ded4;

  --sim-radius-xs: 6px;
  --sim-radius-sm: 10px;
  --sim-radius-md: 16px;
  --sim-radius-lg: 24px;
  --sim-radius-xl: 32px;
  --sim-radius-pill: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --sim-bg-page: #f8f6f2;
  --sim-surface-base: #f0ece5;
  --sim-surface-card: #ffffff;
  --sim-surface-card-hover: #faf8f5;
  --sim-surface-subtle: #f5f2ec;

  --sim-border: rgba(0, 0, 0, 0.08);
  --sim-border-hover: rgba(0, 0, 0, 0.16);

  --sim-text-primary: #0f1422;
  --sim-text-secondary: #475569;
  --sim-text-muted: #64748b;
  --sim-text-sand: #5c4d3c;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--sim-bg-page);
  color: var(--sim-text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--sim-bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page Container */
.sim-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.sim-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 12, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sim-border);
  padding: 14px 0;
}

[data-theme="light"] .sim-header {
  background: rgba(248, 246, 242, 0.88);
}

.sim-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sim-text-primary);
}

.sim-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.sim-brand-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.2px solid #f59e0b;
}

.sim-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sim-brand-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: var(--sim-radius-pill);
}

.sim-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-nav-link {
  color: var(--sim-text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 6px 10px;
  border-radius: var(--sim-radius-xs);
}

.sim-nav-link:hover {
  color: var(--sim-text-primary);
}

.sim-nav-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--sim-radius-sm);
  background: var(--sim-surface-subtle);
  border: 1px solid var(--sim-border);
  color: var(--sim-text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-outline:hover {
  border-color: var(--sim-border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.theme-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--sim-radius-pill);
  background: var(--sim-surface-subtle);
  border: 1px solid var(--sim-border);
  color: var(--sim-text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-pill-btn:hover {
  border-color: var(--sim-border-hover);
}

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */
.sim-hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.sim-arch-pill,
.sim-hackathon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: var(--sim-radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.sim-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b, 0 0 20px #fbbf24;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.sim-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--sim-text-primary);
  margin-bottom: 12px;
}

.sim-hero-sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sim-text-secondary);
  max-width: 860px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   MASTER CONTROLS TOOLBAR
   ========================================================================== */
.sim-master-toolbar {
  background: var(--sim-surface-card);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-lg);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sim-text-muted);
  letter-spacing: 0.05em;
}

/* Device Switcher */
.device-toggle-pills {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--sim-radius-pill);
  border: 1px solid var(--sim-border);
  gap: 4px;
}

[data-theme="light"] .device-toggle-pills {
  background: #eae5dc;
}

.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--sim-radius-pill);
  background: transparent;
  color: var(--sim-text-secondary);
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.device-pill:hover {
  color: var(--sim-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.device-pill.active {
  background: #f59e0b;
  color: #090c13;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45);
}

.device-pill[data-device="apple-watch"].active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45);
}

.device-sub-tag {
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: var(--sim-radius-pill);
  background: rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.device-pill.active .device-sub-tag {
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

/* Scenario Tabs */
.scenario-tabs-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scenario-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--sim-radius-md);
  background: var(--sim-surface-base);
  border: 1px solid var(--sim-border);
  color: var(--sim-text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sim-text-primary);
}

.scenario-tab-btn.active {
  background: var(--sim-text-sand);
  color: #090c13;
  border-color: var(--sim-text-sand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tab-num-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ==========================================================================
   PRIMARY SIMULATOR STAGE GRID (2 COLUMNS)
   ========================================================================== */
.sim-stage-main-grid {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 50px;
}

@media (max-width: 1100px) {
  .sim-stage-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEFT COLUMN: EXPANDED FULL-EXPERIENCE WATCH CHASSIS
   ========================================================================== */
.watch-viewport-stage {
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 20, 34, 0.95) 70%);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-xl);
  padding: 36px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Watch Silhouettes & Straps */
.watch-strap-top {
  width: 140px;
  height: 38px;
  background: linear-gradient(180deg, #1b202e 0%, #2a3247 100%);
  border-radius: 12px 12px 0 0;
  border: 1px solid #333d54;
  border-bottom: none;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
  margin-bottom: -4px;
  z-index: 1;
}

.watch-strap-bottom {
  width: 140px;
  height: 38px;
  background: linear-gradient(180deg, #2a3247 0%, #1b202e 100%);
  border-radius: 0 0 12px 12px;
  border: 1px solid #333d54;
  border-top: none;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  margin-top: -4px;
  z-index: 1;
}

/* 1. Orbit Physical Pebble Chassis */
.orbit-pebble-frame {
  position: relative;
  width: 350px;
  height: 480px;
  background: linear-gradient(160deg, #252c3c 0%, #161b26 60%, #0d1118 100%);
  border-radius: 70px 70px 80px 80px;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -5px 12px rgba(0, 0, 0, 0.9);
  border: 3px solid #374259;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  user-select: none;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Hardware-Coupled Amber Ring */
.orbit-amber-indicator {
  position: absolute;
  top: 20px;
  right: 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.amber-bloom {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(245, 158, 11, 0) 70%);
  animation: amberPulse 2.4s infinite ease-in-out;
}

@keyframes amberPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.amber-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffd066;
  box-shadow: 0 0 12px #f59e0b, 0 0 24px #fbbf24;
}

.amber-label-tag {
  position: absolute;
  top: -28px;
  right: -6px;
  background: rgba(9, 12, 19, 0.92);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--sim-radius-xs);
  white-space: nowrap;
  pointer-events: none;
}

/* Crescent Control Key */
.orbit-crescent-button {
  position: absolute;
  right: -15px;
  top: 48%;
  transform: translateY(-50%);
  width: 15px;
  height: 74px;
  background: linear-gradient(90deg, #3d4961 0%, #e6ded4 65%, #b3a89a 100%);
  border-radius: 0 10px 10px 0;
  border: none;
  cursor: pointer;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease, filter 0.2s ease;
}

.orbit-crescent-button:hover {
  filter: brightness(1.2);
}

.orbit-crescent-button:active {
  transform: translateY(-50%) translateX(-3px);
  filter: brightness(0.9);
}

.key-notch {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}

/* Orbit Screen Bezel & Display */
.orbit-bezel-enclosure {
  width: 276px;
  height: 380px;
  background: #080a0f;
  border-radius: 52px;
  border: 6px solid #1a202c;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.orbit-mip-canvas {
  width: 100%;
  height: 100%;
  background: #0b0e16;
  color: #e2e8f0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.orbit-mip-canvas::-webkit-scrollbar {
  display: none;
}

/* Bottom Acoustic Mesh */
.orbit-mesh-ports {
  position: absolute;
  bottom: 14px;
  display: flex;
  gap: 5px;
}

.mesh-circle {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000000;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* 2. Apple Watch Physical Chassis */
.apple-watch-frame {
  position: relative;
  width: 330px;
  height: 480px;
  background: linear-gradient(165deg, #2b2e36 0%, #181a20 60%, #0d0f13 100%);
  border-radius: 74px;
  border: 3px solid #3d424e;
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.95), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  user-select: none;
  z-index: 2;
}

.apple-crown-button {
  position: absolute;
  right: -14px;
  top: 110px;
  width: 14px;
  height: 50px;
  background: repeating-linear-gradient(180deg, #575c69 0px, #575c69 2px, #2a2e36 2px, #2a2e36 4px);
  border-radius: 0 8px 8px 0;
  border: 1px solid #737a8c;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease;
}

.apple-crown-button:hover { filter: brightness(1.2); }
.apple-crown-button:active { transform: translateX(-2px); }

.apple-side-key {
  position: absolute;
  right: -10px;
  top: 195px;
  width: 10px;
  height: 64px;
  background: #393e4a;
  border-radius: 0 6px 6px 0;
  border: 1px solid #5a6173;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease;
}

.apple-side-key:active { transform: translateX(-2px); }

.apple-oled-bezel {
  width: 280px;
  height: 424px;
  background: #000000;
  border-radius: 58px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid #14171d;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.95);
}

.watchos-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 4px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  background: #000000;
}

.watchos-icons-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.watchos-oled-surface {
  flex-grow: 1;
  background: #000000;
  color: #f1f5f9;
  padding: 12px 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.watchos-oled-surface::-webkit-scrollbar {
  display: none;
}

/* Watch Caption Helper */
.watch-stage-caption-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.stage-instruction-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--sim-surface-card);
  border: 1px solid var(--sim-border);
  padding: 10px 14px;
  border-radius: var(--sim-radius-sm);
  font-size: 0.8rem;
  color: var(--sim-text-secondary);
  line-height: 1.45;
}

.stage-instruction-pill strong {
  color: var(--sim-text-primary);
}

.stage-mode-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
}

/* ==========================================================================
   DYNAMIC SCREEN STATE TEMPLATES (In-Screen Elements)
   ========================================================================== */

/* 1. T-5 Screen */
.screen-card-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.screen-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.screen-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
}

.screen-countdown-pill {
  font-size: 0.66rem;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
}

.screen-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #f8fafc;
}

.screen-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0 10px;
}

.screen-detail-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.detail-kicker-label {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.detail-content-text {
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.screen-questions-strip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.question-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.q-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-screen-primary {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: #f59e0b;
  color: #090c13;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.btn-screen-primary:hover { filter: brightness(1.15); }
.btn-screen-primary:active { transform: scale(0.98); }

.watchos-oled-surface .btn-screen-primary {
  background: #10b981;
  color: #ffffff;
  border-radius: 20px;
}

.screen-banner-ack {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  text-align: center;
  font-weight: 800;
  margin-top: auto;
}

/* 2. Focus Screen */
.focus-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 12px 0 16px;
}

.focus-kicker-pill {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.focus-big-clock {
  font-family: monospace;
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  margin-bottom: 4px;
}

.focus-clock-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.focus-bank-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: var(--sim-radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd83d;
}

.focus-interception-alert {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 0.7rem;
  color: #fbbf24;
  line-height: 1.35;
}

.focus-actions-strip {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-trigger-distraction {
  flex: 1;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-trigger-distraction:hover { background: rgba(239, 68, 68, 0.3); }

.btn-stop-focus {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
}

/* 3. Distracted & Undo Screen */
.distracted-alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.distracted-policy-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.policy-tag-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 4px;
}

.policy-body-text {
  font-size: 0.74rem;
  line-height: 1.4;
  color: #f1f5f9;
}

.distracted-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.btn-apply-intervention-cta {
  width: 100%;
  background: #f59e0b;
  color: #090c13;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-undo-cta {
  width: 100%;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: undoPulse 2s infinite;
}

/* 4. Safety Check-in Screen */
.safety-title-warning {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.safety-legal-pill {
  font-size: 0.6rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.safety-meter-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.safety-meter-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 1s linear;
}

.safety-meter-fill.danger {
  background: #ef4444;
}

.safety-time-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.safety-countdown-digits {
  font-family: monospace;
  font-weight: 800;
  font-size: 1.2rem;
  color: #f59e0b;
}

.safety-countdown-digits.danger {
  color: #ef4444;
}

.btn-ok-green {
  width: 100%;
  background: #10b981;
  color: #ffffff;
  border: none;
  font-weight: 900;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-ok-green:hover { background: #059669; }

.btn-escalate-red {
  width: 100%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   RIGHT COLUMN: INTERACTIVE TEST SUITE & CLOUD TELEMETRY COCKPIT
   ========================================================================== */
.cockpit-panel-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Interactive Test Cases Suite Card */
.test-cases-suite-card {
  background: var(--sim-surface-card);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--sim-radius-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.suite-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--sim-border);
  padding-bottom: 14px;
}

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

.suite-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.suite-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sim-text-primary);
}

.btn-run-all-tests {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFCF00;
  color: #0E100A;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: var(--sim-radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-run-all-tests:hover {
  background: #ffd83d;
  box-shadow: 0 4px 14px rgba(255, 207, 0, 0.4);
}

.test-cases-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-case-item {
  background: var(--sim-surface-base);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.test-case-item:hover {
  border-color: var(--sim-border-hover);
}

.test-case-item.pass {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.tc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-id-badge {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.tc-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--sim-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sim-text-muted);
}

.tc-status-badge.pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sim-text-primary);
  margin-bottom: 6px;
}

.tc-assertion-desc {
  font-size: 0.76rem;
  color: var(--sim-text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

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

.tc-assertions-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-assert-chip {
  font-family: monospace;
  font-size: 0.66rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-run-tc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sim-border);
  color: var(--sim-text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--sim-radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-run-tc:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Telemetry & Wire Log Console */
.telemetry-cockpit-card {
  background: var(--sim-surface-card);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.telemetry-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sim-border);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

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

.telemetry-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.telemetry-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--sim-text-primary);
}

.telemetry-pipe-tag {
  font-family: monospace;
  font-size: 0.7rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

/* KPI Matrix */
.kpi-matrix-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kpi-stat-box {
  background: var(--sim-surface-base);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-sm);
  padding: 10px 14px;
}

.kpi-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sim-text-muted);
}

.kpi-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sim-text-primary);
  margin-top: 2px;
}

.kpi-value.amber { color: #fbbf24; }
.kpi-value.green { color: #10b981; }

/* Peripheral Defense Grid */
.peripheral-matrix-card {
  background: var(--sim-surface-base);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-md);
  padding: 14px 16px;
}

.peripheral-matrix-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sim-text-sand);
  margin-bottom: 12px;
}

.peripheral-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.periph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sim-surface-card);
  padding: 8px 12px;
  border-radius: var(--sim-radius-xs);
  border: 1px solid var(--sim-border);
}

.periph-name-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sim-text-primary);
}

.periph-name-sub {
  font-size: 0.65rem;
  color: var(--sim-text-muted);
}

.periph-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--sim-radius-pill);
}

.periph-badge.standby {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sim-text-muted);
}

.periph-badge.paused {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.periph-badge.dnd {
  background: rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.periph-badge.escalated {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Wire Terminal Stream */
.wire-stream-box {
  background: #06080d;
  border: 1px solid #1a2233;
  border-radius: var(--sim-radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.stream-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f1522;
  padding: 8px 12px;
  border-bottom: 1px solid #1a2233;
}

.stream-dots {
  display: flex;
  gap: 5px;
}

.stream-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a3449;
}

.stream-dots span:nth-child(1) { background: #ef4444; }
.stream-dots span:nth-child(2) { background: #f59e0b; }
.stream-dots span:nth-child(3) { background: #10b981; }

.stream-label {
  font-family: monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
}

.stream-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.65rem;
  cursor: pointer;
}

.stream-clear-btn:hover { color: #cbd5e1; }

.stream-entries-container {
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #cbd5e1;
  overflow-y: auto;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stream-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.stream-time {
  color: #64748b;
  font-size: 0.64rem;
  flex-shrink: 0;
}

.stream-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.stream-badge.event { background: #0284c7; color: #ffffff; }
.stream-badge.relay { background: #16a34a; color: #ffffff; }
.stream-badge.policy { background: #d97706; color: #ffffff; }
.stream-badge.pass { background: #10b981; color: #ffffff; }
.stream-badge.warn { background: #dc2626; color: #ffffff; }

.stream-content {
  word-break: break-all;
  color: #93c5fd;
}

/* ==========================================================================
   BOTTOM: 3 CONNECTED CLIENTS ECOSYSTEM OVERVIEW
   ========================================================================== */
.ecosystem-summary-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--sim-border);
}

.eco-summary-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sim-text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.eco-summary-sub {
  font-size: 0.95rem;
  color: var(--sim-text-secondary);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.eco-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .eco-cards-row {
    grid-template-columns: 1fr;
  }
}

.eco-item-card {
  background: var(--sim-surface-card);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.eco-item-card.orbit { border-top: 3px solid #f59e0b; }
.eco-item-card.apple { border-top: 3px solid #818cf8; }
.eco-item-card.mobile { border-top: 3px solid #FFCF00; }

.eco-item-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--sim-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--sim-border);
}

.eco-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-item-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sim-text-primary);
  margin-bottom: 6px;
}

.eco-item-desc {
  font-size: 0.84rem;
  color: var(--sim-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.eco-item-specs {
  list-style: none;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--sim-surface-base);
  padding: 10px 12px;
  border-radius: var(--sim-radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--sim-border);
}

.eco-item-specs strong {
  color: var(--sim-text-primary);
}

.eco-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--sim-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--sim-surface-subtle);
  border: 1px solid var(--sim-border);
  color: var(--sim-text-primary);
  transition: all 0.2s ease;
}

.eco-item-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.sim-footer {
  margin-top: auto;
  border-top: 1px solid var(--sim-border);
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--sim-text-muted);
  text-align: center;
}
