:root {
  color-scheme: light;
  --ink: #172e31;
  --muted: #526568;
  --line: #ccd8d4;
  --green: #006454;
  --paper: #f4f7f4;
  font:
    16px/1.5 "Inter",
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #102f31;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(5vw, 20px);
  gap: 10px;
  border-bottom: 3px solid #65cfaf;
}
a {
  color: var(--green);
}
header a {
  color: #eaf5ee;
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.06em;
}
.brand i {
  width: 20px;
  height: 20px;
  border: 3px solid #84e2bd;
  border-radius: 50%;
  position: relative;
}
.brand i:after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -4px;
  background: #84e2bd;
  width: 9px;
  height: 3px;
  transform: rotate(45deg);
}
nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 28px 5vw 80px;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 600;
  margin: 22px 0 28px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin: 0 0 17px;
}
p {
  color: var(--muted);
}
button,
input,
select {
  font: inherit;
}
button {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
button.subtle {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.revoke-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(290px, calc(100vw - 24px));
  max-height: calc(100vh - 16px);
  padding: 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 24px #172e3126;
  overflow-wrap: anywhere;
}
.revoke-panel code {
  display: block;
}
.revoke-panel .actions {
  justify-content: flex-end;
}
button.danger {
  background: #99372d;
  border-color: #99372d;
}
button:hover {
  filter: brightness(0.94);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #d18f30;
  outline-offset: 2px;
}
.panel,
.login {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin: 18px 0;
}
.login {
  max-width: 440px;
  margin: 8vh auto;
  padding: 32px;
}
.login h1 {
  font-size: 36px;
  margin-top: 8px;
}
.login form {
  display: grid;
}
.login input {
  width: 100%;
}
form,
.bar,
.actions,
#account {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
form {
  margin: 10px 0;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
input,
select {
  border: 1px solid #b1c2bd;
  border-radius: 5px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
#account {
  justify-content: flex-end;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.bar {
  align-items: center;
  justify-content: space-between;
}
.bar h2 {
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.metric {
  border-left: 3px solid #82c7a6;
  padding: 14px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric b {
  font-size: 21px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid #e1e7e4;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
summary {
  cursor: pointer;
  color: var(--green);
}
code,
pre {
  font:
    13px/1.5 "IBM Plex Mono",
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
pre {
  background: var(--paper);
  padding: 12px;
  min-width: 240px;
}
#notice:not(:empty) {
  border-left: 4px solid #be7c16;
  background: #fff2d6;
  color: #483419;
  padding: 12px 16px;
  margin: 14px 0;
}
.secret-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  background: white;
  border: 1px solid var(--line);
}
.secret {
  flex: 1;
  min-width: 0;
  user-select: all;
}
.copy-secret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  min-height: 36px;
}
.copy-secret::before {
  content: "";
  width: 10px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: white;
  box-shadow: -3px -3px white, -4px -4px currentColor;
}
.paging {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.empty {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 600px) {
  main {
    padding: 16px 14px 48px;
  }
  .panel {
    padding: 14px;
  }
  nav {
    gap: 10px;
  }
  .brand {
    font-size: 20px;
  }
  header {
    padding: 14px;
  }
  .login {
    margin: 6vh auto;
  }
  form label {
    width: 100%;
  }
}
