/* Tadku — design tokens
   paper  #F1ECFF  lilac paper
   ink    #2E0F3A  plum ink
   sun    #FFC21A  turmeric
   rose   #FF4D8D  rose syrup
   leaf   #1E8A63  cardamom
   Signature element: the perforated invitation ("the invite"). Everything else stays quiet. */
:root {
  color-scheme: light;
  --paper: #F1ECFF;
  --paper-2: #E6DEFF;
  --surface: #FFFFFF;
  --ink: #2E0F3A;
  --ink-2: #5B4568;
  --line: #D4C8EC;
  --sun: #FFC21A;
  --rose: #FF4D8D;
  --leaf: #1E8A63;
  --danger: #C42B1C;
  --focus: #3047D9;
  --display: 'Bricolage Grotesque', 'Avenir Next Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 26px; --r-pill: 999px;
  --step--1: .875rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.563rem; --step-3: 1.953rem; --step-4: 2.441rem; --step-5: 3.815rem;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1C0C24; --paper-2: #2A1536; --surface: #26132F; --ink: #F6EEFF; --ink-2: #CDBBDB; --line: #4A3358; --focus: #9AA9FF; --danger: #FF8A7A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1C0C24; --paper-2: #2A1536; --surface: #26132F; --ink: #F6EEFF; --ink-2: #CDBBDB; --line: #4A3358; --focus: #9AA9FF; --danger: #FF8A7A;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, var(--step-4)); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font: 800 1.7rem/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: .5rem .8rem; border-radius: var(--r-pill); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.nav .btn { margin-left: .4rem; }
.site-head .menu-toggle { display: none; margin-left: auto; }
@media (max-width: 760px) {
  .site-head .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; }
  .nav.open { display: flex; }
  .nav .btn { margin: .4rem 0 0; }
}

