/* Fraunces, the landing page's display face, for the headings everywhere. */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6b6159;
  --line: #e4d9c9;
  --red: #b3261e;
  --red-ink: #ffffff;
  --green: #1f5135;
  --gold: #c9a227;
  --error: #b3261e;
  --focus: #1f5135;
  --radius: 10px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #221c17;
    --ink: #f3ece2;
    --muted: #b5a99b;
    --line: #3a3129;
    --red: #e0574d;
    --red-ink: #17130f;
    --green: #7cc29a;
    --error: #ff8a80;
    --focus: #7cc29a;
  }
}

* { box-sizing: border-box; }

/* Same-site page changes cross-fade where the browser supports it. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}

main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }

h1, h2 { font-family: var(--serif); line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0.2em 0 0.4em; }
h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }

a { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* A knitted band: two rows of offset diamonds, the classic Fair Isle border. */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 28px 16px 24px; max-width: 720px; margin: 0 auto;
  background-image: repeating-linear-gradient(45deg, var(--red) 0 5px, transparent 5px 10px),
                    repeating-linear-gradient(-45deg, var(--green) 0 5px, transparent 5px 10px);
  background-size: calc(100% - 32px) 10px;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.wordmark { font: 700 1.6rem var(--serif); color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--red); }
.wordmark small { font: 600 0.8rem var(--sans); color: var(--muted); letter-spacing: 0.04em; margin-left: 4px; }
/* Ringel: a striped Ringelpulli band instead of the Fair Isle diamonds. */
.site-ringel .site-header { background-image: repeating-linear-gradient(90deg, var(--red) 0 14px, var(--green) 14px 28px); background-size: calc(100% - 32px) 6px; }
.season-tag { font-size: 0.85rem; color: var(--muted); }

.site-footer { display: flex; gap: 20px; justify-content: center; padding: 24px 16px 40px; font-size: 0.9rem; }

.hero { padding: 24px 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.15rem; }
.small, .hint { font-size: 0.88rem; color: var(--muted); }

.button {
  display: inline-block; background: var(--red); color: var(--red-ink); border: 0; border-radius: 999px;
  padding: 12px 24px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.6em; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 12px; margin-top: 24px; }
.feature h2 { margin-top: 0.8em; font-size: 1.35rem; }

