:root {
  --bg-app: #060911;
  --bg-panel: rgba(15, 23, 42, 0.82);
  --bg-panel-solid: #0f172a;
  --bg-elevated: rgba(30, 41, 59, 0.88);
  --bg-canvas: #0b101e;
  --clicky-primary: #0ea5e9;
  --clicky-glow: #38bdf8;
  --clicky-indigo: #6366f1;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.45);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.12), transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.12), transparent 40%),
              var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Top Global Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.25);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-yc {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--clicky-glow);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Mode Switcher Pills */
.mode-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--clicky-primary), var(--clicky-indigo));
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Header Right Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-pill, .action-pill {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.toggle-pill:hover, .action-pill:hover {
  border-color: var(--clicky-glow);
  background: rgba(30, 41, 59, 0.95);
}

.toggle-pill.active {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.api-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* Main Workspace Layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 16px;
  padding: 14px 20px 20px;
  max-width: 1680px;
  margin: 0 auto;
  min-height: calc(100vh - 62px);
}

@media (max-width: 1200px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Stage + Voice Dock */
.stage-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* App Context Tabs Bar */
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 12px;
  flex-wrap: wrap;
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.app-tab {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-tab:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.35);
}

.app-tab.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--clicky-glow);
  color: #fff;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.2);
}

.app-tab.screenshare-tab {
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.app-tab.screenshare-tab.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #fff;
}

.stage-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
}

.mini-btn:hover {
  color: var(--text-primary);
  border-color: var(--clicky-glow);
}

/* Dual-Layer Interactive Screen Stage */
.screen-stage {
  position: relative;
  width: 100%;
  height: 540px;
  background: var(--bg-canvas);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.08);
  user-select: none;
}

