:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #f3f2ec;
  background: #181a1c;
  color-scheme: dark;
  --gold: #f1c46a;
  --muted: #b9bbbd;
  --line: #3a3d3e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(940px, 100% - 36px); margin: 0 auto; padding: 28px 0 64px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; letter-spacing: .06em; }
.brand span { background: var(--gold); color: #201c14; border-radius: 9px; padding: 8px 9px; letter-spacing: -.04em; }
.brand em { color: var(--gold); font-style: normal; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 4vw, 28px); background: #202325; }
.narrow { max-width: 420px; margin: 12vh auto 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(26px, 5.5vw, 36px); letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin-bottom: 18px; }
p, .muted, #issued-help { color: var(--muted); line-height: 1.55; }
h1 + p { margin-top: 8px; }
form { display: grid; gap: 12px; }
#login form { margin-top: 22px; }
label { color: #e4e1d8; font-size: 14px; }
input, button { font: inherit; border-radius: 8px; min-height: 45px; }
input { width: 100%; border: 1px solid var(--line); padding: 9px 12px; background: #191b1c; font-size: 16px; color: inherit; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button { padding: 9px 14px; border: 1px solid var(--line); background: #282b2c; color: inherit; cursor: pointer; }
.primary { background: var(--gold); color: #221c10; font-weight: 700; border-color: transparent; }
button:disabled { opacity: .6; cursor: wait; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: start; }
#issued { margin-top: 16px; }
#issued input { margin: 8px 0; font-family: ui-monospace, monospace; }
#issued button { margin-top: 12px; }
.account-row { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.account-row:last-child { padding-bottom: 0; }
.account-row p { margin: 4px 0 9px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#status { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
#status[data-error="true"] { color: #ffc2b5; border-color: #754d46; }
@media (max-width: 640px) {
  main { padding-top: 18px; }
  .narrow { margin-top: 8vh; }
  .admin-grid { grid-template-columns: 1fr; }
}
