:root {
  --bg: #141720;
  --panel: rgba(20, 24, 35, 0.88);
  --panel-solid: #161A26;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #F1F5F9;
  --muted: #94A3B8;
  --dim: #64748B;
  --green: #34D399;
  --amber: #F59E0B;
  --cyan: #6CE6FF;
  --mst-primary: #2B534D;
  --mst-accent: #9E261B;
  --mst-navy: #243442;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#mst-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
}

#mst-canvas:active {
  cursor: grabbing;
}

/* ==================== TOP COMMAND BAR ==================== */
.topbar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  height: 50px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 22, 32, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  z-index: 40;
}

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

.brand-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.brand-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.workspace-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #CBD5E1;
  background: rgba(43, 83, 77, 0.28);
  border: 1px solid rgba(77, 208, 184, 0.25);
  border-radius: 999px;
}

.ws-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4DD0B8;
  box-shadow: 0 0 8px #4DD0B8;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tab-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.35);
  color: #DDD6FE;
}

.quick-ask {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  width: 200px;
}

.quick-ask input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 12px;
  width: 100%;
}

.quick-ask input::placeholder {
  color: var(--dim);
}

.quick-ask kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #A7F3D0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.status-pill:hover {
  background: rgba(52, 211, 153, 0.2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s infinite;
}

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

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #CBD5E1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #141720;
}

/* ==================== 3D-PROJECTED FLOATING LABELS ==================== */
.floating-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.room-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 7px;
  background: rgba(16, 20, 30, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.room-tag:hover, .room-tag.active {
  border-color: var(--tag-color, #6CE6FF);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.52), 0 0 0 1px var(--tag-color, #6CE6FF);
}

.room-tag-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 12px;
  flex-shrink: 0;
}

.room-tag-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.room-tag-name {
  font-size: 12px;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.2;
}

.room-tag-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-tag-sub .gdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.avatar-stack {
  display: flex;
  margin-left: 4px;
}

.mini-av {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #141720;
  margin-left: -5px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #FFFFFF;
}

.mini-av:first-child {
  margin-left: 0;
}

.brain-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  text-align: center;
  padding: 6px 13px;
  background: rgba(14, 21, 32, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(108, 230, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(108, 230, 255, 0.18);
  cursor: pointer;
}

.brain-tag-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #CFFAFE;
}

.brain-tag-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #7DD3FC;
  margin-top: 2px;
}

