:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  color: #f1effa;
  background: #13121a;
  --surface: #1c1a25;
  --line: #343143;
  --muted: #b1adbf;
  --accent: #c9b9ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(100% - 40px, 1024px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .brand, #account, .actions, .section-head, .endpoint, .list-title { display: flex; align-items: center; gap: 12px; }
.top-inner { height: 68px; justify-content: space-between; }
.brand { font-weight: 750; text-decoration: none; color: inherit; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #251842; }
main { padding: 48px 0 64px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -.04em; }
h2 { font-size: 1rem; }
code { font: .79rem/1.5 ui-monospace, monospace; color: var(--muted); overflow-wrap: anywhere; }
.panel, dialog { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.login { width: min(100%, 420px); margin: 6vh auto 0; padding: 30px; }
.login h1 { font-size: 1.45rem; }
form { display: grid; gap: 16px; margin-top: 20px; }
label { display: grid; gap: 6px; font-size: .9rem; }
input, select { width: 100%; min-width: 0; background: #14131d; color: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; }
button { font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid transparent; white-space: nowrap; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); color: #24173f; }
.primary:hover { background: #ded2ff; }
.quiet { color: #e7dfff; background: transparent; border-color: var(--line); }
.quiet:hover { background: #2c273b; }
.danger { background: #ffb4ab; color: #491512; }
.section-head { justify-content: space-between; margin-bottom: 24px; }
.endpoints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.endpoint { min-width: 0; justify-content: space-between; padding: 16px; }
.endpoint h2 { margin-bottom: 5px; }
.list-title { padding: 17px 20px; justify-content: space-between; }
#key-count, #account span, #empty { color: var(--muted); font-size: .9rem; }
#empty { padding: 12px 20px 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 16px; border-top: 1px solid var(--line); white-space: nowrap; font-size: .88rem; }
th { font-weight: 500; color: var(--muted); }
td:first-child { white-space: normal; min-width: 150px; overflow-wrap: anywhere; }
td code { display: block; margin-top: 3px; }
td:last-child { text-align: right; }
.status { display: inline-block; border-radius: 99px; font-size: .78rem; background: #332d40; color: #ddd4ed; padding: 4px 9px; }
.status.active { background: #263a33; color: #bcf1db; }
.status.revoked { background: #452b35; color: #ffc5d1; }
dialog { width: min(100% - 32px, 440px); color: inherit; padding: 24px; }
dialog::backdrop { background: #0b0812bf; }
dialog h2 { font-size: 1.28rem; }
dialog p { color: var(--muted); margin-top: 12px; }
#created label { margin-block: 16px; }
#issued-key { font-family: ui-monospace, monospace; }
.actions { justify-content: flex-end; }
[role=alert], #notice { color: #ffc5bb; font-size: .9rem; }
#notice { margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .endpoints { grid-template-columns: 1fr; }
  main { padding-top: 30px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  .endpoint { padding: 12px; }
}
