:root {
  color-scheme: light;
  --canvas: #f7f9fc;
  --surface: #fff;
  --ink: #0b1220;
  --muted: #536478;
  --line: #dce4ee;
  --blue: #1d4ed8;
  --danger: #b42332;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
}
.danger {
  background: var(--danger);
}
.danger-link {
  color: var(--danger);
}
:focus-visible {
  outline: 3px solid #83a9ff;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 1;
}
.skip:focus {
  top: 12px;
}
.topbar {
  min-height: 88px;
  padding: 18px max(24px, calc((100% - 1152px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.account form {
  margin: 0;
}
nav {
  display: flex;
  gap: 28px;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
nav a {
  display: block;
  padding: 17px 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  border-bottom: 3px solid transparent;
}
nav a[aria-current] {
  color: var(--blue);
  border-color: var(--blue);
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  min-height: calc(100vh - 220px);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -1.6px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.45px;
  line-height: 1.25;
}
p {
  color: var(--muted);
  max-width: 65ch;
  margin-top: 14px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.page-heading .button {
  flex-shrink: 0;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty {
  padding: 68px 32px;
  text-align: center;
}
.empty p {
  margin: 14px auto 20px;
  max-width: 53ch;
}
.empty-symbol {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 15px;
  font-size: 30px;
  color: var(--blue);
  margin-bottom: 20px;
}
.note,
.field-help {
  font-size: 13px;
  line-height: 1.65;
}
.note {
  margin-top: 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  background: #fbfcfe;
}
th,
td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 14px;
}
td code {
  font-size: 13px;
  overflow-wrap: anywhere;
}
time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.row-actions {
  text-align: right;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 20px;
  background: #eef3f8;
  color: #43536a;
}
.badge.enrolled {
  background: #e9f6ee;
  color: #17613c;
}
.badge.pending {
  background: #fff5dc;
  color: #785411;
}
.badge.revoked {
  background: #fceced;
  color: #932231;
}
.badge.expired {
  background: #eff1f5;
  color: #576375;
}
.narrow {
  max-width: 690px;
  margin: 0 auto;
}
.back {
  display: inline-block;
  margin-bottom: 34px;
  text-decoration: none;
  font-size: 14px;
}
.form-panel {
  padding: 30px;
  margin-top: 28px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 8px;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #aebed0;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  min-height: 46px;
}
textarea {
  font-family: ui-monospace, monospace;
  resize: vertical;
  overflow-wrap: anywhere;
}
input[readonly],
textarea[readonly] {
  background: #f8faff;
}
.field-help {
  margin: 8px 0 0;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.callout {
  border-left: 3px solid var(--blue);
  padding: 12px 18px;
  margin-top: 26px;
  background: #f5f8ff;
  border-radius: 0 7px 7px 0;
}
.callout strong {
  font-size: 14px;
}
.callout p {
  font-size: 13px;
  margin-top: 4px;
}
.steps {
  padding-left: 22px;
  margin: 28px 0;
  color: var(--muted);
}
.steps li {
  padding: 6px 0 6px 8px;
}
.steps code {
  color: var(--ink);
}
.success-text {
  color: #17613c;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.bootstrap {
  padding: 28px;
  margin-top: 40px;
}
.bootstrap form {
  margin-top: 24px;
}
.bootstrap button,
.add-admin button {
  margin-top: 18px;
}
.add-admin {
  max-width: 720px;
}
.add-admin form {
  margin-top: 24px;
}
.login {
  max-width: 710px;
  padding: 64px 0;
}
.login h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -2.4px;
}
.login .lead {
  font-size: 18px;
  max-width: 48ch;
  margin-bottom: 30px;
}
.login .muted {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  max-width: 1152px;
  margin: 0 auto;
  padding: 22px 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .topbar {
    padding: 16px 20px;
    align-items: flex-start;
  }
  .account {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 45%;
    font-size: 11px;
  }
  .brand small {
    max-width: 130px;
  }
  nav {
    padding: 0 20px;
  }
  main {
    padding: 32px 20px 56px;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  .page-heading .button {
    align-self: flex-start;
  }
  .form-panel,
  .bootstrap {
    padding: 22px;
  }
  .narrow {
    max-width: 100%;
  }
  .login {
    padding: 34px 0;
  }
  .login h1 {
    letter-spacing: -1.7px;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }
  tr:last-child {
    border: 0;
  }
  td {
    padding: 6px 0;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  td:before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--muted);
  }
  .row-actions {
    justify-content: flex-end;
    display: flex;
    padding-top: 10px;
  }
  .empty {
    padding: 40px 22px;
  }
  footer {
    margin: 0 20px;
    flex-direction: column;
    gap: 6px;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row input {
    flex: 1;
    min-width: 200px;
  }
  .actions {
    gap: 14px;
  }
  .steps {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      color 0.12s;
  }
}
