/* Copied from the design system's components/bundle.css (design system v11, 19 Oct 2026). Keep it in step with that file;
   page layout and the few additions the live pages need are in vote.css. The fonts load from a <link> in each page instead of an @import. */

/* Glittz Voting: shared component styles. Gallery white with one gold.
   Buttons, pills and tabs are round; fields, tickets and the upload zone are square; photos take radius-photo and thumbnails radius-thumb. Every value comes from a token. */

.gz { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
.gz *, .gz *::before, .gz *::after { box-sizing: border-box; }
.gz :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gz .i { width: var(--icon-md); height: var(--icon-md); flex: none; vertical-align: -0.2em; }

/* Text helpers */
.gz-eyebrow { margin: 0; color: var(--ink); font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-eyebrow .n { margin-right: 14px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.gz-section-title { margin: 0; font: 400 36px/1.1 var(--font-display); letter-spacing: -0.01em; }
.gz-lede { margin: 0; font: 400 20px/1.4 var(--font-display); }

/* Buttons: gold pills with sentence-case labels, raised on gold leaf; one solid gold button per view */
.gz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-md); padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font: 500 15px/1 var(--font-ui); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--dur-instant) var(--ease-out), border-color var(--dur-instant) var(--ease-out), color var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.gz-btn .i { width: var(--icon-sm); height: var(--icon-sm); }
.gz-btn .i:last-child { transition: transform 0.2s var(--ease-out); }
.gz-btn:hover .i:last-child { transform: translateX(3px); }
.gz-btn:active:not(:disabled) { transform: translateY(1px); }
.gz-btn--sm { min-height: var(--control-sm); padding: 0 16px; font-size: 14px; }
.gz-btn--lg { min-height: var(--control-lg); padding: 0 28px; font-size: 16px; }
.gz-btn--block { width: 100%; }
.gz-btn--primary { position: relative; overflow: hidden; background: var(--gold); color: var(--on-gold); box-shadow: var(--leaf-gold); }
.gz-btn--primary:hover { background: var(--gold-deep); }
.gz-btn--primary:active:not(:disabled) { box-shadow: var(--leaf-gold-pressed); }
/* --soft is retired: it now matches --secondary so older markup still renders */
.gz-btn--secondary, .gz-btn--soft, .gz-btn--whatsapp { background: var(--paper); color: var(--gold-deep); box-shadow: var(--leaf-line); }
.gz-btn--secondary:hover, .gz-btn--soft:hover, .gz-btn--whatsapp:hover { background: var(--gold-soft); }
.gz-btn--secondary:active, .gz-btn--soft:active, .gz-btn--whatsapp:active { box-shadow: var(--leaf-line-pressed); }
.gz-btn--sm.gz-btn--secondary { border-color: var(--gold); box-shadow: none; } /* small ones sit inside cards and rows, so they stay flat */
.gz-btn--whatsapp .i { color: var(--whatsapp); }
/* Busy: a thin white line grows under the label, inside the pill, as --p goes from 0 to 1. */
.gz-btn--primary.is-busy { cursor: progress; }
.gz-btn--primary.is-busy::before, .gz-btn--primary.is-busy::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 9px; height: 2px; border-radius: 2px; background: var(--on-gold); }
.gz-btn--primary.is-busy::before { opacity: 0.3; }
.gz-btn--primary.is-busy::after { transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.14s linear; }
.gz-link { padding: 0; border: 0; background: none; color: var(--ink); font: 400 13px/1.4 var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gz-link:hover { color: var(--gold); }

/* Icon buttons (44px touch target) and copy feedback */
.gz-icon-btn { display: inline-grid; place-items: center; width: var(--touch-min); height: var(--touch-min); flex: none; padding: 0; border: 0; border-radius: var(--radius-round); background: transparent; color: var(--ink); cursor: pointer; transition: background var(--dur-instant) var(--ease-out); }
.gz-icon-btn:hover { background: var(--wash); }
.gz-copy .i { grid-area: 1 / 1; transition: opacity var(--dur-base) ease-in-out, transform var(--dur-base) ease-in-out, filter var(--dur-base) ease-in-out; }
.gz-copy .ic-b { opacity: 0; transform: scale(0.25); filter: blur(2px); color: var(--ok); }
.gz-copy[data-state="done"] .ic-a { opacity: 0; transform: scale(0.25); filter: blur(2px); }
.gz-copy[data-state="done"] .ic-b { opacity: 1; transform: none; filter: none; }

/* Pills: round, capitals, never an action. Gold in three strengths, plus statuses. */
.gz-badge, .gz-chip, .gz-tag, .gz-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-pill); font: 500 12px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gz-badge { background: var(--gold); color: var(--on-gold); }
.gz-chip { border-color: var(--gold); background: var(--paper); color: var(--gold); }
.gz-tag { background: var(--gold-soft); color: var(--gold-deep); }
.gz-badge .i, .gz-tag .i { width: 14px; height: 14px; }
.gz-status::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-round); background: currentColor; }
.gz-status--wait { background: var(--gold-soft); color: var(--gold-deep); }
.gz-status--ok { background: var(--ok-soft); color: var(--ok); }
.gz-status--error { background: var(--error-soft); color: var(--error); }
.gz-status--muted { background: var(--wash); color: var(--muted); }
.gz-notice { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px; border: 1px dashed var(--gold); border-radius: var(--radius-pill); color: var(--gold-deep); font: 400 13px/1.4 var(--font-ui); }
.gz-count { color: var(--muted); font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }

/* Category tabs: a round track with a sliding gold thumb */
.gz-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: var(--radius-pill); background: var(--wash); }
.gz-tabs__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: var(--radius-pill); background: var(--gold); box-shadow: var(--leaf-gold); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--dur-base) var(--ease-out); }
.gz-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--touch-min); padding: 0 8px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 500 14px/1 var(--font-ui); letter-spacing: 0.01em; cursor: pointer; transition: color var(--dur-base) var(--ease-out); }
.gz-tab__meta { color: var(--muted); font-weight: 400; transition: color var(--dur-base) var(--ease-out); }
.gz-tab[aria-selected="true"], .gz-tab[aria-selected="true"] .gz-tab__meta { color: var(--on-gold); }

/* Package ticket: a radio card with a perforation and two notches cut from its edges */
.gz-tickets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 10px; padding-top: 8px; }
.gz-ticket { position: relative; display: grid; grid-template-rows: 64% 1fr; min-height: 132px; border-radius: var(--radius-control); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-control); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.gz-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.gz-ticket:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.gz-ticket:active { transform: scale(0.985); }
.gz-ticket:has(input:checked) { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.gz-ticket:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.gz-ticket .gz-badge { position: absolute; top: -12px; left: 12px; }
.gz-ticket__top { display: flex; align-items: baseline; gap: 6px; padding: 18px 16px 0; }
.gz-ticket__num { font: 300 40px/1 var(--font-ui); letter-spacing: -0.02em; }
.gz-ticket__unit { color: var(--muted); font-size: 13px; }
.gz-ticket__bot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px 0 16px; border-top: 1px dashed var(--line-control); }
.gz-ticket__bot::before, .gz-ticket__bot::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: var(--radius-round); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-control); transition: box-shadow var(--dur-fast) var(--ease-out); }
.gz-ticket__bot::before { left: -9px; clip-path: inset(0 0 0 50%); }
.gz-ticket__bot::after { right: -9px; clip-path: inset(0 50% 0 0); }
.gz-ticket:hover .gz-ticket__bot::before, .gz-ticket:hover .gz-ticket__bot::after { box-shadow: inset 0 0 0 1px var(--ink); }
.gz-ticket:has(input:checked) .gz-ticket__bot::before, .gz-ticket:has(input:checked) .gz-ticket__bot::after { box-shadow: inset 0 0 0 2px var(--gold); }
.gz-ticket__price { font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.gz-ticket__per { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gz-ticket__check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-round); background: var(--gold); color: var(--on-gold); opacity: 0; transform: scale(0.6); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.gz-ticket__check .i { width: 14px; height: 14px; stroke-dasharray: 262; stroke-dashoffset: 262; transition: stroke-dashoffset 0.35s var(--ease-out) 0.05s; }
.gz-ticket:has(input:checked) .gz-ticket__check { opacity: 1; transform: none; }
.gz-ticket:has(input:checked) .gz-ticket__check .i { stroke-dashoffset: 0; }

/* Quantity stepper */
.gz-qty { display: flex; align-items: center; gap: 4px; }
.gz-qty button { display: grid; place-items: center; width: var(--touch-min); height: var(--touch-min); border: 1px solid var(--line-control); border-radius: var(--radius-round); background: var(--paper); color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: border-color var(--dur-instant) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.gz-qty button:hover:not(:disabled) { border-color: var(--ink); }
.gz-qty button:active:not(:disabled) { transform: scale(0.94); }
.gz-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.gz-qty input { width: 70px; height: var(--touch-min); border: 0; background: transparent; color: var(--ink); text-align: center; font: 400 18px var(--font-ui); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.gz-qty input::-webkit-outer-spin-button, .gz-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Rolling digits: only changed digits pop in, rising on + and falling on − */
.gz-roll { display: inline-flex; font-variant-numeric: tabular-nums; }
.gz-roll > span { display: inline-block; }
.gz-roll > .pop { animation: gz-digit-pop 0.5s var(--ease-pop) both; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes gz-digit-pop { from { opacity: 0; transform: translateY(calc(var(--dy, 1) * 8px)); filter: blur(2px); } }

/* Fields */
.gz-field { display: grid; gap: 8px; }
.gz-label { color: var(--ink); font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-control); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font: 400 16px var(--font-ui); outline: 0; transition: border-color var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out); }
.gz-input::placeholder { color: var(--faint); }
.gz-input:focus { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.gz-input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.gz-phone { display: flex; }
.gz-phone b { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-control); border-right: 0; border-radius: var(--radius-control) 0 0 var(--radius-control); background: var(--wash); color: var(--muted); font-weight: 500; }
.gz-phone .gz-input { border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.gz-hint { color: var(--muted); font: 400 13px/1.45 var(--font-ui); }
.gz-error { margin: 0; color: var(--error); font: 400 13px/1.45 var(--font-ui); }
.gz-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--muted); font-size: 13.5px; cursor: pointer; }
.gz-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.gz-check a { color: var(--ink); }

/* Contestant card: the photo whole, the code as a gold number on a white tab, the name, then a gold Vote pill */
.gz-card { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.gz-card__photo { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--radius-photo); background: var(--wash); }
.gz-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) { .gz-card:hover .gz-card__photo img { transform: scale(1.03); } .gz-card:hover .gz-card__name { text-decoration: underline; text-underline-offset: 4px; } }
.gz-card__num { position: relative; align-self: flex-start; margin-top: -26px; padding: 6px 12px 0 0; border-top-right-radius: var(--radius-photo); background: var(--paper); color: var(--gold); font: 300 32px/1 var(--font-ui); letter-spacing: -0.01em; }
/* Name and Vote share a row; the name's first line sits level with the button, so buttons line up across a row of cards */
.gz-card__row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 10px; }
.gz-card__name { flex: 1; min-width: 0; padding-top: 9px; font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-card .gz-tag { align-self: flex-start; margin: 0 0 10px; }
.gz-card .gz-btn { flex: none; min-height: 34px; padding: 0 16px; border-color: var(--gold); box-shadow: none; font-size: 13px; } /* flat inside the card, like other small secondary buttons */
@media (hover: hover) { .gz-card:hover .gz-btn { background: var(--gold); color: var(--on-gold); } }
/* The number tab cuts into the photo's rounded corner, so the two corners the cut leaves on the photo are rounded too */
.gz-card__num::before, .gz-card__num::after { content: ""; position: absolute; width: var(--radius-photo); height: var(--radius-photo); background: radial-gradient(circle at 100% 0, transparent calc(var(--radius-photo) - 0.5px), var(--paper) var(--radius-photo)); pointer-events: none; }
.gz-card__num::before { left: 0; bottom: 100%; }
.gz-card__num::after { left: 100%; top: calc(26px - var(--radius-photo)); }
/* M1 curtain reveal: photos rise into view 50ms apart (set --k on each card), the words follow */
.gz-curtain.is-prep .gz-card__photo img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: none; }
.gz-curtain.is-prep .gz-card > :not(.gz-card__photo) { opacity: 0; transform: translateY(6px); transition: none; }
.gz-curtain.is-run .gz-card__photo img { transition: clip-path 0.75s var(--ease-out) calc(var(--k, 0) * 50ms), transform 1.1s var(--ease-out) calc(var(--k, 0) * 50ms); }
.gz-curtain.is-run .gz-card > :not(.gz-card__photo) { transition: opacity 0.4s var(--ease-out) calc(var(--k, 0) * 50ms + 240ms), transform 0.4s var(--ease-out) calc(var(--k, 0) * 50ms + 240ms); }

