/* Connor - mini-aimp Pure Pitch-Black Monochrome Obsidian Theme */
:root {
  /* ── Pure Pitch Black / Monochrome Obsidian Palette (mini-aimp) ── */
  --bg-void: #000000;
  --bg-base: #050505;
  --bg-main: #050505;
  --bg-sidebar: #080808;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #121212;
  --bg-overlay: #101010;
  --bg-elevated: #161616;
  --bg-card: #0e0e0e;
  --bg-card-hover: #161616;
  --bg-input: #050505;

  /* ── Bar & Surfaces ── */
  --bar-bg: #080808;
  --bar-border: #1c1c1c;
  --bar-highlight: #141414;

  /* ── Borders & Dividers ── */
  --border-dim: #161616;
  --border-subtle: #1c1c1c;
  --border-base: #222222;
  --border-active: #2f2f2f;
  --border-bright: #444444;
  --separator: #1f1f1f;

  /* ── Typography (Monochrome Scale) ── */
  --text-bright: #ffffff;
  --text-primary: #e4e4e4;
  --text-secondary: #999999;
  --text-muted: #555555;
  --text-disabled: #333333;
  --text-on-accent: #000000;

  /* ── Pure Neutral Accents ── */
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --accent-muted: #666666;
  --accent-soft: #161616;

  /* ── Strict Monochrome Functional Aliases ── */
  --accent-purple: #ffffff;
  --accent-blue: #ffffff;
  --accent-cyan: #ffffff;
  --accent-green: #ffffff;
  --accent-amber: #e4e4e4;
  --accent-red: #ffffff;

  /* ── Fonts: JetBrains Mono Throughout ── */
  --font-sans: 'JetBrains Mono', 'JetBrainsMono Nerd Font', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-mono: 'JetBrains Mono', 'JetBrainsMono Nerd Font', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ── Dimensions & Sharp Geometric Radii ── */
  --radius-xs: 4px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;

  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.dark-theme {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Minimalist Scrollbars ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-bright);
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg-void);
}

/* ── SIDEBAR ── */
.sidebar {
  width: 290px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition-normal), transform var(--transition-normal);
  position: relative;
  z-index: 10;
}

.sidebar.collapsed {
  width: 0;
  transform: translateX(-100%);
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: #121212;
  border: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  font-family: var(--font-mono);
}

.brand-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: #141414;
  color: #888888;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #262626;
  font-family: var(--font-mono);
}

.instance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #888888;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sidebar-actions {
  padding: 12px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Inverted mini-aimp control button */
.btn-new-chat {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-new-chat:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.btn-new-chat kbd {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #666666;
  background: #141414;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #222222;
  transition: all var(--transition-fast);
}

.btn-new-chat:hover kbd {
  background: #e4e4e4;
  color: #000000;
  border-color: #e4e4e4;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-void);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #666666;
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--border-active);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* ── SESSIONS LIST ── */
.sessions-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-group-header {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #444444;
  padding: 10px 8px 4px 8px;
  font-family: var(--font-mono);
}

.session-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #888888;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
  border: 1px solid transparent;
}

.session-item:hover {
  background: #101010;
  border-color: #202020;
  color: #ffffff;
}

/* High-contrast inverted active item */
.session-item.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
}

.session-item-title {
  flex: 1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-item-turns {
  font-size: 10px;
  color: var(--text-muted);
  background: #060606;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.session-item.active .session-item-turns {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.session-item-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.session-item:hover .session-item-actions {
  display: flex;
}

.btn-session-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 2px;
  cursor: pointer;
  border-radius: 3px;
}

.btn-session-action:hover {
  color: var(--text-primary);
}

.session-item.active .btn-session-action {
  color: #000000;
}

.session-item.active .btn-session-action:hover {
  color: #333333;
}

.loading-placeholder {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ── ACCOUNT FOOTER ── */
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
}

.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #0c0c0c;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-card:hover {
  background: #141414;
  border-color: var(--border-base);
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: #161616;
  border: 1px solid #282828;
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.account-email {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-chip {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: #141414;
  color: #ffffff;
  border: 1px solid #262626;
  font-family: var(--font-mono);
}

.tier-chip.pro {
  background: #222222;
  color: #ffffff;
  border-color: #3a3a3a;
}

.quota-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.quota-bar-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
}

.quota-bar-track {
  width: 100%;
  height: 3px;
  background: #121212;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quota-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #8a8f98;
  font-family: var(--font-mono);
}

.quota-label-row span {
  white-space: nowrap;
}

.account-switch-icon {
  color: var(--text-muted);
  cursor: pointer;
}

