:root {
  --bg: #10221B;
  --bg-deep: #0B1813;
  --surface: #173027;
  --surface-2: #1E3C31;
  --line: rgba(246, 239, 227, 0.12);
  --cream: #F6EFE3;
  --muted: #A7B5AC;
  --red: #E23B4A;
  --red-press: #C42A39;
  --butter: #F2C14E;
  --pink: #F5A3B7;
  --ink: #16120F;
  --radius: 20px;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
  --tabs-h: 0px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(226, 59, 74, 0.18), transparent 60%),
    radial-gradient(900px 500px at -20% 0%, rgba(242, 193, 78, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--cream);
  font: 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
body.has-tabs { --tabs-h: 72px; }
button, input, select { font: inherit; color: inherit; }
/* Phone first: no 300 ms double-tap delay, no grey tap flash, no text
   selection on long-press of controls. */
button, a, label, .chip, .pub-row { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { -webkit-user-select: none; user-select: none; }
img, svg { max-width: 100%; }
a { color: var(--butter); }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--tabs-h) + 32px + env(safe-area-inset-bottom));
}
.stack { display: grid; gap: 16px; }
.stack-s { display: grid; gap: 8px; }
.row-flex { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.center { text-align: center; }
.hidden { display: none !important; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: var(--butter); font-size: 13px; box-shadow: inset 0 0 0 4px var(--bg); outline: 2px solid var(--red); }
.code-chip { margin-left: auto; font-family: var(--display); font-weight: 800; letter-spacing: 0.18em; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.back-link { background: none; border: 0; padding: 8px 0; color: var(--muted); cursor: pointer; }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  background: var(--surface-2); color: var(--cream);
  text-decoration: none; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:active { background: var(--red-press); }
.btn.butter { background: var(--butter); color: var(--ink); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: transparent; color: #FF7B85; box-shadow: inset 0 0 0 1.5px rgba(226, 59, 74, 0.55); margin-top: 12px; }
.btn.danger-solid { background: #C42A39; color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.icon-btn { appearance: none; border: 0; background: var(--surface-2); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 16px; flex: none; }
.icon-btn:disabled { opacity: 0.3; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; font-size: 14px; }

/* home */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(54px, 17vw, 88px); font-weight: 800; }
.hero h1 .twelve { color: var(--butter); display: block; font-size: 1.5em; line-height: 0.85; letter-spacing: -0.05em; }
.hero h1 .xmas { color: var(--red); }
.hero p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 32ch; }
.badge-fan { display: flex; justify-content: center; margin: 12px 0 8px; height: 120px; }
.badge-fan svg { width: 108px; height: 108px; margin: 0 -14px; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35)); animation: bob 5s ease-in-out infinite; }
.badge-fan svg:nth-child(1) { transform: rotate(-12deg) translateY(10px); animation-delay: -1s; }
.badge-fan svg:nth-child(2) { z-index: 1; animation-delay: -2.5s; }
.badge-fan svg:nth-child(3) { transform: rotate(12deg) translateY(10px); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -6px; } }

.join-box { display: flex; gap: 8px; }
.join-box input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.25em; font-family: var(--display); font-weight: 800; text-align: center; }
.how { display: grid; gap: 12px; counter-reset: how; }
.how li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.how li::before { counter-increment: how; content: counter(how); width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--butter); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.how b { color: var(--cream); font-weight: 600; }
ol.how { padding: 0; margin: 0; }

/* fields */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=search], input[type=date], select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  background: var(--bg-deep); border: 1.5px solid var(--line); outline: none;
  font-size: 17px;
}
/* iOS draws date fields as a centred, shrink-wrapped button; sit it like the text fields. */
input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
input:focus, select:focus { border-color: var(--butter); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 26px; }
.card h3 { font-size: 20px; }
.eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--butter); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 4px; }
.steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--surface-2); }
.steps span.on { background: var(--butter); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* pub picker */
.pub-list { display: grid; gap: 8px; }
.pub-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid transparent; cursor: pointer; }
.pub-row.on { border-color: var(--butter); background: var(--surface-2); }
.pub-row { min-height: 60px; }

