* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f4f6; color: #172033; font: 1rem/1.5 system-ui, sans-serif; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .85rem max(1rem, calc((100% - 70rem) / 2)); background: #4338ca; }
header nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
header a { color: white; font-weight: 700; text-decoration: none; }
main { width: min(calc(100% - 2rem), 36rem); margin: 2rem auto; }
.card { background: white; padding: clamp(1rem, 5vw, 2rem); border-radius: .85rem; box-shadow: 0 4px 16px #17203315; }
h1 { margin: 0; color: #3730a3; font-size: 1.6rem; line-height: 1.25; }
label { display: block; font-weight: 600; }
input:not([type=hidden]) { display: block; width: 100%; margin-block: .25rem .75rem; padding: .65rem; color: inherit; border: 1px solid #9ca3af; border-radius: .4rem; font: inherit; }
a { color: #3730a3; }
button, .button { display: inline-block; padding: .55rem .8rem; border: 1px solid #4338ca; border-radius: .4rem; background: #4338ca; color: white; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button.secondary, a.secondary { background: white; color: #3730a3; }
button.danger { background: white; border-color: #b91c1c; color: #991b1b; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1rem; }
.section { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.result { padding: 1rem; border-radius: .5rem; background: #eef2ff; overflow-wrap: anywhere; }
.result p { margin: .4rem 0; }
.notice { color: #374151; }
.error { color: #991b1b; }
.qr { display: block; width: min(100%, 16rem); margin: 1rem auto; }
