:root { color-scheme: dark; font: 100% system-ui, sans-serif; color: #fff8e6; background: #102a22; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 50% 40%, #244b37, #102a22 74%); }
header { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: 1.25rem clamp(1rem, 5vw, 4rem); min-height: 5rem; }
.brand { font-weight: 750; }
.brand span { color: #e3ff85; margin-right: .35rem; }
button { font: inherit; font-weight: 650; padding: .55rem .8rem; cursor: pointer; border: 1px solid currentColor; border-radius: .5rem; color: inherit; background: transparent; }
button:hover { text-decoration: underline; }
[hidden] { display: none !important; }
main { display: grid; place-items: center; min-height: calc(85svh - 5rem); padding: 1rem; }
.ticket { width: min(100%, 38rem); border-radius: 1rem; overflow: hidden; background: #fff8e6; color: #102a22; box-shadow: 0 1.4rem 5rem #06151088; }
.stub { background: #e3ff85; padding: 1rem clamp(1rem, 5vw, 2rem); display: flex; align-items: center; justify-content: space-between; }
h1 { margin: 0; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; }
.ticket-body { padding: clamp(1.6rem, 7vw, 3rem) 1rem; text-align: center; }
.number { font-size: clamp(2.4rem, 11vw, 6rem); letter-spacing: -.07em; line-height: 1.05; font-weight: 850; font-variant-numeric: tabular-nums; margin: 0; overflow-wrap: anywhere; }
#status { margin: .85rem 0 0; color: #365744; }
#retry { margin-top: 1rem; }
.ticket-footer { border-top: 2px dashed #102a2250; padding: 1.1rem clamp(1rem, 5vw, 2rem) 1.45rem; }
.ticket-footer div { display: flex; justify-content: space-between; gap: .5rem; }
progress { display: block; width: 100%; height: .65rem; margin-top: .65rem; border: 0; border-radius: 1rem; overflow: hidden; background: #d9dfc5; }
progress::-webkit-progress-bar { background: #d9dfc5; }
progress::-webkit-progress-value { background: #497a38; }
progress::-moz-progress-bar { background: #497a38; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
dialog { width: min(calc(100% - 2rem), 28rem); padding: 1.35rem; border: 0; border-radius: 1rem; background: #fff8e6; color: #102a22; }
dialog::backdrop { background: #081c17bb; }
dialog h2 { margin: 0; font-size: 1.25rem; }
#lab-offline-status { margin: 0; text-align: center; padding: 0 1rem; }
