/* AIPit System Stylesheet : 1:1 Pixel-Accurate Implementation of Claude Design Canvas */

:root {
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.4);
  --yellow: #eab308;
  --orange: #f97316;
  --cyan: #38bdf8;
  --red: #ef4444;
}

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

body {
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease;
}

body.theme-dark {
  background-color: #0a0b0e;
  color: #f1f5f9;
}

body.theme-light {
  background-color: #ede8df;
  color: #1f2937;
}

body.theme-terminal {
  background-color: #090c10;
  color: #c9d1d9;
}

body.theme-mcp {
  background-color: #0b0f19;
  color: #f8fafc;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Dedicated Top Navigation Header (Unified & Zero Overlap) */
.app-top-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid #21262d;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

body.theme-light .app-top-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.canvas-logo-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  user-select: none;
}

.canvas-logo-tag img {
  display: block;
}

.logo-pit-accent {
  color: #22c55e;
}

.logo-app-suffix {
  color: #38bdf8;
  font-weight: 700;
}

body.theme-light .canvas-logo-tag {
  color: #0f172a;
}

.nav-system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8b949e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 3px 9px;
  border-radius: 14px;
}

body.theme-light .nav-system-status {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.canvas-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid #30363d;
  padding: 4px;
  border-radius: 8px;
}

body.theme-light .canvas-nav-pills {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.c-pill {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.theme-light .c-pill {
  color: #64748b;
}

.c-pill:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

body.theme-light .c-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.c-pill.active {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.theme-light .c-pill.active {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 700px) {
  .nav-system-status {
    display: none;
  }
  .app-top-nav {
    padding: 0 10px;
  }
  .c-pill {
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* Minimalist Canvas Header Top-Left (Matches Page 1 & 2) */
.canvas-header-topleft {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ch-line1 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.green-dot-bullet {
  color: var(--green);
  font-size: 11px;
  line-height: 1;
}

.ch-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}

.ch-line2 {
  font-size: 11.5px;
  color: #555e6d;
  padding-left: 18px;
}

.canvas-header-topleft.light-text .ch-title {
  color: #94a3b8;
}

.canvas-header-topleft.light-text .ch-line2 {
  color: #555e6d;
}

/* Board Views */
.board-view {
  display: none;
  flex: 1;
  width: 100%;
}

.board-view.active {
  display: flex;
  flex-direction: column;
}

/* =============================================================
   TRADING FLOOR CONCEPT — contextual overlay over the Office Map,
   opened by clicking the Trading team (not a top-level nav tab)
   ============================================================= */
.floor-overlay {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0A0C08;
  z-index: 600;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.floor-overlay.open {
  display: flex;
}

.floor-overlay-close {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 20;
  background: rgba(18, 20, 15, 0.85);
  border: 1px solid #262A1F;
  color: #C9D3C2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.floor-overlay-close:hover {
  border-color: #4ADE80;
  color: #4ADE80;
}

#board-floor .canvas-header-topleft .ch-title {
  color: #C9D3C2;
  font-family: 'IBM Plex Mono', monospace;
}

#board-floor .canvas-header-topleft .green-dot-bullet {
  color: #4ADE80;
}

#board-floor .canvas-header-topleft .ch-line2 {
  color: #565F4E;
  font-family: 'IBM Plex Mono', monospace;
}

.floor-label text {
  pointer-events: none;
}

.floor-stage-wrap {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.iso-floor-svg {
  width: 100%;
  height: auto;
  max-height: 85vh;
}

.interactive-desk {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.interactive-desk:hover {
  filter: brightness(1.15);
}

.interactive-desk:hover .badge-pill rect {
  stroke: #4ade80;
  stroke-width: 1.6;
}

/* Badge Pills on Floor (Smooth lighting without coordinate movement to prevent hover jitter) */
.badge-pill {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.badge-pill:hover {
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.45)) brightness(1.12);
}

.badge-pill:hover rect {
  stroke: #4ade80;
  stroke-width: 1.8;
}

/* Character Animations */
.typing-arm-1 {
  animation: typing-swing1 0.22s infinite alternate ease-in-out;
}

.typing-arm-2 {
  animation: typing-swing2 0.26s infinite alternate ease-in-out;
}

@keyframes typing-swing1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px) translateX(2px); }
}

@keyframes typing-swing2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px) translateX(-1px); }
}

