.redis-layout .docs-nav a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.redis-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.redis-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.redis-status .badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-redis {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-memory {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.redis-auto {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.redis-scanned {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.redis-section {
  margin-bottom: 2.5rem;
}

.redis-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.redis-section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pill.open {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.pill.received {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.pill.closed {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.redis-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.redis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.redis-table th,
.redis-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.redis-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.redis-table tbody tr:last-child td {
  border-bottom: none;
}

.redis-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.redis-table code {
  font-size: 0.8rem;
  word-break: break-all;
}

.redis-payload {
  max-width: 28rem;
  max-height: 8rem;
  overflow: auto;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}

.redis-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 1rem 0;
}

.btn-secondary {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

@media (max-width: 768px) {
  .redis-scanned {
    margin-left: 0;
    width: 100%;
  }
}
