body.tuce-patch2-enabled {
  --tuce-rail-bg: rgba(11, 15, 25, 0.98);
  --tuce-rail-border: rgba(124, 152, 255, 0.24);
  --tuce-rail-text: #eef3ff;
  --tuce-muted: #9eaccd;
  --tuce-green: #1dd39a;
  --tuce-yellow: #f3bb4f;
  --tuce-orange: #ff9b54;
  --tuce-red: #ff6868;
  --tuce-blue: #70a4ff;
}

#tuce-command-rail {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 390px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 9999;
  background: var(--tuce-rail-bg);
  border: 1px solid var(--tuce-rail-border);
  border-radius: 16px;
  color: var(--tuce-rail-text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  padding: 16px;
  backdrop-filter: blur(14px);
  font-family: Inter, system-ui, sans-serif;
}
#tuce-command-rail.collapsed {
  width: 84px;
  overflow: hidden;
}
.tuce-rail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tuce-rail-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.tuce-rail-subtitle,
.tuce-node-path,
.tuce-run-meta,
.tuce-empty {
  color: var(--tuce-muted);
  font-size: 0.83rem;
}
.tuce-collapse-btn {
  border: 0;
  background: transparent;
  color: var(--tuce-muted);
  font-size: 1.3rem;
  cursor: pointer;
}
.tuce-badge-strip,
.tuce-node-meta,
.tuce-run-launcher,
.tuce-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tuce-pill,
.tuce-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}
.tuce-badge.live_trusted,
.tuce-pill {
  background: rgba(29, 211, 154, 0.12);
  color: var(--tuce-green);
  border-color: rgba(29, 211, 154, 0.24);
}
.tuce-badge.live_partial {
  background: rgba(243, 187, 79, 0.12);
  color: var(--tuce-yellow);
  border-color: rgba(243, 187, 79, 0.24);
}
.tuce-badge.seeded_demo,
.tuce-badge.mapped_only {
  background: rgba(112, 164, 255, 0.12);
  color: var(--tuce-blue);
  border-color: rgba(112, 164, 255, 0.24);
}
.tuce-badge.broken {
  background: rgba(255, 104, 104, 0.12);
  color: var(--tuce-red);
  border-color: rgba(255, 104, 104, 0.24);
}
.tuce-rail-search input,
.tuce-run-launcher select,
.tuce-run-launcher button,
.tuce-action-btn,
.tuce-run-actions button,
.tuce-top-node {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--tuce-rail-text);
  padding: 10px 12px;
}
.tuce-rail-search input {
  margin-bottom: 12px;
}
.tuce-rail-section {
  margin-top: 14px;
}
.tuce-section-title {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tuce-muted);
  margin-bottom: 8px;
}
.tuce-top-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}
.tuce-node-card {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.tuce-node-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.tuce-node-name,
.tuce-run-id {
  font-weight: 700;
}
.tuce-action-btn,
.tuce-run-launcher button,
.tuce-run-actions button {
  cursor: pointer;
}
.tuce-action-btn.high {
  border-color: rgba(255, 155, 84, 0.35);
  background: rgba(255, 155, 84, 0.12);
}
.tuce-run-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.tuce-run-row:first-child {
  border-top: 0;
}
