/* Vainpot RSVP */
:root {
  --brand: #E8499B;
  --bg: #fbeff5;
  --card: #fff;
  --ink: #23202a;
  --muted: #77707f;
  --line: #ece4ea;
  --soft: #f8f3f6;
  --good: #1f9363;
  --good-soft: #def5ea;
  --warn: #b26b00;
  --warn-soft: #fff1d6;
  --bad: #d43a4a;
  --bad-soft: #fde4e7;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(35, 32, 42, .06), 0 6px 20px rgba(35, 32, 42, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.adm { background: #f5f3f6; }
a { color: var(--brand); }
h1, h2 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.req { color: var(--bad); }
.hint { color: var(--muted); font-size: .875rem; margin: .35rem 0 0; }
.ok-text { color: var(--good); } .warn-text { color: var(--warn); }

/* cards & layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 0 0 14px; border: 1px solid var(--line); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.stack > * + * { margin-top: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; align-items: end; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 11px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.05); } .btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.big { width: 100%; padding: 16px; font-size: 1.1rem; }
.btn.sm { padding: 6px 14px; font-size: .875rem; }
.btn.danger { background: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
form.inline { display: inline; }

/* fields */
.f { display: block; margin: 0 0 14px; }
.f > span { display: block; font-weight: 600; font-size: .925rem; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid #ddd3da; border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=color] { width: 64px; height: 42px; padding: 2px; border: 1.5px solid #ddd3da; border-radius: 10px; background: #fff; }
textarea { resize: vertical; }
.f.bad input, .f.bad select, .bad input[type=text] { border-color: var(--bad); }
.err-msg { color: var(--bad); font-size: .875rem; margin: -6px 0 12px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check.bad span { color: var(--bad); }
.prefix { display: flex; align-items: center; border: 1.5px solid #ddd3da; border-radius: 10px; overflow: hidden; background: #fff; }
.prefix em { font-style: normal; color: var(--muted); padding: 0 0 0 12px; white-space: nowrap; font-size: .9rem; }
.prefix input { border: 0 !important; box-shadow: none !important; padding-left: 2px; }
.tiny { width: 80px !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.q + .q { margin-top: 22px; }
.q.bad legend { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* flash */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; background: var(--good-soft); color: #145c3e; }
.flash.err { background: var(--bad-soft); color: #9b1f2d; }
.flash.info, .flash.warn { background: var(--warn-soft); color: #7a4a00; }

/* pills */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--muted); vertical-align: middle; }
.st-open, .st-confirmed { background: #e5f0ff; color: #2456b8; }
.st-attended { background: var(--good-soft); color: var(--good); }
.st-draft { background: #eee; color: #666; }
.st-closed, .st-cancelled { background: #f1eef0; color: #8b8590; }
.st-no_show { background: var(--warn-soft); color: var(--warn); }

/* ================= picker (shared by guest pages and admin) ================= */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .days label, .slot { cursor: pointer; position: relative; }
.seg input, .days input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #ddd3da; font-weight: 600; transition: all .15s; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span, .days input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.days span { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; border-radius: 14px; border: 1.5px solid #ddd3da; text-align: center; transition: all .15s; min-height: 80px; }
.days b { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.days strong { font-size: 1.2rem; }
.days small { font-size: .8rem; }
.days em { font-style: normal; font-size: .72rem; font-weight: 700; min-height: 1.1em; }
.days .few em { color: var(--warn); } .days .full em { color: var(--bad); } .days .full span { opacity: .6; }
.days input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); box-shadow: inset 0 0 0 1px var(--brand); }
.picker.js .slots-day { display: none; }
.slots-day { font-weight: 700; margin: 14px 0 6px; grid-column: 1 / -1; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.slot span { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #ddd3da; transition: all .15s; height: 100%; }
.slot small { color: var(--muted); font-size: .78rem; }
.slot em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); margin-left: auto; }
.slot.few em { color: var(--warn); }
.slot.full span { background: var(--soft); color: #aaa2ac; }
.slot.full em { color: var(--bad); }
.slot input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot input:checked + span em, .slot input:checked + span small { color: #fff; }
.picker[data-admin="1"] .slot.full span { cursor: pointer; color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.radio.other input[type=text] { flex: 1; }

/* ================= public (Headspace-style, Vainpot pink) ================= */
body.pub {
  --cream: #FFF7F4;
  --ink: #2A1F2D;
  --muted: #7C6E80;
  --tile: #FFF0F5;
  --t1: #FFE1EE; --t2: #FFE8D6; --t3: #FFF3CC; --t4: #EAE4FF; --t5: #DDF4EA; --t6: #DDEBFF;
  --shadow: 0 2px 4px rgba(42, 31, 45, .04), 0 12px 32px rgba(42, 31, 45, .07);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
}
.pub h1, .pub h2 { font-weight: 900; letter-spacing: -.01em; }
.pub a { color: var(--brand); font-weight: 700; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero */
.hero { position: relative; background: var(--brand); color: #fff; overflow: hidden; padding: 22px 16px 70px; text-align: center; }
.hero-in { position: relative; max-width: 640px; margin: 0 auto; z-index: 1; }
.hero .logo img { height: 30px; width: auto; display: block; margin: 0 auto 26px; }
.hero-small .logo img { margin-bottom: 18px; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); line-height: 1.08; margin: 0 0 16px; color: #fff; text-wrap: balance; }
.hero-small h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
.hero-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 2.3rem; }
.tickmark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--brand); font-size: 2rem; font-weight: 900; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.chips-info { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips-info li { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.18); border-radius: 22px; padding: 8px 16px; font-weight: 700; font-size: .9rem; text-align: left; max-width: 100%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chips-info a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
.hero-img { display: block; width: 100%; border-radius: 24px; margin: 22px auto 0; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.b1 { width: 260px; height: 260px; background: rgba(255,255,255,.12); top: -90px; left: -80px; }
.b2 { width: 180px; height: 180px; background: #FFB86B; opacity: .35; bottom: 10px; right: -50px; }
.b3 { width: 70px; height: 70px; background: #FFE27A; opacity: .35; bottom: 40px; left: 6%; }
.wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 58px; display: block; }
.wave path { fill: var(--cream); }

/* layout */
.pub-wrap { max-width: 640px; margin: -34px auto 0; padding: 0 16px 120px; position: relative; z-index: 2; }
.pub .card { border: 0; border-radius: 28px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.pub .flash { border-radius: 18px; }
.intro .desc { font-size: 1.02rem; color: var(--ink); }
.lead { font-size: 1.05rem; margin: 0 0 18px; }
.big-emoji { font-size: 3rem; }
.section-title { text-align: center; margin: 28px 0 14px; }

/* steps */
.pub .step { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 24px; margin: 0 0 16px; }
.step-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.step-h .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--t1); color: var(--brand); font-weight: 900; display: grid; place-items: center; font-size: 1.05rem; }
.step-h h2 { font-size: 1.3rem; margin: 4px 0 0; }
.step-h p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.q-title { font-weight: 800; margin: 18px 0 8px; }

/* party size tiles */
.pub .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pub .seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 22px; background: var(--tile); border: 2.5px solid transparent; transition: transform .15s, border-color .15s, background .15s; }
.pub .seg i { font-style: normal; font-size: 1.9rem; line-height: 1.2; }
.pub .seg b { font-weight: 900; }
.pub .seg small { color: var(--muted); font-size: .8rem; }
.pub .seg label:hover span { transform: translateY(-2px); }
.pub .seg input:checked + span { background: #fff; border-color: var(--brand); color: var(--ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }

/* day tiles */
.pub .days { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pub .days span { border: 2.5px solid transparent; border-radius: 22px; min-height: 112px; padding: 12px 6px; gap: 0; background: var(--t1); transition: transform .15s, border-color .15s; }
.pub .day.t2 span { background: var(--t2); } .pub .day.t3 span { background: var(--t3); } .pub .day.t4 span { background: var(--t4); }
.pub .day.t5 span { background: var(--t5); } .pub .day.t6 span { background: var(--t6); }
.pub .days b { color: var(--ink); opacity: .65; font-size: .75rem; font-weight: 900; }
.pub .days strong { font-size: 2rem; font-weight: 900; line-height: 1.1; }
.pub .days small { font-weight: 800; font-size: .85rem; }
.pub .days em { margin-top: 4px; font-size: .7rem; padding: 1px 8px; border-radius: 999px; }
.pub .days .few em { background: #fff; color: var(--warn); }
.pub .days .full em { background: #fff; color: var(--bad); }
.pub .days label:hover span { transform: translateY(-2px); }
.pub .days input:checked + span { border-color: var(--brand); background: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }
.pub .days input:checked + span b { color: var(--brand); opacity: 1; }

/* time slots */
.pub .slots { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pub .slot span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 14px 16px; border-radius: 20px; border: 2.5px solid #F1E4EA; background: #fff; min-height: 76px; position: relative; transition: border-color .15s, background .15s, transform .15s; }
.pub .slot b { font-size: 1.15rem; font-weight: 900; }
.pub .slot .to { color: var(--muted); font-size: .8rem; flex-basis: auto; order: 0; }
.pub .slot .note { color: var(--brand); font-size: .75rem; font-weight: 700; flex-basis: auto; order: 0; }
.pub .slot em { position: absolute; top: 8px; right: 10px; font-size: .68rem; padding: 1px 8px; border-radius: 999px; }
.pub .slot.few em { background: var(--t3); color: var(--warn); }
.pub .slot.full em { background: #F3EEF1; color: var(--bad); }
.pub .slot:not(.full):hover span { border-color: color-mix(in srgb, var(--brand) 45%, #fff); transform: translateY(-2px); }
.pub .slot.full span { background: #FAF6F8; color: #B9AEBB; border-style: dashed; }
.pub .slot.full b { text-decoration: line-through; text-decoration-thickness: 2px; }
.pub .slot input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.pub .slot input:checked + span .to, .pub .slot input:checked + span .note { color: rgba(255,255,255,.85); }
.pub .pick-day-first { background: var(--tile); border-radius: 16px; padding: 14px; text-align: center; margin: 0; }

/* inputs */
.pub .f > span { font-weight: 800; font-size: .95rem; }
.pub input[type=text], .pub input[type=tel], .pub input[type=email], .pub input:not([type]) {
  background: var(--tile); border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; font-size: 1.02rem;
}
.pub input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.pub .f.bad input { border-color: var(--bad); background: #FFF4F5; }
.phone { display: flex; align-items: center; background: var(--tile); border-radius: 16px; border: 2px solid transparent; }
.phone:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.phone em { font-style: normal; font-weight: 800; padding-left: 16px; color: var(--muted); }
.phone input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.f.bad .phone { border-color: var(--bad); }

/* "how did you hear" pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--tile); font-weight: 700; border: 2px solid transparent; transition: all .15s; }
.pills input:checked + span { background: var(--brand); color: #fff; }
.pills input:focus-visible + span { border-color: var(--brand); }
.other-box { display: none; margin-top: 12px; }
.pills:has(input[value="__other"]:checked) + .other-box { display: block; }
.step.bad .pills span { box-shadow: inset 0 0 0 2px #F5C2C8; }

/* tick boxes */
.tick { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--tile); margin-bottom: 10px; cursor: pointer; font-weight: 700; }
.tick.soft { background: transparent; border: 2px dashed #F1E4EA; font-weight: 600; }
.tick input { position: absolute; opacity: 0; }
.tick i { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #fff; border: 2.5px solid #E5D3DC; display: grid; place-items: center; transition: all .15s; }
.tick input:checked + i { background: var(--brand); border-color: var(--brand); }
.tick input:checked + i::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick input:focus-visible + i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.tick.bad { background: #FFF0F2; color: var(--bad); }
.tick small { color: var(--muted); font-weight: 600; }

/* buttons */
.pub .btn { padding: 14px 26px; font-weight: 900; font-size: 1rem; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.pub .btn.ghost { box-shadow: inset 0 0 0 2.5px var(--brand); background: #fff; }
.pub .btn.big { padding: 18px; font-size: 1.15rem; }
.submit-row { margin-top: 8px; }
.center-actions { justify-content: center; }

/* sticky confirm bar */
.sticky-cta { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(608px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 16px 40px rgba(42, 31, 45, .3); z-index: 20; animation: up .3s ease both; }
@keyframes up { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
.sticky-cta .sum { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-cta .sum b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .sum span { font-size: .8rem; opacity: .7; }
.sticky-cta .btn { flex: none; box-shadow: none; }

/* ticket */
.ticket { background: #fff; border-radius: 28px; box-shadow: var(--shadow); margin: 0 0 18px; overflow: hidden; }
.ticket-top { padding: 24px 24px 20px; background: linear-gradient(135deg, var(--t1), var(--t2)); }
.ticket-ev { margin: 0 0 14px; font-weight: 900; font-size: 1.05rem; }
.ticket-when { display: flex; gap: 16px; align-items: center; }
.ticket-when p { margin: 0; }
.cal { flex: none; width: 74px; border-radius: 18px; background: #fff; text-align: center; overflow: hidden; box-shadow: 0 6px 16px rgba(42,31,45,.08); }
.cal b { display: block; background: var(--brand); color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 0; }
.cal strong { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.15; }
.cal small { display: block; font-size: .72rem; font-weight: 800; color: var(--muted); padding-bottom: 6px; }
.t-big { font-size: 1.45rem; font-weight: 900; }
.ticket-cut { position: relative; height: 0; border-top: 2.5px dashed #F1E4EA; margin: 0 22px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); }
.ticket-cut::before { left: -38px; } .ticket-cut::after { right: -38px; }
.ticket-body { padding: 22px 24px 24px; }
.ticket-ref { display: flex; justify-content: space-between; align-items: center; background: var(--tile); border-radius: 18px; padding: 12px 18px; margin-bottom: 14px; }
.ticket-ref span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.ticket-ref strong { font-size: 1.6rem; letter-spacing: .14em; color: var(--brand); font-weight: 900; }
.status-cancelled .ticket-ref strong { text-decoration: line-through; color: var(--muted); }
.status-cancelled .ticket-top { background: #F3EEF1; }
.ticket-rows { list-style: none; padding: 0; margin: 0; }
.ticket-rows li { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.ticket-rows i { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--t3); display: grid; place-items: center; font-style: normal; font-size: 1.2rem; }
.ticket-rows li:nth-child(2) i { background: var(--t4); } .ticket-rows li:nth-child(3) i { background: var(--t5); }
.ticket-rows small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.ticket-rows b { font-weight: 800; }
.ticket-rows a { color: inherit; }
.pub .note { background: var(--t3); border-radius: 18px; padding: 14px 16px; margin: 14px 0 0; max-width: none; text-align: left; font-size: .95rem; }
.change-form { margin-top: 10px; }
.cancel-form { margin: 26px 0; }
.closed-card h2 { margin-top: 8px; }

/* lists (home / find) */
.pub .list li a { border: 0; background: var(--tile); border-radius: 20px; padding: 16px 18px; }
.pub .list li a:hover { background: var(--t1); }

/* footer */
.pub-foot { text-align: center; margin-top: 36px; color: var(--muted); font-size: .9rem; }
.pub-foot img { height: 18px; width: auto; opacity: .9; }
.pub-foot p { margin: 8px 0 0; }

@media (max-width: 480px) {
  .pub .card, .pub .step { padding: 20px 18px; border-radius: 24px; }
  .pub .seg { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pub .seg span { padding: 12px 4px; }
  .pub .seg i { font-size: 1.6rem; }
  .pub .days { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pub .slots { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .pub * { animation: none !important; transition: none !important; } }

/* ================= admin ================= */
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.adm-brand { font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: .02em; }
.adm-brand { display: inline-flex; align-items: center; gap: 8px; }
.adm-brand img { height: 16px; width: auto; }
.adm-brand span { color: var(--brand); font-size: .9rem; }
.adm-top nav { display: flex; gap: 16px; }
.adm-top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .925rem; }
.adm-top nav a:hover { color: var(--ink); }
.adm-event { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px 0; }
.adm-event-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.adm-event-title h1 { font-size: 1.3rem; margin: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 1200px; margin: 10px auto 0; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--brand); }
.adm-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px 80px; }
@media (max-width: 600px) { .adm-wrap { padding: 14px 12px 80px; } .adm-top { padding: 10px 12px; } .adm-event { padding: 12px 12px 0; } .card { padding: 16px; } }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ev { position: relative; padding: 0; }
.ev-link { display: block; padding: 20px 20px 12px; color: inherit; text-decoration: none; }
.ev h2 { margin: 10px 0 4px; }
.ev-dup { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 0 20px 14px; }
.bar { display: block; height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.low i { background: #f0a020; } .bar.full i { background: var(--bad); }

.share { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.share > div { flex: 1; min-width: 260px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; }
.status-form { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 16px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; }
.stat b small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat span { color: var(--muted); font-size: .85rem; }
.cap-list { display: grid; gap: 2px; }
.cap-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.cap-row:hover { background: var(--soft); }
.cap-row.closed { opacity: .5; }
.cap-row .bar { margin: 0; }
.cap-n { text-align: right; font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .cap-row { grid-template-columns: 1fr 90px; } .cap-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.hbar { display: grid; grid-template-columns: 140px 1fr 36px; gap: 10px; align-items: center; font-size: .9rem; }
.hbar b { text-align: right; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .925rem; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfafb; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { text-decoration: none; }
.st-row-cancelled td { opacity: .55; }
.actions-cell { text-align: right; }
.actions-cell form { display: inline; margin-right: 8px; }
.note-inline { color: var(--warn); }
.slots-tbl input { padding: 6px 8px; }
.slots-tbl tr.closed td { background: #faf8f9; }
.slots-tbl tr.over td { background: #fff4f4; }
.day-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day-tools input { padding: 4px 8px; }
.wd { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.log { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.banner-prev { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.banner-prev img { max-width: 240px; border-radius: 10px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, #f5f3f6 30%); }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 600; }
details.card summary { cursor: pointer; font-weight: 700; }
details.card[open] summary { margin-bottom: 14px; }

/* check-in */
.checkin-top { position: sticky; top: 52px; z-index: 5; }
.days-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .9rem; }
.chip.on { background: var(--brand); color: #fff; }
#ci-search { font-size: 1.1rem; padding: 14px; }
.big-count { margin: 10px 0 2px; }
.big-count b { font-size: 1.4rem; }
.ci-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ci-row.in { opacity: .6; }
.ci-btn { min-width: 120px; padding: 14px 18px; }

/* system pages */
.big-code { display: inline-block; font-size: 1.25rem; letter-spacing: .06em; background: #fff; padding: 4px 10px; border-radius: 8px; margin: 6px 0; user-select: all; }
code.break { word-break: break-all; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
details.restore { display: inline-block; margin-left: 8px; vertical-align: middle; }
details.restore[open] { display: block; margin: 10px 0 0; padding: 12px; background: var(--bad-soft); border-radius: 12px; white-space: normal; max-width: 420px; }
details.restore summary { list-style: none; }
.inline-email { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.inline-email input { padding: 4px 8px; font-size: .85rem; width: 180px; }
.big-total { font-size: 1.6rem; }
.adm-top nav { flex-wrap: wrap; justify-content: flex-end; }

.which { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 8px; }
.pub a.btn { color: #fff; }
.pub a.btn.ghost { color: var(--brand); }
.pub .hint + .f, .pub .err-msg + .hint + .f { margin-top: 16px; }
.pub .hint { font-size: .85rem; }
.hero { background: linear-gradient(var(--brand) calc(100% - 6px), var(--cream) 0); }
.tickmark { width: 60px; height: 60px; font-size: 2.2rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.hero-icon:has(.tickmark) { background: rgba(255,255,255,.28); width: 84px; height: 84px; }
.lead { margin-top: 44px; color: var(--muted); }
.ticket-rows a { text-decoration: none; }
.ticket-rows a:hover { text-decoration: underline; }

/* ===== waitlist (guest) ===== */
.pub .slot.full.wl span { cursor: pointer; color: var(--muted); }
.pub .slot.full.wl em { background: var(--t4); color: #5B45B8; }
.pub .slot.full.wl input:checked + span { background: var(--ink); border-color: var(--ink); border-style: solid; color: #fff; }
.pub .slot.full.wl input:checked + span b { text-decoration: none; }
.pub .slot.full.wl input:checked + span em { background: #fff; }
.rsvp-form.wl-mode .submit-row .btn { background: var(--ink); box-shadow: 0 8px 20px rgba(42,31,45,.25); }
.rsvp-form.wl-mode .sticky-cta .btn { background: #fff; color: var(--ink); }
.small-strong { font-size: 1.2rem !important; letter-spacing: 0 !important; }

/* ===== ticket QR ===== */
.ticket-qr { text-align: center; margin: 6px 0 4px; }
.ticket-qr .qr { width: 190px; height: 190px; margin: 0 auto; padding: 10px; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 2px #F1E4EA; }
.ticket-qr .qr svg { width: 100%; height: 100%; display: block; }
.ticket-qr p { margin: 8px 0 0; }

/* ===== door scanner ===== */
.scan-wrap { max-width: 560px; margin: 0 auto; }
.scan-cam { text-align: center; }
.cam { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto 10px; border-radius: 24px; overflow: hidden; background: #1d1720; display: grid; place-items: center; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: none; }
.cam-on .cam video { display: block; }
.cam-frame { position: absolute; inset: 18%; border: 4px solid rgba(255,255,255,.85); border-radius: 22px; pointer-events: none; display: none; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.cam-on .cam-frame { display: block; }
.cam .btn { position: absolute; }
.scan-type { display: flex; gap: 8px; margin-top: 10px; }
.scan-type input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.scan-auto { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.scan-result { border-width: 0; border-left: 10px solid; }
.scan-result.tone-ok { border-color: var(--good); background: #F2FBF6; }
.scan-result.tone-warn { border-color: #F0A020; background: #FFF9EC; }
.scan-result.tone-bad { border-color: var(--bad); background: #FFF4F5; }
.sr-head { display: flex; gap: 12px; align-items: flex-start; }
.sr-head h2 { margin: 0 0 4px; font-size: 1.4rem; }
.sr-head p { margin: 0; }
.sr-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 8px; background: currentColor; }
.tone-ok .sr-dot { color: var(--good); } .tone-warn .sr-dot { color: #F0A020; } .tone-bad .sr-dot { color: var(--bad); }
.sr-who { margin: 14px 0; padding: 12px 14px; background: #fff; border-radius: 14px; }
.sr-who b { font-size: 1.2rem; }
.sr-actions { display: grid; gap: 8px; }
.sr-actions .btn { flex-direction: column; padding: 14px; font-size: 1.05rem; }
.sr-actions .btn.go { background: var(--good); }
.sr-actions .btn.plain { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #ddd3da; }
.sr-actions .btn small { font-weight: 600; opacity: .8; font-size: .78rem; }
.sr-actions .linkbtn { justify-self: center; margin-top: 4px; }

/* ===== reports ===== */
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; overflow-x: auto; }
.vb { flex: 1 0 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.vb i { display: block; width: 100%; max-width: 34px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 0; }
.vb b { position: absolute; top: 0; font-size: .7rem; }
.vb span { font-size: .68rem; color: var(--muted); margin-top: 4px; height: 1em; white-space: nowrap; }
.vbars.hours .vb { flex-basis: 12px; }
.vbars.hours .vb i { background: color-mix(in srgb, var(--brand) 70%, #fff); }
.heat td { text-align: center; background: color-mix(in srgb, var(--brand) calc(var(--p) * 0.55%), #fff); font-variant-numeric: tabular-nums; }
.heat td.full { color: #fff; background: var(--brand); }
.heat td b { display: block; font-size: .85rem; }
.heat td small { font-size: .7rem; margin: 0 2px; }
.heat td.empty { background: repeating-linear-gradient(45deg, #faf8f9, #faf8f9 6px, #f3eff2 6px, #f3eff2 12px); }
.heat th { white-space: nowrap; }
.hbar-sub { margin: -6px 0 6px 150px; }
.summary-preview { background: var(--soft); border-radius: 12px; padding: 12px; font-size: .8rem; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.scan-type input:placeholder-shown { letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 720px) {
  .adm-top { flex-wrap: wrap; position: static; padding-bottom: 0; row-gap: 6px; }
  .adm-top nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 16px; padding-bottom: 10px; scrollbar-width: none; }
  .adm-top nav a { white-space: nowrap; }
  .checkin-top { top: 0; }
}
