/* Registry pages: forms, status, the registrar's queue. Shared tokens from tokens.css. */

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
  font-size: var(--text-ui);
}

/* The mark (docs/design/logo-hand-wordmark.svg) before the sections. */
.topbar .brand {
  display: inline-flex;
  color: var(--text);
  margin-right: var(--space-4);
  flex-shrink: 0;
}

.topbar nav form {
  margin-left: auto;
}

.topbar a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.status-chip {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 999px;
  font-size: var(--text-meta);
  font-weight: 600;
  border: 1px solid var(--line);
}

.status-chip--approved {
  color: var(--success);
}

.status-chip--rejected {
  color: var(--danger);
}

.actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
}

.queue {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-ui);
  font-variant-numeric: tabular-nums;
}

.queue-form {
  display: inline;
}

.queue th,
.queue td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  height: 48px;
}

.queue th {
  color: var(--muted);
  font-weight: 600;
}

.queue .reason {
  display: block;
  width: 100%;
  min-width: 10rem;
  margin: var(--space-2) 0;
  font: inherit;
  font-size: 14px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
}

.match--ok {
  color: var(--success);
}

.match--bad {
  color: var(--danger);
}

main {
  max-width: 60rem;
}

main.narrow {
  max-width: var(--reading-width);
}

@media (max-width: 767px) {
  .queue thead {
    display: none;
  }

  .queue tr {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }

  .queue td {
    display: block;
    border: 0;
    height: auto;
    padding: var(--space-1) 0;
  }
}