/* ---------- buttons & inputs ---------- */
.btn { --b: var(--ink); --f: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid var(--b); background: var(--b); color: var(--f); font: 700 var(--step-0)/1 var(--body); padding: .8rem 1.25rem; border-radius: var(--r-pill); cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rose); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sun { --b: var(--sun); --f: #2E0F3A; }
.btn.rose { --b: var(--rose); --f: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: .5rem .85rem; font-size: var(--step--1); }
.btn.link { border: 0; background: none; color: var(--ink); padding: .25rem; text-decoration: underline; box-shadow: none; transform: none; }
.btn.danger { --b: var(--danger); --f: #fff; }
label { font-weight: 600; display: block; margin-bottom: .35rem; }
.hint { font-weight: 400; color: var(--ink-2); font-size: var(--step--1); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: .7rem .85rem; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--rose); }
.field { margin-bottom: 1.1rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--surface); font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
button.chip { cursor: pointer; color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.diet { border-color: var(--leaf); color: var(--leaf); }
.chip.warn { border-color: var(--danger); color: var(--danger); }

/* ---------- THE INVITE (signature) ---------- */
.invite { --bg: #FFC21A; --ink-i: #3A1340; --pop: #FF3D7F; --soft: #FFE38A;
  position: relative; display: grid; grid-template-columns: 1fr 92px; background: var(--bg); color: var(--ink-i);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; isolation: isolate;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 6px 8px 0 color-mix(in srgb, var(--ink-i) 85%, transparent); }
.invite::before { /* paper grain dots */ content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(var(--soft) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.invite-main { padding: 1.3rem 1.4rem 1.2rem; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.invite-stub { position: relative; border-left: 3px dashed color-mix(in srgb, var(--ink-i) 45%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.1rem .4rem; text-align: center; background: color-mix(in srgb, var(--soft) 55%, transparent); }
.invite-stub::before, .invite-stub::after { content: ""; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--notch, var(--paper)); }
.invite-stub::before { top: -13px; } .invite-stub::after { bottom: -13px; }
.invite-emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(2px 2px 0 var(--pop)); }
.invite-date { font: 800 1.05rem/1.05 var(--display); }
.invite-date b { display: block; font-size: 2rem; letter-spacing: -.04em; }
.invite-title { font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--display); letter-spacing: -.03em; margin: 0; overflow-wrap: anywhere; }
.invite-tagline { margin: 0; font-weight: 500; opacity: .9; }
.invite-cuisine { align-self: flex-start; background: var(--ink-i); color: var(--bg); padding: .2rem .65rem; border-radius: var(--r-pill); font-weight: 700; font-size: var(--step--1); }
.invite-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-weight: 600; font-size: var(--step--1); align-items: center; }
.invite-price { font: 800 1.15rem/1 var(--display); background: var(--pop); color: #fff; padding: .35rem .6rem; border-radius: var(--r-sm); transform: rotate(-3deg); display: inline-block; }
.invite-spots { opacity: .85; }
a.invite:hover { transform: rotate(-.6deg) translateY(-3px); }
a.invite { transition: transform .18s ease; }
.invite.big { grid-template-columns: 1fr 130px; }
.invite.big .invite-main { padding: 2rem 2rem 1.6rem; gap: .8rem; }
.invite.big .invite-title { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
.invite.big .invite-emoji { font-size: 4rem; }
.invite.big .invite-date b { font-size: 3rem; }
.invite-cover { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--r-md); border: 3px solid var(--ink-i); }
@media (max-width: 520px) { .invite, .invite.big { grid-template-columns: 1fr 78px; } .invite.big .invite-main { padding: 1.4rem; } .invite.big .invite-emoji { font-size: 2.8rem; } .invite.big .invite-date b { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { a.invite, .btn { transition: none; } a.invite:hover, .btn:hover { transform: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .line { display: block; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-lede { font-size: var(--step-1); color: var(--ink-2); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.fan { position: relative; height: 430px; }
.fan .invite { position: absolute; width: min(400px, 100%); left: 50%; }
.fan .invite:nth-child(1) { top: 0; transform: translateX(-58%) rotate(-9deg); }
.fan .invite:nth-child(2) { top: 120px; transform: translateX(-42%) rotate(4deg); }
.fan .invite:nth-child(3) { top: 240px; transform: translateX(-54%) rotate(-3deg); }
@media (prefers-reduced-motion: no-preference) {
  .fan .invite { animation: deal .7s cubic-bezier(.2,.9,.3,1.3) both; }
  .fan .invite:nth-child(2) { animation-delay: .12s; } .fan .invite:nth-child(3) { animation-delay: .24s; }
  @keyframes deal { from { opacity: 0; translate: 0 60px; rotate: 12deg; } }
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .fan { height: 380px; } }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.band { background: var(--ink); color: var(--paper); }
.band .muted { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.band .btn { --b: var(--sun); --f: #2E0F3A; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: #2E0F3A; font: 800 1.5rem/1 var(--display); margin-bottom: .8rem; }
.steps h3 { font-size: var(--step-1); }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; }
.panel + .panel { margin-top: 1.25rem; }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-lg); }
.empty .big-emoji { font-size: 3rem; }

/* ---------- explore ---------- */
.filters { display: grid; gap: .75rem; grid-template-columns: 2fr repeat(4, 1fr); align-items: end; margin-bottom: 1rem; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; } }
.view-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.view-toggle button { border: 0; background: none; color: var(--ink); font: 700 var(--step--1)/1 var(--body); padding: .55rem .9rem; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#map, .map { height: 520px; border-radius: var(--r-lg); border: 2px solid var(--ink); z-index: 0; }
.map.small { height: 260px; }
.pin { background: var(--rose); color: #fff; font-size: 1.2rem; width: 38px !important; height: 38px !important; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transform: rotate(-45deg); }
.pin span { transform: rotate(45deg); }

/* ---------- party page ---------- */
.party-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; padding: 2rem 0 4rem; }
.party-layout aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 980px) { .party-layout { grid-template-columns: 1fr; } .party-layout aside { position: static; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fact { border-top: 3px solid var(--ink); padding-top: .6rem; }
.fact b { display: block; font-family: var(--display); font-size: var(--step-1); }
.host-card { display: flex; gap: 1rem; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 1.7rem; flex: none; border: 2px solid var(--ink); }
.avatar.sm { width: 34px; height: 34px; font-size: 1.05rem; }
.going { display: flex; align-items: center; }
.going .avatar { margin-left: -10px; } .going .avatar:first-child { margin-left: 0; }

.menu-course { margin: 2rem 0 0; }
.menu-course > h3 { display: flex; align-items: baseline; gap: .6rem; border-bottom: 3px solid var(--ink); padding-bottom: .4rem; }
.menu-course > h3 small { font: 600 var(--step--1)/1 var(--body); color: var(--ink-2); }
.dish { border-bottom: 2px solid var(--line); padding: 1.1rem 0; }
.dish-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dish h4 { margin: 0 0 .3rem; }
.dish.dim { opacity: .4; }
.spice { letter-spacing: -.15em; }
.recipe-toggle { margin-top: .6rem; }
.recipe { display: grid; grid-template-columns: minmax(200px, 1fr) 1.6fr; gap: 1.5rem; margin-top: 1rem; padding: 1.2rem; background: var(--paper-2); border-radius: var(--r-md); }
@media (max-width: 700px) { .recipe { grid-template-columns: 1fr; } }
.recipe ul { padding-left: 1.1rem; margin: 0; } .recipe ol { padding-left: 1.3rem; margin: 0; }
.recipe li { margin-bottom: .45rem; }
.recipe h5 { font: 800 var(--step-0)/1.2 var(--display); margin: 0 0 .6rem; }
.locked { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; font-weight: 600; color: var(--ink-2); }
.allergen-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.allergen-table th, .allergen-table td { padding: .45rem .5rem; text-align: left; border-bottom: 1px solid var(--line); }
.allergen-table td.y { font-weight: 800; color: var(--danger); text-align: center; }
.allergen-table th.c { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; }
.table-scroll { overflow-x: auto; }

.tickets-box h3 { margin-bottom: .2rem; }
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .9rem; border: 2px solid var(--line); border-radius: var(--r-md); margin-bottom: .6rem; cursor: pointer; }
.tier:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.tier.soldout { opacity: .5; cursor: not-allowed; }
.tier-price { font: 800 var(--step-1)/1 var(--display); }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; margin: .6rem 0 .3rem; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--rose)); }
.countdown { font: 800 var(--step-2)/1 var(--display); letter-spacing: -.02em; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 2ch; text-align: center; font: 800 var(--step-1)/1 var(--display); }

.mobile-book { display: none; }
@media (max-width: 980px) {
  .mobile-book { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 15; }
  body:has(.mobile-book) .site-foot { padding-bottom: 5rem; }
}

/* ---------- wizard ---------- */
.wizard { display: grid; grid-template-columns: 1fr 420px; gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
.wizard aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 1040px) { .wizard { grid-template-columns: 1fr; } .wizard aside { position: static; order: -1; } }
.stepper { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; list-style: none; padding: 0; }
.stepper button { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill); padding: .45rem .85rem; font: 700 var(--step--1)/1 var(--body); cursor: pointer; }
.stepper button[aria-current="step"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepper button .n { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--sun); color: #2E0F3A; margin-right: .35rem; font-size: .8em; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.theme-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.theme-swatch { border: 3px solid transparent; border-radius: var(--r-md); padding: .8rem .6rem; cursor: pointer; font-weight: 700; text-align: left; font-family: var(--body); }
.theme-swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.emoji-picker { display: flex; flex-wrap: wrap; gap: .3rem; }
.emoji-picker button { font-size: 1.5rem; width: 46px; height: 46px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.emoji-picker button[aria-pressed="true"] { border-color: var(--ink); background: var(--sun); }
.course-edit { border: 2px solid var(--ink); border-radius: var(--r-md); padding: 1rem; margin-bottom: 1rem; background: var(--surface); }
.course-edit-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.dish-edit { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 1rem; margin-bottom: .8rem; }
.dish-edit summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.ing-row { display: grid; grid-template-columns: 80px 110px 1fr 40px; gap: .4rem; margin-bottom: .4rem; }
.step-row { display: grid; grid-template-columns: 30px 1fr 40px; gap: .4rem; margin-bottom: .4rem; align-items: start; }
.step-row span { font: 800 var(--step-1)/2.4 var(--display); text-align: center; }
.icon-btn { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-sm); cursor: pointer; min-height: 40px; font-size: 1rem; }
.tier-edit { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: .5rem; align-items: end; margin-bottom: .6rem; }
@media (max-width: 640px) { .tier-edit { grid-template-columns: 1fr 1fr; } .ing-row { grid-template-columns: 70px 1fr 40px; } .ing-row .unit { display: none; } }
.meal-results { display: grid; gap: .5rem; margin-top: .6rem; }
.meal-result { display: flex; gap: .7rem; align-items: center; padding: .5rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.meal-result img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; }
.problems { border: 2px solid var(--danger); color: var(--danger); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.problems ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------- dashboard ---------- */
.tabs { display: flex; gap: .4rem; border-bottom: 3px solid var(--ink); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button { border: 0; background: none; color: var(--ink); font: 800 var(--step-1)/1 var(--display); padding: .8rem 1rem; border-radius: var(--r-sm) var(--r-sm) 0 0; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.host-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: .8rem; }
.host-row .em { font-size: 2.2rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: var(--r-md); }
.host-row .actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 720px) { .host-row { grid-template-columns: 50px 1fr; } .host-row .actions { grid-column: 1 / -1; justify-content: flex-start; } }
.status { font-weight: 700; font-size: var(--step--1); padding: .15rem .55rem; border-radius: var(--r-pill); border: 2px solid currentColor; }
.status.published { color: var(--leaf); } .status.draft { color: var(--ink-2); } .status.cancelled { color: var(--danger); }
.stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .35rem; font-size: var(--step--1); }
.stats b { font-family: var(--display); font-size: var(--step-0); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.data-table th { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- ticket ---------- */
.ticket-wrap { max-width: 560px; margin: 2rem auto 4rem; }
.qr { background: #fff; padding: 14px; border-radius: var(--r-md); width: 220px; height: 220px; margin: 0 auto; }
.qr svg, .qr img { width: 100%; height: 100%; }
.ticket-code { font: 800 var(--step-2)/1 var(--display); letter-spacing: .04em; text-align: center; margin: .8rem 0 0; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 3rem auto 5rem; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .85rem 1.2rem; border-radius: var(--r-pill); font-weight: 700; z-index: 50; box-shadow: 4px 4px 0 var(--rose); max-width: calc(100% - 2rem); }
.toast.err { box-shadow: 4px 4px 0 var(--danger); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 2rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }

.loading { padding: 4rem 0; text-align: center; color: var(--ink-2); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--paper-2); border-top-color: var(--rose); margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
@media print { .site-head, .site-foot, aside, .no-print { display: none !important; } body { background: #fff; } .recipe { display: grid !important; } }
