:root {
  --ink: #20231f;
  --muted: #777c70;
  --bg: #f5f5ee;
  --line: #dedfd4;
  --accent: #bfd67c;
  --deep: #536b29;
  --paper: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nav {
  height: 108px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.brand-dot {
  font-size: 22px;
  color: var(--deep);
  margin: 0 3px;
}
.eyebrow,
.step {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
}
.landing {
  max-width: 1152px;
  margin: 68px auto 76px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 76px;
  align-items: start;
  padding: 0 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.dot {
  height: 6px;
  width: 6px;
  background: #658031;
  border-radius: 50%;
}
h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 24px 0;
}
.accent {
  color: var(--deep);
}
.lede {
  font-size: 16px;
  line-height: 1.9;
  color: #777b70;
  margin: 0 0 28px;
}
.benefits {
  display: flex;
  gap: 32px;
  font-size: 12px;
}
.benefits > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.benefit-icon {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.benefits small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.art {
  position: relative;
  overflow: hidden;
  background: #e3e9d2;
  height: 171px;
  border-radius: 14px;
  margin-top: 36px;
  border: 1px solid #d8dfc7;
  transform: rotate(-2deg);
}
.art-star {
  position: absolute;
  font-size: 220px;
  line-height: 1;
  right: 8px;
  top: -25px;
  color: #c1ce9c;
  transform: rotate(12deg);
}
.art-word {
  position: absolute;
  font-size: 36px;
  letter-spacing: -1.5px;
  font-weight: 700;
  left: 26px;
  top: 46px;
}
.art-tag {
  position: absolute;
  bottom: 25px;
  left: 28px;
  font-size: 9px;
  letter-spacing: 2px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 12px 32px #313b1910;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.tiny-star {
  font-size: 30px;
  color: var(--deep);
  line-height: 1;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
.muted {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 23px 0 10px;
}
label span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
input,
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfbf6;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8fa960;
  box-shadow: 0 0 0 3px #bfd67c30;
}
input::placeholder,
textarea::placeholder {
  color: #aaada1;
}
.username-input {
  display: flex;
  align-items: center;
  position: relative;
}
.username-input > span {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 15px;
}
.username-input input {
  padding-left: 36px;
}
.field-help {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 24px;
}
button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  padding: 15px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
button:hover {
  background: #414933;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button span {
  font-size: 18px;
}
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  justify-content: center;
  padding: 11px 14px;
  margin-top: 10px;
  font-size: 11px;
}
.secondary:hover {
  background: #e9eddf;
}
.card-note {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
}
.card-note > span {
  font-size: 15px;
}
.card-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.8;
}
.result {
  padding: 14px;
  border: 1px solid #d3dfb8;
  border-radius: 9px;
  background: #f1f5e6;
  color: #485933;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.result.error {
  background: #fff4e9;
  border-color: #ebd9c4;
  color: #7c5936;
}
footer {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 25px 24px 35px;
  font-size: 10px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.admin {
  max-width: 1152px;
  margin: 40px auto 60px;
  padding: 0 24px;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-heading h1 {
  font-size: 36px;
  margin: 12px 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.admin-grid button[type="submit"] {
  margin-top: 24px;
}
.admin-info {
  background: #e8eddc;
  box-shadow: none;
}
.admin-info h2 {
  margin: 25px 0;
  font-size: 30px;
  line-height: 1.5;
}
dl {
  font-size: 12px;
}
dt {
  font-weight: 600;
  margin: 16px 0 6px;
}
dd {
  margin: 0;
  color: #727b62;
  line-height: 1.7;
}
.admin-info .muted {
  border-top: 1px solid #cdd6bc;
  margin-top: 24px;
  padding-top: 18px;
}
.table-card {
  margin-top: 25px;
}
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.compact {
  width: auto;
  margin: 0;
  padding: 8px 16px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
th {
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edeee5;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #edf1e4;
  padding: 5px 8px;
}
.badge.review {
  background: #f7e4c7;
}
.badge.revoked {
  background: #e9e9e9;
  color: #888;
}
.badge.succeeded {
  background: #dceacc;
  color: #416425;
}
#new-codes {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.error-label {
  color: #946125;
}
@media (max-width: 800px) {
  .nav {
    height: 80px;
    padding: 0 24px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .landing {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 35px auto 40px;
    max-width: 530px;
  }
  .intro h1 {
    font-size: 45px;
  }
  .intro .lede {
    font-size: 14px;
  }
  .art {
    display: none;
  }
  .card {
    padding: 25px;
    border-radius: 15px;
  }
  .benefits {
    gap: 25px;
    margin-top: 25px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .admin-heading h1 {
    font-size: 28px;
  }
  .admin-heading .pill {
    font-size: 9px;
  }
  footer {
    gap: 15px;
    font-size: 9px;
  }
  .admin {
    margin-top: 30px;
  }
  .table-card {
    padding: 20px;
  }
  .admin-info h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
