.detail-body {
  padding: 80px 0 60px;
  min-height: 60vh;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

.detail-loading {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.detail-header {
  margin-bottom: 32px;
}
.detail-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.profile-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label {
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breakdown-label a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.breakdown-label a:hover { color: var(--accent); }
.breakdown-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.breakdown-count {
  font-size: 13px;
  color: var(--muted);
}
.breakdown-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.grants-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grant-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.grant-row:last-child { border-bottom: none; }
.grant-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.grant-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}
.grant-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.grant-date { white-space: nowrap; }
.grant-type {
  font-size: 11px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.badge-grant {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}
.badge-contribution {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.more-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-top: 16px;
}
.more-hint a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .detail-body { padding: 70px 0 40px; }
  .detail-header h1 { font-size: 1.3rem; }
  .profile-stats { gap: 20px; }
  .stat-value { font-size: 1.5rem; }
  .grant-row-header { flex-direction: column; gap: 4px; }
  .breakdown-meta { flex-direction: column; align-items: flex-end; gap: 2px; }
}
