#registry {
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.registry-note {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.registry-status,
.registry-kicker {
  margin: 0 0 8px;
  color: var(--stone);
  font-size: .74rem;
  font-weight: 650;
  text-transform: uppercase;
}

.registry-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.registry-stat,
.registry-chip,
.registry-pill,
.registry-export,
.registry-page button,
.registry-reset {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.registry-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.registry-stat strong {
  font-weight: 650;
}

.registry-stat span,
.registry-chip span {
  color: var(--stone);
  font-weight: 600;
}

.registry-chip[aria-pressed="true"],
.registry-pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface);
}

.registry-recent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.registry-recent button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.registry-recent small,
.registry-muted,
.registry-id,
.registry-meta {
  color: var(--stone);
  font-size: .75rem;
  font-weight: 600;
}

.registry-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.registry-search,
.registry-filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

.registry-pills,
.registry-caps,
.registry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.registry-field {
  display: grid;
  gap: 4px;
  min-width: min(100%, 180px);
  flex: 1 1 180px;
}

.registry-field span,
.registry-check {
  color: var(--stone);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-transform: none;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 600;
}

.registry-count {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.registry-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.registry-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.registry-table th,
.registry-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.registry-table th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-name {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
}

.registry-badges,
.registry-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.registry-badge,
.registry-flag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
}

.registry-flag {
  color: var(--ink);
  background: var(--surface);
}

.registry-table a,
.registry-card a {
  color: var(--ink);
  font-weight: 650;
}

.registry-cards {
  display: none;
}

.registry-card {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.registry-card dl {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 6px 10px;
  margin: 10px 0 0;
}

.registry-card dt {
  color: var(--stone);
  font-size: .72rem;
  font-weight: 650;
  text-transform: uppercase;
}

.registry-card dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.registry-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.registry-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.registry-page button[disabled] {
  cursor: default;
  opacity: .45;
}

.registry-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .registry-recent {
    grid-template-columns: 1fr;
  }

  .registry-table-wrap {
    display: none;
  }

  .registry-cards {
    display: block;
  }

  #registry {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 390px) {
  .registry-card dl {
    grid-template-columns: 1fr;
  }
}