/* Floating Sleeping z z z */
.zzz {
  animation: zzz-float 2.4s infinite ease-out;
}

.z1 { animation-delay: 0s; }
.z2 { animation-delay: 0.8s; }
.z3 { animation-delay: 1.6s; }

@keyframes zzz-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
  50% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(14px, -20px) scale(1.2); }
}

/* =============================================================
   BOARD 2: COMPANY : OFFICE MAP (Page 2 in PDF)
   ============================================================= */
#board-map {
  background-color: #0a0b0e;
  min-height: calc(100vh - 52px);
  position: relative;
  justify-content: center;
  align-items: center;
}

.map-stage-wrap {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.islands-constellation {
  position: relative;
  width: 1000px;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridges-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Core Headquarters Skyscraper Styling & Animations */
.core-building-group {
  pointer-events: auto;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.core-building-group:hover {
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.45));
}

.building-hud-tag {
  transition: filter 0.2s ease;
}

.core-building-group:hover .building-hud-tag {
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.6)) brightness(1.15);
}

/* Department 3D Isometric Buildings */
.department-building {
  pointer-events: auto;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.department-building:hover {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.8)) brightness(1.2);
}

.department-building.dept-trading:hover {
  filter: drop-shadow(0 0 24px rgba(34, 197, 94, 0.85)) brightness(1.2);
}

.department-building.dept-marketing:hover {
  filter: drop-shadow(0 0 24px rgba(236, 72, 153, 0.85)) brightness(1.2);
}

.department-building.dept-operations:hover {
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.85)) brightness(1.2);
}

.department-building.dept-support:hover {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.85)) brightness(1.2);
}

