:root {
  --bg: #0b0c12;
  --bg-2: #10121a;
  --surface: #151823;
  --surface-2: #1c2030;
  --line: rgba(214, 178, 98, .22);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #d6b262;
  --gold-2: #f1dc9f;
  --gold-deep: #a9843a;
  --ink: #f4efe4;
  --muted: #a39f95;
  --ok: #34c27a;
  --warn: #f0a43a;
  --err: #e5544f;
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; min-height: 100vh;
  font: 16px/1.5 var(--sans); color: var(--ink);
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(214, 178, 98, .16), transparent 70%),
    radial-gradient(600px 400px at 100% 30%, rgba(90, 70, 160, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--gold-2); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0 0 .5em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
code { font-size: .85em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }

.mode-ribbon {
  position: sticky; top: 0; z-index: 50;
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  padding: .35rem 1rem; color: #1a1406; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), var(--gold-deep));
}
.mode-sandbox .mode-ribbon { background: linear-gradient(90deg, #4c6fd8, #9db5ff, #4c6fd8); color: #0b1230; }

.hero { text-align: center; padding: 2.6rem 1rem 1.6rem; }
.hero-link { text-decoration: none; color: inherit; display: inline-block; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); font-size: .9rem; }
.ornament span { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { transform: scaleX(-1); }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1; margin: .6rem 0 .5rem; font-weight: 700; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold-2) 40%, var(--gold) 75%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { margin: 0; color: var(--muted); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); background: rgba(11, 12, 18, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40;
}
.mode-demo .topbar, .mode-sandbox .topbar { top: 1.55rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .12em; color: var(--gold-2); text-decoration: none; white-space: nowrap; }
.staff-nav { display: flex; gap: .3rem; align-items: center; }
.staff-nav a { text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 600; padding: .45rem .7rem; border-radius: 999px; }
.staff-nav a[aria-current] { color: #1a1406; background: var(--gold); }
.staff-nav .logout { font-size: 1.05rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 2rem; }
.wrap.wide { max-width: 1240px; padding-top: 1.2rem; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent), var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.card.narrow { max-width: 520px; margin: 1.5rem auto; }
.section-title { font-size: 1.45rem; color: var(--gold-2); margin-bottom: .9rem; }
.stack { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }

.shop { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.shop-page .site-footer { padding-bottom: calc(110px + var(--safe-b)); }
.products { display: grid; gap: .75rem; }
.product {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: .8rem;
  padding: 1rem 1rem .8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .2s, background .2s;
}
.product.selected { border-color: var(--line); background: linear-gradient(180deg, rgba(214, 178, 98, .08), transparent), var(--surface); }
.product h3 { font-size: 1.5rem; margin: 0; line-height: 1.1; }
.product .desc { margin: .2rem 0 .35rem; color: var(--muted); font-size: .85rem; }
.product .price { margin: 0; font-weight: 700; color: var(--gold-2); }
.product .price small { color: var(--muted); font-weight: 500; }
.product .limit { grid-column: 2; margin: .3rem 0 0; text-align: center; font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.stepper { display: flex; align-items: center; gap: .35rem; }
.step {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--gold-2); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.step:active { transform: scale(.94); }
.step:disabled { opacity: .3; cursor: default; }
.stepper input, .step-val {
  width: 44px; height: 44px; text-align: center; font: 700 1.2rem var(--sans); color: var(--ink);
  background: transparent; border: 0; -moz-appearance: textfield; appearance: textfield; display: grid; place-items: center;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.lines li.empty { display: block; color: var(--muted); font-style: italic; }
.lines .q { color: var(--gold); font-weight: 700; min-width: 2.2em; }
.lines .p { font-variant-numeric: tabular-nums; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; font-size: 1.05rem; }
.total-row strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }

label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .8rem; }
label .opt { font-weight: 400; font-style: italic; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  display: block; width: 100%; margin-top: .35rem; padding: .8rem .9rem; font: 500 16px var(--sans); color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; outline: none;
}
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 178, 98, .18); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-weight: 500; line-height: 1.4; margin-top: .4rem; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--gold); }

.btn-pay {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
  min-height: 54px; padding: .8rem 1.2rem; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 1rem var(--sans); letter-spacing: .08em; color: #1a1406; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 24px rgba(214, 178, 98, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
  touch-action: manipulation;
}
.btn-pay:disabled { filter: grayscale(.7) brightness(.6); box-shadow: none; cursor: not-allowed; }
.btn-pay.loading { opacity: .8; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--gold-2);
  font: 600 .9rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { background: rgba(214, 178, 98, .08); color: #fff; }
.btn-ghost.big { width: 100%; min-height: 54px; font-size: 1rem; margin-top: .6rem; }

.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: .7rem 16px calc(.7rem + var(--safe-b));
  background: rgba(11, 12, 18, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.paybar-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: .9rem; align-items: center; }
.paybar-total { display: flex; flex-direction: column; line-height: 1.15; min-width: 84px; }
.paybar-total span { font-size: .72rem; color: var(--muted); }
.paybar-total strong { font-family: var(--serif); font-size: 1.45rem; color: var(--gold-2); white-space: nowrap; }
.paybar .btn-pay { flex: 1; }
.secure-note { text-align: center; color: var(--muted); font-size: .8rem; max-width: 560px; margin: .5rem auto 0; padding: 0 16px; }

.alert, .notice {
  border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1rem; font-size: .92rem;
  background: rgba(229, 84, 79, .12); border: 1px solid rgba(229, 84, 79, .45);
}
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice { background: rgba(52, 194, 122, .1); border-color: rgba(52, 194, 122, .4); }
.notice.warn { background: rgba(240, 164, 58, .1); border-color: rgba(240, 164, 58, .45); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 1.5rem 16px calc(1.5rem + var(--safe-b));
  font-size: .78rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.prose h3 { font-size: 1.25rem; color: var(--gold-2); margin-top: 1.4rem; }
.prose p, .prose li { color: #d9d4c8; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); margin: 0 0 .3rem; }

.spinner { width: 42px; height: 42px; margin: .5rem auto 1rem; border-radius: 50%; border: 3px solid var(--line-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticket {
  max-width: 440px; margin: 0 auto 1rem; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #1d2130, #12141d); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.ticket-head { text-align: center; padding: 1.6rem 1.2rem 1rem; background: radial-gradient(400px 160px at 50% 0, rgba(214, 178, 98, .18), transparent); }
.badge-ok {
  width: 54px; height: 54px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: #062615; background: var(--ok); box-shadow: 0 0 0 6px rgba(52, 194, 122, .15);
}
.badge-ok.neutral { background: var(--gold); color: #1a1406; box-shadow: 0 0 0 6px rgba(214, 178, 98, .15); }
.ticket-head h2 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: .2em; color: var(--ok); margin: 0 0 .5rem; }
.thanks { font-family: var(--serif); font-size: 1.9rem; margin: 0; line-height: 1.15; }
.ref { margin: .3rem 0 0; color: var(--muted); letter-spacing: .1em; font-size: .85rem; }
.ticket-body { padding: .4rem 1.4rem 1rem; }
.lines.plain li { grid-template-columns: auto 1fr; }
.ticket-tear { height: 0; border-top: 2px dashed var(--line); margin: 0 18px; position: relative; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-tear::before { left: -31px; } .ticket-tear::after { right: -31px; }
.ticket-qr { padding: 1.4rem 1.4rem 1.6rem; text-align: center; }
.qr { width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 14px; padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-caption { font-weight: 700; margin: 1rem 0 .3rem; }
.actions { max-width: 440px; margin: 0 auto; }

.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.admin-head h2 { margin: 0; font-size: 2rem; }
.mode-switch label { margin: 0; }
.mode-switch select { width: auto; display: inline-block; margin-left: .4rem; padding: .5rem .7rem; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.kpi span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: .8rem; color: var(--gold); }
.kpi.accent { grid-column: span 2; border-color: var(--line); background: linear-gradient(135deg, rgba(214, 178, 98, .14), transparent 60%), var(--surface); }
.kpi.accent strong { color: var(--gold-2); font-size: 2.6rem; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.row-between h3 { margin: 0; font-size: 1.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-row form { margin: 0; }
.search { display: flex; gap: .5rem; margin-bottom: .8rem; }
.search input { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.orders { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
table.orders th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: .5rem; border-bottom: 1px solid var(--line); }
table.orders td { padding: .6rem .5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.orders .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.orders.small { font-size: .8rem; min-width: 560px; }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.paid { background: rgba(52, 194, 122, .15); color: var(--ok); }
.pill.pending { background: rgba(240, 164, 58, .15); color: var(--warn); }
.pill.failed, .pill.expired { background: rgba(229, 84, 79, .12); color: var(--err); }

.staff .site-footer { display: none; }
.staff-main { max-width: 560px; margin: 0 auto; padding: 0 12px calc(1rem + var(--safe-b)); }
.station { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; color: var(--gold); text-align: center; margin: .9rem 0 .6rem; font-weight: 700; }
.cam { position: relative; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; inset: 18%; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); border: 3px solid var(--gold); opacity: 0; transition: opacity .3s; }
.cam-on .cam-frame { opacity: .9; }
#cam-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; }
.cam-msg { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .7rem 1rem; text-align: center; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.manual { display: flex; gap: .5rem; margin-top: .8rem; }
.manual input { margin: 0; text-transform: uppercase; }
.manual .btn-ghost { flex: none; }

.result {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: calc(1.2rem + env(safe-area-inset-top, 0px)) 18px calc(1.2rem + var(--safe-b));
  background: var(--bg); display: flex; flex-direction: column; animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.97); } to { transform: none; } }
.result-head { border-radius: 18px; padding: 1.4rem 1rem; text-align: center; margin-bottom: 1rem; }
.result-status { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 12vw, 3.6rem); letter-spacing: .04em; line-height: 1; }
.state-ok .result-head, .state-done .result-head { background: var(--ok); color: #04210f; }
.state-warn .result-head { background: var(--warn); color: #2b1800; }
.state-error .result-head { background: var(--err); color: #2a0303; }
.result-name { font-family: var(--serif); font-size: 2.3rem; line-height: 1.05; margin: .2rem 0 .3rem; text-align: center; }
.result-sub { text-align: center; color: var(--muted); margin: 0 0 .3rem; }
.result-msg { text-align: center; font-size: 1.05rem; margin: .5rem 0; }
.result-msg.big { font-size: 1.4rem; font-weight: 700; color: var(--warn); }
.result-alert { text-align: center; font-weight: 700; color: #1a1406; background: var(--warn); border-radius: 10px; padding: .5rem; margin: .4rem 0; }
.counts { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 1rem 0; font-size: 1.35rem; border-top: 1px solid var(--line-soft); }
.counts dt, .counts dd { margin: 0; padding: .55rem .2rem; border-bottom: 1px solid var(--line-soft); }
.counts dd { font-weight: 800; text-align: right; color: var(--gold-2); }
.counts dd.zero { color: var(--muted); font-weight: 500; }
.stepper.big { justify-content: center; margin: .4rem 0 1rem; }
.stepper.big .step { width: 60px; height: 60px; font-size: 1.8rem; }
.stepper.big .step-val { width: 60px; font-size: 2rem; }
.btn-pay.huge { min-height: 66px; font-size: 1.15rem; margin-top: .6rem; }
.bar-list { margin: 1rem 0 .4rem; }
.bar-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.bar-row.empty { opacity: .45; }
.bar-label { font-family: var(--serif); font-size: 1.7rem; margin: 0; line-height: 1.1; }
.bar-left { margin: 0; color: var(--gold); font-weight: 700; }

@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi.accent { grid-column: span 2; }
}
@media (min-width: 900px) {
  .shop { grid-template-columns: 1fr 360px; grid-template-areas: "people summary" "customer summary"; align-items: start; }
  .people { grid-area: people; }
  .customer { grid-area: customer; }
  .summary { grid-area: summary; position: sticky; top: 2.5rem; }

  .shop-page .summary { display: flex; flex-direction: column; max-height: calc(100vh - 2.5rem - 100px); max-height: calc(100dvh - 2.5rem - 100px); }
  .shop-page .summary > * { flex: none; }
  .shop-page .summary #cart-lines { flex: 1 1 auto; min-height: 4.5rem; overflow-y: auto; overscroll-behavior: contain; margin-right: -.6rem; padding-right: .6rem;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
  .product { grid-template-columns: 1fr auto; padding: 1.2rem 1.4rem 1rem; }
}

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000; }
  .mode-ribbon, .site-footer, .no-print, .topbar { display: none !important; }
  .hero { padding: 0 0 8mm; }
  .hero h1 { color: #000; background: none; -webkit-text-fill-color: #000; }
  .subtitle, .muted, .ref { color: #444 !important; }
  .ticket { background: #fff; border: 1px solid #000; box-shadow: none; break-inside: avoid; }
  .ticket-head { background: none; }
  .ticket-head h2 { color: #000; }
  .badge-ok { box-shadow: none; border: 2px solid #000; background: #fff; color: #000; }
  .lines li { border-color: #bbb; }
  .lines .q, .total-row strong { color: #000; }
  .ticket-tear::before, .ticket-tear::after { display: none; }
  .ticket-tear { border-color: #000; }
  .qr { width: 70mm; border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.total-row strong, .paybar-total strong, .kpi strong, .kpi.accent strong { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
.total-row strong { font-size: 1.6rem; } .paybar-total strong { font-size: 1.25rem; } .kpi strong { font-size: 1.8rem; } .kpi.accent strong { font-size: 2.2rem; }

.staff-nav { overflow-x: auto; max-width: 70vw; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.staff-nav::-webkit-scrollbar { display: none; }
.staff-nav a { white-space: nowrap; flex: none; }
.station-products { text-align: center; color: var(--muted); font-size: .85rem; margin: -.3rem 0 .7rem; }
.elsewhere { margin: .8rem 0; padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .92rem; }
.elsewhere p { margin: .15rem 0; }
.elsewhere-title { color: var(--gold); font-weight: 700; }

.posters { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.poster { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1rem; }
.poster h3 { font-size: 1.9rem; margin: .3rem 0; color: var(--gold-2); }
.poster .qr { width: 220px; }
.poster .kicker { margin-bottom: .2rem; }
.poster .prod { color: var(--muted); font-size: .9rem; margin: .3rem 0 1rem; }
.poster-help { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.stand-table td, .stand-table th { white-space: nowrap; }
@media print {
  .posters { display: block; }
  .poster { page-break-after: always; break-after: page; border: 2px solid #000; background: #fff; color: #000; padding: 20mm 10mm; margin: 0; }
  .poster h3 { color: #000; font-size: 34pt; }
  .poster .qr { width: 120mm; }
  .poster .prod, .poster-help, .poster .kicker { color: #222 !important; }
  .admin-only { display: none !important; }
}

label .opt-label { font-weight: 400; font-style: italic; }
.people .intro { margin: -.4rem 0 1rem; }
#people { display: grid; gap: 1rem; }
.person {
  padding: 1.1rem 1rem .6rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(214, 178, 98, .06), transparent 140px), var(--surface);
}
.person-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.person-head h3 { font-size: 1.5rem; margin: 0; color: var(--gold-2); flex: 1; }
.person-you { display: none; color: var(--muted); font-size: 1.1rem; }
.person.is-first .person-you { display: inline; }
.person-sub { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.person-remove { background: none; border: 0; color: var(--muted); font: 600 .8rem var(--sans); cursor: pointer; padding: .3rem .2rem; text-decoration: underline; }
.person-remove:hover { color: var(--err); }
#people.single .person-remove { display: none; }
.add-person { width: 100%; min-height: 54px; margin-top: 1rem; border-style: dashed; font-size: 1rem; }

.tickets { border: 0; padding: 0; margin: .2rem 0 .8rem; display: grid; gap: .5rem; }
.tickets legend, .drinks summary { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; padding: 0; }
label.opt {
  display: flex; gap: .8rem; align-items: flex-start; margin: 0; cursor: pointer; color: var(--ink);
  padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-2);
  transition: border-color .15s, background .15s;
}
label.opt input { width: 20px; height: 20px; margin: .15rem 0 0; flex: none; accent-color: var(--gold); }
label.opt.selected { border-color: var(--gold); background: linear-gradient(90deg, rgba(214, 178, 98, .14), rgba(214, 178, 98, .03)); }
label.opt.off { opacity: .45; cursor: not-allowed; }
.opt-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.opt-top { display: flex; justify-content: space-between; gap: .6rem; }
.opt-top strong { font-size: 1rem; }
.opt-price { font-weight: 800; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-desc { font-weight: 400; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.opt-desc em { color: var(--gold-2); font-style: normal; }
.opt-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.opt-tags:empty { display: none; }
.tag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); }
.tag.hot { background: rgba(240, 164, 58, .15); border-color: rgba(240, 164, 58, .5); color: var(--warn); }
.tag.off { background: rgba(229, 84, 79, .12); border-color: rgba(229, 84, 79, .4); color: var(--err); }

.drinks { border-top: 1px solid var(--line-soft); padding-top: .7rem; margin-bottom: .4rem; }
.drinks summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: .3rem 0; }
.drinks summary::-webkit-details-marker { display: none; }
.drinks summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-2); font-weight: 400; }
.drinks[open] summary::after { content: "−"; }
.drinks-count { margin-left: auto; margin-right: .6rem; color: var(--ink); }
.drinks > p { margin: .2rem 0 .4rem; }
.drink { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.drink:last-child { border-bottom: 0; }
.drink.selected strong { color: var(--gold-2); }
.drink-info { min-width: 0; }
.drink-price { color: var(--gold); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.drink-desc { display: block; color: var(--muted); font-size: .78rem; }
.drink .step { width: 38px; height: 38px; font-size: 1.2rem; }
.drink .stepper input { width: 34px; }
.lines li.who { display: block; padding: .7rem 0 .1rem; border-bottom: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--gold-2); }

.confirm-head { padding: 1rem 0 .5rem; }
.ok-title { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; letter-spacing: .2em; color: var(--ok); margin: 0 0 .4rem; }
.share-hint { max-width: 480px; margin: .6rem auto 0; }
.tickets-grid { display: grid; gap: 1.4rem; margin: 1.2rem auto 1.5rem; max-width: 440px; }
.ticket-name { font-family: var(--serif); font-size: 2rem; margin: .1rem 0 0; line-height: 1.1; }
.ticket-formula { margin: .3rem 0 0; color: var(--gold-2); font-weight: 700; letter-spacing: .04em; }
.ticket .ticket-qr { padding-top: .4rem; }
.ticket-body .kicker { margin-top: .6rem; }
.share { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin-top: .8rem; }
@media (min-width: 960px) { .tickets-grid:not(.single) { max-width: 940px; grid-template-columns: 1fr 1fr; } }

.result-ticket { text-align: center; font-weight: 800; color: var(--gold-2); letter-spacing: .05em; margin: 0 0 .3rem; font-size: 1.1rem; }
.stand-counts { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 0 0 .8rem; }
.stand-counts .sc { display: flex; gap: .35rem; align-items: baseline; padding: .3rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-size: .82rem; }
.stand-counts .sc span { color: var(--muted); }
.stand-counts .sc strong { font-variant-numeric: tabular-nums; }
.stand-counts .sc em { font-style: normal; color: var(--muted); font-size: .72rem; }
.att-cell { min-width: 320px; }
.att-row { padding: .25rem 0; border-bottom: 1px dashed var(--line-soft); }
.att-row:last-child { border-bottom: 0; }
.att-row .pill { margin-left: .2rem; }
.code-cell { font-size: 1.25rem; font-weight: 800; color: var(--gold-2); letter-spacing: .12em; }
form.inline { margin: 0; }
.small-btn { padding: .35rem .7rem; font-size: .8rem; }
@media print {
  .tickets-grid { display: block; max-width: none; }
  .tickets-grid .ticket { margin: 0 auto 8mm; max-width: 110mm; page-break-inside: avoid; }
  .ticket-formula, .ok-title { color: #000 !important; }
}

html, body { touch-action: manipulation; }
button, a, label { -webkit-tap-highlight-color: transparent; }
@media (max-width: 599px) {
  .hero { padding: 1.4rem 1rem 1rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); margin: .4rem 0 .35rem; }
  .subtitle { font-size: .7rem; letter-spacing: .16em; }
  .wrap { padding: 0 12px 2rem; }
  .card { padding: 1.1rem 1rem; }
  .person { padding: 1rem .85rem .5rem; }
  .person-head h3 { font-size: 1.3rem; }
  label.opt { padding: .75rem .75rem; gap: .65rem; }
  .drink .step { width: 44px; height: 44px; }
  .section-title { font-size: 1.3rem; }
  .paybar .btn-pay { min-height: 54px; font-size: 1rem; }
  .mode-ribbon { font-size: .62rem; padding: .25rem .5rem; letter-spacing: .1em; }
  .mode-demo .topbar, .mode-sandbox .topbar { top: 1.3rem; }
}

.staff .topbar { padding: .45rem .6rem; gap: .5rem; }
.staff .staff-nav { max-width: none; flex: 1; justify-content: flex-end; }
.staff .staff-nav a { padding: .5rem .75rem; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 599px) {
  .staff .brand .brand-txt, .compact-brand .brand-txt { display: none; }
  .staff .brand { font-size: 1.3rem; }
  .staff .staff-nav { justify-content: flex-start; }
}
.staff-main { display: flex; flex-direction: column; min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); }
#app { display: flex; flex-direction: column; flex: 1; }
.staff .station { margin: .55rem 0 .4rem; font-size: .74rem; }
.staff .station-products { margin: -.2rem 0 .45rem; font-size: .8rem; }
.staff .stand-counts { margin-bottom: .55rem; }
.staff .cam { aspect-ratio: auto; flex: 1; min-height: 300px; max-height: none; height: auto; border-radius: 18px; }
.staff .cam-frame { inset: 16% 12%; }
.cam #cam-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; min-width: 220px; }
.cam-tools { position: absolute; top: .6rem; right: .6rem; display: flex; gap: .5rem; z-index: 3; }
.cam-tool {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cam-tool[aria-pressed="true"]#torch { background: var(--gold); border-color: var(--gold); }
.staff .manual { margin: .6rem 0 0; padding-bottom: var(--safe-b); }
.staff .manual input { min-height: 52px; font-size: 18px; letter-spacing: .12em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.staff .manual .btn-ghost { min-width: 64px; min-height: 52px; font-size: 1rem; }
.net-off { margin: 0 0 .5rem; padding: .55rem .8rem; border-radius: 10px; background: var(--err); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; }

.result { padding-bottom: 0; }
.result-head { position: relative; overflow: hidden; }
.result-actions {
  position: sticky; bottom: 0; margin: auto -18px 0; padding: .8rem 18px calc(.9rem + var(--safe-b));
  background: linear-gradient(180deg, rgba(11, 12, 18, 0), var(--bg) 22%); display: flex; flex-direction: column; gap: .5rem;
}
.result-actions .btn-pay.huge, .result-actions .btn-ghost.big { margin: 0; width: 100%; }
.result-actions .btn-ghost.big { min-height: 60px; font-size: 1.05rem; }
.auto-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, .15); }
.auto-bar span { display: block; height: 100%; background: rgba(0, 0, 0, .45); animation: autobar 2.5s linear forwards; }
@keyframes autobar { from { width: 100%; } to { width: 0; } }
.result-name { font-size: clamp(1.9rem, 9vw, 2.4rem); word-break: break-word; }
.result .counts { font-size: 1.1rem; }
.bar-row .step { width: 56px; height: 56px; font-size: 1.7rem; }
.bar-row .step-val { width: 44px; font-size: 1.6rem; }
.bar-label { font-size: 1.5rem; }
@media (min-width: 600px) { .staff .cam { max-height: 70vh; } }

.live-line { margin: -.4rem 0 1rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 194, 122, .25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.stats-page .kpis { grid-template-columns: repeat(2, 1fr); }
.stats-page .kpi em { color: var(--muted); }
.stats-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.chart-card h3 { margin: 0 0 .1rem; font-size: 1.35rem; color: var(--gold-2); }
.chart-card > .muted { margin: 0 0 .9rem; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .base { stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 11px var(--sans); }
.chart .bar { fill: var(--gold); }
.chart .hit { fill: transparent; }
.chart .col:hover .bar { fill: var(--gold-2); }
.chart .col:hover .hit { fill: rgba(255, 255, 255, .04); }
.empty-chart { padding: 1.5rem 0; text-align: center; }
.hbars { display: grid; gap: .75rem; }
.hb { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; align-items: baseline; }
.hb-label { font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-val { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-val strong { color: var(--ink); }
.hb-track { grid-column: 1 / -1; width: 100%; height: 8px; display: block; }
.hb-track .track { fill: rgba(255, 255, 255, .07); }
.hb-track .fill { fill: var(--gold); }
.hb-track .fill2 { fill: var(--gold-2); }
.stand-progress .hb-track .fill { fill: rgba(214, 178, 98, .35); }
.hb-group { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin: 1.1rem 0 .55rem; padding-bottom: .3rem; border-bottom: 1px solid rgba(214, 178, 98, .25); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-variant-numeric: tabular-nums; }
.hb-group:first-of-type { margin-top: .4rem; }
.hb-group strong { color: var(--ink); }
.stand-progress { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sp h4 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .6rem; font-weight: 600; }
.sp h4 small { font-family: var(--sans); font-size: .75rem; }
.sp-total { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.sp-total strong { color: var(--gold-2); }
@media (min-width: 640px) { .stats-page .kpis { grid-template-columns: repeat(3, 1fr); } .stats-page .kpi.accent { grid-column: span 3; } }
@media (min-width: 980px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .span2 { grid-column: span 2; }
  .stats-page .kpis { grid-template-columns: repeat(6, 1fr); }
  .stats-page .kpi.accent { grid-column: span 2; }
}
@media (max-width: 599px) { .topbar:has(.staff-nav) .brand-txt { display: none; } .topbar .staff-nav { max-width: none; flex: 1; } }
.staff .manual input::placeholder { letter-spacing: .02em; font-family: var(--sans); font-size: 15px; }
@media (min-width: 980px) { .stats-page .kpis { grid-template-columns: repeat(7, 1fr); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:has(body.staff), body.staff { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.staff {
  position: fixed; inset: 0; display: flex; flex-direction: column; width: 100%;
  height: 100vh; height: 100dvh; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background-attachment: scroll;
}
body.staff input { -webkit-user-select: text; user-select: text; }
.staff .mode-ribbon { position: static; flex: none; font-size: .6rem; padding: calc(.2rem + env(safe-area-inset-top, 0px)) .5rem .2rem; letter-spacing: .1em; }
.staff .topbar {
  position: static; flex: none; display: flex; align-items: center; gap: .5rem; min-width: 0;
  padding: .5rem .75rem; padding-top: max(.5rem, env(safe-area-inset-top, 0px));
}
.staff.mode-demo .topbar, .staff.mode-sandbox .topbar { padding-top: .5rem; }
.staff .brand { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.2rem; letter-spacing: .06em; }
.staff .brand .brand-txt { display: inline !important; }
.station-bar { display: flex; align-items: center; gap: .45rem; flex: none; }
.station-switch { margin: 0; }
.station-switch select {
  margin: 0; width: auto; max-width: 44vw; padding: .5rem 2rem .5rem .75rem; min-height: 42px; font: 600 16px var(--sans);
  border-radius: 999px; border-color: var(--line); background-color: var(--surface-2); color: var(--gold-2);
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.logout-btn {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; font-size: 1.1rem;
}
.staff .staff-main {
  flex: 1; min-height: 0; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 10px; display: flex; flex-direction: column;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}
.staff #app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.staff .stand-counts { flex: none; margin: .1rem 0 .5rem; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.staff .stand-counts::-webkit-scrollbar { display: none; }
.staff .stand-counts .sc { flex: none; }
.staff .net-off { flex: none; }
.staff .cam { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; aspect-ratio: auto; margin-top: .2rem; }
.staff .cam video { position: absolute; inset: 0; }
.staff .manual { flex: none; margin: .55rem 0 0; padding: 0; }
.staff .manual input { margin: 0; min-width: 0; flex: 1; font-size: 18px; }
.staff .result { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-top: max(1rem, env(safe-area-inset-top, 0px)); }
@media (min-width: 600px) { .staff .cam { max-height: none; } }
.logout-btn { width: auto; padding: 0 .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.staff .topbar:has(.station-switch) .brand { flex: none; }
.staff .topbar:has(.station-switch) .brand .brand-txt { display: none !important; }
.staff .topbar:has(.station-switch) .station-bar { flex: 1; min-width: 0; }
.staff .topbar:has(.station-switch) .station-switch { flex: 1; min-width: 0; }
.staff .station-switch select { width: 100%; max-width: none; font-size: 17px; }
.access-card .card-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .18em; color: var(--gold-2); margin: .9rem 0 0; }
@media print { .access-card .card-code { color: #000; font-size: 26pt; } }

:root {
  --bg: #070a14; --bg-2: #0b1022; --surface: #0d1530; --surface-2: #15204a;
  --gold: #c8a45d; --gold-2: #e6d09c; --gold-deep: #9c7c3d;
  --ink: #f1eadb; --muted: #8f8a7e;
  --line: rgba(200, 164, 93, .32); --line-soft: rgba(200, 164, 93, .14);
  --radius: 2px;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
}
body { font-weight: 300; background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(31, 49, 112, .5), transparent 70%), var(--bg); background-attachment: fixed; }
h1, h2, h3, .section-title, .person-head h3, .ticket-name, .thanks, .poster h3, .admin-head h2, .chart-card h3, .sp h4, .bar-label, .result-name { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
.section-title { font-size: 1.7rem; color: var(--ink); }
.kicker, .tickets legend, .drinks summary { text-transform: none; letter-spacing: .01em; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-2); font-weight: 400; }

.gala-bar { border-bottom: 1px solid var(--line-soft); }
.gala-bar .in { max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gala-word { font: 400 1.3rem/1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.gala-word em { color: var(--gold-2); }
.gala-back { color: var(--gold-2); text-decoration: none; font-size: .95rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.page-head { max-width: 1080px; margin: 0 auto; padding: 2.6rem 16px 1.6rem; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; color: var(--ink); }
.page-head p { margin: .7rem 0 0; color: var(--muted); max-width: 56ch; }

.btn-pay { font-family: var(--sans); font-weight: 400; letter-spacing: .04em; text-transform: none; border-radius: 0; background: var(--gold); color: var(--bg); box-shadow: none; }
.btn-pay:hover { background: var(--gold-2); }
.btn-ghost { border-radius: 0; font-weight: 400; }
.card, .person, .ticket, .poster, .kpi, label.opt, .result-head, .cam, .lines li, input[type=text], input[type=email], input[type=password], input[type=search], select, .alert, .notice, .elsewhere, .stand-counts .sc, .tag, .pill, .cam-tool, .step { border-radius: 2px; }
.step { border-radius: 50%; }
.cam-tool { border-radius: 50%; }
.card, .person { background: var(--surface); box-shadow: none; }
.person { border-color: var(--line); }
label.opt { background: transparent; border-color: var(--line-soft); }
label.opt.selected { background: rgba(200, 164, 93, .08); border-color: var(--gold); }
.opt-top strong { font: 400 1.15rem var(--serif); }
.opt-price, .person-sub, .drink-price, .total-row strong, .paybar-total strong { font-family: var(--serif); font-weight: 400; }
.tag { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.ticket { background: var(--surface); box-shadow: none; border-color: var(--line); }
.ok-title { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: 1.5rem; color: var(--gold-2); }
.badge-ok { box-shadow: none; }
.mode-ribbon { font-family: var(--sans); font-weight: 500; letter-spacing: .06em; background: var(--gold); }
.result-status { font-family: var(--sans); font-weight: 700; }
input.invalid, select.invalid { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(229, 84, 79, .18); }
.person-err { margin: -.3rem 0 .8rem; padding: .55rem .75rem; border-left: 2px solid var(--err); background: rgba(229, 84, 79, .1); color: #ffb3ab; font-size: .9rem; }
#errors { scroll-margin-top: 90px; }

.p-cartouche, .t-cartouche {
  position: relative; display: inline-flex; align-items: center; min-height: 52px; margin: 0 0 .9rem; padding: 6px 34px 6px 20px;
  border: 1.5px solid var(--gold); border-radius: 999px; outline: 1px solid rgba(200, 164, 93, .35); outline-offset: 4px;
  font: 28px/1 "Noto Sans Egyptian Hieroglyphs", serif; color: var(--gold-2); letter-spacing: .05em;
}
.p-cartouche::after, .t-cartouche::after { content: ""; position: absolute; right: 13px; top: 16%; bottom: 16%; width: 1.5px; background: var(--gold); }
.p-cartouche[hidden] { display: none; }
.t-cartouche { margin: .6rem auto .4rem; font-size: 32px; }
@media print { .t-cartouche { color: #000; border-color: #000; outline-color: #000; } .t-cartouche::after { background: #000; } }
.mail-note { margin: .4rem auto 0; color: var(--gold-2); font-size: .95rem; max-width: 46ch; }
.gadz-fields { margin: .2rem 0 1rem; display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
@media (min-width: 620px) { .gadz-fields { grid-template-columns: 1.5fr 1fr 1fr; } }
.gadz-fields[hidden] { display: none; }
.gadz-fields select { appearance: auto; }

.drink-photo { flex: none; width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-soft); background: var(--bg-2); }
.drink-info { flex: 1; }

.cat-stand > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .6rem; }
.cat-stand > header h3 { margin: 0; }
.cat-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line-soft); background: var(--bg-2); display: block; }
.cat-thumb.vide { display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.cat-form { display: grid; gap: .2rem 1rem; grid-template-columns: 1fr; margin: .6rem 0 0; }
.cat-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.cat-form .large { grid-column: 1 / -1; }
.cat-form input[type=number], .cat-form input[type=file] { display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; font: 500 16px var(--sans); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 0; }
.cat-form .coche { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .95rem; }
.cat-form .coche input { width: 20px; height: 20px; }
.cat-form .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cat-form .actions .btn-pay { width: auto; min-height: 46px; padding: 0 1.4rem; }
.cat-plus { margin-top: .8rem; border-top: 1px dashed var(--line-soft); padding-top: .6rem; }
.cat-plus > summary { cursor: pointer; color: var(--gold-2); font-weight: 600; list-style: none; }
.cat-plus > summary::-webkit-details-marker { display: none; }
.cat-plus > summary::before { content: "+ "; }
.cat-plus[open] > summary::before { content: "− "; }
.cat-edit { background: rgba(214, 178, 98, .06); }
.btn-ghost.danger { border-color: rgba(229, 84, 79, .5); color: #ffb3ab; }
@media (min-width: 720px) { .cat-form { grid-template-columns: 2fr 1fr 1fr; } }
form.en-ligne { display: inline; }

.event-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 .9rem; }
.event-tab {
  display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; min-height: 86px;
  padding: .8rem .9rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-soft); position: relative; transition: border-color .2s, transform .2s;
}
.event-tab:hover { border-color: var(--line); transform: translateY(-1px); }
.event-tab strong { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-2); line-height: 1.1; }
.event-tab-day { text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; color: var(--gold); }
.event-tab .tag { margin-top: .35rem; }
.event-tab.current {
  border-color: var(--gold); background: linear-gradient(180deg, rgba(214, 178, 98, .16), rgba(214, 178, 98, .03)), var(--surface);
  box-shadow: 0 0 0 3px rgba(214, 178, 98, .14), 0 10px 30px -18px var(--gold);
}
.event-tab.current::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--gold); }
.event-tab.soldout:not(.current) { opacity: .6; }
.event-desc { margin: .2rem 0 1.1rem; color: var(--muted); font-style: italic; }
.legend-hint { font-weight: 400; color: var(--muted); font-size: .9em; }
@media (max-width: 560px) {
  .event-tabs { grid-template-columns: 1fr; }
  .event-tab { flex-direction: row; align-items: center; min-height: 0; gap: .6rem .8rem; flex-wrap: wrap; }
  .event-tab strong { font-size: 1.1rem; }
  .event-tab-day { order: 2; width: 100%; }
  .event-tab .tag { margin: 0 0 0 auto; }
  .event-tab.current::after { display: none; }
}

.menus { border-top: 0; margin-top: .4rem; padding: .9rem .9rem .4rem; border-radius: 12px;
  background: linear-gradient(180deg, rgba(214, 178, 98, .09), transparent 60%), var(--surface-2); border: 1px solid var(--line); }
.menus[hidden] { display: none; }
.menus-head h4 { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-2); display: flex; align-items: baseline; gap: .5rem; }
.menus-head h4::before { content: "▾"; color: var(--gold); font-size: .95em; }
.menus-head .muted { margin: .25rem 0 .5rem; }
.menus .drinks-count { margin: 0; font-size: .9rem; }
.menus-included { margin: .4rem 0 .6rem; padding: .45rem .7rem; border-radius: 10px; background: rgba(214, 178, 98, .1); color: var(--gold-2) !important; }
.menus-included[hidden] { display: none; }
.menus.reveal { animation: menusIn .45s ease-out; }
@keyframes menusIn {
  from { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 0 0 rgba(214, 178, 98, .0); }
  40%  { box-shadow: 0 0 0 4px rgba(214, 178, 98, .35); }
  to   { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(214, 178, 98, 0); }
}
.pill.ev-taps { background: rgba(120, 170, 255, .18); color: #cfe0ff; }
.pill.ev-gala { background: rgba(214, 178, 98, .2); color: var(--gold-2); }
.pill.ev-brunch { background: rgba(150, 220, 160, .18); color: #d6f5dc; }

.ticket-event { margin: -.2rem 0 .4rem; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--gold); }
.result-event { margin: .1rem 0 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--gold); font-weight: 700; }

.profile { border: 0; padding: 0; margin: 0 0 .6rem; }
.profile legend { font-weight: 700; margin-bottom: .5rem; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.seg-opt { position: relative; margin: 0; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-opt span {
  display: block; text-align: center; padding: .75rem .5rem; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--ink); transition: border-color .15s, background .15s;
}
.seg-opt input:checked + span { border-color: var(--gold); background: linear-gradient(180deg, rgba(214, 178, 98, .22), rgba(214, 178, 98, .08)); color: var(--gold-2); box-shadow: 0 0 0 3px rgba(214, 178, 98, .16); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.profile-single { margin: -.2rem 0 .6rem; }
.price-line {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem;
  padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(214, 178, 98, .14), rgba(214, 178, 98, .04)), var(--surface);
}
.price-line[hidden], .price-line-none[hidden] { display: none; }
.price-line-label { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.price-line-label .kicker { margin: 0; }
.price-line-label strong { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-2); line-height: 1.15; }
.price-line-label small { font-size: .78rem; }
.price-line-amount { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-line-none { margin: .5rem 0 0; color: var(--warn) !important; }
.price-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.link-btn { background: none; border: 0; padding: .1rem 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; cursor: pointer; }
.link-btn:hover { color: var(--gold-2); }

.nights { border: 0; padding: 0; margin: .4rem 0 .2rem; display: grid; gap: .6rem; }
.nights[hidden] { display: none; }
.nights legend { font-weight: 700; margin-bottom: .2rem; }
.night { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.night.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 178, 98, .14); }
.night.soldout, .night.blocked { opacity: .55; }
.night-head { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem .9rem; margin: 0; cursor: pointer; }
.night-head input { width: 24px; height: 24px; flex: none; margin: .15rem 0 0; accent-color: var(--gold); }
.night-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .1rem .8rem; align-items: center; }
.night-top { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; text-align: left; }
.night-top strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-2); line-height: 1.15; }
.night-when { text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; color: var(--gold); }
.night-price { grid-column: 2; grid-row: 1 / 3; justify-self: end; font-family: var(--serif); font-size: 1.35rem; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.night-desc { grid-column: 1; grid-row: 2; font-size: .8rem; color: var(--muted); text-align: left; }
.night .menus { margin: 0 .6rem .6rem; }
.night-age { grid-column: 1; grid-row: 3; justify-self: start; margin-top: .3rem; padding: .12rem .5rem; border: 1px solid #c9604f; border-radius: 999px; color: #f0a596; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.drink-sub { margin-left: 1.2rem; padding-left: .6rem; border-left: 2px solid var(--line); }
.drink[hidden] { display: none; }
.profile-hint[hidden] { display: none; }

@media (max-width: 480px) {
  h1 { font-size: 2rem; margin-bottom: .3em; }
  .lead { font-size: .92rem; }
  .section-title { font-size: 1.35rem; }
  .person { padding: .9rem .75rem .5rem; }
  .person-head h3 { font-size: 1.25rem; }
  .card { padding: 1rem .85rem; }
  .seg-opt span { padding: .65rem .3rem; font-size: .95rem; }
  .night-head { padding: .7rem .7rem; gap: .6rem; }
  .night-top strong { font-size: 1.05rem; }
  .night-when { font-size: .58rem; letter-spacing: .08em; }
  .night-price { font-size: 1.15rem; }
  .night-desc { font-size: .74rem; }
  .night .menus { margin: 0 .4rem .5rem; padding: .7rem .6rem .3rem; }
  .menus-head h4 { font-size: 1.05rem; }
  .drink { gap: .5rem; padding: .45rem 0; }
  .drink .step { width: 34px; height: 34px; }
  .drink-sub { margin-left: .6rem; padding-left: .5rem; }
  .shop-page .site-footer { padding-bottom: calc(130px + var(--safe-b)); }
  .customer { margin-bottom: 1rem; }
}
.drink.soldout { opacity: .55; }
.drink.soldout .stepper { visibility: hidden; }

.admin-page { background: #0a0d17; }
.admin-main { max-width: none; padding: 0; margin: 0; }
.admin-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.admin-nav { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem .7rem; border-right: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); overflow-y: auto; }
.mode-demo .admin-nav, .mode-sandbox .admin-nav { top: calc(61px + 1.55rem); height: calc(100vh - 61px - 1.55rem); }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: .62rem .8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.admin-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.admin-nav a[aria-current] { color: #1a1406; background: var(--gold); }
.admin-nav a[aria-current] .ico { color: #1a1406; opacity: .8; }
.admin-nav .ico { width: 1.2em; text-align: center; color: var(--gold); font-size: .95em; }
.admin-nav .sep { margin-top: auto; border-top: 1px solid var(--line-soft); border-radius: 0; padding-top: 1rem; }
.admin-content { padding: 1.4rem 1.6rem 3rem; min-width: 0; }
.admin-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .8rem 1.5rem; margin-bottom: 1.1rem; }
.admin-pagehead h1 { font-size: 1.9rem; margin: 0 0 .15rem; color: var(--gold-2); }
.admin-pagehead p { margin: 0; font-size: .9rem; max-width: 70ch; }
.admin-pagehead .muted-2 { color: var(--muted); opacity: .8; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-actions form { margin: 0; }
.admin-actions .btn-ghost { min-height: 40px; padding: .45rem .9rem; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.topbar-link { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; padding: .4rem .6rem; border-radius: 8px; }
.topbar-link:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.topbar-link.logout { border: 1px solid var(--line-soft); }
.mode-badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: rgba(52, 194, 122, .15); color: var(--ok); white-space: nowrap; }
.mode-badge.mode-demo { background: rgba(240, 164, 58, .15); color: var(--warn); }
.mode-badge.mode-sandbox { background: rgba(120, 170, 255, .15); color: #cfe0ff; }
.admin-h2 { font-size: 1.15rem; color: var(--gold-2); margin: 1.3rem 0 .6rem; letter-spacing: .02em; }
.admin-content .card { padding: 1.1rem 1.2rem; }
.admin-content .card h3 { font-size: 1.15rem; margin: 0 0 .7rem; color: var(--gold-2); }
.admin-content .row-between { margin-bottom: .5rem; }
.admin-content .row-between h3 { margin: 0; font-size: 1.15rem; }
.warn-txt { color: var(--warn); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.kpi-row .kpi strong { font-size: 1.9rem; }
.kpi-row .kpi.accent { grid-column: auto; }
.kpi-row .kpi.accent strong { font-size: 2.2rem; }
.kpi em { color: var(--muted); }

.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.event-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: .9rem 1rem; }
.event-card header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.event-card header strong { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-2); }
.event-card header .muted { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.event-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .6rem; }
.event-nums div { background: rgba(255, 255, 255, .03); border-radius: 10px; padding: .45rem .5rem; text-align: center; }
.event-nums b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.event-nums span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tarif-list { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.tarif-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-top: 1px dashed var(--line-soft); }
.tarif-list b { font-variant-numeric: tabular-nums; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; align-items: start; }
.two-col > div { display: grid; gap: .9rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: .4rem .3rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .5rem .3rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl small { display: block; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.order-list li a { color: var(--ink); text-decoration: none; }
.order-list li a:hover b { text-decoration: underline; }
.order-list .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem .9rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .2rem; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.filters { display: flex; gap: .5rem; margin-bottom: .6rem; }
.filters input { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.chip { font-size: .82rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; }
.chip.on { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.chip-sep { width: 1px; height: 1.2rem; background: var(--line-soft); margin: 0 .3rem; }
.order-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
.order-card.is-pending { border-style: dashed; opacity: .8; }
.order-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; margin-bottom: .5rem; }
.order-id { display: flex; flex-direction: column; min-width: 0; }
.order-id b { font-size: 1.05rem; }
.order-meta { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.order-total { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.ticket-lines { list-style: none; margin: 0; padding: 0; }
.ticket-lines li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .4rem 0; border-top: 1px dashed var(--line-soft); font-size: .9rem; }
.ticket-lines .spacer { flex: 1; }
.order-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-soft); }
.order-card footer form { margin: 0; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .admin-nav, .mode-demo .admin-nav, .mode-sandbox .admin-nav { position: static; height: auto; top: auto; align-self: auto; align-items: center; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: .5rem .6rem; gap: .25rem; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { padding: .5rem .7rem; font-size: .85rem; }
  .admin-nav .sep { margin-top: 0; border-top: 0; padding-top: .5rem; }
  .admin-content { padding: 1rem .9rem 2.5rem; }
  .admin-pagehead h1 { font-size: 1.5rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .event-cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .topbar .brand-txt { display: none; }
  .topbar-link:not(.logout) { display: none; }
}
@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .kpi-row .kpi strong { font-size: 1.5rem; }
  .kpi-row .kpi.accent strong { font-size: 1.7rem; }
  .admin-actions { width: 100%; }
  .filters { flex-wrap: wrap; }
  .order-meta { width: 100%; justify-content: space-between; }
}

.drink-group { margin-top: .4rem; }
.drink-group + .drink-group { margin-top: .9rem; }
.drink-group-title { margin: 0 0 .1rem; font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .02em; display: flex; align-items: baseline; gap: .5rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.drink-group-title small { font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.drink-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.drink-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.drink-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.drink-tags .tag { font-size: .68rem; }

.don {
  position: relative; margin: 1.4rem 0 .4rem; padding: 1.3rem 0 .2rem;
  border-top: 1px solid var(--line);
}
.don::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--surface);
}
.don-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.don-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--gold-2); }
.don-opt { font: 400 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.don-lead { margin: .35rem 0 1rem; font-size: .88rem; line-height: 1.5; color: var(--muted); }

.don-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.don-preset {
  display: block; height: 50px; padding: 0 .3rem; margin: 0; text-align: center; white-space: nowrap;
  font: 400 1.35rem/48px var(--serif); color: var(--ink); letter-spacing: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.don-preset span { margin-left: .15em; font: 300 .8rem var(--sans); color: var(--muted); vertical-align: .1em; transition: color .15s; }
.don-preset:hover { border-color: var(--gold); color: var(--gold-2); }
.don-preset:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.don-preset.selected {
  border-color: var(--gold); color: var(--gold-2);
  background: linear-gradient(180deg, rgba(200, 164, 93, .22), rgba(200, 164, 93, .06));
  box-shadow: inset 0 0 0 1px var(--gold), 0 6px 18px -10px rgba(200, 164, 93, .7);
}
.don-preset.selected span { color: var(--gold-2); }

.don-free { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: .7rem 0 0; }
.don-free-label { font: 300 .9rem var(--sans); color: var(--muted); }
.don-free-field { position: relative; display: block; width: 8.5rem; }
.don-free-field input {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 2rem 0 .8rem;
  font: 400 1.15rem var(--serif); text-align: right; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 2px; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.don-free-field input::placeholder { color: rgba(241, 234, 219, .25); }
.don-free-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 93, .16); }
.don-free-field input::-webkit-outer-spin-button, .don-free-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.don-eur { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font: 300 .9rem var(--sans); color: var(--muted); pointer-events: none; }
.don.has-don .don-free-field input:not(:placeholder-shown) { border-color: var(--line); color: var(--gold-2); }

.lines li.don-line { display: flex; align-items: baseline; gap: .5rem; margin-top: .4rem; padding-top: .7rem; border-top: 1px dashed var(--line-soft); }
.lines li.don-line .q { display: none; }
.lines li.don-line .l { flex: 1; color: var(--gold-2); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }
.lines li.don-line .l::before { content: "♦"; margin-right: .5rem; font-style: normal; font-size: .65rem; color: var(--gold); vertical-align: .2em; }
@media (max-width: 380px) { .don-preset { font-size: 1.15rem; height: 46px; line-height: 44px; } }

.event-split { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: 0 0 .6rem; font-size: .8rem; color: var(--muted); }
.event-split b { color: var(--ink); font-variant-numeric: tabular-nums; }
.event-split .pre { color: var(--gold-2); }
.card h3.sub-h3 { margin: 1.6rem 0 .5rem; }
.combo-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.combo-list li { display: grid; grid-template-columns: minmax(9rem, auto) 1fr 2.5rem; align-items: center; gap: .7rem; padding: .3rem 0; border-top: 1px dashed var(--line-soft); }
.combo-list .bar { width: 100%; height: 6px; display: block; }
.combo-list .bar .track { fill: rgba(255, 255, 255, .06); }
.combo-list .bar .fill { fill: var(--gold); }
.combo-list b { text-align: right; font-variant-numeric: tabular-nums; }
.don-nums { margin-top: .4rem; }
.order-don { font-size: .8rem; }
.person-block { padding: .55rem 0; border-top: 1px dashed var(--line-soft); }
.person-block:first-child { border-top: 0; }
.person-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.person-line .pill.prof { background: rgba(200, 164, 93, .14); color: var(--gold-2); }
.person-events { list-style: none; margin: .35rem 0 0; padding: 0 0 0 .9rem; display: grid; gap: .25rem; font-size: .86rem; }
.person-events li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.person-events .spacer { flex: 1; }

.shop-note { margin: 0 0 1.2rem; padding: .85rem 1rem; border-left: 2px solid var(--gold); background: rgba(200, 164, 93, .07); font-size: .92rem; line-height: 1.55; color: var(--ink); }
.shop-note strong { color: var(--gold-2); font-weight: 500; }
.menus-onsite { margin: .2rem 0 .7rem; font-style: italic; }

.event-bar { flex: none; display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; padding: .45rem .7rem; border: 1px solid var(--line); background: rgba(200, 164, 93, .08); font-size: .9rem; }
.event-bar.missing { border-color: var(--warn); background: rgba(240, 164, 58, .12); }
.event-pick { display: flex; align-items: center; gap: .6rem; width: 100%; margin: 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.event-pick select { flex: 1; margin: 0; padding: .45rem .6rem; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.event-now { margin: 0; color: var(--ink); }
.event-now strong { color: var(--gold-2); font-weight: 600; }
.event-bar.missing .event-now strong { color: var(--warn); }
.event-now small { color: var(--muted); margin-left: .3rem; }

.scan-settings { margin-bottom: 1rem; }
.scan-mode { grid-template-columns: 1fr 1fr; }
.scan-mode .seg-opt span { text-align: left; padding: .8rem 1rem; }
.scan-mode .seg-opt small { display: block; margin-top: .2rem; font-weight: 400; font-size: .78rem; color: var(--muted); }
.scan-win input[type=datetime-local] { width: 100%; margin: 0; padding: .5rem .6rem; font: 400 .9rem var(--sans); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 2px; color-scheme: dark; }
.scan-win td { vertical-align: middle; padding: .45rem .3rem; }
.scan-win tr.now td:first-child { color: var(--gold-2); }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin-bottom: .8rem; }
.inline-form label { flex: 1; min-width: 12rem; margin: 0; }
.purge-form { margin: 0; }
@media (max-width: 640px) { .scan-mode { grid-template-columns: 1fr; } }

.att-actions { flex-basis: 100%; }
.person-events li { flex-wrap: wrap; }
.att-actions > summary { display: inline-block; cursor: pointer; font-size: .78rem; color: var(--gold-2); list-style: none; padding: .1rem 0; }
.att-actions > summary::-webkit-details-marker { display: none; }
.att-actions > summary::before { content: "▸ "; }
.att-actions[open] > summary::before { content: "▾ "; }
.att-panel { margin: .4rem 0 .6rem; padding: .8rem .9rem; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); display: grid; gap: .8rem; }
.att-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.att-form { display: grid; gap: .5rem; margin: 0; padding-top: .7rem; border-top: 1px dashed var(--line-soft); }
.att-form label { margin: 0; font-size: .82rem; }
.att-form input[type=text], .att-form input[type=email], .att-form select { margin-top: .25rem; padding: .55rem .7rem; font-size: .92rem; }
.att-form .check { font-weight: 400; font-size: .85rem; }
.att-form button { justify-self: start; }
.att-form-title { margin: 0; font-size: .85rem; color: var(--ink); font-weight: 600; }
.btn-ghost.danger { border-color: rgba(229, 84, 79, .5); color: #f2a19d; }
.blocked-note { margin: 0; color: #f2a19d; font-size: .85rem; }
.new-links ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; word-break: break-all; }

.live-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.live-ev { background: var(--surface); border: 1px solid var(--line-soft); padding: 1rem 1.1rem; }
.live-ev.now { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 93, .12); }
.live-ev header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.live-ev header strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); font-weight: 400; }
.live-ev header .muted { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.live-big { margin: .5rem 0 .4rem; display: flex; align-items: baseline; gap: .45rem; }
.live-big b { font: 800 2.4rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.live-big span { color: var(--muted); }
.live-bar { display: block; width: 100%; height: 8px; }
.live-bar .track { fill: rgba(255, 255, 255, .06); } .live-bar .fill { fill: var(--gold); }
.live-meta { margin: .55rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.live-meta b { color: var(--ink); }
.live-log { list-style: none; margin: 0; padding: 0; font-size: .86rem; max-height: 70vh; overflow-y: auto; }
.live-log li { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; padding: .45rem 0; border-top: 1px dashed var(--line-soft); }
.live-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.live-log li.warn b { color: #f2a19d; }
.live-log li.info b { color: var(--gold-2); }
.code-cell.off { text-decoration: line-through; opacity: .5; }
.code-actions { white-space: nowrap; }
.code-actions form { display: inline-block; margin-left: .3rem; }

details.drink-group { border: 1px solid var(--line-soft); margin: .6rem 0; background: var(--bg-2); }
details.drink-group > summary.drink-group-title { border-bottom: 0; padding-bottom: .75rem; list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .75rem .9rem; margin: 0; }
details.drink-group > summary::-webkit-details-marker { display: none; }
details.drink-group > summary::before { content: "▸"; color: var(--gold); transition: transform .2s; }
details.drink-group[open] > summary::before { transform: rotate(90deg); }
details.drink-group > summary .dg-name { font-family: var(--serif); font-size: 1.08rem; color: var(--gold-2); }
details.drink-group > summary .dg-name small { color: var(--muted); font-family: inherit; font-size: .78rem; margin-left: .3rem; }
details.drink-group > summary .dg-meta { color: var(--muted); font-size: .8rem; flex-basis: 100%; padding-left: 1.3rem; }
details.drink-group > summary .dg-count { margin-left: auto; color: var(--gold); font-size: .85rem; font-weight: 600; }
details.drink-group.has-sel { border-color: var(--line); }
details.drink-group[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.drink-group > .drink { padding-left: .9rem; padding-right: .9rem; }
details.drink-group > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.drinks details.drink-group > summary.drink-group-title { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; padding: .75rem .9rem; }
.drinks details.drink-group > summary.drink-group-title::after { content: none; }
.drinks details.drink-group > summary .dg-meta { font-family: var(--sans); font-style: normal; }
.drinks details.drink-group > summary .dg-meta .tag { white-space: nowrap; display: inline-block; margin-top: .25rem; }
.drinks details.drink-group > summary .dg-count { font-family: var(--sans); font-style: normal; }
.drinks details.drink-group > summary .dg-name { flex: 1 1 0; min-width: 0; }
details.drink-group > summary::before { flex: none; }
details.drink-group[hidden] { display: none; }
.drinks details.drink-group > summary .dg-name .tag { font-family: var(--sans); font-style: normal; font-size: .72rem; vertical-align: middle; margin-left: .3rem; white-space: nowrap; }
details.drink-group > summary::before { align-self: flex-start; margin-top: .3rem; }

.pack-picks { margin-top: .6rem; padding: .6rem .7rem; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: .45rem; }
.pack-picks[hidden] { display: none; }
.pack-picks .pp-title { margin: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.pack-picks .pp-row { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.pack-picks .pp-lab { font-size: .75rem; color: var(--muted); }
.pack-picks .pp-fixed .pp-val { font-size: .9rem; color: var(--ink); }
.pack-picks .pp-fixed .pp-lab::after { content: " · non modifiable"; }
.pack-picks select { width: 100%; min-height: 44px; font-size: 16px; }
.pack-picks select.invalid { border-color: var(--err); }
.drink:has(.pack-picks) { flex-wrap: wrap; }
.drink > .pack-picks { flex: 1 0 100%; order: 3; }
.pack-picks .pp-choice .pp-lab { font-weight: 400; } .pack-picks .pp-choice .pp-lab::after { content: " · au choix"; color: var(--gold); }

details.drink-group > .dg-when { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .65rem .9rem; background: rgba(200, 164, 93, .14); border-left: 3px solid var(--gold); color: var(--ink); font-size: .88rem; line-height: 1.4; }
details.drink-group > .dg-when strong { color: var(--gold-2); }

.drink-price.promo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; white-space: normal; }
.drink-price .price-was { color: var(--muted); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.drink-price .promo-tag { font-family: var(--sans); font-size: .7rem; color: var(--gold-2); border-color: var(--gold); white-space: nowrap; }
.drink-price.promo { max-width: 100%; min-width: 0; }
.drink-price.promo > * { white-space: nowrap; }

.items-fix .fix-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; padding: .5rem 0; border-top: 1px dashed var(--line-soft); }
.items-fix .fix-label { flex: 1 1 100%; font-weight: 600; }
.items-fix .fix-used input { width: 4.2rem; display: inline-block; margin: 0 .2rem; }
.items-fix .fix-pick { flex: 1 1 14rem; font-size: .8rem; color: var(--muted); }
.items-fix .fix-pick select { width: 100%; }
.items-fix .fix-fixed { flex: 1 1 100%; }

.confirm-box { margin: .8rem 0; padding: .9rem 1rem; border: 2px solid var(--gold); background: rgba(200, 164, 93, .12); display: flex; flex-direction: column; gap: .4rem; }
.confirm-box .confirm-title { margin: 0 0 .2rem; font-weight: 700; font-size: 1.1rem; color: var(--gold-2); }
.confirm-box .confirm-line { margin: 0; font-size: 1rem; }
.confirm-box .btn-pay { margin-top: .5rem; }
.bar-list.locked { opacity: .55; }
.bar-list[hidden] { display: none; }

.staff .manual.manual-top { margin: 0 0 .5rem; }
.staff .cam-msg { white-space: normal; overflow-wrap: anywhere; }
@supports (-webkit-touch-callout: none) {
  @media not all and (display-mode: standalone) {
    .staff .staff-main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }
  }
}