/* ── ANTIGRAVITY QUOTA POPOVER (MATCHING REFERENCE) ── */
.quota-popover-card {
  position: absolute;
  bottom: 74px;
  left: 12px;
  width: 292px;
  background: #161719;
  border: 1px solid #282a2e;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: quotaFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quotaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quota-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #24262b;
}

.quota-popover-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71767f;
}

.quota-popover-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quota-group-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #8a8f98;
  margin-bottom: 10px;
  margin-top: 2px;
}

.quota-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quota-item-row:last-child {
  margin-bottom: 0;
}

.quota-item-meta {
  display: flex;
  flex-direction: column;
}

.quota-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #e3e5e8;
  line-height: 1.3;
}

.quota-item-reset {
  font-size: 11px;
  color: #71767f;
  margin-top: 2px;
}

.quota-item-val {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-pct-text {
  font-size: 13px;
  font-weight: 500;
  color: #e3e5e8;
  font-variant-numeric: tabular-nums;
}

.quota-ring {
  transform: rotate(-90deg);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quota-ring-bg {
  fill: none;
  stroke: #25282d;
  stroke-width: 2.8;
}

.quota-ring-bar {
  fill: none;
  stroke: #4ade80;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.quota-ring-bar.low {
  stroke: #f87171;
}

.quota-group-divider {
  border-top: 1px solid #25272c;
  margin: 12px 0;
}

/* ── MAIN VIEWPORT ── */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #050505;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── TOP BAR (Flush 44px) ── */
.top-bar {
  height: 44px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-title-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  font-family: var(--font-mono);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn, .icon-btn-sm {
  background: transparent;
  border: none;
  color: #888888;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn {
  padding: 6px;
}

.icon-btn-sm {
  padding: 4px;
}

.icon-btn:hover, .icon-btn-sm:hover {
  background: #141414;
  color: #ffffff;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-wrapper {
  position: relative;
}

.control-pill {
  height: 28px;
  background: #0c0c0c;
  border: 1px solid var(--border-dim);
  color: #888888;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-pill:hover {
  background: #161616;
  border-color: var(--border-active);
  color: #ffffff;
}

.control-pill strong {
  color: #ffffff;
}

.control-pill.listening {
  border-color: rgba(0, 255, 170, 0.45);
  background: rgba(0, 255, 170, 0.05);
  color: #ffffff;
}

.control-pill.listening strong {
  color: #00ffaa;
}

.control-pill.active {
  border-color: rgba(0, 180, 216, 0.45);
  background: rgba(0, 180, 216, 0.08);
  color: #ffffff;
}

.control-pill.active strong {
  color: #00b4d8;
}

.control-pill.active-pulse {
  animation: wakePulse 0.6s ease;
}

@keyframes wakePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 170, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 16px rgba(0, 255, 170, 0.5); border-color: #00ffaa; }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 170, 0); }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #0c0c0c;
  border: 1px solid #242424;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95);
  min-width: 220px;
  padding: 4px;
  z-index: 50;
  display: none;
}

.dropdown-menu.show {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  padding: 7px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #999999;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: #161616;
  color: #ffffff;
}

.dropdown-item.selected {
  color: #000000;
  font-weight: 600;
  background: #ffffff;
}

.telemetry-pill {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0c0c0c;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0 9px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #777777;
}

.telemetry-divider {
  color: var(--border-subtle);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot.green {
  background: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

/* ── CHAT TIMELINE ── */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 110px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  z-index: 2;
}

/* ── BACKGROUND 3D NEURAL SPHERE UNDERLAY ── */
.bg-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.bg-neural-canvas.active {
  opacity: 0.28;
}

/* ── 11. GRAPH ORBITAL PULSE CONTAINMENT ── */
.shockwave-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.orbital-pulse-containment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lock in around the graph when active */
.shockwave-overlay.active .orbital-pulse-containment {
  animation: orbitalScaleLockIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Close/implode into center after nodes close */
.shockwave-overlay.closing .orbital-pulse-containment {
  animation: orbitalScaleClose 0.28s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.shockwave-ring.ring-primary {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 180, 216, 0.14);
  border-top-color: rgba(0, 229, 255, 0.45);
  border-bottom-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15), inset 0 0 8px rgba(0, 180, 216, 0.08);
  animation: orbitalSpinCW 2.4s linear infinite;
  box-sizing: border-box;
}

.shockwave-ring.ring-inner {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.18);
  border-left-color: rgba(0, 229, 255, 0.35);
  border-right-color: rgba(0, 180, 216, 0.25);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.08);
  animation: orbitalSpinCCW 3.6s linear infinite;
  box-sizing: border-box;
}

@keyframes orbitalScaleLockIn {
  0% {
    transform: translate(-50%, -50%) scale(0.08);
    opacity: 0;
  }
  65% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.28;
  }
}