@keyframes building-grow-pulse {
  0% { transform: scale(0.96); filter: brightness(2) drop-shadow(0 0 35px #ffffff); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); filter: none; }
}

.building-just-upgraded {
  animation: building-grow-pulse 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes data-pulse-stream {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

.data-pulse-up {
  animation: data-pulse-stream 1.2s infinite linear;
}

.bridge-stream-nw, .bridge-stream-ne, .bridge-stream-sw, .bridge-stream-se {
  animation: data-pulse-stream 2s infinite linear;
}

@keyframes beacon-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.beacon-blink {
  animation: beacon-flash 1.2s infinite ease-in-out;
}

@keyframes beacon-ring-expand {
  0% { opacity: 0.9; stroke-width: 0.75; }
  50% { opacity: 0.4; }
  100% { opacity: 0; stroke-width: 3; }
}

.beacon-pulse-ring {
  animation: beacon-ring-expand 1.8s infinite ease-out;
}

@keyframes gem-pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.core-gem-pulse {
  animation: gem-pulse-anim 2s infinite ease-in-out;
}

@keyframes ring-dash-anim {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.ring-rotate {
  animation: ring-dash-anim 4s infinite linear;
}

/* Island Node Blocks (Positioned Beside Their 3D Buildings) */
.island-pod-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

.node-trading { top: 40px; left: 30px; }
.node-marketing { top: 40px; right: 30px; }
.node-operations { bottom: 40px; left: 30px; }
.node-support { bottom: 40px; right: 30px; }

/* 3D Isometric Pastel Prisms (Replaced by Full 3D Buildings) */
.iso-prism {
  display: none;
}

/* Clean White Floating Cards */
.clean-white-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  width: 220px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.clean-white-card.card-highlighted {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.5);
  border-color: #38bdf8;
}

.c-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.btn-add-mini {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.btn-add-mini:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: scale(1.1);
}

.c-head-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.c-dot.gray { color: #9ca3af; font-size: 9px; }

.c-office-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.c-agents-lead {
  margin-bottom: 12px;
}

.c-big-count {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.c-agents-lbl {
  font-size: 12px;
  color: #6b7280;
  margin-left: 4px;
}

.c-roster-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.r-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.r-name {
  font-weight: 700;
  color: #111827;
}

.r-act {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4b5563;
  font-size: 11px;
}

.r-dot { font-size: 8px; }
.r-dot.yellow { color: #f59e0b; }
.r-dot.green { color: var(--green); }
.r-dot.gray { color: #9ca3af; }
.r-dot.blue { color: #0284c7; }

.open-floor-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.open-floor-btn:hover {
  color: var(--green);
}

.c-cs-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.c-cs-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 14px;
}

.btn-black-pill {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-black-pill:hover {
  background: #1e293b;
}

/* =============================================================
   JARVIS CAPSULE (Bottom-Right Floating Box : Matches Page 1 & 2)
   ============================================================= */
.jarvis-capsule-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: #0c0e14;
  border: 1.5px solid #22c55e;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25), 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jarvis-capsule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 12px 30px rgba(0, 0, 0, 0.85);
}

.jc-icon-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.jc-circle-icon {
  color: var(--green);
  font-size: 13px;
  line-height: 1;
}

.jc-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.jc-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
}

.jc-headline {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #f8fafc;
}

.jc-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #8b949e;
}

/* =============================================================
   BOARD 3: DESK CONSOLE (Page 3 in PDF)
   ============================================================= */
#board-console {
  background-color: #090c10;
  min-height: calc(100vh - 52px);
}

.terminal-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  min-height: 48px;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
  font-size: 11px;
  position: sticky;
  top: 52px;
  z-index: 900;
  box-sizing: border-box;
}

@media (max-width: 1000px) {
  .terminal-bar-top {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.t-bread {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dim { color: #6e7681; }
.t-slash { color: #484f58; }
.t-bold { color: #f0f6fc; font-weight: 700; }

.t-tabs {
  display: flex;
  gap: 12px;
}

.t-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  cursor: pointer;
  padding: 2px 4px;
}

.t-tab-btn.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}

.t-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-green-dot {
  color: var(--green);
  font-size: 9px;
  animation: pulse 1.8s infinite;
}

.t-scanning {
  color: var(--green);
  font-weight: 800;
}

.t-metric {
  color: #8b949e;
  font-size: 10.5px;
}

/* 3-Column Terminal Layout */
.terminal-layout-3col {
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  gap: 1px;
  background: #21262d;
  flex: 1;
  min-height: calc(100vh - 100px);
}

.t-col {
  background: #090c10;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.t-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-box-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6e7681;
  text-transform: uppercase;
}

.t-box-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-clear-focus {
  font-size: 9.5px;
  color: #8b949e;
  text-decoration: underline;
  cursor: pointer;
}

.t-kv-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.t-lbl { color: #8b949e; }
.t-val { color: #f0f6fc; font-weight: 700; }

.t-meter-track {
  width: 100%;
  height: 4px;
  background: #21262d;
  border-radius: 2px;
  overflow: hidden;
}

.t-meter-fill {
  height: 100%;
  background: var(--green);
}

.t-meter-fill.bg-green { background: var(--green); }
.t-meter-fill.bg-orange { background: var(--orange); }
.t-meter-fill.bg-yellow { background: var(--yellow); }

.t-btn-pair {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.t-act-btn {
  flex: 1;
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-act-btn.active {
  background: #21262d;
  border-color: #8b949e;
  color: #f0f6fc;
}

.t-chk-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8b949e;
}

.t-box-chk {
  color: var(--green);
  font-size: 11px;
}

.t-hist-entry {
  border-left: 2px solid #30363d;
  padding-left: 8px;
  margin-bottom: 8px;
}

.t-hist-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.t-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.t-badge.green { background: rgba(34, 197, 94, 0.2); color: var(--green); }
.t-badge.yellow { background: rgba(234, 179, 8, 0.2); color: var(--yellow); }
.t-badge.gray { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.t-time {
  font-size: 9.5px;
  color: #6e7681;
}

.t-hist-p {
  font-size: 10.5px;
  color: #c9d1d9;
  line-height: 1.35;
}

.t-hist-footer {
  font-size: 9.5px;
  color: #6e7681;
  padding-top: 8px;
  border-top: 1px solid #21262d;
  margin-top: auto;
}

/* Center Article Reader */
.t-article-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.t-article-meta {
  font-size: 11px;
  color: #8b949e;
}

.t-article-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: #e6edf3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.t-hl-green { color: #4ade80; }
.t-hl-yellow { color: #fde047; }
.t-hl-cyan { color: #38bdf8; }

.t-desk-note {
  background: #161b22;
  border: 1px solid #30363d;
  border-left: 3px solid #eab308;
  border-radius: 6px;
  padding: 14px;
}

.t-dn-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #eab308;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.t-dn-body {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #c9d1d9;
  line-height: 1.5;
}

.t-finding-inject {
  background: #0d1117;
  border: 1px dashed #30363d;
  border-radius: 6px;
  padding: 12px;
}

.t-finding-inject.hidden { display: none; }

.t-input {
  background: #161b22;
  border: 1px solid #30363d;
  color: #f0f6fc;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px;
  border-radius: 4px;
}

/* Right Column Signals */
.t-sig-item {
  margin-bottom: 12px;
}

.t-sig-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 3px;
  color: #c9d1d9;
}

.t-score { font-weight: 800; }
.t-score.green { color: var(--green); }
.t-score.orange { color: var(--orange); }
.t-score.yellow { color: var(--yellow); }

.t-sig-sub { font-size: 9.5px; color: #6e7681; }

.t-cr-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #f0f6fc;
  margin-bottom: 6px;
  line-height: 1.4;
}

.t-cr-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
}

.t-dt-table {
  display: flex;
  flex-direction: column;
  font-size: 10.5px;
}

.t-dt-head {
  display: grid;
  grid-template-columns: 50px 1fr 60px;
  color: #6e7681;
  font-weight: 800;
  padding-bottom: 4px;
  border-bottom: 1px solid #21262d;
}

.t-dt-row {
  display: grid;
  grid-template-columns: 50px 1fr 60px;
  padding: 4px 0;
  border-bottom: 1px solid #161b22;
  color: #c9d1d9;
}

.t-dt-val.green { color: var(--green); }
.t-dt-val.orange { color: var(--orange); }
.t-dt-val.yellow { color: var(--yellow); }

/* Ticker Selector in Terminal Breadcrumb */
.t-ticker-pills {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
}

.t-ticker-btn {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.t-ticker-btn:hover {
  background: #21262d;
  color: #f0f6fc;
}

.t-ticker-btn.active {
  background: #1f2937;
  border-color: var(--green);
  color: #4ade80;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}

/* Tab Panels */
.ttab-panel.hidden {
  display: none !important;
}

.ttab-panel.active {
  display: block;
}

#ttab-panel-overview.active {
  display: grid;
}

/* Micro Buttons */
.t-mini-btn, .t-micro-btn, .t-clear-focus-btn {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.t-mini-btn:hover, .t-micro-btn:hover, .t-clear-focus-btn:hover {
  background: #21262d;
  color: #f0f6fc;
}

.t-micro-btn.active {
  background: #143022;
  border-color: var(--green);
  color: var(--green);
}

.t-hist-entry {
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.t-hist-entry:hover {
  background: #161b22;
}

.t-hist-entry.active-reading {
  background: #161b22;
  border-left: 2px solid var(--green);
}

.t-dt-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.t-dt-row:hover {
  background: #161b22;
}

.t-sig-item {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.t-sig-item:hover {
  background: #161b22;
}

.t-sig-item.focused {
  background: #161b22;
  border-left: 2px solid var(--green);
}

/* NEWS FEED TAB (Agent 1) */
.news-tab-wrap {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
}

.news-filters {
  display: flex;
  gap: 8px;
}

.n-filter-btn {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.n-filter-btn.active {
  background: #1f2937;
  border-color: var(--green);
  color: var(--green);
}

.news-meta-stat {
  font-size: 11px;
  color: #8b949e;
}

.news-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card-item {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.news-card-item:hover {
  border-color: #38bdf8;
}

.nci-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.nci-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.nci-badge.bullish { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.nci-badge.bearish { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.nci-badge.neutral { background: rgba(234, 179, 8, 0.15); color: #facc15; }

.nci-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f6fc;
}

.nci-summary {
  font-size: 12.5px;
  color: #8b949e;
  line-height: 1.5;
}

.nci-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6e7681;
}

/* SCRAPED DATA & TAPE TAB (Agents 2 & 3) */
.tape-tab-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1px;
  background: #21262d;
  min-height: calc(100vh - 54px);
}

.tape-col-left, .tape-col-right {
  background: #090c10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scrape-metric-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smc-header {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #c9d1d9;
}

.smc-sub {
  font-size: 10px;
  color: #6e7681;
}

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

.t-tape-sub {
  font-size: 11px;
  color: #8b949e;
}

.tape-metrics-pills {
  display: flex;
  gap: 6px;
}

.tape-pill {
  background: #161b22;
  border: 1px solid #30363d;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #c9d1d9;
}

.tape-pill.green { border-color: var(--green); color: var(--green); }
.tape-pill.cyan { border-color: #38bdf8; color: #38bdf8; }

.tape-stream-box {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  max-height: 500px;
  overflow-y: auto;
}

.tape-tick-row {
  display: grid;
  grid-template-columns: 85px 50px 75px 55px 1fr;
  padding: 4px 6px;
  border-radius: 3px;
  align-items: center;
}

.tape-tick-row:hover {
  background: #161b22;
}

.tape-tick-row.uptick { color: #4ade80; }
.tape-tick-row.downtick { color: #f87171; }

/* DAY TRADE PREDICTOR TAB (Agent 4) */
.trade-ideas-tab-wrap {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.trade-card-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.trade-setup-card, .trade-log-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tsc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tsc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.tsc-badge.green {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid var(--green);
  color: #4ade80;
}

.tsc-prob {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
}

.tsc-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.tsc-reason {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.trade-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #090c10;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 14px;
}

.tl-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
}

.tl-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.tl-val.green { color: #4ade80; }
.tl-val.red { color: #f87171; }
.tl-val.cyan { color: #38bdf8; }

.tl-sub {
  font-size: 10px;
  color: #64748b;
}

.trade-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8b949e;
  padding: 8px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}

.trade-action-bar {
  display: flex;
  gap: 10px;
}

.trade-pnl-summary {
  display: flex;
  gap: 16px;
  background: #090c10;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #21262d;
}

.tpnl-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #8b949e;
}

.tpnl-item strong {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.tpnl-item strong.green { color: #4ade80; }
.tpnl-item strong.cyan { color: #38bdf8; }

.trade-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  max-height: 280px;
  overflow-y: auto;
}

.trade-order-row {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tor-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tor-right {
  font-family: var(--font-mono);
  font-weight: 800;
}

/* =============================================================
   BOARD 4: MCP SERVER VIEW
   ============================================================= */
.mcp-terminal-screen {
  padding: 2rem 2rem 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.mcp-top-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 12px;
}

.mcp-dim { color: #6e7681; }

.mcp-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mcp-col-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
}

.mcp-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 8px;
  background: #0d1117;
  border-radius: 6px;
}

.mcp-code-block {
  background: #0d1117;
  color: #38bdf8;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 250px;
  overflow-y: auto;
}

/* =============================================================
   INTERACTIVE JARVIS MODAL (Expanded from Capsule)
   ============================================================= */
.jarvis-modal-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 390px;
  height: 520px;
  background: #0d1117;
  border: 1.5px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

.jarvis-modal-panel.hidden { display: none; }

.jm-header {
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f0f6fc;
}

.jm-close-btn {
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 16px;
  cursor: pointer;
}

.jm-models {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #090c10;
  border-bottom: 1px solid #21262d;
  font-size: 10.5px;
}

.jm-model-lbl { color: #6e7681; font-weight: 800; }

.jm-model-btn {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.jm-model-btn.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.jm-chat-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jm-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
}

.jm-bubble.assistant {
  background: #161b22;
  border: 1px solid #30363d;
  color: #e6edf3;
  margin-right: 20px;
}

.jm-bubble.user {
  background: #238636;
  color: white;
  margin-left: 20px;
}

.jm-author {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}

.jm-bubble.user .jm-author {
  color: #bbf7d0;
}

.jm-form {
  display: flex;
  gap: 6px;
  padding: 12px;
  background: #161b22;
  border-top: 1px solid #30363d;
}

.jm-form input {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #f0f6fc;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px;
  border-radius: 6px;
  outline: none;
}

.jm-form input:focus {
  border-color: var(--green);
}

/* Interactive HUD Toast */
.hud-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  background: #0d1322;
  border: 1px solid #38bdf8;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.hud-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
