/* ═══════════════════════════════════════════════════
   AGENTS SPACE · canvas n8n-style
   ═══════════════════════════════════════════════════ */

.space-kpis { margin-bottom: 18px; }

/* ─── Recent Launches strip ─── */
.space-recent {
  background: linear-gradient(180deg, rgba(234,143,215,0.04), rgba(234,143,215,0.01));
  border: 1px solid rgba(234,143,215,0.18);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.space-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(234,143,215,0.15);
}
.recent-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #ea8fd7;
}
.recent-meta {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.space-recent-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1399px) { .space-recent-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .space-recent-list { grid-template-columns: 1fr; } }

.recent-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  align-items: center;
}
.recent-card:hover {
  border-color: #ea8fd7;
  background: rgba(234,143,215,0.06);
  transform: translateY(-1px);
}
.recent-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.recent-done .recent-status   { background: #22c55e; color: #000; }
.recent-error .recent-status  { background: #ef4444; color: #fff; }
.recent-running .recent-status{ background: #ea8fd7; color: #000; animation: prg-spin 1.4s linear infinite; }
.recent-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recent-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-domain {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.recent-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.recent-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea8fd7, #f4abe0);
  transition: width 0.5s ease;
}
.recent-pct {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.recent-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  transition: all 0.2s ease;
}
.recent-card:hover .recent-arrow { color: #ea8fd7; transform: translateX(3px); }

.space-canvas-wrap {
  position: relative;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.space-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 14px;
  flex-wrap: wrap;
}
.space-toolbar-l, .space-toolbar-r {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pill {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.pill-gold { color: #fbbf24; border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.06); }
.pill-cyan { color: #ea8fd7; border-color: rgba(234,143,215,0.4); background: rgba(234,143,215,0.06); }
.pill-blue { color: #60a5fa; border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.06); }
.pill-green { color: #22c55e; border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }
.pill-grey { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.18); border-style: dashed; background: transparent; }

.btn-mini {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-mini:hover {
  border-color: #ea8fd7;
  color: #ea8fd7;
  background: rgba(234,143,215,0.06);
}

/* Stage */
.space-stage {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 600px;
  background:
    radial-gradient(circle at 25% 30%, rgba(234,143,215,0.04), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(96,165,250,0.04), transparent 60%),
    #050505;
  cursor: grab;
  overflow: hidden;
}
.space-stage.is-panning { cursor: grabbing; }

.space-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Edges ─── */
.edge {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  transition: opacity 0.25s ease;
}
.edge-orchestration { stroke-dasharray: 0; }
.edge-data-flow { stroke-dasharray: 4 6; }
.edge-planned { opacity: 0.35; stroke-dasharray: 2 4; }

.edge-particle { filter: drop-shadow(0 0 6px #ea8fd7); }

/* ─── Nodes ─── */
.node-g { cursor: pointer; }
.node-g.is-dragging { cursor: grabbing; opacity: 0.85; }

.space-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0e0e0e, #060606);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.space-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  transition: background 0.25s ease;
}

.node-g:hover .space-card {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

/* ─── Director cards ─── */
.space-card-director {
  border-color: rgba(251,191,36,0.32);
  background: linear-gradient(180deg, rgba(251,191,36,0.06), rgba(251,191,36,0.01));
}
.space-card-director::before { background: #fbbf24; }
.space-card-director .sc-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

/* ─── Engine cards ─── */
.space-card-engine {
  border-color: rgba(234,143,215,0.28);
  background: linear-gradient(180deg, rgba(234,143,215,0.05), rgba(234,143,215,0.01));
}
.space-card-engine::before { background: #ea8fd7; }
.space-card-engine .sc-dot {
  background: #ea8fd7;
  box-shadow: 0 0 8px #ea8fd7;
}

.space-card-engine.is-running {
  border-color: #ea8fd7;
  box-shadow: 0 0 0 2px rgba(234,143,215,0.18), 0 12px 28px rgba(234,143,215,0.15);
  animation: card-pulse 2s ease-in-out infinite;
}

@keyframes card-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(234,143,215,0.18), 0 12px 28px rgba(234,143,215,0.15); }
  50% { box-shadow: 0 0 0 3px rgba(234,143,215,0.32), 0 12px 32px rgba(234,143,215,0.28); }
}

.space-card.is-error {
  border-color: rgba(239,68,68,0.5);
}
.space-card.is-error::before { background: #ef4444; }

/* ─── Planned (no lib aún) ─── */
.space-card.is-planned {
  border-style: dashed;
  opacity: 0.78;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005));
}
.space-card.is-planned::before {
  background: rgba(255,255,255,0.18);
}
.space-card.is-planned .sc-dot {
  background: rgba(255,255,255,0.35) !important;
  box-shadow: none !important;
  animation: none !important;
}
.node-g.is-planned:hover .space-card {
  opacity: 1;
}

/* ─── Real / Plan badges ─── */
.sc-badge {
  margin-left: auto;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
  flex-shrink: 0;
}
.sc-badge-real {
  background: rgba(34,197,94,0.18);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.5);
}
.sc-badge-plan {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px dashed rgba(255,255,255,0.25);
}
.sc-lib {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9.5px;
  color: rgba(34,197,94,0.7);
  letter-spacing: 0;
  margin-left: 6px;
}

/* ─── Workspace cards ─── */
.space-card-workspace {
  border-color: rgba(96,165,250,0.25);
  background: linear-gradient(180deg, rgba(96,165,250,0.04), rgba(96,165,250,0.01));
  padding: 12px 14px;
}
.space-card-workspace::before { background: #60a5fa; }

/* ─── Card internals ─── */
.sc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
}
.sc-head-ws { font-size: 13px; }
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.sc-name { flex: 1; line-height: 1.2; }
.sc-icon {
  color: #60a5fa;
  font-size: 12px;
}

.sc-model {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}

.sc-meta-ws {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(96,165,250,0.7);
  text-transform: uppercase;
}

.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.sc-pill {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.sc-pill-active {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.35);
}
.sc-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
}
.sc-tag {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.sc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.sc-stat-lbl {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.sc-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.sc-stat-r .sc-stat-val { color: #ea8fd7; font-size: 11px; }
.sc-mono { font-family: 'Noto Sans Mono', monospace; font-weight: 600; }

/* ─── Drawer ─── */
.space-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.7);
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  color: rgba(255,255,255,0.92);
  font-family: 'Inter', sans-serif;
}
.space-drawer.is-open { right: 0; }

.drawer-loading,
.drawer-error {
  padding: 40px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-align: center;
}

.drw-head {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
}
.drw-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #ea8fd7;
  margin-bottom: 6px;
}
.drw-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #fff;
}
.drw-model {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.drw-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drw-close:hover {
  border-color: #ea8fd7;
  color: #ea8fd7;
}

.drw-body { padding: 22px 26px 60px; }
.drw-desc {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.drw-section { margin-bottom: 22px; }
.drw-section-title {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.drw-mono {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.drw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.drw-tag {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 2px;
  color: rgba(96,165,250,0.95);
  text-transform: uppercase;
}
.drw-tag-skill {
  background: rgba(234,143,215,0.06);
  border-color: rgba(234,143,215,0.3);
  color: rgba(234,143,215,0.95);
}
.drw-empty {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

.drw-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.drw-k {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.drw-l {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 2px;
}

.drw-runs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drw-run {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 3px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10.5px;
  align-items: center;
}
.drw-run-time { color: rgba(255,255,255,0.55); }
.drw-run-status {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 9px;
  font-weight: 700;
}
.drw-run-success .drw-run-status { color: #22c55e; }
.drw-run-error .drw-run-status { color: #ef4444; }
.drw-run-running .drw-run-status { color: #ea8fd7; }
.drw-run-tokens { color: rgba(255,255,255,0.65); }
.drw-run-cost { color: #fbbf24; }

.drw-actions {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  gap: 10px;
}
.btn-pink {
  background: #ea8fd7;
  color: #000;
  border: 1px solid #ea8fd7;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-pink:hover {
  background: #f4abe0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234,143,215,0.3);
}

@media (max-width: 1024px) {
  .space-stage { height: 65vh; min-height: 480px; }
  .space-drawer { width: 360px; right: -380px; }
}

/* ─── New Client Launch Modal ─── */
.btn-mini-pink {
  background: #ea8fd7;
  color: #000 !important;
  border-color: #ea8fd7 !important;
  font-weight: 700;
}
.btn-mini-pink:hover {
  background: #f4abe0 !important;
  color: #000 !important;
}

.launch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lm-overlay-in 0.2s ease;
}
@keyframes lm-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.launch-modal {
  background: linear-gradient(180deg, #0d0d0d, #050505);
  border: 1px solid rgba(234, 143, 215, 0.25);
  border-radius: 8px;
  padding: 0;
  width: 540px;
  max-width: 92vw;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(234, 143, 215, 0.06);
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.92);
  animation: lm-modal-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lm-modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lm-head {
  position: relative;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lm-eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #ea8fd7;
  margin-bottom: 8px;
}
.lm-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #fff;
}
.lm-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.lm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 22px;
  cursor: pointer;
}
.lm-close:hover {
  border-color: #ea8fd7;
  color: #ea8fd7;
}

.lm-form {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lm-field { display: flex; flex-direction: column; gap: 6px; }
.lm-field-row { display: flex; gap: 12px; }
.lm-field-half { flex: 1; }
.lm-lbl {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.lm-form input[type="text"],
.lm-form select {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 10px 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.lm-form input:focus, .lm-form select:focus {
  border-color: #ea8fd7;
  background: rgba(234, 143, 215, 0.04);
}
.lm-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

/* Country chips */
.lm-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.lm-chip {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}
.lm-chip:hover {
  border-color: #ea8fd7;
  color: #ea8fd7;
}
.lm-chip.is-active {
  background: rgba(234, 143, 215, 0.18);
  border-color: #ea8fd7;
  color: #ea8fd7;
  font-weight: 700;
}
.lm-chip-global {
  border-color: rgba(96, 165, 250, 0.4);
  color: rgba(96, 165, 250, 0.95);
}
.lm-chip-global:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}
.lm-chip-global.is-active {
  background: rgba(96, 165, 250, 0.18);
  border-color: #60a5fa;
  color: #60a5fa;
}
.lm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ─── Progress drawer (project launch) ─── */
.space-drawer.is-progress { width: 480px; right: -500px; }
.space-drawer.is-progress.is-open { right: 0; }

.prg-progress { margin-bottom: 24px; }
.prg-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.prg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea8fd7, #f4abe0);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prg-bar-lbl {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.prg-list { display: flex; flex-direction: column; gap: 10px; }

.prg-step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  transition: all 0.25s ease;
}
.prg-step.prg-running {
  border-color: #ea8fd7;
  background: rgba(234, 143, 215, 0.08);
  animation: prg-pulse 1.5s ease-in-out infinite;
}
.prg-step.prg-success {
  border-color: rgba(34, 197, 94, 0.3);
}
.prg-step.prg-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}
@keyframes prg-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(234, 143, 215, 0.2); }
  50% { box-shadow: 0 0 0 2px rgba(234, 143, 215, 0.45); }
}

.prg-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  align-self: start;
  padding-top: 3px;
}
.prg-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}
.prg-running .prg-icon { background: #ea8fd7; color: #000; animation: prg-spin 1.4s linear infinite; }
.prg-success .prg-icon { background: #22c55e; color: #000; }
.prg-error .prg-icon { background: #ef4444; color: #fff; }
@keyframes prg-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.prg-body { display: flex; flex-direction: column; gap: 4px; }
.prg-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.prg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.prg-agent { color: rgba(234, 143, 215, 0.85); text-transform: uppercase; }
.prg-out { color: rgba(255, 255, 255, 0.55); }
.prg-err { color: #ef4444; }
