:root {
  color-scheme: light;
  --ink: #17342b;
  --green: #15543e;
  --lime: #b8f254;
  --paper: #f4f7f4;
  --line: #dbe5df;
  --danger: #9f2f2f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--lime);
  color: #17342b;
  font-weight: 750;
  cursor: pointer;
}
button.secondary { background: #e7efea; }
button.danger { padding: 7px 10px; background: #f9dddd; color: var(--danger); }
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 5vw, 72px);
  color: white;
  background: var(--green);
}
.topbar strong { font-size: 21px; margin-right: 14px; }
.topbar span { opacity: .72; }
.dashboard { width: min(1180px, calc(100% - 32px)); margin: 28px auto 60px; }
.hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 2px 18px;
}
.hero h1 { margin: 2px 0 8px; font-size: clamp(28px, 4vw, 44px); }
.eyebrow { color: #397a5d; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats span { min-width: 105px; padding: 12px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.stats b { display: block; font-size: 25px; }
.card {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto;
  padding: clamp(18px, 3vw, 30px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(22, 64, 48, .06);
}
.dashboard > .card { width: 100%; }
.card.narrow { max-width: 560px; margin-top: 7vh; }
.card h1, .card h2 { margin-top: 0; }
.inline { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
label { display: grid; gap: 6px; margin: 14px 0; font-weight: 650; }
.inline label { min-width: 190px; margin: 0; }
input, textarea {
  width: 100%;
  border: 1px solid #bdcbc3;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
textarea { margin: 12px 0; font-family: ui-monospace, Consolas, monospace; }
.alert { margin: 15px 0; padding: 12px; background: #fde9e5; border-radius: 8px; color: #842f26; }
.success { border-color: #8fc75c; background: #fbfff7; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #557066; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.status, .pass, .fail { display: inline-block; padding: 3px 8px; border-radius: 999px; font-weight: 750; }
.status.created { background: #eef4ef; }
.status.redeemed, .pass { background: #dff5d4; color: #276327; }
.status.revoked, .status.expired, .fail { background: #f9dddd; color: #8c2929; }
@media (max-width: 760px) {
  .hero { display: block; }
  .stats { margin-top: 18px; }
  .topbar span { display: none; }
}

