/* EMKE Jegyfoglaló – a műsorfüzet-stílusú EMKE Maros arculat folytatása.
   Papírszín alap, majolikazöld kiemelés, Gloock display + Hanken Grotesk szöveg + IBM Plex Mono címkék. */
:root {
  --paper: #eef1ec;
  --paper-2: #e3e8e2;
  --card: #f8faf7;
  --ink: #13201d;
  --muted: #4f5d58;
  --rule: rgba(19, 32, 29, 0.16);
  --majolika: #1d5a4b;
  --majolika-ink: #f2f5f1;
  --arany: #8c6516;
  --eozin: #7b2d4f;
  --deep: #0f2823;
  --on-deep: #ecf1ec;
  --on-deep-muted: #a9bcb5;
  --ok: #1f6b45;
  --ok-bg: #dcefe3;
  --warn: #8a5a00;
  --warn-bg: #f6ead0;
  --bad: #9b2c2c;
  --bad-bg: #f6dede;
  --focus: #c9973a;

  --f-display: 'Gloock', 'Bodoni 72', Didot, Georgia, serif;
  --f-body: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --s-xs: 0.8125rem;
  --s-sm: 0.9375rem;
  --s-md: 1.0625rem;
  --s-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --s-xl: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --s-xxl: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1715; --paper-2: #141e1b; --card: #17221f; --ink: #e5ebe6; --muted: #9eaca7; --rule: rgba(229,235,230,0.14);
    --majolika: #73b9a3; --majolika-ink: #0d1513; --arany: #dcb262; --eozin: #d38aa9;
    --deep: #0a1210; --on-deep: #e9efea; --on-deep-muted: #9fb3ac;
    --ok: #8fd4ad; --ok-bg: #16301f; --warn: #e6c174; --warn-bg: #33280f; --bad: #f0a3a3; --bad-bg: #3a1a1a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-md)/1.6 var(--f-body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.narrow { max-width: 760px; }
.eyebrow { font: 500 var(--s-xs)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--arany); margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-logo { width: 38px; height: 38px; display: block; color: var(--ink); flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-text { font: 500 0.72rem/1.25 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.lang a { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; text-decoration: none; min-width: 36px; min-height: 32px; display: grid; place-items: center; border-radius: 999px; }
.lang a:hover { background: var(--paper-2); }
.lang a.is-on { background: var(--ink); color: var(--paper); }

/* Footer */
.site-footer { margin-top: 64px; background: var(--deep); color: var(--on-deep-muted); font-size: var(--s-sm); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-links a { color: var(--on-deep); }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 var(--s-sm)/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--majolika); color: var(--majolika-ink); }
.btn-ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 0.9rem; font-size: var(--s-xs); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; }

.field { display: grid; gap: 0.35rem; }
.field label, .label { font-weight: 600; font-size: var(--s-sm); }
.field .hint { font-size: var(--s-xs); color: var(--muted); }
.field .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--majolika); box-shadow: 0 0 0 3px color-mix(in srgb, var(--majolika) 25%, transparent); }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: var(--s-xs); font-weight: 600; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start; font-size: var(--s-sm); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--majolika); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: 999px; overflow: hidden; background: var(--card); width: max-content; }
.qty button { width: 48px; border: 0; background: transparent; color: var(--ink); font: 600 1.3rem/1 var(--f-body); cursor: pointer; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 56px; min-height: 48px; border: 0; border-radius: 0; text-align: center; background: transparent; padding: 0; font-weight: 700; -moz-appearance: textfield; box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.flash { margin-top: 20px; padding: 0.85rem 1rem; border-radius: 8px; font-weight: 600; font-size: var(--s-sm); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.notice { padding: 1rem 1.1rem; border-radius: 8px; font-size: var(--s-sm); }
.notice-error { background: var(--bad-bg); color: var(--bad); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-info { background: var(--paper-2); color: var(--ink); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 var(--s-xs)/1 var(--f-mono); padding: 0.45rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-open { background: var(--ok-bg); color: var(--ok); }
.badge-few { background: var(--warn-bg); color: var(--warn); }
.badge-waitlist, .badge-full { background: var(--bad-bg); color: var(--bad); }
.badge-not_open, .badge-closed, .badge-past, .badge-draft { background: var(--paper-2); color: var(--muted); }
.badge-confirmed { background: var(--ok-bg); color: var(--ok); }
.badge-waitlisted { background: var(--warn-bg); color: var(--warn); }
.badge-cancelled { background: var(--paper-2); color: var(--muted); }

/* Public: list */
.intro { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.intro h1 { font: 400 var(--s-xxl)/1 var(--f-display); letter-spacing: -0.015em; max-width: 16ch; }
.intro .lede { margin-top: 1rem; font-size: var(--s-lg); line-height: 1.45; color: var(--muted); max-width: 40rem; }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.event-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 260px); gap: 1.25rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.date-block { font-family: var(--f-display); line-height: 0.9; color: var(--majolika); }
.date-block .d { font-size: 3.4rem; display: block; font-variant-numeric: tabular-nums; }
.date-block .m { font: 500 var(--s-xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); display: block; margin-top: 0.4rem; }
.date-block .w { font: 400 var(--s-xs)/1.3 var(--f-mono); color: var(--muted); display: block; }
.event-row h2 { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--f-display); }
.event-row h2 a { text-decoration: none; }
.event-row h2 a:hover { color: var(--majolika); }
.event-meta { margin-top: 0.5rem; color: var(--muted); font-size: var(--s-sm); }
.event-row .excerpt { margin-top: 0.75rem; max-width: 40rem; }
.event-row .actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.event-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; background: var(--paper-2); }
.empty { padding: 3rem 0; color: var(--muted); max-width: 36rem; }
@media (max-width: 820px) {
  .event-row { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .event-row .event-thumb { grid-column: 1 / -1; grid-row: 1; }
  .date-block .d { font-size: 2.6rem; }
}

/* Public: event detail */
.event-hero { position: relative; background: var(--deep); color: var(--on-deep); overflow: hidden; }
.event-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.event-hero .wrap { position: relative; padding-block: clamp(48px, 9vw, 120px) clamp(28px, 4vw, 44px); }
.event-hero .eyebrow { color: #e3c178; }
.event-hero h1 { font: 400 var(--s-xxl)/1 var(--f-display); letter-spacing: -0.015em; max-width: 18ch; }
.event-hero .back { display: inline-block; margin-bottom: 1.5rem; font-size: var(--s-sm); color: var(--on-deep-muted); }
.event-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(28px, 5vw, 56px); align-items: start; }
.facts { margin: 0 0 1.75rem; display: grid; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 var(--s-xs)/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd a { font-weight: 400; font-size: var(--s-sm); }
.prose { max-width: 40rem; display: grid; gap: 1rem; }
.prose a { color: var(--majolika); }
.book-card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 3vw, 32px); position: sticky; top: 88px; display: grid; gap: 1.1rem; }
.book-card h2 { font: 400 1.9rem/1.1 var(--f-display); }
.book-card .free { font-size: var(--s-sm); color: var(--muted); }
.seatbar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.seatbar span { display: block; height: 100%; background: var(--majolika); border-radius: inherit; }
@media (max-width: 860px) { .event-body { grid-template-columns: minmax(0, 1fr); } .book-card { position: static; } .facts div { grid-template-columns: 7rem minmax(0, 1fr); } }

/* Ticket */
.ticket-page { padding-top: clamp(28px, 5vw, 56px); }
.result-head { margin-bottom: 1.5rem; display: grid; gap: 0.5rem; }
.result-head h1 { font: 400 var(--s-xl)/1.05 var(--f-display); }
.ticket { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; max-width: 460px; }
.ticket-top { background: var(--deep); color: var(--on-deep); padding: 22px 24px 20px; display: grid; gap: 0.4rem; }
.ticket-top .eyebrow { color: #e3c178; margin: 0; }
.ticket-top h2 { font: 400 1.75rem/1.1 var(--f-display); }
.ticket-top p { color: var(--on-deep-muted); font-size: var(--s-sm); }
.ticket-perf { height: 0; border-top: 2px dashed var(--rule); position: relative; margin: 0 14px; }
.ticket-qr { padding: 22px 24px 8px; display: grid; justify-items: center; gap: 0.5rem; }
.ticket-qr .qrbox { width: min(260px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 8px; padding: 8px; }
.ticket-qr .qrbox svg { width: 100%; height: 100%; display: block; }
.ticket-qr .code { font: 500 1.1rem/1 var(--f-mono); letter-spacing: 0.12em; }
.ticket-qr .hint { font-size: var(--s-xs); color: var(--muted); text-align: center; }
.ticket dl { margin: 0; padding: 8px 24px 22px; display: grid; gap: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.ticket dl div:last-child { border-bottom: 0; }
.ticket dt { color: var(--muted); font-size: var(--s-sm); }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.ticket.is-cancelled .ticket-qr { opacity: 0.25; filter: grayscale(1); }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ticket-side { display: grid; gap: 1.5rem; max-width: 30rem; }
.ticket-side h2 { font: 400 1.6rem/1.15 var(--f-display); }
@media (max-width: 860px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } }

/* Privacy */
.doc { padding-top: clamp(32px, 5vw, 64px); display: grid; gap: 1rem; max-width: 46rem; }
.doc h1 { font: 400 var(--s-xl)/1.05 var(--f-display); margin-bottom: 0.5rem; }

/* ---------- Admin ---------- */
.is-admin { --s-xxl: clamp(2rem, 1.5rem + 2vw, 3rem); }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; font-size: var(--s-sm); }
.admin-nav a { text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.admin-nav a[aria-current="page"] { border-color: var(--majolika); font-weight: 600; }
.admin-page { padding-top: clamp(24px, 4vw, 44px); }
.page-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.page-title h1 { font: 400 var(--s-xxl)/1.05 var(--f-display); }
.page-title .sub { color: var(--muted); margin-top: 0.4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(18px, 2.5vw, 28px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font: 400 1.5rem/1.15 var(--f-display); margin-bottom: 1rem; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.grid-form .full { grid-column: 1 / -1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 760px) { .grid-form, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.6rem 0.9rem; font: 600 var(--s-sm) var(--f-body); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--majolika); }
.tabpanel[hidden] { display: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--s-sm); }
table.data th { text-align: left; font: 500 var(--s-xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--paper-2); }
table.data td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .row-title { font-weight: 600; text-decoration: none; }
table.data .row-title:hover { color: var(--majolika); }
table.data tr.is-cancelled td { color: var(--muted); }
table.data tr.is-cancelled .person { text-decoration: line-through; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tile { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.stat-tile .n { font: 400 2.2rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--majolika); }
.stat-tile .l { font-size: var(--s-xs); color: var(--muted); margin-top: 0.35rem; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meter { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; min-width: 80px; }
.meter span { display: block; height: 100%; background: var(--majolika); }

.login { max-width: 420px; margin: clamp(32px, 8vw, 96px) auto 0; }
.login h1 { font: 400 var(--s-xl)/1.05 var(--f-display); margin-bottom: 1.25rem; }
.stack { display: grid; gap: 1rem; }

/* Check-in */
.checkin { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkin { grid-template-columns: minmax(0, 1fr); } }
.scanner { position: relative; aspect-ratio: 1; background: #000; border-radius: 12px; overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,0.85); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,0.35); pointer-events: none; }
.scanner .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #cfd8d4; text-align: center; padding: 24px; font-size: var(--s-sm); }
.scan-result { margin-top: 14px; border-radius: 12px; padding: 18px 20px; display: grid; gap: 0.3rem; min-height: 104px; align-content: center; }
.scan-result .big { font: 400 1.7rem/1.1 var(--f-display); }
.scan-result.ok { background: var(--ok-bg); color: var(--ok); }
.scan-result.warn { background: var(--warn-bg); color: var(--warn); }
.scan-result.bad { background: var(--bad-bg); color: var(--bad); }
.scan-result.idle { background: var(--paper-2); color: var(--muted); }
.arrivals { font: 400 2.6rem/1 var(--f-display); color: var(--majolika); font-variant-numeric: tabular-nums; }
.guest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-height: 60vh; overflow-y: auto; }
.guest-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--rule); }
.guest-list .g-name { font-weight: 600; }
.guest-list .g-sub { font-size: var(--s-xs); color: var(--muted); }
.guest-list li.is-in .g-name::after { content: " ✓"; color: var(--ok); }

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

/* Lemondás-lenyíló a résztvevőlistában */
.inline-details { position: relative; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details > form { position: absolute !important; right: 0 !important; top: calc(100% + 6px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
code { font-family: var(--f-mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* Admin mobilon */
.page-title > * { min-width: 0; max-width: 100%; }
.page-title form select { max-width: 100%; }
@media (max-width: 760px) {
  .admin-header .header-inner { flex-wrap: wrap; row-gap: 0; padding-block: 8px; }
  .admin-header .brand-text { display: none; }
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; order: 3; gap: 1rem; padding-bottom: 4px; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a, .admin-nav form { white-space: nowrap; flex-shrink: 0; }
  .page-title form, .page-title form select { width: 100%; }
}

/* ---------- 2.0: ülésrend, résztvevők ---------- */
:root { --seat-free: #ffffff; --seat-free-bd: #8fa79e; --seat-taken: #c9d1cd; --seat-sel: var(--majolika); --seat-blocked: #e7c9a4; }
@media (prefers-color-scheme: dark) { :root { --seat-free: #22302c; --seat-free-bd: #5d7a70; --seat-taken: #39443f; --seat-blocked: #6b4f2a; } }
.btn-block { width: 100%; }

.event-body.is-seated { grid-template-columns: minmax(0, 1fr); }
.event-body.is-seated > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 clamp(24px, 4vw, 56px); align-items: start; }
.event-body.is-seated .book-card { position: static; }
@media (max-width: 860px) { .event-body.is-seated > div:first-child { grid-template-columns: minmax(0, 1fr); } }
.book-form { display: grid; gap: 1.25rem; }
.book-head { display: grid; gap: 0.6rem; }

.seat-picker { display: grid; gap: 0.75rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.seat-picker h3, .people > legend { font: 400 1.35rem/1.2 var(--f-display); }
.seat-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.seat-summary { font-size: var(--s-sm); color: var(--muted); min-width: 0; flex: 1 1 240px; }

.seatmap { --s: 22px; --rl: 22px; display: grid; gap: 8px; min-width: 0; }
.sm-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.sm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--s-xs); color: var(--muted); }
.sm-key::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--seat-free-bd); background: var(--seat-free); }
.sm-key-taken::before { background: var(--seat-taken); border-color: var(--seat-taken); }
.sm-key-sel::before { background: var(--seat-sel); border-color: var(--seat-sel); }
.sm-key-blocked::before { background: var(--seat-blocked); border-color: var(--seat-blocked); }
.sm-zoom { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.sm-zoom button { width: 40px; height: 34px; border: 0; background: var(--card); color: var(--ink); font: 600 1.1rem/1 var(--f-body); cursor: pointer; }
.sm-zoom button + button { border-left: 1px solid var(--rule); }
.sm-viewport { overflow: auto; max-height: min(70vh, 640px); border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sm-canvas { width: max-content; min-width: 100%; padding: 14px 10px 18px; display: grid; justify-items: center; gap: 18px; }
.sm-stage { width: min(70%, 520px); text-align: center; font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 10px 0; border-radius: 0 0 40% 40% / 0 0 100% 100%; background: var(--paper-2); }
.sm-section { display: grid; gap: 3px; justify-items: center; }
.sm-section h4 { margin: 0 0 6px; font: 500 var(--s-xs)/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--arany); }
.sm-row { display: grid; gap: 3px; align-items: center; }
.sm-rl { font: 500 10px/1 var(--f-mono); color: var(--muted); text-align: center; }
.sm-gap { width: var(--s); height: var(--s); }
.seat { width: var(--s); height: var(--s); padding: 0; border: 1.5px solid var(--seat-free-bd); border-radius: 5px 5px 3px 3px; background: var(--seat-free); color: var(--muted); font: 500 calc(var(--s) * 0.42)/1 var(--f-mono); cursor: pointer; display: grid; place-items: center; transition: transform .12s, background-color .12s; }
.seat:hover:not(:disabled) { transform: scale(1.12); border-color: var(--majolika); }
.seat.is-taken { background: var(--seat-taken); border-color: var(--seat-taken); color: transparent; cursor: not-allowed; }
.seat.is-blocked { background: var(--seat-blocked); border-color: var(--seat-blocked); color: transparent; }
.seat.is-sel { background: var(--seat-sel); border-color: var(--seat-sel); color: var(--majolika-ink); }
.is-admin .seat.is-taken, .is-admin .seat.is-blocked { cursor: pointer; color: rgba(0,0,0,0.45); }
.is-admin .seat.is-taken.is-sel, .is-admin .seat.is-blocked.is-sel { outline: 2px solid var(--eozin); outline-offset: 1px; }
.sm-tiny .seat { font-size: 0; }

.people { border: 0; padding: 0; margin: 0; display: grid; gap: 0.9rem; border-top: 1px solid var(--rule); padding-top: 1rem; min-width: 0; }
.people > legend { padding: 0; margin-bottom: 0.25rem; float: left; width: 100%; }
.people > .hint { clear: both; font-size: var(--s-xs); color: var(--muted); }
.person { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px 16px; margin: 0; min-width: 0; background: var(--paper); }
.person > legend { font-weight: 700; font-size: var(--s-sm); padding: 0 6px; margin-left: -6px; }
.person .person-seat { font-weight: 600; color: var(--majolika); }
.person-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.book-card:not(.is-wide) .person-grid { grid-template-columns: minmax(0, 1fr); }
.event-body.is-seated .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-body.is-seated .person-grid .field:last-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .event-body.is-seated .person-grid { grid-template-columns: minmax(0, 1fr); } }
.consents { display: grid; gap: 0.75rem; }

.ticket-seat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 12px 24px; background: var(--paper-2); }
.ticket-seat .label { font: 500 var(--s-xs)/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ticket-seat strong { font-size: var(--s-md); text-align: right; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.ticket-cell { display: grid; gap: 10px; }
.ticket.is-compact .ticket-top h2 { font-size: 1.35rem; }
.ticket.is-compact .qrbox { width: min(220px, 64vw); }
.ticket-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--s-xs); }

/* Teremszerkesztő */
.le-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1rem; margin-bottom: 1rem; }
@media (max-width: 900px) { .le-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .le-settings { grid-template-columns: minmax(0, 1fr); } }
.le-bulk { margin: 0.5rem 0 0.75rem; font-size: var(--s-sm); }
.le-bulk input { min-height: 36px; padding: 0.3rem 0.5rem; }
.le-help { font-size: var(--s-xs); margin-bottom: 0.75rem; max-width: 60rem; }
.le-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.le-grid { width: max-content; min-width: 100%; padding: 12px; display: grid; gap: 3px; user-select: none; -webkit-user-select: none; touch-action: none; }
.le-stage { text-align: center; font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 8px; background: var(--paper-2); border-radius: 6px; margin-bottom: 8px; }
.le-row { display: flex; align-items: center; gap: 6px; }
.le-label, .le-start { width: 3.2rem !important; min-height: 26px !important; padding: 2px 4px !important; font: 500 12px/1 var(--f-mono) !important; text-align: center; border-radius: 4px !important; }
.le-start { width: 3.6rem !important; }
.le-cells { display: flex; gap: 2px; }
.le-cell { width: 22px; height: 22px; border: 1px dashed var(--rule); border-radius: 4px; display: grid; place-items: center; font: 500 9px/1 var(--f-mono); color: var(--majolika-ink); cursor: pointer; }
.le-cell.on { background: var(--majolika); border: 1px solid var(--majolika); }
.le-cell:hover { outline: 2px solid var(--focus); }
.le-acts { display: flex; gap: 2px; margin-left: 6px; }
.le-act { width: 26px; height: 26px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 4px; cursor: pointer; font-size: 12px; }
.le-act:hover { background: var(--paper-2); }
.grid-3 .full { grid-column: 1 / -1; }
.seats-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
.seats-admin .seat-panel { position: sticky; top: 84px; }
.seats-admin .sm-viewport { max-height: 78vh; }
@media (max-width: 960px) { .seats-admin { grid-template-columns: minmax(0, 1fr); } .seats-admin .seat-panel { position: static; } }
.occupant-list { list-style: none; margin: 0.75rem 0; padding: 0; font-size: var(--s-sm); display: grid; gap: 0.4rem; }
.occupant-list a { color: var(--majolika); }
#book-box > summary { list-style: none; }
#book-box > summary::-webkit-details-marker { display: none; }
.scan-result .seat-big { font: 600 1.15rem/1.3 var(--f-body); color: var(--ink); }
