:root { color-scheme: light; font: 16px system-ui, sans-serif; color: #142d2c; background: #f4f7f4; }
* { box-sizing: border-box; }
main { max-width: 1040px; margin: 0 auto; padding: 56px 24px; }
header { border-bottom: 1px solid #d2dfd8; margin-bottom: 32px; padding-bottom: 18px; }
.brand { font-size: .75rem; font-weight: 700; letter-spacing: .15em; color: #397264; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: 1.25rem; }
form, #issued { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0 28px; }
[hidden] { display: none !important; }
label { display: grid; gap: 6px; font-size: .875rem; }
input, button { font: inherit; border-radius: 8px; padding: .65rem .85rem; }
input { min-width: 0; max-width: 100%; border: 1px solid #a9beb3; background: white; }
button { border: 1px solid #215f51; background: #215f51; color: white; cursor: pointer; }
button.secondary { background: white; color: #215f51; }
button:disabled { opacity: .55; cursor: default; }
#issued { background: #e4f0e8; border-radius: 10px; padding: 16px; }
#issued label { flex: 1 1 230px; }
#code { font-family: ui-monospace, monospace; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; border-bottom: 1px solid #e1ebe5; padding: 10px 13px; }
th { font-size: .875rem; white-space: nowrap; }
td:last-child { min-width: 180px; }
td button { padding: .35rem .5rem; margin: 2px; font-size: .85rem; }
#message { color: #833b22; }
