.adv-subnav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem 0 1rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.adv-subnav a {
  flex: 0 0 auto;
  padding: .65rem .9rem;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  background: var(--sa-surface);
  color: var(--sa-primary);
  font-weight: 600;
  text-decoration: none;
}

.adv-subnav a:hover,
.adv-subnav a:focus-visible {
  border-color: var(--sa-primary-2);
  outline: 3px solid rgba(29, 127, 214, .16);
}

.adv-status {
  min-height: 1.5rem;
  margin: .5rem 0 1rem;
  color: var(--sa-muted);
}

.adv-status.is-error {
  color: var(--sa-danger);
}

.adv-metric {
  height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--sa-border);
  border-radius: 18px;
  background: var(--sa-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.adv-metric span,
.adv-card-meta {
  color: var(--sa-muted);
  font-size: .86rem;
}

.adv-metric strong {
  display: block;
  margin-top: .35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
}

.adv-actions,
.adv-card-actions,
.adv-sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.adv-filter {
  padding: 1rem;
  border: 1px solid var(--sa-border);
  border-radius: 18px;
  background: var(--sa-surface);
}

.adv-list {
  display: grid;
  gap: .85rem;
}

.adv-card {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--sa-border);
  border-radius: 18px;
  background: var(--sa-surface);
}

.adv-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.adv-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #e7f1fb;
  color: var(--sa-primary);
  font-size: .78rem;
  font-weight: 700;
}

.adv-image-preview img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: contain;
  border: 1px solid var(--sa-border);
}

.adv-sticky-actions {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  padding: .85rem;
  border: 1px solid var(--sa-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sa-shadow);
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .adv-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
