:root {
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #17191d;
  color: #f4f5f7;
  font-size: 16px;
  --muted: #a5aab5;
  --line: #34383f;
  --accent: #bcf383;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 17px;
  font-weight: 600;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover {
  filter: brightness(1.12);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
select,
textarea {
  min-height: 46px;
  border: 1px solid #474c56;
  background: #16181c;
  color: inherit;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}
input::placeholder {
  color: #9298a5;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}
label {
  display: block;
  margin: 24px 0 9px;
  font-size: 14px;
  font-weight: 600;
}
.shell {
  max-width: 1220px;
  margin: auto;
  padding: 0 40px;
}
header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  font-weight: 750;
  letter-spacing: 0.07em;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #1b2413;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 800;
}
main {
  min-height: calc(100vh - 192px);
  padding: 56px 0;
}
h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 12px 0 14px;
  font-weight: 650;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 650;
  color: var(--accent);
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.primary {
  background: var(--accent);
  color: #192312;
  border-color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.quiet {
  color: #e0e3e8;
  background: #22252b;
}
.danger {
  background: #723a3d;
  color: #fff;
  border-color: #b96a71;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.heading p {
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 38px 0;
  border-block: 1px solid var(--line);
  padding: 25px 0;
}
.metrics > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
}
.metrics > div:last-child {
  border: none;
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.metrics strong {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar > div {
  flex: 1;
}
.toolbar select {
  width: 210px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1c1f24;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 500;
  background: #23262c;
  padding: 16px 20px;
  white-space: nowrap;
}
td {
  padding: 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td:first-child {
  min-width: 190px;
}
td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  max-width: 230px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.key-tail {
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.row-actions button {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  border: 1px solid #475346;
  color: #c1e4a8;
  background: #263023;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 13px;
}
.badge.pending {
  color: #c2c8d4;
  background: #292d35;
  border-color: #484f5d;
}
.badge.revoked {
  color: #f3b3ba;
  background: #39282d;
  border-color: #674047;
}
.footnote {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.notice {
  color: #ffd19b;
  font-size: 14px;
  min-height: 22px;
  overflow-wrap: anywhere;
}
.notice:empty {
  margin: 0;
}
.login {
  max-width: 460px;
  margin: 40px auto 70px;
}
.login h1 {
  font-size: 40px;
}
.login form > .primary {
  width: 100%;
  margin-top: 22px;
}
footer {
  height: 84px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  gap: 20px;
  letter-spacing: 0.03em;
}
dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #484d57;
  border-radius: 14px;
  background: #22252b;
  color: #f4f5f7;
  padding: 32px;
  box-shadow: 0 24px 80px #0008;
}
dialog::backdrop {
  background: #090b10cc;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}
.warning {
  border-left: 2px solid #e9bd7a;
  padding-left: 14px;
  color: #e4c89d;
  font-size: 14px;
}
#create-error,
#action-error {
  color: #ffb8c1;
  font-size: 14px;
}
#audit-list {
  padding-left: 20px;
  color: #d7dae1;
  line-height: 2;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .shell {
    padding: 0 20px;
  }
  header {
    height: 84px;
  }
  main {
    padding: 32px 0;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading > .primary {
    width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 28px 0;
  }
  .metrics > div {
    padding: 0;
    border: 0;
  }
  .metrics strong {
    margin-top: 8px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar > div {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    width: auto;
  }
  .login {
    margin: 32px auto;
  }
  .login h1 {
    font-size: 34px;
  }
  footer {
    height: auto;
    min-height: 84px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }
  dialog {
    padding: 24px;
  }
  .actions > * {
    flex: 1;
  }
  td,
  th {
    padding: 14px;
  }
}

.sr-only {
  left: 0;
  top: 0;
}
.table-wrap {
  position: relative;
}
