/* ── Left panel ── */
.v10-panel-left {
  height: 100%;
  flex-shrink: 0;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v10-tree-header {
  height: var(--tab-h);
  min-height: var(--tab-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.v10-tree-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.v10-tree-dashboard {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.1s;
  margin-bottom: 4px;
}
.v10-tree-dashboard:hover { background: var(--bg-hover); color: var(--text-primary); }
.v10-tree-dashboard.active { background: var(--bg-active); color: var(--text-primary); }
.v10-tree-empty-state {
  padding: 24px 16px;
  text-align: center;
}
.v10-tree-empty-state p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Tree sections (project list) */
.v10-tree-section { margin-bottom: 2px; }
.v10-tree-section-header {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}
.v10-tree-section-header:hover { background: var(--bg-hover); }
.v10-tree-section-header.active { background: var(--bg-active); }
.v10-tree-chevron {
  color: var(--text-tertiary);
  transition: transform 0.15s;
  display: flex;
  align-items: center;
}
.v10-tree-chevron.open { transform: rotate(90deg); }
.v10-tree-section-label {
  /* CG names — the single biggest sidebar readability win. 12 → 13. */
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hover-revealed "hide" affordance on each project row. Keeps the tree
   quiet by default and lets the user dismiss any leftover project from
   their sidebar without a daemon-side delete. */
.v10-tree-hide-btn {
  flex-shrink: 0;
  margin-left: 6px;
  width: 18px; height: 18px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none;
  color: var(--text-ghost);
  font-size: 14px; line-height: 1;
  cursor: pointer; border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.v10-tree-section-header:hover .v10-tree-hide-btn { opacity: 1; }
.v10-tree-hide-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red, #ef4444);
}

/* "My Projects" / "Participating Projects" group dividers. Token
   moved from --text-ghost → --text-tertiary (PR8) — ghost was never
   meant for navigational labels; the contrast was below the 3:1 floor
   even after PR8's ghost bump. */
.v10-tree-group-label {
  padding: 10px 14px 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

/* Move-to-other-group button (⤑), same reveal-on-hover shape as hide */
.v10-tree-move-btn {
  flex-shrink: 0;
  margin-left: 4px;
  width: 18px; height: 18px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none;
  color: var(--text-ghost);
  font-size: 12px; line-height: 1;
  cursor: pointer; border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.v10-tree-section-header:hover .v10-tree-move-btn { opacity: 1; }
.v10-tree-move-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue, #3b82f6);
}

.v10-tree-show-hidden {
  display: block;
  width: calc(100% - 16px);
  margin: 10px 8px 4px;
  padding: 6px 10px;
  background: none;
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 12px; font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.v10-tree-show-hidden:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.v10-tree-items { padding-left: 0; }
.v10-tree-item {
  display: flex;
  align-items: center;
  padding: 3px 12px 3px 38px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12px;
  color: var(--text-secondary);
}
.v10-tree-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.v10-tree-item.active { background: var(--bg-active); color: var(--text-primary); }
.v10-tree-layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.v10-tree-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
/* Tree mode tabs */
.v10-tree-mode-btn {
  padding: 0 10px;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: all 0.15s;
}
.v10-tree-mode-btn:hover { color: var(--text-secondary); }
.v10-tree-mode-btn.active { color: var(--text-primary); }

/* Project dot */
.v10-tree-project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  flex-shrink: 0;
}
.v10-tree-integration-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-tertiary);
  flex-shrink: 0;
}

/* Layer headers inside project tree. Same token + size fix as
   .v10-tree-group-label — was unreadable on --text-ghost. */
.v10-tree-layer-header {
  padding: 3px 12px 3px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 4px;
  cursor: default;
}

/* New project button */
.v10-new-project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 16px);
  margin: 6px 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.v10-new-project-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* Journey empty card */
.v10-journey-empty-card {
  margin: 16px 10px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-surface);
  text-align: center;
}
.v10-jec-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.v10-jec-hint { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; margin-bottom: 10px; }

/* Tree divider */
.v10-tree-divider { height: 1px; background: var(--border-subtle); margin: 8px 12px; }

/* Tree items are toggled via React state — no CSS display:none needed */

/* ── Center ── */
.v10-center-empty { flex: 1; min-width: 0; height: 100%; background: var(--bg-root); }

/* ── Center stack (center + bottom) ── */
.v10-center-stack {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v10-center-stack-main { flex: 1; min-height: 0; overflow: hidden; }

/* ── Center panel ── */
.v10-panel-center {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-root);
}
.v10-center-tabs {
  height: var(--tab-h);
  min-height: var(--tab-h);
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  overflow-x: auto;
  gap: 0;
}
.v10-center-tab {
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.v10-center-tab:hover { color: var(--text-secondary); background: var(--bg-hover); }
.v10-center-tab.active { color: var(--text-primary); border-bottom-color: var(--text-secondary); }
.v10-center-tab-label { pointer-events: none; }
.v10-center-tab-close {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 2px;
  border-radius: 2px;
}
.v10-center-tab:hover .v10-center-tab-close { opacity: 0.6; }
.v10-center-tab-close:hover { opacity: 1 !important; background: var(--bg-active); }
.v10-center-content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 24px 28px;
}
.v10-view-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}