/* pub name left, address (+ directions) right, one line */
.pub-line { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.pub-line .name { flex: 1 1 auto; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; margin: 0; }
.addr { flex: 0 1 auto; min-width: 0; max-width: 52%; display: flex; gap: 8px; justify-content: flex-end; font-size: 13px; color: var(--muted); white-space: nowrap; font-family: var(--text); font-weight: 500; letter-spacing: 0; }
.addr-text { overflow: hidden; text-overflow: ellipsis; }
.addr a { flex: none; font-weight: 600; }
.addr.stacked { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; max-width: 40%; }
.addr.stacked .addr-text { max-width: 100%; }
.pub-line h1.name { font-size: clamp(32px, 9vw, 44px); line-height: 1.02; }
.pub-line h3.name { font-size: 20px; }
.where .pub-line, .next-card .pub-line { align-items: flex-end; }

/* list / map switch */
.seg { display: inline-flex; flex: none; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--cream); color: var(--ink); }

.sticky-head { position: sticky; top: 0; z-index: 5; display: grid; gap: 10px; margin: 0 -16px; padding: 8px 16px 10px; background: var(--bg); }

/* map */
.map-box { position: relative; z-index: 0; isolation: isolate; height: min(64dvh, 580px); min-height: 320px; border-radius: 20px; overflow: hidden; background: #E9E5DC; }
.map-box .empty { color: #555; }
@media (max-width: 600px) { .map-box { margin: 0 -16px; border-radius: 0; } }
.pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); background: #F6EFE3; color: #16120F; border: 2.5px solid #16120F; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.pin.dot { transform: scale(0.55); background: #E23B4A; border-color: #fff; border-width: 4px; }
.pin.picked { background: #F2C14E; }
.pin.route { padding: 0; overflow: hidden; border-color: #fff; }
.pin.route span { width: 100%; height: 100%; display: grid; place-items: center; }
.pin.route.done { opacity: 0.55; }
.pin.route.now { border-color: #E23B4A; box-shadow: 0 0 0 0 rgba(226, 59, 74, 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgba(226, 59, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 59, 74, 0); } }
.leaflet-container { font: 14px/1.4 var(--text); }
.leaflet-popup-content-wrapper { border-radius: 16px; }
.leaflet-popup-content { margin: 14px 16px; }
.pop { display: grid; gap: 4px; color: #16120F; }
.pop b { font-family: var(--display); font-size: 17px; }
.pop span { color: #5d5a55; }
.pop .tiny { color: #B3122E; }
.pop .btn { margin-top: 8px; min-height: 40px; }
.pop .btn.ghost { color: #16120F; box-shadow: inset 0 0 0 1.5px #ccc; }
.pop a { color: #B3122E; font-weight: 600; margin-top: 4px; }
.map-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #fff; color: #16120F; display: grid; place-items: center; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); cursor: pointer; }
.map-btn.busy { color: #2F80ED; }
.leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.pub-row.on .check { background: var(--butter); border-color: var(--butter); }
.pub-row:disabled { opacity: 0.4; cursor: default; }

.sticky-foot { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 10px; align-items: center; }
.count-pill { font-family: var(--display); font-weight: 800; font-size: 18px; padding: 0 4px; white-space: nowrap; }

/* route editor + route tab */
.stop-list { display: grid; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); }
.stop-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.stop-row .name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; }
.stop-row .sub { font-size: 13px; color: var(--muted); }
.rule-pick { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.order-btns { display: grid; gap: 4px; }
.order-btns .icon-btn { width: 40px; height: 38px; font-size: 13px; border-radius: 12px; }
.stop-row.done { opacity: 0.65; }
.stop-row.now { outline: 2px solid var(--butter); }

.level { display: inline-flex; gap: 3px; }
.level i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.level i.on { background: var(--butter); }
.level.hot i.on { background: var(--red); }

/* crawl: now */
.progress { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 4px; }
.progress span { height: 6px; border-radius: 6px; background: var(--surface-2); }
.progress span.done { background: var(--butter); }
.progress span.now { background: var(--red); }
.where { display: grid; gap: 6px; }
.where h1 { font-size: clamp(34px, 10vw, 46px); }

.video-card { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.video-card .rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.video-card .rec::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.video-card h2 { font-size: 30px; }
.script { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; padding: 16px; border-radius: 16px; background: #EFE4D0; }
.script::before { content: '\201C'; color: var(--red); }
.script::after { content: '\201D'; color: var(--red); }
.video-card .btn.primary { margin-top: 2px; }

.rule-card {
  --c-bg: #0F3D2E; --c-ink: #F6EFE3; --c-acc: #F2C14E;
  background: var(--c-bg); color: var(--c-ink); border-radius: 28px; padding: 24px; display: grid; gap: 14px;
  position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.rule-card .rule-icon { width: 76px; height: 76px; }
.rule-card .eyebrow { color: var(--c-acc); }
.rule-card h2 { font-size: clamp(36px, 11vw, 50px); font-weight: 800; }
.rule-card .text { font-size: 19px; line-height: 1.4; font-weight: 500; }
.rule-card .forfeit { font-size: 15px; font-weight: 600; opacity: 0.85; border-top: 1px solid currentColor; padding-top: 12px; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.rule-card.reveal { animation: reveal 0.55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes reveal { from { transform: translateY(24px) scale(0.94) rotate(-1.5deg); opacity: 0; } }
.personal { background: color-mix(in srgb, var(--c-ink) 12%, transparent); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.personal b { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--c-acc); }
.secret { filter: blur(9px); transition: filter 0.2s; user-select: none; cursor: pointer; }
.secret.shown { filter: none; }
.stacked-rules { display: grid; gap: 8px; }
.stacked-rules div { background: color-mix(in srgb, var(--c-ink) 12%, transparent); border-radius: 14px; padding: 12px 14px; }
.stacked-rules b { font-family: var(--display); font-size: 18px; }

.timer { font-variant-numeric: tabular-nums; }

.checkin-card { display: grid; gap: 14px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; }
.who span.yes { background: var(--butter); color: var(--ink); }
.who span.yes::before { content: '✓ '; font-weight: 800; }
.earned { display: flex; gap: 16px; align-items: center; }
.earned svg { width: 88px; height: 88px; flex: none; }

.next-card { display: grid; gap: 12px; }

/* lobby */
.date-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.date-card.none { grid-template-columns: 1fr auto; }
.date-card .when { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.cal { width: 54px; border-radius: 12px; overflow: hidden; background: var(--cream); color: var(--ink); text-align: center; }
.cal span { display: block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 0 2px; }
.cal b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; padding: 6px 0 7px; }
.code-big { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 17vw, 76px); letter-spacing: 0.12em; text-align: center; line-height: 1; }
.qr { background: var(--cream); border-radius: 20px; padding: 14px; width: min(240px, 70vw); margin: 0 auto; aspect-ratio: 1; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }

/* badges */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.badge-cell { background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 6px; justify-items: center; text-align: center; }
.badge-cell svg { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.3)); transition: transform 0.15s; }
.badge-cell:active svg { transform: scale(0.95); }
.badge-cell .cap { font-size: 12px; color: var(--muted); line-height: 1.25; }
.badge-cell.locked svg { filter: none; opacity: 0.9; }
.badge-big { width: min(300px, 78vw); margin: 0 auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.4)); }
.badge-big svg { width: 100%; height: auto; display: block; }
.badge-big.pop { animation: pop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } }

/* crew */
.crew-list { display: grid; gap: 8px; }
.crew-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); flex: none; }
.crew-row .name { font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.you { background: var(--butter); color: var(--ink); }
.score { font-family: var(--display); font-weight: 800; font-size: 18px; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(11, 24, 19, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: 72px; }
.tabs a { display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--butter); }

/* sheets */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 20; animation: fade 0.2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); animation: up 0.28s cubic-bezier(.2, .9, .3, 1) both; }
.sheet-inner { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 6px; }
@keyframes up { from { transform: translateY(100%); } }
.rule-option { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid transparent; cursor: pointer; }
.rule-option.on { border-color: var(--butter); }
.rule-option.pickable { grid-template-columns: 48px 1fr auto; }
.rule-option.on .check { background: var(--butter); border-color: var(--butter); }
.rule-option:disabled { opacity: 0.4; cursor: default; }
.rule-option svg { width: 48px; height: 48px; }
.rule-option .t { font-family: var(--display); font-weight: 700; font-size: 17px; }
.rule-option .d { font-size: 13px; color: var(--muted); }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 30; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: drop linear forwards; }
@keyframes drop { to { transform: translateY(110vh) rotate(720deg); } }

.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.notice { background: var(--surface); border-left: 4px solid var(--butter); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print sheet ---------- */
.print-controls { display: grid; gap: 12px; }
.print-sheet { display: flex; flex-wrap: wrap; gap: 4mm; justify-content: flex-start; background: #fff; padding: 8mm; border-radius: 12px; }
.print-sheet .pb { flex: none; break-inside: avoid; }
.print-sheet .pb svg { display: block; }
@media screen { .print-sheet { zoom: 0.5; } }
@page { size: A4; margin: 8mm; }
@media print {
  body { background: #fff !important; color: #000; }
  .no-print, .tabs, #toast { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .print-sheet { zoom: 1; padding: 0; border-radius: 0; gap: 3mm; }
}