@keyframes orbitalScaleClose {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.28;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@keyframes orbitalSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitalSpinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ── OPTION 1: BIOMETRIC SINE WAVE (BORDERLESS) ── */
.biometric-sine-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  margin-bottom: 4px;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sine-canvas-wrap {
  width: 140px;
  height: 24px;
  display: flex;
  align-items: center;
}

.sine-wave-canvas {
  width: 140px;
  height: 24px;
  display: block;
}

.sine-telemetry-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #00b4d8;
  letter-spacing: 0.3px;
  opacity: 0.9;
  text-shadow: 0 0 6px rgba(0, 180, 216, 0.4);
}

.sine-timer {
  color: #ffffff;
  font-weight: 500;
}

.messages-list {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── EMPTY STATE ── */
.empty-state {
  max-width: 680px;
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #0c0c0c;
  border: 1px solid #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.empty-state h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #ffffff;
  font-family: var(--font-mono);
}

.empty-sub {
  font-size: 12px;
  color: #666666;
  max-width: 440px;
  font-family: var(--font-mono);
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.starter-card {
  background: #0c0c0c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.starter-card:hover {
  background: #141414;
  border-color: var(--border-active);
}

.starter-icon {
  font-size: 16px;
  margin-bottom: 6px;
  filter: grayscale(1);
}

.starter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-bright);
  font-family: var(--font-mono);
}

.starter-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ── MESSAGE ROWS ── */
.message-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.message-row.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.message-row.user .message-avatar {
  background: #161616;
  border: 1px solid #282828;
  color: #ffffff;
  order: 2;
}

.message-row.agent .message-avatar {
  background: #000000;
  border: 1px solid #1c1c1c;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.message-row.agent .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Overdrive during thinking/streaming */
.message-row.agent.live .message-avatar {
  border-color: #00b4d8 !important;
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.6), 0 0 28px rgba(0, 180, 216, 0.25) !important;
}

.message-row.agent.live .message-avatar img {
  animation: avatarOverdrive 0.65s linear infinite;
}

