:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #f2f5f1;
  color: #162f25;
}

* { box-sizing: border-box; }
body { margin: 0; padding: clamp(16px, 6vw, 80px) 16px; }
main {
  max-width: 520px;
  margin: auto;
  padding: clamp(20px, 6vw, 42px);
  background: white;
  border: 1px solid #d6e0d9;
  border-radius: 24px;
}
h1 { margin: 0 0 28px; font-size: clamp(26px, 6vw, 38px); letter-spacing: -.04em; }
label { display: block; margin-bottom: 8px; font-weight: 650; }
textarea, input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #a7b9ae;
  border-radius: 8px;
  color: inherit;
  font: 16px/1.5 ui-monospace, monospace;
}
textarea { resize: vertical; }
button, .actions a {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
button { background: #185b43; color: white; }
button:disabled { opacity: .65; cursor: wait; }
form button { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions a { background: #edf4ef; color: #185b43; text-decoration: none; }
:focus-visible { outline: 3px solid #2c8d69; outline-offset: 2px; }
#status:empty { display: none; }
#status, #expiry { margin: 14px 0 0; font-size: .9rem; }
#expiry { color: #476054; }
#qr { display: block; width: min(100%, 224px); height: auto; margin: 18px auto; }
