.profiles-hero {
  background:
    radial-gradient(ellipse at 85% 30%, #20656470, transparent 60%),
    var(--night);
  color: white;
}
.profiles-hero .scope {
  color: #83ded4;
}
.profiles-hero .lead,
.profiles-hero .instance {
  color: #ccd5e9;
}
.profiles-hero .btn {
  background: #83ded4;
  color: #0c1230;
}
.profiles-hero .link-btn {
  color: #d5eee9;
}
.profiles-body {
  padding-top: 40px;
}
#receipt-result article[data-result="verified"] strong {
  color: var(--teal);
}
#receipt-result article[data-result="failed"] strong {
  color: #a82424;
}
#receipt-result {
  margin: 38px 0;
  overflow-wrap: anywhere;
}
#receipt-result .proof-grid {
  margin: 28px 0;
}
#receipt-result .proof-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
}
#receipt-result .proof-grid h3 {
  font-size: 21px;
  margin-bottom: 14px;
}
#receipt-result .proof-grid strong {
  display: block;
  margin-bottom: 14px;
}
[data-surface="receipts"] input[type="file"] {
  display: block;
  max-width: 100%;
  margin: 14px 0 24px;
}
[data-surface="receipts"] label {
  display: block;
}
.profiles-notice {
  border-left: 3px solid var(--teal);
  padding: 10px 0 10px 24px;
  margin-bottom: 38px;
}
.profiles-filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.profiles-filters input,
.profiles-filters select {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  min-width: 0;
}
.profiles-filters input {
  flex: 1;
  min-width: 150px;
}
.profile-card,
.identity-card,
.role-card {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.profile-card h2,
.identity-card h2 {
  font-size: 28px;
}
.profile-card .profile-meta,
.profile-meta {
  font-size: 13px;
  color: var(--muted);
}
.profile-badge {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.role-card h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.role-card h3 {
  font-size: 18px;
  margin: 26px 0 12px;
}
.role-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
}
.role-stats dt {
  font-size: 14px;
  color: var(--muted);
}
.role-stats dd {
  font-weight: 600;
  margin: 0;
}
.role-card .scope-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.profile-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.identity-card details {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.identity-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.identity-card code {
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.proof-legend {
  margin: 55px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.proof-grid h3 {
  font-size: 17px;
}
.proof-grid p,
.proof-legend > p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.profiles-error {
  color: #ae2635;
}
.profiles-empty {
  padding: 40px;
  background: #edf0f4;
}
#profiles-detail > a {
  display: inline-block;
  margin-bottom: 25px;
}
.head nav {
  gap: 20px;
  flex-wrap: wrap;
}
section[hidden],
button[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .identity-card .role-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .identity-card .role-stats dt {
    margin-top: 10px;
  }
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .profiles-filters label {
    font-size: 13px;
  }
  .profiles-filters input {
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .profiles-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .profile-card,
  .identity-card,
  .role-card {
    padding: 22px;
  }
  .role-stats {
    gap: 10px;
    font-size: 13px;
  }
  .head nav {
    gap: 14px;
  }
  .profiles-hero .intro {
    padding-top: 55px;
  }
  .profiles-filters .btn {
    width: 100%;
  }
}
