:root {
  color-scheme: dark;
  font:
    15px/1.5 Inter,
    "Segoe UI",
    sans-serif;
  color: #f3f4f8;
  background: #111218;
  --muted: #a2a8ba;
  --panel: #191c26;
  --border: #33394c;
  --accent: #a8b8ff;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px max(4vw, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--border);
}
.brand {
  color: inherit;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
}
.brand span {
  color: var(--accent);
}
.admin-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
header div,
.heading,
.pagination,
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
main {
  width: min(1160px, 92%);
  margin: 42px auto;
}
h1,
h2 {
  line-height: 1.15;
  margin: 0 0 18px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 19px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.login {
  width: min(480px, 100%);
}
#workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
label,
legend {
  color: var(--muted);
  font-size: 14px;
}
fieldset {
  margin: 0 0 18px;
  padding: 8px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 7px;
}
input,
button {
  font: inherit;
  border-radius: 7px;
}
input:not([type="checkbox"]) {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  background: #11141e;
  color: inherit;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #10152c;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
button.secondary {
  border-color: var(--border);
  background: #252b3e;
  color: #e5e9ff;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #bbcbff;
  outline-offset: 2px;
}
.input-row {
  margin-top: 6px;
}
#issued {
  margin-top: 20px;
}
#issued-key,
td:first-child {
  font-family: "Cascadia Code", Consolas, monospace;
}
#status {
  min-height: 1.5em;
  color: var(--muted);
}
#status[data-error="true"] {
  color: #ffa9a9;
}
.heading {
  justify-content: space-between;
  margin-bottom: 10px;
}
.heading h2 {
  margin: 0;
}
.table {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 6px;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td:last-child {
  text-align: right;
}
.pagination {
  justify-content: flex-end;
  margin-top: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 900px) {
  #workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  main {
    margin-top: 26px;
  }
  .panel {
    padding: 14px;
  }
}