@keyframes avatarOverdrive {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.message-content-wrapper {
  max-width: 86%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-row.user .message-content-wrapper {
  align-items: flex-end;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.message-row.user .message-bubble {
  background: #0c0c0c;
  border: 1px solid #1f1f1f;
  color: var(--text-bright);
  border-bottom-right-radius: 2px;
}

.message-row.agent .message-bubble {
  background: transparent;
  color: var(--text-primary);
  padding: 0;
}

/* ── THOUGHT ACCORDION ("Thought for Xs") ── */
.thought-accordion {
  background: #090909;
  border: 1px solid var(--border-dim);
  border-left: 2px solid #555555;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}

.thought-header {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #888888;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.thought-header:hover {
  color: #cccccc;
}

.thought-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thought-body {
  padding: 8px 12px;
  font-size: 12px;
  color: #777777;
  border-top: 1px solid #141414;
  background: #020202;
  font-family: var(--font-mono);
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

/* ── ANTIGRAVITY PROCESS CONTAINER (COLLAPSED / EXPANDABLE) ── */
.process-box {
  background: #050505;
  border: 1px solid #141414;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  width: 100%;
}

.process-box:hover {
  border-color: #222222;
}

.process-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #080808;
  cursor: pointer;
  user-select: none;
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  color: #888888;
  transition: background 0.15s ease, color 0.15s ease;
}

.process-box-header:hover {
  background: #0e0e0e;
  color: #ffffff;
}

.process-box-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proc-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber, #f59e0b);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  display: inline-block;
  animation: pulse 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

.process-box-header * {
  pointer-events: none;
}

.process-chevron {
  font-size: 11px;
  color: #444444;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.process-box.collapsed .process-chevron {
  transform: rotate(-90deg);
}

.process-box.collapsed .process-box-steps {
  display: none !important;
}

.process-box-steps {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 6px 8px;
  border-top: 1px solid #101010;
  background: #000000;
  scrollbar-width: thin;
  scrollbar-color: #222222 transparent;
}

.process-box-steps::-webkit-scrollbar {
  width: 5px;
}

.process-box-steps::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 4px;
}

.process-step-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.process-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #666666;
  transition: background 0.15s ease, color 0.15s ease;
}

.process-step-row:hover {
  background: #0a0a0a;
  color: #ffffff;
}

.process-step-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.process-step-chevron {
  font-size: 11px;
  color: #333333;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.process-step-item.open .process-step-chevron {
  transform: rotate(90deg);
  color: #ffffff;
}

.process-step-details {
  background: #030303;
  border: 1px solid #141414;
  border-radius: 4px;
  padding: 7px 10px;
  margin: 3px 0 5px 0;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #888888;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a transparent;
}

/* ── TOOL CALL ACCORDIONS ── */
.tool-accordion {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-left: 2px solid #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}

.tool-accordion.done {
  border-left-color: #ffffff;
}

.tool-header {
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #cccccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.tool-header:hover {
  background: #101010;
}

.tool-status-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.tool-status-badge.running {
  background: #161616;
  border: 1px solid #333333;
  color: #ffffff;
}

.tool-status-badge.done {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.tool-body {
  padding: 8px 12px;
  background: #000000;
  border-top: 1px solid #141414;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cccccc;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
}

/* ── 10. CODE BLOCKS & PERIMETER LASER SCAN ── */
.code-block-wrapper {
  margin: 10px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000000;
  position: relative;
  transition: border-color 0.3s ease;
}

.code-block-wrapper .perimeter-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.code-block-wrapper .perimeter-path {
  fill: none;
  stroke: #00b4d8;
  stroke-width: 2;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  x: 1;
  y: 1;
  rx: 4;
  stroke-dasharray: 25 100;
  stroke-dashoffset: 25;
  opacity: 0;
  filter: drop-shadow(0 0 6px #00b4d8);
}

.code-block-wrapper.scanning {
  border-color: rgba(0, 180, 216, 0.45) !important;
}

.code-block-wrapper.scanning .perimeter-path {
  opacity: 1;
  animation: codePerimeterLap 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes codePerimeterLap {
  0% { stroke-dashoffset: 25; }
  100% { stroke-dashoffset: -100; }
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: #090909;
  border-bottom: 1px solid #141414;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #777777;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: #777777;
  font-size: 10px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  background: #ffffff;
  color: #000000;
}

pre code {
  font-family: var(--font-mono);
  font-size: 12px;
  display: block;
  padding: 10px 12px;
  overflow-x: auto;
  line-height: 1.5;
  background: #000000 !important;
  color: #e4e4e4;
}

/* ── MARKDOWN BODY ── */
.markdown-body {
  font-family: var(--font-mono);
}

.markdown-body p {
  margin-bottom: 8px;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin: 12px 0 6px 0;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
}

.markdown-body ul, .markdown-body ol {
  margin: 6px 0 8px 18px;
}

.markdown-body li {
  margin-bottom: 3px;
}

.markdown-body a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body a:hover {
  color: #e0e0e0;
}

.markdown-body blockquote {
  border-left: 2px solid #555555;
  padding: 4px 10px;
  margin: 8px 0;
  color: #888888;
  background: #080808;
  border-radius: 0 3px 3px 0;
}

.markdown-body code:not(pre code) {
  background: #101010;
  border: 1px solid #1e1e1e;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ── FLOATING PROMPT DOCK ── */
.prompt-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px 18px 20px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.92) 25%, rgba(5, 5, 5, 1) 100%);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.prompt-box-wrapper {
  width: 100%;
  max-width: 860px;
}

.prompt-box {
  background: #090909;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius-md);
  padding: 10px 14px 8px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ── LASER SCANLINE SWEEP ON DISPATCH ── */
.prompt-box .laser-beam {
  position: absolute;
  top: 0;
  left: -220px;
  width: 180px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.05), rgba(0, 180, 216, 0.25), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.prompt-box .laser-border-top {
  position: absolute;
  top: 0;
  left: -140px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00b4d8, #ffffff, #00b4d8, transparent);
  box-shadow: 0 0 10px #00b4d8, 0 0 20px rgba(0, 180, 216, 0.7);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}

.prompt-box.firing {
  border-color: rgba(0, 180, 216, 0.5) !important;
  box-shadow: 0 0 24px rgba(0, 180, 216, 0.16), 0 8px 32px rgba(0, 0, 0, 0.85) !important;
}

.prompt-box.firing .laser-beam {
  animation: promptLaserSweep 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prompt-box.firing .laser-border-top {
  animation: promptLaserBorderSweep 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes promptLaserSweep {
  0% { left: -220px; opacity: 1; }
  65% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes promptLaserBorderSweep {
  0% { left: -140px; opacity: 1; }
  65% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── CYBERNETIC INPUT DOCK CORNER BRACKETS & FOCUS AURA ── */
.prompt-box .corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 8;
}

.prompt-box .corner-bracket.top-left {
  top: 3px;
  left: 3px;
  border-top: 2px solid #00e5ff;
  border-left: 2px solid #00e5ff;
  border-top-left-radius: 3px;
  transform: translate(4px, 4px);
}

.prompt-box .corner-bracket.top-right {
  top: 3px;
  right: 3px;
  border-top: 2px solid #00e5ff;
  border-right: 2px solid #00e5ff;
  border-top-right-radius: 3px;
  transform: translate(-4px, 4px);
}

.prompt-box .corner-bracket.bottom-left {
  bottom: 3px;
  left: 3px;
  border-bottom: 2px solid #00e5ff;
  border-left: 2px solid #00e5ff;
  border-bottom-left-radius: 3px;
  transform: translate(4px, -4px);
}

.prompt-box .corner-bracket.bottom-right {
  bottom: 3px;
  right: 3px;
  border-bottom: 2px solid #00e5ff;
  border-right: 2px solid #00e5ff;
  border-bottom-right-radius: 3px;
  transform: translate(-4px, -4px);
}

.prompt-box:focus-within {
  border-color: rgba(0, 229, 255, 0.6) !important;
  background: #090b0e !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.9), inset 0 0 14px rgba(0, 229, 255, 0.05) !important;
  animation: promptAuraBreath 2.8s ease-in-out infinite alternate !important;
}

.prompt-box:focus-within .corner-bracket {
  opacity: 1;
  transform: translate(0, 0);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

@keyframes promptAuraBreath {
  0% {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.9), inset 0 0 10px rgba(0, 229, 255, 0.03);
  }
  100% {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.28), 0 8px 32px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 229, 255, 0.08);
  }
}

/* ── STREAMING LASER MATRIX CURSOR & GLITCH ── */
.streaming-matrix-cursor {
  display: inline-block;
  width: 2.5px;
  height: 15px;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff, 0 0 18px rgba(0, 229, 255, 0.8);
  margin-left: 3px;
  vertical-align: -2px;
  animation: cursorLaserBlink 0.5s infinite alternate ease-in-out;
  border-radius: 1px;
}
@keyframes cursorLaserBlink {
  0% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0.25; transform: scaleY(0.8); }
}

.matrix-stream-glitch {
  color: #00e5ff !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.85), 0 0 16px rgba(0, 180, 216, 0.5) !important;
  font-family: var(--font-mono, monospace) !important;
  font-weight: 600;
  display: inline;
}

.prompt-box textarea {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 200px;
  width: 100%;
}

.prompt-box textarea::placeholder {
  color: #444444;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-tag, .account-tag {
  font-size: 10px;
  font-weight: 500;
  color: #777777;
  background: #040404;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #1a1a1a;
  font-family: var(--font-mono);
}

.prompt-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* High contrast inverted send button */
.btn-send {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-voice {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: #121214;
  color: #a0a0a0;
  border: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-voice:hover {
  background: #1e1e22;
  color: #ffffff;
  border-color: #444444;
}

.btn-voice.active {
  background: #081726;
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  animation: voicePulseBtn 2s infinite ease-in-out;
}

@keyframes voicePulseBtn {
  0%, 100% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.25); }
  50% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.55); }
}

.btn-stop {
  background: #141414;
  border: 1px solid #333333;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-stop:hover {
  background: #ffffff;
  color: #000000;
}

/* ── ACCOUNT MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #090909;
  border: 1px solid #222222;
  border-radius: var(--radius-md);
  padding: 18px;
  width: 420px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.modal-desc {
  font-size: 11px;
  color: #777777;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.account-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-option:hover {
  border-color: #2e2e2e;
  background: #101010;
}

.account-option.active {
  border-color: #ffffff;
  background: #141414;
}

.account-option-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: #161616;
  border: 1px solid #282828;
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-option-details {
  flex: 1;
}

.account-option-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-bright);
}

.account-option-email {
  font-size: 11px;
  color: var(--text-secondary);
}

.account-option-quota {
  font-size: 10px;
  color: var(--text-muted);
}

.account-option-check {
  color: #ffffff;
  font-size: 16px;
}

/* ── MESSAGE QUEUE TRAY ── */
.message-queue-tray {
  background: #0d0d0d;
  border: 1px solid #2e2e2e;
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 8px 12px;
  animation: slideUp 0.15s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.queue-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-dot {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  width: 7px;
  height: 7px;
}

.queue-title {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-queue-force {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn-queue-force:hover {
  opacity: 0.88;
}

.btn-queue-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #222222;
  border-radius: var(--radius-xs);
  width: 20px;
  height: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-queue-cancel:hover {
  color: #ffffff;
  border-color: #444444;
}

.queue-preview {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 15px;
}

/* ── GEMINI 2.5 LIVE VOICE TRAY ── */
.live-voice-tray {
  background: radial-gradient(circle at 50% 15%, #14171f 0%, #090a0d 100%);
  border: 1px solid #272a33;
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px 14px 16px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  animation: slideUpVoice 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.live-voice-tray::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

@keyframes slideUpVoice {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.voice-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.voice-badge {
  display: flex;
  align-items: center;
  gap: 7px;
}

.voice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  transition: all var(--transition-fast);
}

.voice-dot.listening {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: voiceDotPulse 1.5s infinite ease-in-out;
}

.voice-dot.thinking {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: voiceDotPulse 0.8s infinite ease-in-out;
}

.voice-dot.speaking {
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
  animation: voiceDotPulse 1.2s infinite ease-in-out;
}

@keyframes voiceDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}

.voice-badge-text {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-select-dropdown {
  background: #111216;
  border: 1px solid #282a33;
  color: #cbd5e1;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.voice-select-dropdown:hover, .voice-select-dropdown:focus {
  border-color: #38bdf8;
}

.icon-btn-voice-ctrl {
  background: #15171d;
  color: #94a3b8;
  border: 1px solid #2a2d38;
  border-radius: var(--radius-xs);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn-voice-ctrl:hover {
  background: #20242e;
  color: #ffffff;
  border-color: #475569;
}

.icon-btn-voice-ctrl.muted {
  background: #2d1315;
  color: #f87171;
  border-color: #ef4444;
}

.icon-btn-voice-close {
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  width: 22px;
  height: 22px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.icon-btn-voice-close:hover {
  color: #ffffff;
  background: #1e2029;
  border-color: #334155;
}

/* ── CHATGPT LIVE STYLE ORB VISUALIZER ── */
.voice-orb-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 8px 0;
}

#voiceOrbCanvas {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.voice-orb-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 75%);
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.voice-orb-glow.thinking {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 75%);
}

.voice-orb-glow.speaking {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
}

/* ── VOICE REAL-TIME TRANSCRIPT SUBTITLE ── */
.voice-transcript-bubble {
  display: none !important;
  background: rgba(13, 15, 20, 0.88);
  border: 1px solid #20232c;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(8px);
  min-height: 44px;
}

.transcript-speaker {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.transcript-speaker.user {
  color: #34d399;
}

.transcript-speaker.connor {
  color: #a855f7;
}

.transcript-speaker.system {
  color: #94a3b8;
}

.transcript-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 65px;
  overflow-y: auto;
}

/* ── ATTACHED IMAGES TRAY (INSIDE PROMPT BOX) ── */
.image-attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 4px 4px 4px;
}

.image-attach-item {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #000000;
}

.image-attach-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-attach-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.image-attach-remove:hover {
  background: #ffffff;
  color: #000000;
}

/* ── ATTACH BUTTON IN PROMPT BAR ── */
.icon-btn-attach {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.icon-btn-attach:hover {
  color: #ffffff;
  background: #141414;
}

/* ── IMAGE THUMBNAILS IN CHAT BUBBLES ── */
.message-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-image-thumb {
  max-width: 220px;
  max-height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid #222222;
  cursor: pointer;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.chat-image-thumb:hover {
  transform: scale(1.02);
  border-color: #555555;
}

/* ── HEADER TASKS BUTTON & PILL ── */
.btn-tasks-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tasks-dot {
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.tasks-count-badge {
  background: #222222;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 10px;
  border: 1px solid #333333;
}

/* ── TASKS & LISTENERS MODAL ── */
.modal-tasks {
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
}

.tasks-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.btn-refresh-tasks {
  background: transparent;
  border: 1px solid #222222;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-size: 12px;
  cursor: pointer;
}

.btn-refresh-tasks:hover {
  color: #ffffff;
  border-color: #444444;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.preset-card {
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.preset-card:hover {
  background: #111111;
  border-color: #2e2e2e;
}

.preset-card.active {
  border-color: #444444;
  background: #141414;
}

.preset-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.preset-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.preset-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.preset-badge {
  font-size: 10px;
  color: var(--text-secondary);
}

.btn-preset-toggle {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn-preset-toggle.running {
  background: transparent;
  color: #ffffff;
  border: 1px solid #333333;
}

.btn-preset-toggle:hover {
  opacity: 0.85;
}

/* Custom Task Form */
.custom-task-form {
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-task-form input {
  background: #000000;
  border: 1px solid #222222;
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
}

.custom-task-form input:focus {
  outline: none;
  border-color: #444444;
}

.custom-task-cmd-row {
  display: flex;
  gap: 6px;
}

.custom-task-cmd-row input {
  flex: 1;
}

.btn-custom-task-start {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-xs);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
}

.btn-custom-task-start:hover {
  opacity: 0.88;
}

/* Active Tasks List */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tasks-empty {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border: 1px dashed #1c1c1c;
  border-radius: var(--radius-sm);
}

.task-card {
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.task-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.task-status-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #1c1c1c;
  color: #ffffff;
  border: 1px solid #333333;
}

.task-status-tag.running {
  background: #111111;
  color: #ffffff;
  border-color: #555555;
}

.burst-tag {
  font-size: 9px;
  background: #222222;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #444444;
}

.task-cmd {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-task-action {
  background: transparent;
  border: 1px solid #222222;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-task-action:hover {
  color: #ffffff;
  border-color: #444444;
}

.btn-task-action.stop {
  color: #ffffff;
  border-color: #383838;
}

.btn-task-action.stop:hover {
  background: #ffffff;
  color: #000000;
}

/* Modal Logs */
.modal-logs {
  max-width: 760px;
  width: 90vw;
}

.task-logs-viewer {
  background: #000000;
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e4e4e4;
  height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Lightbox Modal */
.lightbox-backdrop {
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  border: 1px solid #333333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -34px;
  right: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* ── LINK / WEB PREVIEW MODAL ── */
.link-preview-backdrop {
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.link-preview-content {
  position: relative;
  width: 90vw;
  max-width: 1150px;
  height: 86vh;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.link-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #080808;
  border-bottom: 1px solid #141414;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  user-select: none;
}

.link-preview-title {
  color: #777777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-preview-title .preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b4d8;
  box-shadow: 0 0 6px #00b4d8;
}

.link-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-preview-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #777777;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  border: 1px solid #1a1a1a;
  background: #0a0a0a;
  transition: all 0.15s ease;
}

.link-preview-btn:hover {
  color: #00b4d8;
  border-color: #00b4d84d;
  background: #00b4d80d;
}

.link-preview-close {
  background: transparent;
  color: #777777;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.link-preview-close:hover {
  color: #ffffff;
}

.link-preview-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  position: relative;
}

.link-preview-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  display: block;
}

/* ── 06. CYBERNETIC TEXT SCRAMBLER ── */
[data-scrambling="true"] {
  color: #00b4d8 !important;
  text-shadow: 0 0 6px rgba(0, 180, 216, 0.4);
  letter-spacing: 0.02em;
}

/* ── 07. HEX-CORE REACTOR THINKING SPINNER ── */
.proc-hex-spinner {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.proc-hex-spinner svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hex-spin-outer {
  transform-origin: 50% 50%;
  animation: hexSpinCW 2.8s linear infinite;
}

.hex-spin-inner {
  transform-origin: 50% 50%;
  animation: hexSpinCCW 1.4s linear infinite;
}

@keyframes hexSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hexSpinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ── 08. MEMORY FLUX MATRIX PILL (TOP BAR) ── */
.memory-flux-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #080808;
  border: 1px solid #161616;
  border-radius: var(--radius-sm, 4px);
  padding: 3px 8px;
  cursor: default;
  user-select: none;
  transition: border-color 0.2s ease;
}

.memory-flux-pill:hover {
  border-color: #2a2a2a;
}

.flux-matrix-grid {
  display: grid;
  grid-template-columns: repeat(12, 3.5px);
  grid-template-rows: repeat(2, 3.5px);
  gap: 2px;
}

.flux-cell {
  width: 3.5px;
  height: 3.5px;
  background: #141414;
  border-radius: 0.5px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.flux-cell.dim {
  background: rgba(0, 180, 216, 0.2);
}

.flux-cell.active {
  background: #00b4d8;
  box-shadow: 0 0 4px #00b4d8;
}

.flux-cell.hot {
  background: #ffffff;
  box-shadow: 0 0 6px #00b4d8, 0 0 10px #ffffff;
}

.flux-label {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: #666666;
  letter-spacing: 0.04em;
}

/* ── 09. BACKGROUND PROCESS BANNER (DUAL-SESSION PARALLEL EXECUTION) ── */
.bg-process-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 18, 0.96);
  border-bottom: 1px solid rgba(0, 180, 216, 0.3);
  backdrop-filter: blur(14px);
  padding: 8px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #e0e0e0;
  z-index: 40;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  animation: slideDownBanner 0.25s ease forwards;
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bg-process-banner.completed {
  background: rgba(8, 20, 14, 0.96);
  border-bottom-color: rgba(0, 255, 170, 0.4);
}

.bg-process-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00b4d8;
  box-shadow: 0 0 8px #00b4d8;
  animation: pulseCyan 1.5s infinite alternate;
  flex-shrink: 0;
}

.bg-process-banner.completed .bg-process-dot {
  background: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
  animation: none;
}

@keyframes pulseCyan {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #00b4d8; }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px #00b4d8; }
}

.bg-process-label {
  color: #00b4d8;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.bg-process-banner.completed .bg-process-label {
  color: #00ffaa;
}

.bg-process-title {
  color: #ffffff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

.bg-process-timer {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #888888;
  flex-shrink: 0;
}

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

.bg-process-btn {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.35);
  color: #00b4d8;
  border-radius: var(--radius-xs, 3px);
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bg-process-btn:hover {
  background: rgba(0, 180, 216, 0.28);
  border-color: #00b4d8;
  color: #ffffff;
}

.bg-process-btn.btn-danger-subtle {
  background: rgba(255, 70, 70, 0.1);
  border-color: rgba(255, 70, 70, 0.3);
  color: #ff6b6b;
}

.bg-process-btn.btn-danger-subtle:hover {
  background: rgba(255, 70, 70, 0.25);
  border-color: #ff6b6b;
  color: #ffffff;
}

/* Session fork notice in chat timeline */
.session-fork-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 180, 216, 0.07);
  border: 1px dashed rgba(0, 180, 216, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 12px;
  color: #b0c4de;
  font-family: var(--font-mono, monospace);
  animation: fadeInNotice 0.3s ease;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.session-fork-notice .pulse-dot.cyan {
  background: #00b4d8;
  box-shadow: 0 0 6px #00b4d8;
}

/* ── 10. WORKSPACE SPLIT CONTAINER & DUAL-SESSION PANE ── */
.viewport-workspace-row {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: calc(100vh - 44px);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.viewport-chat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  transition: flex 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-task-pane {
  width: 440px;
  min-width: 360px;
  max-width: 580px;
  height: 100%;
  background: #070707;
  border-left: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 15;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.85);
  animation: slideInRightPane 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRightPane {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.split-task-header {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0a0a0a;
  border-bottom: 1px solid #141414;
}

.split-task-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.split-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b4d8;
  box-shadow: 0 0 8px #00b4d8;
  flex-shrink: 0;
}

.split-task-dot.completed {
  background: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
}

.split-task-dot.failed {
  background: #ff4d4d;
  box-shadow: 0 0 8px #ff4d4d;
}

.split-task-title {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.split-task-badge {
  font-size: 9.5px;
  font-family: var(--font-mono, monospace);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 180, 216, 0.15);
  color: #00b4d8;
  border: 1px solid rgba(0, 180, 216, 0.3);
  letter-spacing: 0.05em;
}

.split-task-badge.completed {
  background: rgba(0, 255, 170, 0.15);
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.3);
}

.split-task-badge.failed {
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.3);
}

.split-task-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-task-timer {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #00b4d8;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.25);
  box-shadow: 0 0 6px rgba(0, 180, 216, 0.15);
}

.split-task-tabs {
  display: flex;
  align-items: center;
  background: #080808;
  border-bottom: 1px solid #141414;
  padding: 0 8px;
  gap: 4px;
}

.split-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #777777;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.split-tab:hover {
  color: #cccccc;
}

.split-tab.active {
  color: #ffffff;
  border-bottom-color: #00b4d8;
}

.split-task-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a transparent;
}

.split-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.split-tab-pane.active {
  display: flex;
}

.split-section-label {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: #555555;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.split-status-card {
  background: #050505;
  border: 1px solid #161616;
  border-radius: 6px;
  padding: 10px 12px;
}

.split-status-title {
  font-size: 12px;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 4px;
  font-family: var(--font-mono, monospace);
}

.split-status-sub {
  font-size: 11px;
  color: #777777;
}

.split-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.split-step-card {
  background: #050505;
  border: 1px solid #151515;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  transition: border-color 0.2s ease;
}

.split-step-card:hover {
  border-color: #252525;
}

.split-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #888888;
  margin-bottom: 4px;
}

.split-step-tool {
  color: #00b4d8;
  font-weight: 600;
}

.split-step-time {
  font-size: 10px;
  color: #555555;
}

.split-step-body {
  color: #cccccc;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
  background: #020202;
  border: 1px solid #111111;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10.5px;
}

.split-thoughts-stream,
.split-output-stream {
  background: #030303;
  border: 1px solid #141414;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.5;
  color: #999999;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a transparent;
}

.split-output-stream {
  color: #dddddd;
}

.split-empty-hint {
  color: #444444;
  font-style: italic;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
}

.split-task-footer {
  padding: 10px 14px;
  background: #090909;
  border-top: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.split-footer-btn {
  background: #111111;
  border: 1px solid #222222;
  color: #cccccc;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.split-footer-btn:hover {
  background: #181818;
  border-color: #333333;
  color: #ffffff;
}

.split-footer-btn.btn-primary {
  background: rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.4);
  color: #00b4d8;
}

.split-footer-btn.btn-primary:hover {
  background: rgba(0, 180, 216, 0.25);
  border-color: #00b4d8;
}



