.route-content-section {
  margin: 1rem 0 1.5rem;
}

.route-content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.route-content-card {
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(180deg, hsl(var(--card) / 0.92), hsl(var(--card) / 0.78)),
    radial-gradient(circle at top right, hsl(var(--primary) / 0.08), transparent 42%);
  border: 1px solid hsl(var(--border) / 0.85);
  box-shadow: 0 14px 34px rgba(8, 9, 13, 0.28);
}

.route-content-card h2,
.route-content-card h3 {
  margin: 0 0 0.65rem;
  color: hsl(var(--foreground));
  font-size: 1.08rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.route-content-card p {
  margin: 0;
  color: hsl(var(--secondary-foreground));
  line-height: 1.75;
}

.route-content-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.route-content-list li {
  position: relative;
  padding-left: 1rem;
  color: hsl(var(--secondary-foreground));
  line-height: 1.65;
}

.route-content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary) / 0.45);
}

.route-content-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 1rem;
}

.route-content-kpi {
  padding: 0.9rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--background) / 0.35);
}

.route-content-kpi strong {
  display: block;
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.route-content-kpi span {
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.route-content-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--secondary-foreground));
  line-height: 1.7;
}

.route-content-code {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: hsl(var(--background) / 0.72);
  border: 1px solid hsl(var(--border) / 0.85);
  color: hsl(var(--foreground));
  font-family: JetBrains Mono, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .route-content-card {
    padding: 1rem;
  }
}

.runtime-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.runtime-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.runtime-notification-panel {
  position: fixed;
  top: 4.75rem;
  right: 1.5rem;
  z-index: 80;
  width: min(24rem, calc(100vw - 1.5rem));
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid hsl(var(--border) / 0.9);
  background:
    linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--card) / 0.94)),
    radial-gradient(circle at top right, hsl(var(--primary) / 0.1), transparent 42%);
  box-shadow: 0 24px 54px rgba(8, 10, 14, 0.42);
  overflow: hidden;
}

.runtime-notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid hsl(var(--border) / 0.72);
}

.runtime-notification-header h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.runtime-notification-header p {
  margin: 0.25rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
}

.runtime-notification-close {
  border: 1px solid hsl(var(--border) / 0.85);
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.runtime-notification-list {
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.5rem;
}

.runtime-notification-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: calc(var(--radius) + 2px);
  background: transparent;
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.runtime-notification-item:hover {
  background: hsl(var(--accent) / 0.62);
  transform: translateY(-1px);
}

.runtime-notification-item strong {
  color: hsl(var(--foreground));
  font-size: 0.92rem;
}

.runtime-notification-item span,
.runtime-notification-empty {
  color: hsl(var(--secondary-foreground));
  font-size: 0.86rem;
  line-height: 1.6;
}

.runtime-notification-empty {
  padding: 1rem;
}

@media (max-width: 640px) {
  .runtime-notification-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    top: 4.25rem;
  }
}