/* FAQ: one answer open at a time; the gold plus turns into a cross. gz-tbc marks text the organiser must confirm. */
.gz-faq { border-top: 1px solid var(--ink); }
.gz-faq details { border-bottom: 1px solid var(--line); }
.gz-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; color: var(--ink); font: 500 16px/1.4 var(--font-ui); list-style: none; cursor: pointer; transition: color var(--dur-instant) var(--ease-out); }
.gz-faq summary::-webkit-details-marker { display: none; }
.gz-faq summary:hover { color: var(--gold-deep); }
.gz-faq summary .i { flex: none; width: 18px; height: 18px; color: var(--gold); transition: transform var(--dur-base) var(--ease-out); }
.gz-faq details[open] summary .i { transform: rotate(45deg); }
.gz-faq__a { max-width: 62ch; padding: 0 0 20px; color: var(--ink); font: 400 15px/1.6 var(--font-ui); }
.gz-faq__a p { margin: 0; }
.gz-faq details[open] .gz-faq__a { animation: gz-faq-in 0.3s var(--ease-out); }
@keyframes gz-faq-in { from { opacity: 0; transform: translateY(-4px); } }
.gz-tbc { padding: 1px 6px; border-radius: 4px; background: var(--gold-soft); color: var(--gold-deep); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Steps (progress inside the vote sheet) */
.gz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gz-steps li { display: grid; grid-template-rows: 2px auto; align-content: start; gap: 8px; color: var(--muted); font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-steps li::before { content: ""; height: 2px; background: var(--line); }
.gz-steps li.is-done::before { background: var(--ink); }
.gz-steps li[aria-current="step"] { color: var(--ink); }
.gz-steps li[aria-current="step"]::before { background: var(--gold); }

/* Vote sheet */
.gz-sheet { display: flex; flex-direction: column; width: 100%; max-width: 540px; overflow: hidden; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; background: var(--paper); box-shadow: var(--shadow-sheet); }
@media (min-width: 720px) { .gz-sheet { border-radius: var(--radius-sheet); box-shadow: var(--shadow-modal); } }
/* Glass behind sheets and dialogs: the page frosts to white instead of dimming */
.gz-dialog::backdrop { background: var(--frost); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
.gz-sheet__grab { display: grid; place-items: center; height: 24px; }
.gz-sheet__grab span { width: 36px; height: 4px; border-radius: 4px; background: var(--line-control); opacity: 0.45; }
.gz-sheet__head { display: flex; align-items: center; gap: 14px; padding: 4px 18px 16px; }
.gz-sheet__head img { width: 54px; height: 72px; object-fit: cover; border-radius: var(--radius-thumb); background: var(--wash); }
.gz-sheet__head .ph { border-radius: var(--radius-thumb); }
.gz-sheet__cat { margin: 0 0 6px; color: var(--muted); font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-sheet__name { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 24px/1.15 var(--font-display); }
.gz-sheet__body { padding: 20px 18px 24px; }
.gz-sheet__foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.gz-sheet__foot .gz-btn--primary { flex: 1; }
/* M2: the tapped photo flies into the sheet's header (a fixed image inside the full-viewport dialog) */
.gz-fly { position: fixed; z-index: 2; margin: 0; object-fit: cover; border-radius: var(--radius-photo); pointer-events: none; }

/* Toast (M4): the status pill, smoked glass at the foot of the screen while a payment is checked */
.gz-toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); min-height: var(--touch-min); padding: 6px 14px 6px 6px; border: 0; border-radius: var(--radius-pill); background: var(--smoke); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: var(--shadow-smoke); color: var(--on-gold); font: 400 13px/1.3 var(--font-ui); text-align: left; cursor: pointer; transform: translate(-50%, 180%); transition: transform var(--dur-slow) var(--ease-out); }
.gz-toast.is-shown { transform: translate(-50%, 0); }
.gz-toast b { font-weight: 500; }
.gz-toast__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: var(--radius-round); background: var(--gold); color: var(--on-gold); }
.gz-toast.is-ok .gz-toast__icon { background: var(--ok); }
.gz-toast__icon .i { width: 15px; height: 15px; }
.gz-toast__dots { display: flex; gap: 4px; margin-left: 4px; }
.gz-toast__dots i { width: 7px; height: 7px; border: 1px solid var(--on-gold); border-radius: 50%; }
.gz-toast__dots i.f { background: var(--on-gold); }
.gz-toast__dots i.g { border-color: var(--gold); background: var(--gold); }

/* Leaderboard rows (M5: rows glide to new places, the moved row glows soft gold) */
.gz-lb { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.gz-lb li { display: grid; grid-template-columns: 28px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); background: var(--paper); }
.gz-lb__rank { color: var(--muted); font: 300 20px/1 var(--font-ui); text-align: center; }
.gz-lb li:first-child .gz-lb__rank { color: var(--gold); }
.gz-lb img, .gz-lb .ph { width: 40px; height: 53px; object-fit: cover; border-radius: var(--radius-thumb); background: var(--wash); }
.gz-lb__name { font: 500 12px/1.35 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.gz-lb__name small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.gz-lb__votes { font: 300 20px/1 var(--font-ui); text-align: right; font-variant-numeric: tabular-nums; }
.gz-lb li.is-moved { animation: gz-row-glow 1.6s ease-out; }
@keyframes gz-row-glow { 0%, 45% { background: var(--gold-soft); } }

/* Upload */
.gz-drop { display: grid; justify-items: center; gap: 6px; padding: 30px 18px; border: 1px dashed var(--line-control); border-radius: var(--radius-control); background: var(--paper); color: var(--muted); font-size: 13.5px; text-align: center; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.gz-drop:hover, .gz-drop.over { background: var(--gold-soft); border-color: var(--gold); }
.gz-drop.invalid { border-color: var(--error); animation: gz-shake 0.4s var(--ease-pop); }
.gz-drop strong { color: var(--ink); font-weight: 500; font-size: 15px; }
.gz-drop__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: var(--radius-round); background: var(--wash); color: var(--ink); }
.gz-drop__icon .i { width: var(--icon-lg); height: var(--icon-lg); }
.gz-file { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); }
.gz-file__thumb { width: 48px; height: 64px; flex: none; overflow: hidden; border-radius: var(--radius-thumb); background: var(--wash); }
.gz-file__text { display: grid; flex: 1; min-width: 0; }
.gz-file__text strong { overflow: hidden; font-weight: 500; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.gz-file__text span { color: var(--ok); font-size: 12.5px; }
@keyframes gz-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Status timeline */
.gz-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.gz-timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; padding-bottom: 16px; }
.gz-timeline li:last-child { padding-bottom: 0; }
.gz-timeline li::after { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 2px; width: 1px; background: var(--line-control); }
.gz-timeline li:last-child::after { display: none; }
.gz-timeline .dot { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-control); border-radius: var(--radius-round); background: var(--paper); color: var(--faint); }
.gz-timeline .dot .i { width: 15px; height: 15px; }
.gz-timeline strong { font-weight: 500; font-size: 14.5px; }
.gz-timeline span { color: var(--muted); font-size: 12.5px; }
.gz-timeline .is-done .dot { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.gz-timeline .is-now .dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.gz-timeline .is-now span { color: var(--gold-deep); }

/* Success seal */
.gz-seal { display: block; width: 96px; margin: 0 auto; animation: gz-seal-in var(--dur-sheet) var(--ease-pop) both; }
.gz-seal svg { display: block; width: 96px; height: 96px; }
.gz-seal .face { fill: var(--gold); stroke: var(--gold); }
.gz-seal .ring { fill: none; stroke: var(--on-gold); stroke-opacity: 0.45; }
.gz-seal .check { fill: none; stroke: var(--on-gold); stroke-dasharray: 1; stroke-dashoffset: 1; animation: gz-draw var(--dur-sheet) var(--ease-out) 0.38s forwards; }
@keyframes gz-seal-in { from { opacity: 0; transform: translateY(40px) rotate(-80deg); filter: blur(10px); } }
@keyframes gz-draw { to { stroke-dashoffset: 0; } }

/* Step change inside the sheet */
@keyframes gz-step-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); filter: blur(2px); } }
@keyframes gz-step-out { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -12px)); filter: blur(2px); } }
@keyframes gz-sheet-in { from { transform: translateY(100%); } }
@keyframes gz-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gz *, .gz *::before, .gz *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .gz-seal .check, .gz-ticket__check .i { stroke-dashoffset: 0; }
  .gz-toast { transition: none; }
  .gz-lb li.is-moved { animation: none; }
}
