.rapv-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 350px at 0% -5%, rgba(16, 185, 129, 0.08), transparent 55%),
    radial-gradient(640px 320px at 100% 0%, rgba(15, 23, 42, 0.04), transparent 50%),
    #f6f8fb;
}

.rapv-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.rapv-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  min-height: 3.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.rapv-header-sep {
  width: 1px;
  height: 1.25rem;
  background: #e2e8f0;
}

.rapv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rapv-kicker .material-symbols-outlined {
  color: #10b981;
  font-size: 0.9rem;
}

.rapv-page-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.rapv-spacer {
  flex: 1 1 auto;
}

.rapv-body {
  flex: 1 1 auto;
  padding: 0.9rem 1.1rem 1.5rem;
}

.rapv-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rapv-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 0.9rem 1rem;
}

.rapv-summary-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.rapv-summary-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.05;
}

.rapv-summary-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #64748b;
}

.rapv-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.rapv-card + .rapv-card {
  margin-top: 0.85rem;
}

.rapv-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}

.rapv-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}

.rapv-card-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}

.rapv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
}

.rapv-muted {
  color: #94a3b8;
}

.rapv-toolbar-link {
  text-decoration: none;
}

.rapv-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.rapv-status--imported {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.rapv-status--skipped {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.rapv-status--failed {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.rapv-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

.rapv-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.rapv-link {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
}

.rapv-link:hover {
  color: #047857;
}

.rapv-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rapv-detail-grid + .cc-work-table-card {
  margin-top: 0.85rem;
}

@media (max-width: 1024px) {
  .rapv-summary-grid,
  .rapv-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rapv-header {
    padding-inline: 0.8rem;
  }

  .rapv-body {
    padding: 0.75rem 0.75rem 1.2rem;
  }

  .rapv-summary-grid,
  .rapv-detail-grid {
    grid-template-columns: 1fr;
  }
}
