:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #192334;
  background: #f5f7fb;
  font-size: 16px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #cfd7e4;
  color: #25344b;
  background: white;
  font-weight: 600;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 17px;
  text-decoration: none;
  text-align: center;
}
button:hover,
.button:hover {
  background: #f1f4fa;
}
button:disabled {
  opacity: 0.54;
  cursor: wait;
}
.primary {
  background: #214cea;
  border-color: #214cea;
  color: white;
}
.primary:hover {
  background: #173bc0;
}
.wide {
  width: 100%;
}
.bar {
  border-bottom: 1px solid #dce2eb;
  background: white;
}
.bar-inner {
  min-height: 67px;
  max-width: 1160px;
  padding: 0 30px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 740;
  letter-spacing: -0.7px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.bar-sub {
  border-left: 1px solid #d6dfed;
  padding-left: 18px;
  color: #626e82;
  font-size: 14px;
}
.user-main {
  width: min(100% - 32px, 570px);
  margin: clamp(42px, 9vh, 108px) auto;
}
.card {
  background: white;
  border: 1px solid #dbe2ed;
  border-radius: 18px;
  padding: clamp(23px, 4vw, 38px);
  box-shadow: 0 10px 38px #273b5a09;
}
h1 {
  font-size: clamp(27px, 4vw, 33px);
  letter-spacing: -1.3px;
  line-height: 1.25;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  margin: 27px 0 12px;
}
.lead,
.hint,
.meta,
figcaption {
  color: #58677e;
  line-height: 1.6;
}
.lead {
  margin: 0 0 29px;
}
.hint,
.meta,
figcaption {
  font-size: 14px;
}
.hint {
  margin: 10px 0 22px;
}
label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  padding: 13px 14px;
  width: 100%;
  border: 1px solid #bbc7d8;
  border-radius: 9px;
  color: #1c2940;
  background: #fff;
  line-height: 1.5;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input::placeholder,
textarea::placeholder {
  color: #778398;
}
#code,
#output,
#new-codes {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
#code {
  letter-spacing: 1px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #93b3ff;
  outline-offset: 2px;
}
[aria-invalid="true"] {
  border-color: #b42a3a !important;
}
.error {
  display: block;
  color: #ab2633;
  line-height: 1.55;
}
.error:empty,
[role="status"]:empty {
  display: none;
}
.error:not(:empty) {
  margin: 6px 0;
}
.success-mark {
  display: inline-grid;
  place-items: center;
  background: #e3f5ed;
  color: #14734f;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.address {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fb;
  border: 1px solid #d9e0ed;
  border-radius: 10px;
  padding: 10px;
}
.address span {
  overflow-wrap: anywhere;
  flex: 1;
  font-size: 15px;
}
.address button {
  min-height: 36px;
  padding: 6px 12px;
}
figure {
  text-align: center;
  margin: 20px 0 25px;
}
figure img {
  display: block;
  width: min(100%, 320px);
  margin: auto;
  image-rendering: pixelated;
}
.actions,
.inline,
nav,
.pager {
  display: flex;
  gap: 10px;
}
.actions > * {
  flex: 1;
}
.admin-main {
  width: min(100% - 32px, 960px);
  margin: 38px auto;
}
nav {
  margin-bottom: 18px;
  flex-wrap: wrap;
}
nav [aria-current="page"] {
  color: #153bd3;
  background: #e9eeff;
  border-color: #bccbff;
}
.inline {
  align-items: end;
  margin-bottom: 18px;
}
.inline > div {
  flex: 1;
}
.inline input {
  height: 46px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.toggle input {
  width: 22px;
  height: 22px;
  accent-color: #214cea;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #e4e9f1;
  white-space: nowrap;
}
th {
  color: #596780;
  background: #f6f8fc;
}
td button,
.pager button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: 14px;
}
.pager {
  margin: 12px 0;
}
.empty {
  color: #596780;
  font-size: 15px;
}
#issued {
  padding: 0 16px 16px;
  background: #f1f5ff;
  border-radius: 10px;
  display: flow-root;
}
#copy-codes {
  margin-top: 8px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 520px) {
  .bar-inner {
    padding: 0 18px;
    min-height: 56px;
  }
  .user-main,
  .admin-main {
    margin-top: 24px;
  }
  .card {
    padding: 22px 17px;
    border-radius: 14px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .inline {
    flex-wrap: wrap;
  }
  .inline > div {
    min-width: 150px;
  }
  nav {
    gap: 5px;
  }
  nav button {
    padding: 8px 11px;
  }
  .address {
    align-items: flex-start;
  }
}
