:root { color-scheme: light; font-family: system-ui, sans-serif; background: #edf2ed; color: #192a23; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 24px 16px; }
main { width: min(100%, 580px); margin: 5vh auto; background: #fff; padding: clamp(20px, 5vw, 40px); border: 1px solid #c8d8d0; border-radius: 20px; }
h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; }
h2 { font-size: 1.45rem; margin: 0 0 10px; }
p { line-height: 1.55; }
fieldset { border: 0; padding: 0; margin: 22px 0 4px; min-inline-size: 0; }
legend { padding: 0; margin: 0 0 8px; font-weight: 650; }
.code-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
input, button { width: 100%; min-height: 48px; font: inherit; padding: 11px 14px; border-radius: 8px; }
input { min-width: 0; padding-inline: 4px; border: 1px solid #778e84; text-align: center; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
button { background: #174b3a; color: #fff; font-weight: 650; border: 1px solid #174b3a; cursor: pointer; margin-top: 12px; }
button:disabled { opacity: .68; cursor: wait; }
:focus-visible { outline: 3px solid #487d69; outline-offset: 3px; }
#status { color: #593c1f; }
#qr { display: block; width: min(100%, 400px); height: auto; margin: auto; image-rendering: pixelated; }
