:root {
  --paper: #F7F7FB;
  --lav: #ECEAFF;
  --card: #FFFFFF;
  --ink: #1C1745;
  --muted: #6B6890;
  --line: #DCDDEA;
  --pink: #F0386B;
  --pink-ink: #C71F52;
  --pink-soft: #FFE7EE;
  --sun: #FFC53D;
  --go: #17A673;
  --warn: #D98200;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.meta { color: var(--muted); font-size: .93rem; }

/* ---------- Header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(247, 247, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 64px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 9px; letter-spacing: -.02em; }
.logo-mark { width: 28px; height: 19px; background: var(--pink); border-radius: 4px;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 4.5px, #000 5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 4.5px, #000 5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 4.5px, #000 5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 4.5px, #000 5px) right / 51% 100% no-repeat; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a.link:hover { background: #fff; }
@media (max-width: 480px) { .nav .hide-sm { display: none; } .nav a.link { padding: 8px 6px; font-size: .9rem; } .logo { font-size: 1.2rem; } }
.tabs-inline { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs-inline button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs-inline button[aria-selected=true] { background: var(--pink-soft); color: var(--pink-ink); }
.site-foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .9rem; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--pink); background: var(--pink); color: #fff; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-pink { background: var(--pink); border-color: var(--pink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #D6D4E8; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--pink-ink); border-color: var(--pink-ink); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.textlink { background: none; border: 0; padding: 0; font: inherit; color: var(--pink-ink); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; margin: 5px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240, 56, 107, .22); }
textarea { min-height: 150px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 24px; }
.panel > h2 { font-size: 1.3rem; margin-bottom: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; margin: 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink); flex: none; }
.check small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.error { color: var(--pink-ink); font-weight: 600; font-size: .93rem; margin: 10px 0; }
.notice { padding: 12px 16px; border-radius: 12px; background: #FFF4D6; border: 1.5px solid var(--sun); margin-bottom: 16px; font-weight: 500; }
.cat { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-live { background: #DDF5EA; color: #0E7A52; }
.badge-draft { background: #E8E8F1; color: var(--muted); }
.badge-ended { background: #EDEDED; color: #666; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: 0 10px 30px rgba(28, 23, 69, .3); max-width: calc(100% - 32px); }
.toast.err { background: var(--pink-ink); }
.empty-state { text-align: center; padding: 44px 20px; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); }
.empty-state p { font-size: 1.05rem; }

/* ---------- Ticket stub (shared motif) ---------- */
.stub { position: relative; display: grid; grid-template-columns: 1fr 96px; border-radius: 18px; color: #fff; background: var(--pink); min-height: 150px; }
.stub::before, .stub::after { content: ""; position: absolute; right: 84px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.stub::before { top: -12px; }
.stub::after { bottom: -12px; }
.stub-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stub-side { border-left: 2px dashed rgba(255, 255, 255, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: .8rem; }
.stub-side b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.stub-title { font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.stub-meta { font-size: .9rem; opacity: .85; }
.stub .cat { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-art .two .cat { background: rgba(28, 23, 69, .1); color: var(--ink); }
.hero-art .two .stub-side { border-left-color: rgba(28, 23, 69, .3); }

/* ---------- Home ---------- */
.hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; height: 320px; }
.hero-art .stub { position: absolute; width: min(100%, 400px); }
.hero-art .one { top: 16px; left: 0; transform: rotate(-4deg); z-index: 2; animation: stubIn .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .two { top: 150px; right: 0; background: var(--sun); color: var(--ink); transform: rotate(3deg); animation: stubIn .7s .14s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stubIn { from { opacity: 0; transform: translateY(28px) rotate(0deg); } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { height: 300px; } }

.section { padding: 44px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip { font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.chip[aria-pressed=true] { background: var(--pink); color: #fff; border-color: var(--pink); }

.ev-list { display: grid; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 92px 1fr 140px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; overflow: hidden; }
.ev-row:hover { border-color: var(--ink); }
.ev-date { background: var(--pink-soft); color: var(--pink-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; border-right: 2px dashed #fff; line-height: 1.2; }
.ev-date .d { font-family: var(--display); font-size: 2.1rem; font-weight: 800; line-height: 1; margin: 2px 0; }
.ev-date .w, .ev-date .m { font-size: .8rem; opacity: .8; }
.ev-body { padding: 14px 18px; min-width: 0; }
.ev-body h3 { margin: 6px 0 4px; font-size: 1.25rem; }
.ev-thumb { background: var(--pink-soft) center / cover no-repeat; }
@media (max-width: 620px) { .ev-row { grid-template-columns: 80px 1fr; } .ev-thumb { display: none; } }

.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.5rem; color: var(--pink); line-height: 1; display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; padding-top: 48px; padding-bottom: 64px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28, 23, 69, .12); }
.msg { margin: 14px 0 0; font-weight: 600; }
.msg.err { color: var(--pink-ink); }

/* ---------- App pages ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 30px 0 22px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0; }
.back { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }
.back:hover { color: var(--ink); }

.dash-list { display: grid; gap: 14px; }
.dash-ev { display: grid; grid-template-columns: 92px 1fr; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.dash-body { padding: 16px 18px; min-width: 0; }
.dash-body h3 { margin: 8px 0 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.counts { margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.counts b { font-family: var(--display); font-size: 1.3rem; margin-right: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.form-grid { display: grid; gap: 20px; }
.banner-preview { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--lav); margin-bottom: 12px; max-width: 520px; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tt-row { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 12px; background: #FCFCFE; }
.tt-fields { display: grid; grid-template-columns: 1fr 150px; gap: 0 12px; }
.tt-fields .full { grid-column: 1 / -1; }
.tt-row > .btn { margin-bottom: 14px; }
@media (max-width: 520px) { .tt-fields { grid-template-columns: 1fr; } }
.toggles { display: grid; gap: 16px; }
.save-bar { position: sticky; bottom: 0; background: rgba(247, 247, 251, .96); backdrop-filter: blur(6px); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; z-index: 5; }

/* ---------- Public event page ---------- */
.ev-hero { border-radius: 22px; overflow: hidden; background: var(--lav); aspect-ratio: 16 / 9; max-height: 480px; width: 100%; margin-top: 22px; }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-hero.poster { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 5vw, 48px); color: var(--ink); aspect-ratio: auto; min-height: 240px;
  background: radial-gradient(circle at 85% 20%, var(--pink) 0 18%, transparent 18.5%), radial-gradient(circle at 70% 85%, var(--sun) 0 9%, transparent 9.5%), var(--lav); }
.ev-hero.poster span { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 4.4rem); line-height: .95; letter-spacing: -.03em; max-width: 12em; }
.ev-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; margin: 28px 0 20px; align-items: start; }
@media (max-width: 880px) { .ev-layout { grid-template-columns: 1fr; } }
.ev-title-row { display: flex; gap: 18px; align-items: flex-start; }
.ev-title-row h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.date-block { flex: none; width: 76px; text-align: center; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; }
.date-block .m { display: block; background: var(--pink); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 0; }
.date-block .d { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.15; }
.date-block .w { display: block; font-size: .8rem; color: var(--muted); padding-bottom: 5px; }
.facts { display: grid; gap: 10px; margin: 18px 0 26px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { flex: none; margin-top: 3px; color: var(--pink-ink); }
.desc { white-space: pre-wrap; max-width: 65ch; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.reg-box { position: sticky; top: 84px; }
.reg-box h2 { font-size: 1.4rem; }
.tt-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-weight: 400; }
.tt-option input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.tt-option:has(input:checked) { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); background: #FFF8FA; }
.tt-option.full { opacity: .5; cursor: not-allowed; }
.tt-option strong { display: block; }
.left { font-size: .85rem; color: var(--muted); }

/* ---------- Ticket page ---------- */
.ticket { max-width: 400px; margin: 32px auto 20px; background: #fff; border-radius: 22px; position: relative; box-shadow: 0 1px 0 var(--line); }
.ticket-top { background: var(--pink); color: #fff; padding: 24px; border-radius: 22px 22px 0 0; }
.ticket-top h1 { font-size: 1.9rem; margin: 10px 0 6px; }
.ticket-top .stub-meta { display: block; }
.ticket-perf { position: relative; border-top: 2px dashed var(--line); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.ticket-perf::before { left: -30px; }
.ticket-perf::after { right: -30px; }
.ticket-body { padding: 22px 24px 26px; text-align: center; }
.ticket-body .who { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin: 0; }
#qr { display: flex; justify-content: center; margin: 18px 0 10px; }
#qr img, #qr canvas { width: 200px; height: 200px; }
#qr svg { width: 100%; height: auto; display: block; }
.code { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .12em; }
.stamp { display: inline-block; border: 3px solid var(--go); color: var(--go); font-family: var(--display); font-weight: 800; font-size: 1.2rem; padding: 4px 14px; border-radius: 10px; transform: rotate(-6deg); margin-top: 10px; }
.ticket-actions { max-width: 400px; margin: 0 auto 40px; display: grid; gap: 10px; }

/* ---------- Attendees ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 700; color: var(--muted); font-size: .84rem; background: #FAFAFD; }
tr:last-child td { border-bottom: 0; }
td.mono { font-variant-numeric: tabular-nums; letter-spacing: .06em; font-weight: 600; }
.in { color: #0E7A52; font-weight: 700; }

/* ---------- Check-in ---------- */
#reader { scroll-margin-top: 80px; width: 100%; border-radius: 18px; overflow: hidden; background: #000; margin-bottom: 12px; }
#reader video { width: 100% !important; height: auto !important; display: block; object-fit: cover; }
#reader img[alt="Info icon"], #reader img[alt="Camera based scan"] { display: none; }
.scan-result { border-radius: 18px; padding: 22px; color: #fff; text-align: center; margin: 16px 0; }
.scan-result b { font-family: var(--display); font-size: 1.9rem; display: block; line-height: 1.1; margin-bottom: 4px; }
.scan-result.ok { background: var(--go); }
.scan-result.already { background: var(--warn); }
.scan-result.bad { background: var(--pink-ink); }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; text-transform: uppercase; letter-spacing: .1em; }

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


/* ---------- Role choice (sign up) ---------- */
.role-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.role-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; font-weight: 400; margin: 0; background: #fff; }
.role-card input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.role-card strong { display: block; font-size: 1rem; }
.role-card span span { color: var(--muted); font-size: .88rem; }
.role-card:has(input:checked) { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); background: #FFF8FA; }

/* ---------- Organiser area ---------- */
.org-bar { background: var(--lav); border-bottom: 1px solid #DAD6FB; }
.org-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; min-height: 44px; font-size: .92rem; }
.org-bar strong { font-family: var(--display); font-weight: 700; color: #4B36C7; }
.org-bar a { text-decoration: none; font-weight: 600; color: var(--muted); padding: 4px 0; }
.org-bar a[aria-current=page] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }

/* ---------- Guest area ---------- */
.guest-hero { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; margin: 24px 0 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.guest-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.6rem); }

/* ---------- Ticket picture preview ---------- */
.ticket-img-preview { max-width: 360px; margin: 0 auto; border-radius: 16px; box-shadow: 0 10px 40px rgba(28, 23, 69, .15); }
.email-status { max-width: 400px; margin: 0 auto 12px; text-align: center; font-weight: 600; font-size: .95rem; }
.email-status.ok { color: #0E7A52; }

/* ---------- Print tickets page ---------- */
.design-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.design-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0; background: #fff; }
.design-card input { position: absolute; opacity: 0; pointer-events: none; }
.design-card strong { display: block; }
.design-card span { color: var(--muted); font-size: .86rem; }
.design-card:has(input:checked) { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); background: #FFF8FA; }
.design-card:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink); }
.swatches input[type=color] { width: 44px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.preview-stage { background: var(--lav); border-radius: 18px; padding: 24px; display: flex; justify-content: center; overflow-x: auto; }
.preview-stage .sheet-cell { width: 97mm; height: 70mm; flex: none; background: #fff; }
.batch { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.batch:last-child { border-bottom: 0; }

/* Printed ticket designs (sizes in mm so they print true to size) */
.sheet-page { width: 210mm; height: 297mm; padding: 8mm; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); background: #fff; break-after: page; page-break-after: always; }
.sheet-page:last-child { break-after: auto; page-break-after: auto; }
.sheet-cell { padding: 2mm; border: .25mm dashed #B9B7CC; overflow: hidden; }
.pt { width: 100%; height: 100%; display: flex; border-radius: 3mm; overflow: hidden; font-family: var(--body); color: #1C1745; font-size: 3mm; line-height: 1.3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.2mm; padding: 3.5mm; }
.pt-type { align-self: flex-start; font-weight: 700; font-size: 2.5mm; padding: .5mm 2mm; border-radius: 5mm; }
.pt-title { font-family: var(--display); font-weight: 800; font-size: 5mm; line-height: 1.02; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-meta { font-size: 2.6mm; }
.pt-price { margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 5mm; }
.pt-admit { margin-top: auto; font-size: 2.4mm; font-weight: 600; opacity: .8; }
.pt-side { width: 29mm; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8mm; padding: 2mm; background: #fff; }
.pt-qr svg { width: 23mm; height: 23mm; display: block; }
.pt-no { font-family: var(--display); font-weight: 800; font-size: 3.4mm; }
.pt-code { font-size: 2.3mm; font-weight: 700; letter-spacing: .12em; }

.pt-stub .pt-info { background: var(--acc); color: var(--on); }
.pt-stub .pt-type { background: rgba(255, 255, 255, .25); }
.pt-stub .pt-side { border: .4mm solid var(--acc); border-left: .6mm dashed var(--acc); border-radius: 0 3mm 3mm 0; }

.pt-poster { flex-direction: column; background: #fff; border: .4mm solid #DCDDEA; }
.pt-band { height: 22mm; flex: none; background: var(--acc) center / cover no-repeat; color: var(--on); display: flex; align-items: flex-end; padding: 2.5mm 3.5mm; }
.pt-poster.has-img .pt-band { color: #fff; }
.pt-poster .pt-title { font-size: 4.6mm; -webkit-line-clamp: 2; }
.pt-body { flex: 1; display: flex; min-height: 0; }
.pt-poster .pt-info { padding: 2.5mm 3.5mm; }
.pt-poster .pt-type { background: var(--acc); color: var(--on); }
.pt-poster .pt-side { width: 27mm; }
.pt-poster .pt-qr svg { width: 20mm; height: 20mm; }

.pt-classic { background: #fff; border: .5mm solid #1C1745; border-top: 2mm solid var(--acc); }
.pt-classic .pt-type { border: .3mm solid #1C1745; }
.pt-classic .pt-side { border-left: .4mm dashed #1C1745; }

#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; display: block; }
  body.print-sheets > *:not(#print-root) { display: none !important; }
  body.print-sheets #print-root { display: block; }
  body.print-ticket > *:not(main) { display: none !important; }
  body.print-ticket .ticket-actions, body.print-ticket .email-status, body.print-ticket .back { display: none !important; }
}

/* ---------- Admin ---------- */
.admin-bar { background: #1C1745; color: #fff; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 44px; font-size: .92rem; }
.admin-bar strong { font-family: var(--display); font-weight: 700; }
.admin-bar .meta { color: #C9C6E8; }
.badge-hidden { background: #FFE1E1; color: #B42318; }
.badge-featured { background: #FFF1C7; color: #8A5A00; }
.verified-tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #2F6BFF; color: #fff; font-size: .7rem; font-weight: 800; vertical-align: 1px; }
.verified-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #2F6BFF; font-size: .88rem; margin-left: 6px; }