form label { display: block; margin: 14px 0 4px; font-weight: 600; }
form .hint { font-weight: 400; }
input:not([type=checkbox], [type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
}
[aria-invalid="true"] { border-color: var(--error) !important; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset.kind label { display: inline-flex; gap: 8px; margin-right: 20px; font-weight: 400; }
legend { font-weight: 600; margin-top: 8px; }
.error { display: block; color: var(--error); font-size: 0.9rem; }
.alert { border-left: 4px solid var(--error); padding: 8px 12px; background: var(--surface); }
.notice { border-left: 4px solid var(--green); padding: 8px 12px; background: var(--surface); }
form .button { margin-top: 22px; }

.code-row { display: flex; gap: 8px; margin-top: 6px; }
.code-row input { margin-top: 0 !important; text-transform: uppercase; letter-spacing: 0.15em; font-family: ui-monospace, Menlo, monospace; }
.code-row .button { margin-top: 0; flex: none; }

/* Company sign-ups do not pick a size: hide those fields without JavaScript. */
.signup:has(#kind-company:checked) .person-only { display: none; }

/* Honeypot: off screen for people, still in the form for bots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

.passport { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding-top: 24px; }
.sweater-photo { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.sweater-photo.placeholder { background: repeating-linear-gradient(45deg, var(--red) 0 10px, var(--green) 10px 20px); opacity: 0.35; }
.passport h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.meta { margin: 2px 0; color: var(--muted); }
@media (max-width: 520px) { .passport { grid-template-columns: 1fr; } }

.stamps { list-style: none; padding: 0; }
.stamp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.stamp-head { margin: 0; font-weight: 600; }
.stamp-no { color: var(--red); font-family: var(--serif); margin-right: 6px; }
.stamp time { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.story { font-family: var(--serif); font-size: 1.1rem; margin: 8px 0 4px; }
.wearer { margin: 0; color: var(--muted); font-size: 0.92rem; }
.stamp img { display: block; max-width: 100%; border-radius: 8px; margin-top: 10px; }
.empty { color: var(--muted); }
.stamp-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; margin-top: 24px; }
.stamp-form h2 { margin-top: 0.8em; }

.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* Languages: the DE · EN switch in the header and the one-line hint for another language. */
.header-end { display: flex; align-items: center; gap: 14px; }
.header-link { font-size: 0.9rem; white-space: nowrap; color: var(--ink); }
.my-link { max-width: 26rem; }
@media (max-width: 430px) { .header-link ~ .season-tag { display: none; } }
.lang-switch { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.lang-switch a, .lang-switch button { color: var(--muted); text-decoration: none; font: inherit; background: none; border: 0; padding: 4px 4px; cursor: pointer; min-width: 24px; min-height: 24px; }
.lang-switch [aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* PWA: shown by app.js while offline, above the cached copy of a page. */
.offline-note { display: none; border-left: 4px solid var(--gold); padding: 8px 12px; background: var(--surface); margin-top: 16px; }
.is-offline .offline-note { display: block; }
.is-offline form button[type=submit] { opacity: 0.5; pointer-events: none; }
.app-box [hidden] { display: none; }
.app-box h3 { font-size: 1.05rem; margin-bottom: 0; }

/* ReYule and Ringel */
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions .button, .inline-form .button { margin-top: 0; }
.inline-form { display: inline-block; margin: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.big-code { margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
/* The photo viewer: shown by CSS :target when a card's photo link is followed. */
.viewer { display: none; position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.97); color: #fff; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.viewer:target { display: grid; }
body:has(.viewer:target) { overflow: hidden; }
.viewer figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.viewer img { width: min(100%, calc(100dvh - 150px)); aspect-ratio: 1; object-fit: contain; }
.viewer figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; text-align: center; font-size: 0.95rem; }
.viewer a { color: #fff; }
.viewer-arrow, .viewer-close { display: grid; place-items: center; min-width: 48px; min-height: 48px; font-size: 2.4rem; line-height: 1; text-decoration: none; }
.viewer-close { position: absolute; top: 8px; right: 8px; }
.card { scroll-margin-top: 16px; }
.card-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1c1408; font-size: 0.75rem; font-weight: 700; }
.card-photo { display: block; aspect-ratio: 1; background: var(--line); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 10px 14px 12px; }
.card-body h3 { font: 600 1.05rem var(--serif); margin: 0 0 2px; }
.card-body p { margin: 2px 0; }
.card:has(.pick input:checked) { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.closet-item { padding-bottom: 16px; scroll-margin-top: 16px; }
.closet-item + .closet-item { border-top: 1px solid var(--line); }
.add-sweater summary { font-size: 1.05rem; }
.card .report { border: 0; padding: 6px 0 0; font-size: 0.85rem; }
.card .report summary { font-weight: 400; color: var(--muted); }
.card .report textarea { width: 100%; }
/* "Würde ich tragen": a pill with an empty heart. Ticked, it fills red, pops and says "Den will
   ich!". The checkbox stays a real one for keyboards and screen readers, just out of sight. */
label.pick {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 2px; padding: 6px 14px 6px 11px;
  border: 2px dashed var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
label.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
label.pick::before { content: '\2661'; content: '\2661' / ''; font-size: 1.2em; line-height: 1; color: var(--red); }
label.pick .pick-on { display: none; }
label.pick:hover { border-color: var(--red); }
label.pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
label.pick:has(input:checked) { background: var(--red); border: 2px solid var(--red); color: var(--red-ink); animation: pick-pop 0.35s ease-out; }
label.pick:has(input:checked)::before { content: '\2665'; content: '\2665' / ''; color: var(--red-ink); }
label.pick:has(input:checked) .pick-off { display: none; }
label.pick:has(input:checked) .pick-on { display: inline; }
@keyframes pick-pop { 45% { transform: scale(1.12) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { label.pick:has(input:checked) { animation: none; } }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; margin-top: 24px; }
.group h2 { margin-top: 0.8em; }
.incoming { max-width: 260px; }
.incoming h3 { font-size: 1rem; }
.ring { padding-left: 1.3em; }
.ring li.me { font-weight: 600; }
.chat { margin-top: 20px; border-top: 1px solid var(--line); }
.messages { list-style: none; padding: 0; margin: 8px 0; }
.messages li { padding: 6px 10px; border-radius: 8px; background: var(--bg); margin-bottom: 6px; max-width: 85%; }
.messages li.mine { margin-left: auto; background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.messages .who { font-weight: 600; margin-right: 4px; }
.messages time { display: block; }
.report { margin-top: 16px; }
.mine .passport { padding-top: 8px; }
.alert p { margin: 4px 0 10px; }
tr.pending td { background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* ---- The fun bits. All CSS; everything that moves stands still for prefers-reduced-motion. ---- */

/* Under the greeting: how many pairings are left, and Ugly Christmas Sweater Day. */
.season-left {
  display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: color-mix(in srgb, var(--gold) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line));
}
.sweater-day {
  margin: 4px 0 12px; padding: 14px 16px 22px; border-radius: var(--radius); border: 2px solid var(--red); background-color: var(--surface);
  background-image: repeating-linear-gradient(45deg, var(--red) 0 5px, transparent 5px 10px), repeating-linear-gradient(-45deg, var(--green) 0 5px, transparent 5px 10px);
  background-size: 100% 10px; background-position: bottom; background-repeat: no-repeat;
  animation: day-bob 3s ease-in-out infinite;
}
@keyframes day-bob { 50% { transform: rotate(-0.6deg) translateY(-2px); } }

/* A pair's date as a ticket, with a notch on each side and a countdown chip. */
.ticket {
  display: grid; gap: 2px; margin: 0 0 16px; padding: 12px 26px;
  background: color-mix(in srgb, var(--red) 10%, var(--surface)); border: 1.5px dashed color-mix(in srgb, var(--red) 55%, var(--line)); border-radius: 12px;
  mask: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket-kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ticket-names { font: 600 1.35rem/1.2 var(--serif); }
.ticket-when { font-size: 0.92rem; color: var(--muted); }
.chip { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--red); color: var(--red-ink); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

/* The code as a paper luggage tag, like the printed ones. */
.code-tag {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; padding: 10px 18px 10px 34px;
  background: #fffaf0; color: #1f1a17; border: 1.5px dashed #b8a98f; border-radius: 6px 14px 14px 6px;
  transform: rotate(-2deg); box-shadow: 0 6px 14px -10px rgb(0 0 0 / 0.5);
}
.code-tag::before { content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; translate: 0 -50%; border-radius: 50%; background: var(--bg); border: 1.5px solid #b8a98f; }
.code-tag span { font: 700 0.7rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #8a7b66; }
.code-tag b { font: 700 1.7rem ui-monospace, Menlo, monospace; letter-spacing: 0.15em; }

/* A wrong code shakes the field. */
.shake { animation: shake 0.4s ease-in-out 2; border-color: var(--error) !important; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

/* Swapped: the new sweater in front, the old one fading out. Fresh from the last code, they
   trade places and a few bits of yarn fly. */
.celebrate { margin: 4px 0 12px; text-align: center; }
.celebrate-pair { position: relative; height: 176px; max-width: 320px; margin: 0 auto; }
.celebrate-pair img {
  position: absolute; top: 12px; width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 14px;
  border: 4px solid var(--surface); background: var(--line); box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.55);
}
.celebrate-pair .celebrate-out { left: 4%; top: 40px; width: 104px; opacity: 0.55; rotate: -8deg; filter: grayscale(0.5); }
.celebrate-pair .celebrate-in { right: 4%; rotate: 5deg; z-index: 1; }
.celebrate-pair::after {
  content: ''; position: absolute; inset: -16% -8%; z-index: 2; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 18% 40%, var(--gold) 0 4px, transparent 5px), radial-gradient(circle at 82% 30%, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 12%, var(--green) 0 4px, transparent 5px), radial-gradient(circle at 64% 8%, var(--gold) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 34%, var(--red) 0 3px, transparent 4px), radial-gradient(circle at 90% 70%, var(--green) 0 4px, transparent 5px),
    radial-gradient(circle at 8% 78%, var(--red) 0 3px, transparent 4px);
}
.celebrate.fresh .celebrate-in { animation: cel-in 1.1s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
.celebrate.fresh .celebrate-out { animation: cel-out 1.1s ease-in-out both; }
.celebrate.fresh .celebrate-pair::after { animation: cel-burst 1s ease-out 0.8s both; }
@keyframes cel-in { from { translate: -110% 24px; rotate: -10deg; scale: 0.75; } 50% { translate: -55% -28px; } }
@keyframes cel-out { from { translate: 150% -28px; rotate: 6deg; scale: 1.3; opacity: 1; filter: none; } 50% { translate: 75% 30px; } }
@keyframes cel-burst { 0% { opacity: 0; transform: scale(0.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3) translateY(-18px); } }

/* Blind date: the sweater comes gift-wrapped, with a bow and a "?" tag. */
.card-photo.surprise {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle 11px at 50% 50%, color-mix(in srgb, var(--gold) 80%, #000) 0 10px, transparent 11px),
    linear-gradient(90deg, transparent calc(50% - 9px), var(--gold) calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px)),
    linear-gradient(0deg, transparent calc(50% - 9px), var(--gold) calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px)),
    repeating-linear-gradient(45deg, var(--red) 0 12px, color-mix(in srgb, var(--red) 78%, #000) 12px 24px);
}
.card-photo.surprise::before, .card-photo.surprise::after {
  content: ''; position: absolute; top: calc(50% - 30px); width: 30px; height: 24px;
  border: 6px solid color-mix(in srgb, var(--gold) 85%, #000); border-radius: 60% 60% 40% 40%; background: var(--gold);
}
.card-photo.surprise::before { right: 50%; rotate: -38deg; transform-origin: 100% 100%; }
.card-photo.surprise::after { left: 50%; rotate: 38deg; transform-origin: 0 100%; }
.card-photo.surprise span {
  position: absolute; right: 12%; bottom: 12%; padding: 2px 14px; border-radius: 4px; rotate: 8deg;
  background: #fffaf0; color: #b3261e; font: 700 1.7rem var(--serif); box-shadow: 0 6px 12px -8px rgb(0 0 0 / 0.6);
}
.card:hover .card-photo.surprise { animation: gift-wiggle 0.6s ease-in-out; }
@keyframes gift-wiggle { 25% { rotate: -2deg; } 75% { rotate: 2deg; } }

/* Gallery: a ticked card lifts and tilts, and a line below counts the ticks. */
.cards .card { transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.2s, box-shadow 0.2s; }
.cards .card:has(.pick input:checked) { transform: translateY(-3px) rotate(-1deg); }
.cards .card:nth-child(even):has(.pick input:checked) { transform: translateY(-3px) rotate(1deg); }
.gallery-form { counter-reset: picks; }
.gallery-form .card:has(.pick input:checked) { counter-increment: picks; }
.pick-count { margin: 16px 0 0; }
.pick-count-n::before { content: counter(picks); font-weight: 700; color: var(--red); }
.pick-count-some { display: none; }
.gallery-form:has(.pick input:checked) .pick-count-none { display: none; }
.gallery-form:has(.pick input:checked) .pick-count-some { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .sweater-day, .shake, .card:hover .card-photo.surprise,
  .celebrate.fresh .celebrate-in, .celebrate.fresh .celebrate-out, .celebrate.fresh .celebrate-pair::after { animation: none; }
  .cards .card { transition: none; }
}

/* Admin */
.admin main { max-width: 1200px; }
.admin h1 { font-size: 2rem; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; align-items: end; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.muted { opacity: 0.5; }
form.inline { display: flex; gap: 6px; align-items: center; }
form.inline select { margin: 0; padding: 4px 6px; width: auto; max-width: 240px; }
form.inline button { padding: 4px 10px; }

/* Tag sheet: real sizes in millimetres, so print at 100%. */
.print-sheet main { max-width: 210mm; }
.sheet { display: grid; gap: 0; margin: 8mm 0; color: #000; background: #fff; }
.passport-tags { grid-template-columns: repeat(2, 85.6mm); }
.tag {
  position: relative; width: 85.6mm; height: 54mm; display: flex; gap: 4mm; align-items: center;
  padding: 5mm; border: 0.2mm dashed #999; break-inside: avoid;
}
.tag .qr { width: 38mm; height: 38mm; flex: none; }
.tag .qr svg, .label .qr svg { width: 100%; height: 100%; display: block; }
.tag-text { display: flex; flex-direction: column; gap: 1.5mm; font: 9pt/1.25 var(--sans); }
.tag-brand { font: 700 11pt var(--serif); }
.tag-brand b { color: #b3261e; }
.tag-name { font: 600 10pt var(--serif); }
.tag-code { font: 7pt ui-monospace, Menlo, monospace; word-break: break-all; }
.tag-code b { font-size: 11pt; letter-spacing: 0.1em; }
.punch { position: absolute; top: 3mm; right: 3mm; width: 3mm; height: 3mm; border: 0.2mm solid #999; border-radius: 50%; }
.backup-labels { grid-template-columns: repeat(6, 30mm); break-before: page; }
.label { width: 30mm; height: 34mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1mm; border: 0.2mm dashed #ccc; font: 7pt ui-monospace, Menlo, monospace; }
.label .qr { width: 22mm; height: 22mm; }

@page { size: A4; margin: 10mm; }
@media print {
  body { background: #fff; }
  .screen-only { display: none; }
  .sheet { margin: 0; }
}