.agent-pill {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 500;
  color: #F1F5F9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.agent-pill.sub {
  border-color: var(--sub-color, #6CE6FF);
  background: rgba(18, 24, 42, 0.94);
  color: #E0F2FE;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

/* ==================== LEFT SLIDE-OUT DRAWER ==================== */
.left-drawer {
  position: fixed;
  top: 74px;
  left: 16px;
  bottom: 58px;
  width: 390px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
  z-index: 35;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-420px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.left-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #FFFFFF;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
}

.drawer-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.drawer-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.drawer-subtabs {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.subtab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 2px;
  cursor: pointer;
}

.subtab.active {
  color: #FFFFFF;
  border-bottom-color: var(--accent-col, #6CE6FF);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

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

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px 8px;
}

.kpi-label {
  font-size: 10.5px;
  color: var(--muted);
}

.kpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  margin: 3px 0 4px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.sec-badge {
  color: var(--green);
  text-transform: none;
  letter-spacing: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tool-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.tool-name {
  font-size: 12px;
  font-weight: 600;
}

.tool-sub {
  font-size: 10px;
  color: var(--green);
  margin-top: 1px;
}

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

.skill-row {
  display: grid;
  grid-template-columns: 1fr 94px 36px;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
}

.skill-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10B981, #34D399);
  transition: width 0.5s ease;
}

.skill-pct {
  text-align: right;
  color: var(--muted);
  font-size: 10.5px;
}

.agent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agent-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.agent-name {
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lead-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.22);
  color: #FDE047;
  text-transform: uppercase;
}

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

.state-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.state-pill.working {
  background: rgba(52, 211, 153, 0.16);
  color: #6EE7B7;
}

.state-pill.idle {
  background: rgba(148, 163, 184, 0.14);
  color: #94A3B8;
}

/* ==================== COMMAND / PARALLEL SUB-AGENT DISPATCH ==================== */
.dispatch-box {
  background: rgba(108, 230, 255, 0.05);
  border: 1px solid rgba(108, 230, 255, 0.22);
  border-radius: 12px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quick-cmd-btn {
  text-align: left;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #E2E8F0;
  font-size: 11.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-cmd-btn:hover {
  background: rgba(108, 230, 255, 0.12);
  border-color: rgba(108, 230, 255, 0.45);
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-msg {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  background: var(--card);
  border: 1px solid var(--border);
}

.chat-msg.user {
  background: rgba(43, 83, 77, 0.38);
  border-color: rgba(77, 208, 184, 0.35);
}

.chat-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sub-run-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(108, 230, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.sub-run-top {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.sub-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sub-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.drawer-footer-input {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 7px;
  background: rgba(14, 17, 25, 0.7);
}

.drawer-footer-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  color: #FFFFFF;
  font-size: 12.5px;
  outline: none;
}

.drawer-footer-input input:focus {
  border-color: var(--cyan);
}

.send-btn {
  padding: 0 13px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(135deg, #2B534D, #3D7A71);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.send-btn:hover {
  filter: brightness(1.15);
}

/* ==================== TASK BOARD ==================== */
.filter-pills {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.fpill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

.fpill.active {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.task-item:hover {
  background: var(--card-hover);
}

.task-item.waiting {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.05);
}

.task-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.team-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 5px;
  color: #FFFFFF;
}

.btn-approve {
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: #F59E0B;
  color: #1A1205;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-approve:hover {
  filter: brightness(1.1);
}

.btn-review {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-review:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ring-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.ring-wrap span {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
}

/* ==================== BRAIN & CALENDAR CARDS ==================== */
.note-card {
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.note-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.note-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(108, 230, 255, 0.14);
  color: #A5F3FC;
}

.note-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.note-body {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.48;
}

.cal-row {
  display: flex;
  gap: 11px;
  padding: 10px 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.cal-row:hover {
  background: var(--card-hover);
}

.cal-day {
  width: 66px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #CBD5E1;
}

.cal-time {
  color: var(--cyan);
  font-size: 10.5px;
  margin-top: 2px;
}

/* ==================== TOP-RIGHT LIVE TOAST STACK ==================== */
.toast-stack {
  position: fixed;
  top: 74px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 288px;
  z-index: 32;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(18, 22, 32, 0.90);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: pointer;
  animation: toastIn 0.26s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.toast-title {
  font-size: 12px;
  font-weight: 600;
}

.toast-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* ==================== BOTTOM-LEFT RUNS ON STRIP ==================== */
.runs-strip {
  position: fixed;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(18, 22, 32, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 30;
}

.runs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-right: 2px;
}

.runs-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
}

.runs-chip.chip-mst {
  background: rgba(43, 83, 77, 0.45);
  color: #99F6E4;
  border: 1px solid rgba(77, 208, 184, 0.35);
}

/* ==================== BOTTOM-RIGHT MINI-MAP ==================== */
.minimap-card {
  position: fixed;
  bottom: 14px;
  right: 16px;
  width: 158px;
  padding: 8px;
  background: rgba(18, 22, 32, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.minimap-head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.minimap-grid {
  position: relative;
  height: 76px;
  border-radius: 7px;
  background: #0E1118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mm-dot {
  position: absolute;
  width: 14px;
  height: 10px;
  border-radius: 3px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.14s ease;
}

.mm-dot:hover, .mm-dot.active {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 8px currentColor;
}

.mm-brain {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7CEBFF;
  box-shadow: 0 0 10px #7CEBFF;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.minimap-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.mm-btn {
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  font-size: 13px;
  cursor: pointer;
}

.mm-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .quick-ask, .workspace-pill, .runs-strip { display: none; }
  .left-drawer { width: calc(100vw - 24px); left: 12px; }
}