/* Simulated macOS Window Titlebar inside Stage */
.sim-window-bar {
  height: 34px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-dot.red { background: #ef4444; }
.win-dot.yellow { background: #f59e0b; }
.win-dot.green { background: #10b981; }

.sim-app-body {
  height: calc(100% - 34px);
  width: 100%;
  position: relative;
}

.sandbox-pane {
  display: none;
  width: 100%;
  height: 100%;
  padding: 14px;
  flex-direction: column;
  gap: 12px;
}

.sandbox-pane.active {
  display: flex;
}

/* Interactive Clickable Elements inside Sandbox */
[data-clicky-id] {
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

[data-clicky-id]:hover {
  filter: brightness(1.12);
}

[data-clicky-id].clicky-target-active {
  box-shadow: 0 0 0 2px var(--clicky-glow), 0 0 22px rgba(56, 189, 248, 0.45) !important;
}

[data-clicky-id].clicky-step-done {
  box-shadow: 0 0 0 2px var(--color-success), 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

/* Sandbox 1: DaVinci Studio */
.davinci-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141c2f;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.davinci-nav-items {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.davinci-mid {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.davinci-panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-mini-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-item {
  background: rgba(30, 41, 59, 0.7);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-monitor {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.4s ease;
}

.video-monitor.lut-applied {
  background: linear-gradient(135deg, #042f2e, #1e3a8a, #3b0764);
  border-color: #f59e0b;
}

.monitor-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #38bdf8;
}

.davinci-toolbar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141c2f;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  gap: 10px;
}

.davinci-timeline {
  background: #0f1523;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.timeline-track.track-v1 {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(99, 102, 241, 0.4);
}

.timeline-track.track-a1 {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(14, 165, 233, 0.22));
  border-color: rgba(16, 185, 129, 0.4);
}

.timeline-track.track-a1.fade-applied {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.38) 0%, rgba(14, 165, 233, 0.25) 60%, transparent 100%);
  border-color: #34d399;
}

.sim-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  border-color: #38bdf8;
  color: #fff;
}

/* Sandbox 2: FigmaFlow */
.figma-workspace {
  display: grid;
  grid-template-columns: 190px 1fr 230px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.figma-canvas-center {
  background: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: #0c1220;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.figma-hero-card {
  width: 290px;
  padding: 16px;
  background: #1e293b;
  border: 2px dashed rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.figma-hero-card.autolayout-on {
  gap: 14px;
  padding: 22px;
  border-style: solid;
  border-color: #38bdf8;
}

.figma-hero-card.radius-on {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.25);
}

/* Sandbox 3: Cursor IDE */
.cursor-workspace {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.code-editor-box {
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.code-line {
  padding: 4px 8px;
  border-radius: 5px;
  color: #cbd5e1;
  display: flex;
  gap: 12px;
}

.code-line.bug-line {
  background: rgba(239, 68, 68, 0.16);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
}

.code-line.bug-line.fixed {
  background: rgba(16, 185, 129, 0.16);
  border-left: 3px solid #10b981;
  color: #6ee7b7;
}

.terminal-box {
  background: #05080f;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #f87171;
}

.terminal-box.passed {
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

/* Sandbox 4: WebRTC Live Screen Share */
.screenshare-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080c16;
  border-radius: 10px;
  overflow: hidden;
}

#live-screen-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.screenshare-empty {
  text-align: center;
  max-width: 460px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   TRANSPARENT CLICK-THROUGH OVERLAY LAYER (HeyClicky OverlayWindow)
   ========================================================================== */
#overlay-window {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* CRITICAL: 100% mouse click-through just like NSWindow.ignoresMouseEvents = true */
  z-index: 40;
  overflow: hidden;
}

#annotation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Virtual Buddy Cursor */
#virtual-cursor {
  position: absolute;
  left: 82%;
  top: 78%;
  transform: translate(-4px, -4px);
  pointer-events: none;
  z-index: 50;
  will-change: left, top;
}

.virtual-cursor-icon {
  position: relative;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 6px 14px rgba(14, 165, 233, 0.65));
}

.cursor-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--clicky-glow);
  animation: clickyPulse 1.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes clickyPulse {
  0% { transform: scale(0.5); opacity: 0.95; }
  100% { transform: scale(2.1); opacity: 0; }
}

.virtual-cursor-bubble {
  position: absolute;
  left: 28px;
  top: 18px;
  min-width: 215px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--clicky-glow);
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(14, 165, 233, 0.3);
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.virtual-cursor-bubble.flip-left {
  left: auto;
  right: 34px;
}

.virtual-cursor-bubble.flip-top {
  top: auto;
  bottom: 34px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clicky-glow);
  margin-bottom: 3px;
}

.bubble-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.bubble-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Cursor-Following Companion Capsule */
#cursor-capsule {
  position: fixed;
  left: -300px;
  top: -300px;
  pointer-events: none;
  z-index: 999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: 999px;
  padding: 6px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(14, 165, 233, 0.28);
  font-size: 11.5px;
  font-weight: 600;
  color: #f8fafc;
  transition: opacity 0.2s ease;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.wave-bar {
  width: 3px;
  height: 5px;
  border-radius: 99px;
  background: var(--clicky-glow);
  transition: height 0.1s ease;
}

#cursor-capsule.speaking .wave-bar,
#cursor-capsule.listening .wave-bar {
  animation: waveBounce 0.6s infinite ease-in-out alternate;
}

#cursor-capsule. speaking .wave-bar:nth-child(2),
#cursor-capsule.listening .wave-bar:nth-child(2) { animation-delay: 0.15s; }
#cursor-capsule.speaking .wave-bar:nth-child(3),
#cursor-capsule.listening .wave-bar:nth-child(3) { animation-delay: 0.3s; }
#cursor-capsule.speaking .wave-bar:nth-child(4),
#cursor-capsule.listening .wave-bar:nth-child(4) { animation-delay: 0.1s; }

@keyframes waveBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* Bottom Voice & Prompt Control Dock */
.voice-dock {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ptt-btn {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  border: 1px solid #38bdf8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
  transition: all 0.2s ease;
}

.ptt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
}

.ptt-btn.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #fca5a5;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6);
}

.prompt-input-wrap {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 240px;
}

.prompt-input {
  flex: 1;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.prompt-input:focus {
  border-color: var(--clicky-glow);
}

.send-btn {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid var(--clicky-glow);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 0 16px;
  border-radius: 9px;
  cursor: pointer;
}

.quick-chips-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.chip-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-chip {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.quick-chip:hover {
  color: #fff;
  border-color: var(--clicky-glow);
  background: rgba(14, 165, 233, 0.15);
}

/* Right Column: Inspector & Step Queue */
.inspector-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.step-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.step-item.active {
  background: rgba(14, 165, 233, 0.13);
  border-color: var(--clicky-glow);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.15);
}

.step-item.completed {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.step-coord-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--clicky-glow);
  background: rgba(14, 165, 233, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.step-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Protocol Stream Box */
.protocol-box {
  background: #070a12;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #cbd5e1;
  max-height: 155px;
  overflow-y: auto;
  word-break: break-all;
}

.tag-point {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-draw {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.som-tree-box {
  background: #070a12;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  max-height: 125px;
  overflow-y: auto;
}

/* Modal for Architecture & Native Code Blueprint */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-window {
  background: #0f172a;
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

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

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-block-pre {
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}
