html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0e0e11;
  color: #eaeaea;
  font-family: system-ui, sans-serif;
}

#dashboard-root {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.panel {
  overflow: hidden;
  position: relative;
}

#panel-chat {
  background: #111318;
}

#panel-center {
  background: #0d0f14;
}

#panel-right {
  background: #111318;
}

.placeholder {
  padding: 16px;
  opacity: 0.4;
  font-size: 14px;
}

#panel-right {
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #222;
  background: #0f1117;
}

#project-list {
  flex: 1;
  overflow-y: auto;
}

.project-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #1c1c1c;
}

.project-item:hover {
  background: #1a1d25;
}

.project-item.active {
  background: #222633;
  font-weight: 600;
}

.empty {
  padding: 14px;
  opacity: 0.5;
  font-size: 13px;
}

.project-title {
  font-size: 13px;
}

.project-status {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-status.draft {
  color: #aaa;
}

.project-status.approved {
  color: #4caf50;
}

.project-status.executed {
  color: #ff9800;
}

/* === BASECAMP IMPONENTE: PANEL CENTRAL === */
.full-plan-document {
  max-width: 800px;
  margin: 0 auto;
  /* background: #fff; REMOVED FOR DARK THEME */
  padding: 10px 40px 40px 40px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); REMOVED */
  border-radius: 4px;
  /* font-family: 'Georgia', serif; REMOVED */
}

.task-card-elite {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  transition: background 0.3s;
}

.task-card-elite:hover {
  background: #fafafa;
}

.task-actions {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.action-btn-sm {
  font-size: 0.75rem;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
}

.action-btn-sm:hover {
  color: #d4af37;
}

.imposing-view {
  background: #f4f4f4;
}

/* --- Architectural Mold (Central Panel) --- */

/* Core Shell */
.arch-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #09090b;
  /* Zinc-950 Deep Background */
  font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
  /* Tech/Code feel */
  color: #e4e4e7;
  /* Zinc-200 */
}

/* Header */
.arch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid #27272a;
  /* Zinc-800 */
  background: #18181b;
  /* Zinc-900 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.arch-icon {
  font-size: 18px;
}

.arch-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fafafa;
  text-transform: uppercase;
}

/* Probes / Metadata */
.arch-probes {
  display: flex;
  gap: 20px;
}

.probe-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a1a1aa;
}

.probe-label {
  font-weight: 600;
  color: #71717a;
}

.probe-value {
  color: #d4d4d8;
  padding: 2px 6px;
  background: #27272a;
  border-radius: 4px;
}

.probe-value.active {
  color: #22c55e;
  border: 1px solid #052e16;
  background: #052e16;
}

/* Body / GridContainer */
.arch-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

/* Empty State / Grid */
.arch-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #52525b;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Task Cards */
.arch-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-left: 3px solid #3f3f46;
  /* Default accent */
  border-radius: 4px;
  /* Slightly sharper */
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.arch-card:hover {
  border-color: #52525b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.arch-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
}

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

.arch-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52525b;
}

/* Dynamic States */
.arch-card.running {
  border-left-color: #eab308;
}

.arch-card.running .arch-status-dot {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
  animation: pulse 1.5s infinite;
}

.arch-card.running .arch-status-text {
  color: #eab308;
}

.arch-card.done {
  border-left-color: #22c55e;
}

.arch-card.done .arch-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.arch-card.done .arch-status-text {
  color: #22c55e;
}

.arch-card.failed {
  border-left-color: #ef4444;
}

.arch-card.failed .arch-status-dot {
  background: #ef4444;
}

.arch-card.failed .arch-status-text {
  color: #ef4444;
}

.arch-status-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #71717a;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* HOME MODE — MUST DOMINATE CENTER PANEL */
#center-panel.home-mode,
#panel-center.home-mode {
  position: relative;
  z-index: 20;
  /* mayor que dashboard/execution */
  background: var(--bg-main, #0d0f14);
}

/* Cualquier cosa del Execution queda inactiva visualmente */
#center-panel.home-mode .execution-root,
#center-panel.home-mode .dashboard-root,
#panel-center.home-mode .execution-root,
#panel-center.home-mode .dashboard-root,
#center-panel.home-mode .arch-shell,
#panel-center.home-mode .arch-shell {
  display: none !important;
}