.patch5-panel {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2147483500;
  background: rgba(12, 16, 26, 0.96);
  color: #eef2ff;
  border: 1px solid rgba(140, 160, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 1rem;
  backdrop-filter: blur(12px);
  max-height: 48vh;
  overflow: auto;
  font-family: Inter, system-ui, sans-serif;
}

.patch5-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.patch5-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.patch5-header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.3rem;
}

.patch5-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.95fr;
  gap: 0.9rem;
}

.patch5-column h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.patch5-stack {
  display: grid;
  gap: 0.7rem;
}

.patch5-card,
.patch5-summary-card {
  background: rgba(22, 28, 44, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 12px;
  padding: 0.75rem;
}

.patch5-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.patch5-meta,
.patch5-stats,
.patch5-row,
.patch5-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.patch5-meta,
.patch5-stats,
.patch5-row {
  font-size: 0.86rem;
  margin-top: 0.3rem;
}

.patch5-actions {
  margin-top: 0.6rem;
}

.patch5-button {
  border: 0;
  border-radius: 10px;
  background: #818cf8;
  color: #0b1020;
  padding: 0.48rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.patch5-button.patch5-secondary {
  background: rgba(148, 163, 184, 0.22);
  color: #eef2ff;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.patch5-summary {
  display: grid;
  gap: 0.7rem;
}

.patch5-detail {
  margin-top: 0.7rem;
}

.patch5-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.patch5-badge-group { background: rgba(34, 197, 94, 0.16); color: #bbf7d0; }
.patch5-badge-edge { background: rgba(59, 130, 246, 0.18); color: #bfdbfe; }
.patch5-badge-cross-category { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.patch5-badge-multi-agent { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; }

.patch5-muted { color: #94a3b8; font-size: 0.88rem; }

@media (max-width: 1120px) {
  .patch5-grid {
    grid-template-columns: 1fr;
  }
  .patch5-panel {
    max-height: 60vh;
  }
}
