:root {
  --burgundy: #541c27; --burgundy-2: #6b2633; --champagne: #d0b781; --ivory: #f3efe4;
  --bg: #f3efe4; --surface: #fbf9f4; --ink: #2a1418; --muted: #74605f; --line: #e2d8c6; --accent: #541c27; --gold: #7d6431; /* 4.6:1 on ivory (audit M9); was #a88a4e */
  --good: #3f7a4f; --warn: #a8661c; --bad: #a33b30;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1d0f12; --surface: #2a161b; --ink: #f3efe4; --muted: #c2ae9f; --line: #43292f; --accent: #d0b781; --gold: #d0b781; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #1d0f12; --surface: #2a161b; --ink: #f3efe4; --muted: #c2ae9f; --line: #43292f; --accent: #d0b781; --gold: #d0b781; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-top: var(--safe-t); }
/* nothing may push the page sideways on a phone (Era: the You page slid left, cutting off the tab bar) */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
/* status-bar band (iPhone app and home-screen web app): the colour of the page just below the clock (statusband.js sets --band);
   before that runs, the dark theme starts near-black like the page, the light theme burgundy under the white clock */
:root { --band-0: var(--burgundy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band-0: var(--bg); } }
:root[data-theme="dark"] { --band-0: var(--bg); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: var(--band, var(--band-0)); z-index: 1000; pointer-events: none; transform: translateY(var(--vvt, 0px)); }
/* while the keyboard is up (iPhone): the status-bar band follows the visible screen, and the tabs step aside for the message box (Era, 3 Nov) */
html.kb .tabbar { display: none; }
html.kb .chatbox { bottom: 8px; }
html.kb .wrap { padding-bottom: 16px; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-variant-numeric: tabular-nums; }
/* pages use the whole screen width (Era, 22 Nov: "remove page restrictions"); only the side gutter grows on big screens */
.wrap { max-width: calc(1200px + 2 * var(--gut)); margin: 0 auto; padding: 20px var(--gut) calc(96px + var(--safe-b)); display: grid; gap: 18px; }
:root { --gut: clamp(16px, 4vw, 64px); }
/* long text keeps a readable line length even on a wide page */
:is(.wrap, .card) > p:not(.or):not(.center):not([style*="center"]) { max-width: 75ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card.hero { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); position: relative; overflow: hidden; }
.card.hero .eyebrow { color: var(--champagne); }
.card.hero::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(208,183,129,.45); border-radius: 10px; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 8px; }

button, .btn { font: 600 .95rem var(--sans); border-radius: 999px; padding: 12px 20px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
button.primary, .btn.primary { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary, :root:not([data-theme="light"]) .btn.primary { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); } }
.hero button, .hero .btn { border-color: var(--champagne); color: var(--champagne); }
.hero button.primary, .hero .btn.primary { background: var(--champagne); color: var(--burgundy); }
button.ghost { border-color: transparent; padding-inline: 8px; }
button.small, .btn.small { padding: 6px 14px; min-height: 34px; font-size: .85rem; }
button:disabled { opacity: .5; cursor: default; }
button.sel { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
input, select, textarea { font: 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 100%; min-width: 0; }
/* dropdowns match the inputs: same height and padding, a gold chevron with room around it (Era, 15 Nov: "fix dropdown ux") */
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 42px; line-height: 1.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a88a4e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; text-overflow: ellipsis; }
select:hover { border-color: var(--gold); }
select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
select option { background: var(--surface); color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
/* the texted-code box (Era, 15 Nov: "otp box"): ivory digits on the card colour, one champagne ring, nothing grey */
input.code, .digits .digit { font: 600 1.6rem var(--sans); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums;
  color: var(--ink); -webkit-text-fill-color: var(--ink); background-color: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; min-height: 60px; opacity: 1; }
.digits .digit { letter-spacing: 0; }
input.code::placeholder { color: var(--muted); letter-spacing: .4em; }
input.code:focus, input.code:focus-visible, .digits .digit:focus, .digits .digit:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(208, 183, 129, .22); }
/* iPhone fills the code from the text and paints the box its own autofill grey: keep ours */
input.code:-webkit-autofill, input.code:-webkit-autofill:focus, .digits .digit:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px var(--surface) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
/* brand checkboxes (iPhone drew them pink): champagne tick on burgundy */
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--champagne); background: transparent; display: grid; place-items: center; cursor: pointer; }
/* the tick is a centred image: iPhone Safari placed the old ::after tick in the bottom corner (Era, 3 Nov) */
.check input:checked { background: var(--burgundy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23d0b781' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; border-color: var(--champagne); }
:root:not([data-theme="dark"]) .card .check input:not(:checked), .authbox .check input:not(:checked) { border-color: #7d6431; }
.check input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--bg); color: var(--ink); }
.chip.good { color: var(--good); border-color: currentColor; }
.chip.warn { color: var(--warn); border-color: currentColor; }
.chip.bad { color: var(--bad); border-color: currentColor; }
.chip.gold { color: var(--gold); border-color: currentColor; }
.note { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--champagne) 22%, transparent); }
.err { color: var(--bad); font-size: .9rem; }
/* a box that needs fixing, with the reason under it */
input.bad, select.bad, textarea.bad { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
input.bad:focus-visible, select.bad:focus-visible, textarea.bad:focus-visible { outline-color: var(--bad); }
.ferr { font-size: .82rem; }
.dev { font-size: .85rem; border: 1px dashed var(--warn); color: var(--warn); padding: 8px 10px; border-radius: 10px; }

.course { display: grid; grid-template-columns: 3.6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.course:last-child { border-bottom: 0; }
.course .t { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; padding-top: 3px; }
.course h3 { font-size: 1.25rem; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 2px var(--safe-b); z-index: 5; }
/* One bar for everyone (phone canvas, Era 15 Nov): five equal columns, every icon in the same 24px box, centred above its
   label inside a 56 x 30 px pill that marks the active tab. The unread dot floats on top, so it never pushes an icon off centre. */
.tabbar a { text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 500; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 56px; padding: 6px 0 8px; position: relative; text-align: center; -webkit-tap-highlight-color: transparent; min-width: 0; }
.tabbar a .ti { width: min(52px, 100%); height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .15s; }
.tabbar a svg { width: 24px; height: 24px; display: block; }
.tabbar a .tl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar a.on { color: var(--accent); font-weight: 600; }
.tabbar a.on .ti { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tabbar .dot { position: absolute; top: 3px; left: calc(50% + 8px); background: var(--bad); color: #fff; border-radius: 99px; font-size: .62rem; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.home { padding-bottom: calc(64px + var(--safe-b)); }

.logo-top { display: flex; justify-content: center; padding: 6px 0 0; }
.logo-top img { height: 64px; }
.countdown { display: flex; gap: 18px; }
.countdown div { display: grid; }
.countdown b { font: 500 2rem var(--serif); color: var(--ivory); }
.countdown span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); }

/* invitation card */
.invite { background: var(--burgundy); color: var(--champagne); text-align: center; padding: 34px 22px 28px; border-radius: 6px; position: relative; display: grid; gap: 12px; }
.invite::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(208,183,129,.75); pointer-events: none; }
.invite::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(208,183,129,.3); pointer-events: none; }
.invite img { width: 62%; max-width: 260px; margin: 0 auto 6px; }
.invite .dear { font: italic 2rem var(--serif); color: var(--ivory); }
.invite .lead { font: 1.4rem/1.25 var(--serif); color: var(--ivory); }
.invite .lead em { color: var(--champagne); }
.invite .date { font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; margin-top: 8px; }
.invite .times { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.invite .times > div + div { border-left: 1px solid rgba(208,183,129,.45); }
.invite .h { font: 500 2.4rem var(--serif); color: var(--ivory); line-height: 1; }
.invite .what { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
.invite .sw-time { font: italic 1.05rem/1.3 var(--serif); color: var(--ivory); opacity: .85; margin-top: 4px; padding: 0 6px; } /* not .sw: that is the 14px colour swatch */
.invite .sharp { font: italic 1.15rem/1.3 var(--serif); color: var(--ivory); margin-top: 6px; }
.invite .dress { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 4px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cal .d { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-variant-numeric: tabular-nums; position: relative; font-size: .95rem; }
.cal .d.other { color: var(--line); }
.cal .d.today { outline: 1px solid var(--gold); }
.cal .d.ev { background: var(--burgundy); color: var(--ivory); font-weight: 700; }
.cal .d.dl { background: color-mix(in srgb, var(--champagne) 45%, transparent); }
.cal .d.fb { box-shadow: inset 0 -3px 0 var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

.stars { display: flex; gap: 4px; }
.stars button { min-height: 40px; width: 40px; padding: 0; border-radius: 50%; font-size: 1.2rem; border-color: var(--line); color: var(--muted); }
.stars button.on { background: var(--champagne); border-color: var(--champagne); color: var(--burgundy); }

.inbox-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.inbox-item.unread b::before { content: "● "; color: var(--bad); font-size: .7em; vertical-align: 2px; }
.chat { display: grid; gap: 10px; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 88%; white-space: pre-wrap; }
.bubble.me { background: var(--burgundy); color: var(--ivory); justify-self: end; }
.bubble.ai { background: var(--surface); border: 1px solid var(--line); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.landing { min-height: calc(100dvh - var(--safe-t)); display: grid; align-content: center; gap: 22px; text-align: center; padding: 32px 20px calc(32px + var(--safe-b)); background: var(--burgundy); color: var(--ivory); }
.landing img { width: min(70vw, 300px); margin: 0 auto; }
.landing .tag { font: italic 1.5rem var(--serif); color: var(--champagne); }
.landing .actions { display: grid; gap: 10px; max-width: 340px; width: 100%; margin: 0 auto; }
.landing button, .landing .btn { border-color: var(--champagne); color: var(--champagne); }
.landing .primary { background: var(--champagne); color: var(--burgundy); }
/* Confirmations (canvas board 26): one banner at the top, under the status bar: green done, gold waiting, red error */
.ttbanner { position: fixed; z-index: 1001; top: calc(var(--safe-t) + 10px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: center; padding: 12px 10px 12px 14px; border-radius: 18px; border: 1px solid; box-shadow: 0 12px 30px rgba(0,0,0,.28);
  font-size: .95rem; line-height: 1.35; cursor: default; animation: tb-in .22s ease-out;
  --tb-bg: #e7f2ea; --tb-line: #8fc3a0; --tb-ic: #2f6b43; --tb-tx: #17301f; --tb-sub: #3d5c47; background: var(--tb-bg); border-color: var(--tb-line); color: var(--tb-tx); }
.ttbanner.wait { --tb-bg: #f7efdc; --tb-line: #c9ad6e; --tb-ic: #7d6431; --tb-tx: #2a1418; --tb-sub: #6b5535; }
.ttbanner.error { --tb-bg: #f8e3e0; --tb-line: #d48a82; --tb-ic: #a33b30; --tb-tx: #3a1210; --tb-sub: #6e2c26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ttbanner { --tb-bg: #1f3a2a; --tb-line: #3f7a55; --tb-ic: #a9dcb9; --tb-tx: #f3efe4; --tb-sub: #e6d3a8; }
  :root:not([data-theme="light"]) .ttbanner.wait { --tb-bg: #2a161b; --tb-line: #6b5535; --tb-ic: #d0b781; }
  :root:not([data-theme="light"]) .ttbanner.error { --tb-bg: #4a1d1f; --tb-line: #b4473e; --tb-ic: #f0a7a0; } }
:root[data-theme="dark"] .ttbanner { --tb-bg: #1f3a2a; --tb-line: #3f7a55; --tb-ic: #a9dcb9; --tb-tx: #f3efe4; --tb-sub: #e6d3a8; }
:root[data-theme="dark"] .ttbanner.wait { --tb-bg: #2a161b; --tb-line: #6b5535; --tb-ic: #d0b781; }
:root[data-theme="dark"] .ttbanner.error { --tb-bg: #4a1d1f; --tb-line: #b4473e; --tb-ic: #f0a7a0; }
.ttbanner[popover] { inset: auto; margin: 0; top: calc(var(--safe-t) + 10px); left: 50%; overflow: visible; }
.ttbanner.out { opacity: 0; transform: translate(-50%, -12px); transition: opacity .18s, transform .18s; }
.ttbanner .tb-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--tb-ic); color: var(--tb-ic); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.ttbanner.wait .tb-ic { animation: tb-pulse 1.4s ease-in-out infinite; }
.ttbanner .tb-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ttbanner .tb-tx b { font-weight: 600; }
.ttbanner .tb-tx span { font-size: .84rem; color: var(--tb-sub); }
.ttbanner .tb-act { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--tb-tx); border: 1px solid currentColor; font-size: .88rem; white-space: nowrap; }
.ttbanner .tb-x { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tb-sub); font-size: 1.3rem; line-height: 1; }
.ttbanner .tb-x:hover, .ttbanner .tb-x:focus-visible { background: color-mix(in srgb, var(--tb-ic) 16%, transparent); }
@keyframes tb-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tb-pulse { 50% { opacity: .45; } }
.tt-shake { animation: tt-shake .45s ease-in-out; }
@keyframes tt-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .ttbanner, .ttbanner.wait .tb-ic, .tt-shake { animation: none; } .ttbanner.out { transition: none; } }
.tabbar[hidden] { display: none; }
.check input { flex-shrink: 0; }
button.danger { color: var(--bad); }
.center { text-align: center; }
.or { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
button.passkey { background: var(--surface); color: var(--ink); border-color: var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; }
button.passkey::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 9.5-4.9'/%3E%3Ccircle cx='18' cy='13' r='2.5'/%3E%3Cpath d='M18 15.5V22l1.5-1.2M18 19l1.5-1'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 9.5-4.9'/%3E%3Ccircle cx='18' cy='13' r='2.5'/%3E%3Cpath d='M18 15.5V22l1.5-1.2M18 19l1.5-1'/%3E%3C/svg%3E") center/contain no-repeat; }
button.google { background: var(--surface); color: var(--ink); border-color: var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; }
button.google::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") center/contain no-repeat; }
details.alt > summary { cursor: pointer; color: var(--accent); font-weight: 500; padding: 4px 0; }
details.alt[open] > summary { margin-bottom: 10px; }
[hidden] { display: none !important; }

/* plan your event */
.plan-head h1 { margin: 4px 0 6px; }
.plan-chat { margin: 6px 0; }
.plan-chat .bubble.ai { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.typing { opacity: .6; animation: pulse 1s ease-in-out infinite alternate; justify-self: start; }
@keyframes pulse { to { opacity: .25; } }
.plan-dock { display: grid; gap: 10px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chips button.sel { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.plan-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.plan-input.col { grid-template-columns: 1fr; }
.plan-summary dl { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.plan-summary dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.plan-summary dd { margin: 0; overflow-wrap: anywhere; }
.plan-summary h2 { margin: 0; }
.plan-cta { text-decoration: none; color: inherit; border-color: var(--gold); gap: 4px; }
.plan-done { text-align: center; justify-items: center; padding: 32px 20px; }
.seats-pop { display: flex; gap: 10px; }
.seats-pop i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); opacity: 0; animation: pop .45s cubic-bezier(.2,.9,.3,1.5) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ---------- plan your event: clean full-screen chat ---------- */
.planx { --px-bg: #140b0e; --px-ink: #f3efe4; --px-dim: rgba(243,239,228,.6); --px-glass: rgba(255,255,255,.06); --px-edge: rgba(255,255,255,.12);
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: radial-gradient(120% 70% at 50% 0%, #2a1218 0%, var(--px-bg) 60%); color: var(--px-ink);
  padding-top: var(--safe-t); }
.px-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.px-mark { height: 34px; opacity: .95; }
.px-icon { width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--px-dim); display: grid; place-items: center; }
.px-icon[aria-pressed="true"] { color: var(--champagne); }
.px-main { overflow-y: auto; padding: 8px 18px 24px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; width: min(100%, 760px); margin: 0 auto; -webkit-overflow-scrolling: touch; }
.px-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 6vh 4px 8px; }
.px-hero h1, .px-done h1 { margin: 0; font: 500 clamp(2rem, 7vw, 3rem)/1.08 var(--serif); color: var(--px-ink); }
.px-sub { color: var(--px-dim); max-width: 34em; margin: 0 auto; }
.px-log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.px-ai { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.px-ai p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.px-dot { width: 10px; height: 10px; margin: 8px 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4d6, var(--champagne) 45%, #8b6a3a); box-shadow: 0 0 12px rgba(208,183,129,.6); }
.px-ai.thinking { align-items: center; }
.px-me { justify-self: end; max-width: 85%; display: grid; gap: 6px; justify-items: end; }
.px-me p { margin: 0; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--px-glass); border: 1px solid var(--px-edge); white-space: pre-wrap; }
.px-me img { max-width: 220px; max-height: 220px; border-radius: 14px; object-fit: cover; border: 1px solid var(--px-edge); }
.px-foot { padding: 0 12px calc(12px + var(--safe-b)); width: min(100%, 760px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.px-quick:empty { display: none; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; align-items: center; } /* wraps: sideways scrolling did not work on phones */
.px-chips input { width: auto; min-width: 0; flex: 1 1 140px; background: var(--px-glass); color: var(--px-ink); border: 1px solid var(--px-edge); border-radius: 999px; padding: 10px 14px; color-scheme: dark; }
.px-contact { flex-wrap: wrap; }
.px-chip { flex: none; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--px-edge); background: var(--px-glass); color: var(--px-ink); font: 500 .9rem var(--sans); white-space: nowrap; }
.px-chip[aria-pressed="true"], .px-chip.strong { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); }
.px-box { position: relative; overflow: hidden; border-radius: 26px; background: rgba(40,30,34,.72); border: 1px solid var(--px-edge); padding: 14px 12px 12px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0,0,0,.45); --lvl: 0; }
.px-box textarea { position: relative; z-index: 1; display: block; width: 100%; min-height: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--px-ink); font: 1.05rem/1.45 var(--sans); padding: 2px 6px 12px; max-height: 160px; }
.px-box textarea::placeholder { color: rgba(243,239,228,.38); }
.px-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.px-round { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--px-edge); background: rgba(255,255,255,.08); color: var(--px-ink); font: 300 1.6rem/1 var(--sans); display: grid; place-items: center; }
.px-round.on { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); }
.px-send { background: var(--px-ink); color: #140b0e; border-color: transparent; }
.px-pill { width: auto; height: 46px; padding: 0 34px 0 18px; border-radius: 999px; border: 1px solid var(--px-edge); background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9c0b4' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--px-ink); font: 500 .95rem var(--sans); -webkit-appearance: none; appearance: none; }
.px-thumbs { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.px-thumbs:empty { display: none; }
.px-box .px-thumbs { margin: 0 4px 10px; }
.px-thumb { position: relative; }
.px-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--px-edge); display: block; }
.px-thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #000; color: #fff; font-size: .9rem; }
/* the glow: soft colour at the bottom of the box that breathes, and follows your voice while you talk */
.px-glow { position: absolute; left: 0; right: 0; bottom: -40px; height: 120px; pointer-events: none; z-index: 0; filter: blur(26px); opacity: calc(.28 + var(--lvl) * .9); transform: scaleY(calc(.7 + var(--lvl) * 1.1)); transform-origin: bottom; transition: opacity .12s, transform .12s; }
.px-glow i { position: absolute; bottom: 0; width: 46%; height: 70%; border-radius: 50%; animation: drift 7s ease-in-out infinite alternate; }
.px-glow i:nth-child(1) { left: 6%; background: #c2547a; }
.px-glow i:nth-child(2) { left: 30%; background: #d0b781; animation-delay: -2s; }
.px-glow i:nth-child(3) { left: 50%; background: #5fa3b8; animation-delay: -4s; }
.px-glow i:nth-child(4) { left: 62%; background: #8e6ad8; animation-delay: -1s; }
.px-box.listening { border-color: rgba(208,183,129,.45); }
.px-box.listening .px-glow i { animation-duration: 2.4s; }
@keyframes drift { from { transform: translateX(-12%) scale(.9); } to { transform: translateX(12%) scale(1.15); } }
/* the thinking orbs (canvas, public/js/orb.js) */
.torb { display: block; flex: none; }
.px-ai.thinking .torb { margin: 2px 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(208,183,129,.5), inset 0 0 14px rgba(0,0,0,.35); } }
.px-card { background: rgba(255,255,255,.05); border: 1px solid rgba(208,183,129,.4); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.px-card h2 { margin: 0; font: 500 1.7rem var(--serif); color: var(--px-ink); }
.px-card dl { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.px-card dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); padding-top: 3px; }
.px-card dd { margin: 0; overflow-wrap: anywhere; }
.px-card .primary { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); }
.px-done { align-content: center; justify-items: center; text-align: center; min-height: 100%; }
.planx .eyebrow { color: var(--champagne); }
.planx .muted { color: var(--px-dim); }
@media (prefers-reduced-motion: reduce) { .px-glow i { animation: none; } }

/* phone (Era): the choice cards stack one under another, no sideways scroll that cut cards off; a long list scrolls up and down */
.px-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 2px; }
.px-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-cards::-webkit-scrollbar { display: none; }
.px-cards .px-card-input { grid-column: 1 / -1; }
@media (min-width: 640px) { .px-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: none; overflow: visible; } }
@media (max-width: 639px) {
  .px-hero { padding: 2vh 4px 4px; gap: 6px; }
    .px-hero h1 { font-size: 1.9rem; }
  .px-sub { font-size: .92rem; }
  .px-main { gap: 14px; padding-bottom: 12px; }
  .px-card-opt { min-height: 46px; padding: 8px 14px; border-radius: 14px; }
  .px-card-opt b { font-size: 1.02rem; }
  .px-card-opt span { font-size: .72rem; }
  .px-hero h1 { font-size: 1.7rem; }
  .px-sub { font-size: .86rem; line-height: 1.45; }
}
.px-card-opt { scroll-snap-align: start; display: grid; gap: 4px; align-content: center; text-align: left; min-height: 64px; padding: 14px; border-radius: 18px; border: 1px solid var(--px-edge);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); color: var(--px-ink); font: inherit; justify-content: stretch; transition: transform .15s, border-color .15s, background .15s; }
.px-card-opt:hover { border-color: rgba(208,183,129,.5); }
.px-card-opt:active { transform: scale(.97); }
.px-card-opt b { font: 500 1.15rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.px-card-opt span { font-size: .78rem; color: var(--px-dim); line-height: 1.35; }
.px-card-opt[aria-pressed="true"] { background: linear-gradient(160deg, rgba(208,183,129,.35), rgba(208,183,129,.15)); border-color: var(--champagne); }
.px-card-input { display: flex; gap: 8px; align-items: center; padding-block: 8px; }
.px-card-input .px-chip { min-height: 34px; padding: 6px 14px; }
.px-card-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--px-ink); color-scheme: dark; padding: 6px 0; }
.px-card-input input:focus { outline: none; }
.px-card-input:focus-within { border-color: var(--champagne); }
.px-stepper { gap: 10px; padding: 8px 8px 8px 10px; margin-top: 10px; min-height: 60px; }
.px-step { width: 40px; height: 40px; min-height: 0; padding: 0; flex: none; border-radius: 50%; border: 1px solid var(--px-edge); background: transparent; color: var(--px-ink); font: 400 1.3rem/1 var(--sans); }
.px-step:disabled { opacity: .35; }
.px-num { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 0; cursor: text; }
.px-card-opt .px-num span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.px-num input { width: 100%; text-align: center; font: 500 1.5rem/1.1 var(--serif); font-variant-numeric: lining-nums; padding: 0; }
.px-stepper .px-chip { flex: none; min-height: 42px; padding: 8px 22px; }

.px-cal { border: 1px solid var(--px-edge); border-radius: 20px; padding: 10px 12px 12px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.px-cal-head { display: flex; align-items: center; justify-content: space-between; }
.px-cal-head b { font: 500 1.15rem var(--serif); }
.px-cal-head .px-icon { font-size: 1.5rem; color: var(--px-ink); }
.px-cal-head .px-icon:disabled { opacity: .25; }
.px-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.px-cal-grid i { font-style: normal; font-size: .7rem; letter-spacing: .1em; color: var(--px-dim); padding: 4px 0; }
.px-cal-grid { row-gap: 6px; }
.px-day { min-height: 0; width: min(40px, 100%); height: auto; aspect-ratio: 1; justify-self: center; padding: 0; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--px-ink); font: 500 .95rem var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.px-day.wk { color: var(--champagne); }
/* days that can be booked glow softly, so they stand apart from past and taken days */
.px-day:not(:disabled) { background: radial-gradient(circle, rgba(208,183,129,.22), rgba(208,183,129,.08) 70%); border-color: rgba(208,183,129,.35); box-shadow: 0 0 12px rgba(208,183,129,.22); }
.px-day.wk:not(:disabled) { background: radial-gradient(circle, rgba(208,183,129,.32), rgba(208,183,129,.12) 70%); box-shadow: 0 0 16px rgba(208,183,129,.35); }
.px-day:hover:not(:disabled), .px-day:focus-visible { border-color: var(--champagne); box-shadow: 0 0 18px rgba(208,183,129,.5); }
.px-day:disabled { color: rgba(243,239,228,.2); }
.px-quick { max-height: 46vh; overflow-y: auto; display: grid; gap: 10px; }
.px-day.taken { text-decoration: line-through; color: rgba(243,239,228,.3); }
.px-cal-note { margin: 6px 0 0; font-size: .75rem; color: var(--px-dim); text-align: center; }

/* the booking's chat with the host */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--burgundy); color: var(--ivory); display: inline-grid; place-items: center; font-weight: 600; flex: none; }
.convos { padding: 6px 18px; gap: 0; }
.convo { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); min-width: 0; }
.convo:last-child { border-bottom: 0; }
.convo > .stack { grid-template-columns: minmax(0, 1fr); }
.convo > .stack > .row { min-width: 0; }
.convo .snip { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.convo.unread b, .convo.unread .snip { color: var(--ink, inherit); font-weight: 600; }
.convo .count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--burgundy); color: var(--ivory); font: 600 .72rem/20px Figtree, sans-serif; text-align: center; }
.chatlink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.chatlink .snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: .78rem; color: var(--muted); }
.steps3 span { display: grid; gap: 4px; }
.steps3 i { height: 4px; border-radius: 2px; background: var(--line); }
.steps3 .on i { background: var(--burgundy); }
.gchat { display: grid; gap: 10px; align-content: end; min-height: 50dvh; }
.gchat .sys { justify-self: center; font-size: .75rem; color: var(--muted); }
.gchat .msg { display: grid; gap: 3px; max-width: 82%; }
.gchat .msg.me { justify-self: end; justify-items: end; }
.gchat .bub { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.gchat .me .bub { border-radius: 16px 16px 4px 16px; background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
/* Kai's price message as a card, and the Pay bar that stays above the message box until it's paid */
.gchat .msg.pricemsg { max-width: min(92%, 380px); width: 100%; }
.pcard { display: grid; gap: 8px; padding: 16px 16px 14px; border-radius: 18px 18px 18px 6px; background: var(--burgundy); color: var(--ivory); border: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent); box-shadow: 0 6px 20px rgba(29,15,18,.18); }
.pcard .mc-eyebrow { color: var(--champagne); }
.pcard .pc-day { font-size: 1.25rem; line-height: 1.15; font-weight: 500; }
.pcard .rule { display: block; height: 1px; background: color-mix(in srgb, var(--champagne) 45%, transparent); margin: 2px 0; }
.pcard .chip { flex: none; color: var(--champagne); border-color: var(--champagne); background: transparent; }
.pcard .chip.good { color: #bfe3c8; border-color: #bfe3c8; }
.pc-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.pc-row span:first-child { color: color-mix(in srgb, var(--ivory) 78%, transparent); min-width: 0; }
.pc-row span:last-child, .pc-row b { white-space: nowrap; }
.pc-total { font-size: 1.05rem; padding-top: 4px; border-top: 1px dashed color-mix(in srgb, var(--champagne) 35%, transparent); }
.pc-total b, .pc-all b { color: var(--champagne); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.pc-due { margin: 2px 0 0; font-size: .85rem; color: #f0c98a; }
.pcard .pc-pay { width: 100%; min-height: 48px; border-radius: 999px; border: 0; background: var(--champagne); color: var(--burgundy); font-weight: 700; font-size: 1rem; margin-top: 2px; }
.pc-note { font-size: .78rem; text-align: center; color: color-mix(in srgb, var(--ivory) 70%, transparent); overflow-wrap: anywhere; }
.pc-rules { margin: 4px 0 0; padding-left: 18px; font-size: .78rem; color: color-mix(in srgb, var(--ivory) 72%, transparent); display: grid; gap: 2px; }
.pcard.old { opacity: .6; }
.chatdock { position: sticky; bottom: calc(76px + var(--safe-b)); display: grid; gap: 6px; }
.chatdock .chatbox { position: static; }
html.kb .chatdock { bottom: 8px; }
.chatpay { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--burgundy); color: var(--ivory); border: 1px solid color-mix(in srgb, var(--champagne) 40%, transparent); }
.chatpay .muted { color: color-mix(in srgb, var(--ivory) 70%, transparent); }
.chatpay button.primary { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); flex: none; }
.chatbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 4px 12px; position: sticky; bottom: calc(76px + var(--safe-b)); }
.chatbox input:focus, .chatbox textarea:focus { outline: none; box-shadow: none; }
/* Skai: a normal chat (Era, 3 Nov) */
.skai-av { background: var(--champagne) !important; color: var(--burgundy) !important; }
.skai-log { min-height: calc(100dvh - 230px - var(--safe-t) - var(--safe-b)); }
.skai-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; }
.chip-btn { min-height: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--accent); font: 500 .88rem Figtree, sans-serif; cursor: pointer; }
/* Skai's microphone, and the orb while Skai thinks */
.skai-mic { min-height: 40px; width: 40px; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.skai-mic.on { color: var(--ivory); background: var(--bad, #a33); animation: sk-pulse 1.2s ease-in-out infinite; }
@keyframes sk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(170,51,51,.45); } 50% { box-shadow: 0 0 0 8px rgba(170,51,51,0); } }
.skai-box { flex-wrap: wrap; padding-left: 4px; }
.skai-box textarea { flex: 1 1 0; min-width: 0; }
.skai-strip { flex-basis: 100%; display: flex; gap: 8px; padding: 6px 6px 2px; overflow-x: auto; }
.skai-pic { position: relative; flex: none; }
.skai-pic img, .skai-pics img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.skai-pic button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: .9rem; line-height: 22px; }
.skai-pics { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.skai-pics img { width: 120px; height: 120px; }
.rt-list { margin: 4px 0; padding-left: 20px; white-space: normal; }
.gchat .skai-think { align-items: center; }
.gchat .typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.gchat .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: sk-dot 1.2s ease-in-out infinite; }
.gchat .typing i:nth-child(2) { animation-delay: .15s; } .gchat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sk-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.okbanner { display: flex; gap: 6px; align-items: center; background: #e7f0e7; border: 1px solid #b9d3bd; color: #24502f; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }

/* ---------- booking path: book (1), menu chat (13b), invite sheet, join (13a), you're in (6) ---------- */
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.serif { font-family: var(--serif); font-weight: 500; }
button.round { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.25rem; }
button.round:disabled { opacity: .35; cursor: default; }
.seatn { width: 28px; text-align: center; font-size: 1.25rem; }
.pathopt { display: flex; gap: 12px; align-items: flex-start; justify-content: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 400; width: 100%; }
.pathopt .dot { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; border: 1.5px solid #b9a98e; }
.pathopt[aria-checked="true"] { border: 2px solid var(--accent); }
.pathopt[aria-checked="true"] .dot { border: 6px solid var(--accent); }
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px; }
.who label { font-size: .75rem; color: var(--muted); }
button.pill { min-height: 36px; padding: 6px 12px; font-weight: 500; font-size: .88rem; border-color: var(--line); color: var(--ink); }
button.pill[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.mcbar { width: 100%; justify-content: space-between; border-radius: var(--radius); border: 0; background: var(--mc-bg); color: var(--mc-fg); padding: 10px 14px; transition: background .3s; }
.mc-eyebrow { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mc-ac); font-weight: 600; }
.mcard { background: var(--mc-bg); color: var(--mc-fg); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; transition: background .3s; }
.mcard[hidden] { display: none; }
.mc-general { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.mc-general span { font-size: .8rem; border: 1px solid var(--mc-ac); color: var(--mc-ac); border-radius: 999px; padding: 1px 9px; }
.mc-row { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--mc-fg) 15%, transparent); }
.mc-time { font-size: .8rem; color: var(--mc-ac); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mc-note { font-size: .82rem; color: var(--mc-ac); }
.swatches { gap: 8px; }
.swatches > span { flex-basis: 100%; }
.swatches .sw { width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.swatches .sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
ul.agreed { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.gchat .upd { color: var(--gold); }
.gchat .msg.withav { grid-template-columns: auto 1fr; display: grid; gap: 8px; align-items: end; }
.av.sm { width: 30px; height: 30px; font-size: .8rem; }
dialog.sheet { border: 0; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); margin: auto 0 0; width: 100%; max-width: 640px; margin-inline: auto; max-height: 90dvh; overflow: auto; background: var(--bg); color: var(--ink); display: grid; gap: 12px; }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(20, 8, 10, .45); }
.prow { display: flex; gap: 10px; align-items: center; }
.prow .stack { flex: 1; }
.icardp { border-radius: var(--radius); padding: 14px 16px; background: var(--mc-bg); color: var(--mc-fg); display: grid; gap: 2px; text-align: center; justify-items: center; transition: background .3s; }
.icardp .serif { font-size: 1.6rem; }
.icardp.big { padding: 26px 18px; gap: 6px; }
.icardp.big h1 { font-size: 2.6rem; }
.icardp .rule { display: block; width: 40%; height: 1px; background: var(--mc-ac); margin: 6px 0; }
.digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.digits .digit { text-align: center; font-size: 1.5rem; padding: 0; min-height: 56px; }
.appban { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.appban img { border-radius: 9px; flex: none; }
.stars { display: flex; gap: 6px; }
.stars button { width: 40px; height: 40px; min-height: 0; padding: 0; border-color: var(--line); color: var(--line); font-size: 1.1rem; }
.stars button.on { color: var(--gold); border-color: var(--gold); }

/* ---------- home page sections (each can be switched off in Event settings) ---------- */
.home { position: relative; background: var(--burgundy); color: var(--ivory); }
.hm-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gut) 0; max-width: calc(1200px + 2 * var(--gut)); margin: 0 auto; }
.hm-mark { display: flex; line-height: 0; }
.home .hm-signin { min-height: 38px; padding: 6px 16px; font-size: .9rem; font-weight: 500; border-color: rgba(208,183,129,.55); color: var(--champagne); }
.hm-have { color: rgba(243,239,228,.75); margin: 4px 0 0; }
.hm-have a { color: var(--champagne); font-weight: 600; }
.home .landing { min-height: calc(86dvh - var(--safe-t) - 58px); }
.hm-jump { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; }
.hm-sec { padding: 40px var(--gut); display: grid; gap: 22px; max-width: calc(1200px + 2 * var(--gut)); margin: 0 auto; }
.hm-sec .eyebrow { color: var(--champagne); margin: 0; }
.hm-head { display: grid; gap: 8px; align-content: start; }
.hm-head h2 { margin: 0; font: 500 clamp(1.9rem, 6vw, 2.9rem)/1.1 var(--serif); color: var(--ivory); }
.hm-lead { color: #e6d3a8; line-height: 1.6; margin: 0; }
.hm-head .btn { justify-self: start; margin-top: 8px; min-width: 200px; }
.hm-journey { background: #451a22; max-width: none; }
.hm-journey > * { width: 100%; margin: 0 auto; }
/* steps as one joined line with dots, no numbers (Era) */
.hm-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; width: 100%; }
.hm-steps li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 24px; }
.hm-steps li:last-child { padding-bottom: 0; }
.hm-steps li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -6px; width: 2px; background: linear-gradient(var(--champagne), rgba(208,183,129,.35)); }
.hm-steps li:last-child::before { display: none; }
.hm-steps b { font: 600 1.35rem/1.2 var(--serif); color: var(--ivory); }
.hm-steps li span span { color: #e6d3a8; font-size: .92rem; line-height: 1.5; }
.hm-n { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--champagne); background: #451a22; box-shadow: 0 0 0 4px #451a22; }
.hm-steps li:first-child .hm-n, .hm-steps li:last-child .hm-n { background: var(--champagne); }
.hm-menu { background: var(--ivory); color: #2a1418; border-radius: 6px; padding: 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); outline: 1px solid var(--champagne); outline-offset: -10px; display: grid; }
.hm-k { text-align: center; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: #8a6d3b; font-weight: 600; }
.hm-t { text-align: center; font: 600 2rem var(--serif); color: var(--burgundy); }
.hm-s { text-align: center; font-size: .82rem; color: #74605f; margin-bottom: 12px; }
.hm-c { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #e2d8c6; }
.hm-c b { font: 600 1.25rem/1.2 var(--serif); color: var(--burgundy); }
.hm-c span span { font-size: .82rem; color: #74605f; line-height: 1.45; }
.hm-time { font-size: .82rem; color: #8a6d3b; font-variant-numeric: tabular-nums; padding-top: 3px; }
.hm-f { text-align: center; margin-top: 12px; font: italic 1rem var(--serif); color: #8a6d3b; }
.hm-own { display: grid; gap: 18px; background: rgba(208,183,129,.08); border: 1px solid rgba(208,183,129,.35); border-radius: 22px; padding: 26px; }
.hm-ot { font: 500 1.9rem/1.15 var(--serif); color: var(--ivory); }
.hm-own .btn, .hm-head .btn:not(.primary) { border-color: var(--champagne); color: var(--champagne); }
.home .btn.primary { background: var(--champagne); color: var(--burgundy); border-color: var(--champagne); }
.hm-foot { padding: 24px 20px calc(24px + var(--safe-b)); border-top: 1px solid rgba(208,183,129,.25); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: .85rem; color: var(--champagne); }
.hm-foot a { color: var(--champagne); }
@media (min-width: 900px) {
  .hm-sec { padding: 80px var(--gut); }
  .hm-journey { grid-template-columns: 360px minmax(0, 1fr); gap: 60px; padding-inline: max(var(--gut), calc((100% - 1200px) / 2)); }
  .hm-journey > * { width: auto; margin: 0; }
  .hm-sample { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
  .hm-own { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; }
}
/* create your own menu */
button.pill[aria-checked="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.cm-course { gap: 8px; }
.cm-course.off { opacity: .55; }
button.link { all: unset; cursor: pointer; color: var(--burgundy); padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.cm-prev { background: var(--burgundy); color: var(--ivory); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; }
.cm-prev .hm-k { text-align: left; color: var(--champagne); }
.cm-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #6b2633; }
.cm-line span { font-size: .78rem; color: var(--champagne); }
.cm-line b { font: 600 1.05rem var(--serif); text-align: right; }

/* the home page snaps one section (page) at a time, on phones and in desktop browsers (Era, 3 Nov) */
html.snap { scroll-snap-type: y mandatory; scroll-padding-top: var(--guest-preview-height, 0px); }
html.snap .hm-bar { scroll-snap-align: start; }
html.snap .home .landing { min-height: calc(100svh - var(--safe-t) - 58px); }
html.snap .hm-sec { scroll-snap-align: start; min-height: calc(100svh - var(--safe-t)); box-sizing: border-box; align-content: center; }
html.snap .hm-foot { scroll-snap-align: end; }
/* a cue that there is a next page: a gently bouncing arrow at the foot of each page, which also scrolls there */
.home .landing, .hm-sec { position: relative; }
.hm-next { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 6px 12px; min-height: 0;
  color: var(--champagne); font: 600 .66rem/1 Figtree, sans-serif; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; opacity: .8; }
.hm-next:hover { opacity: 1; }
.hm-next svg { animation: hm-bob 1.8s ease-in-out infinite; }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); opacity: .65; } 50% { transform: translateY(7px); opacity: 1; } }
/* each page rises in as it arrives */
.home .hm-rise { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.home .hm-rise.in { opacity: 1; transform: none; }
.home .hm-rise.in > :not(.hm-next) { animation: hm-in .9s cubic-bezier(.2,.8,.2,1) both; }
.home .hm-rise.in > :nth-child(2) { animation-delay: .12s; } .home .hm-rise.in > :nth-child(3) { animation-delay: .24s; }
@keyframes hm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hm-next svg, .home .hm-rise.in > :not(.hm-next) { animation: none; } .home .hm-rise { opacity: 1; transform: none; transition: none; } }

/* Guest counts read across: "12 guests · A long table" (Era) */
.px-cards.px-rows { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.px-rows .px-card-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 0; padding: 9px 16px; }
.px-rows .px-card-opt span { text-align: right; }
/* Area question: pin the exact place on a map */
.px-cards .px-card-pin { grid-column: 1 / -1; border-color: rgba(208,183,129,.55); background: linear-gradient(160deg, rgba(208,183,129,.18), rgba(208,183,129,.06)); }
.px-pin { display: grid; gap: 8px; }
.px-pin-frame { position: relative; height: min(30vh, 250px); border-radius: 18px; overflow: hidden; border: 1px solid rgba(208,183,129,.45); }
.px-pin-map { position: absolute; inset: 0; background: #2a1418; }
.px-pin-mark { position: absolute; left: 50%; top: 50%; z-index: 500; width: 26px; height: 26px; margin: -26px 0 0 -13px; pointer-events: none;
  background: var(--burgundy, #541c27); border: 3px solid var(--champagne, #d0b781); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.px-pin-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--champagne, #d0b781); }
.px-pin-where { margin: 0; font-size: .82rem; color: var(--px-dim); }
.px-pin .leaflet-control-attribution { font-size: 9px; }

/* Create your own menu: Skai drafts from the client's own words (Era) */
.cm-skai { border-color: rgba(208,183,129,.55); background: linear-gradient(160deg, rgba(208,183,129,.14), rgba(208,183,129,.04)); }
.cm-skai-t { font: 500 1.35rem/1.2 var(--serif); }
.cm-skai textarea { min-height: 84px; }
.cm-skai-say { margin: 0; font: italic 1.02rem/1.5 var(--serif); color: var(--champagne); }
.cm-course .link { color: var(--champagne); }
.cm-tag { margin-left: 6px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.pill.cm-own { border-style: dashed; }
.cm-own-in input { min-width: 0; flex: 1; }

/* Sample menu fits one phone screen, heading and card together (Era) */
@media (max-width: 639px) {
  .hm-sample { gap: 12px; padding-block: 22px; }
  .hm-sample .hm-head { gap: 4px; }
  .hm-sample .hm-head h2 { font-size: 1.45rem; line-height: 1.15; }
  .hm-sample .hm-lead { font-size: .82rem; line-height: 1.4; }
  .hm-sample .hm-menu { padding: 14px 16px; outline-offset: -7px; }
  .hm-sample .hm-k { font-size: .6rem; }
  .hm-sample .hm-t { font-size: 1.4rem; line-height: 1.1; }
  .hm-sample .hm-s { font-size: .7rem; margin-bottom: 4px; }
  .hm-sample .hm-c { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 6px 0; }
  .hm-sample .hm-c b { font-size: 1rem; }
  .hm-sample .hm-c span span { font-size: .7rem; line-height: 1.3; }
  .hm-sample .hm-time { font-size: .7rem; padding-top: 1px; }
  .hm-sample .hm-f { margin-top: 4px; font-size: .85rem; }
}
.cm-prev .cm-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; align-items: start; }
.cm-prev .cm-line .cm-note { color: var(--ivory); }
.cm-note { font-size: .72rem; opacity: .75; font-style: italic; }
.cm-x { min-height: 0; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--champagne); font-size: 1.1rem; line-height: 1; opacity: .7; }
.cm-prev .cm-line b { color: var(--ivory); }
.card.dismissible { position: relative; }
.card-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.card-x:hover { color: var(--ink); }

/* No double-tap or focus zoom in the app (Era, 3 Nov): taps act at once, and fields are 16px so iPhone doesn't zoom into them */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 899px) { input:not(.code), select, textarea { font-size: 16px !important; } }

/* delete buttons (×) on chat messages, party members and tasting notes */
.delx { border: 0; background: none; color: var(--muted, #8a7f78); font-size: 1rem; line-height: 1; padding: 2px 6px; min-height: 0; cursor: pointer; opacity: .55; }
.delx:hover, .delx:focus-visible { color: var(--bad); opacity: 1; }
.bchat .msg .delx { align-self: flex-end; }
.bchat .sys .delx { font-size: .85rem; }
/* board 34: Kai's message has no answer yet */
.remstrip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--gold); border-radius: 14px; padding: 10px 12px; background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.remstrip.done { border-color: var(--line); background: var(--surface); }
.remstrip button { display: inline-flex; align-items: center; gap: 6px; }
.bchat .sys.remfail { color: var(--bad); }
.rempreview { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.5; }

/* the invitation on a reservation page */
.evinv { display: grid; gap: 12px; }
.evinv h1 { color: var(--ivory); margin: 0; }
.evinv .soft { color: rgba(243,239,228,.8); margin: 0; }
.facts { display: grid; gap: 10px; margin: 6px 0 0; position: relative; z-index: 1; }
.fact { display: grid; grid-template-columns: 6.8em 1fr; gap: 10px; }
.fact dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); padding-top: 3px; }
.fact dd { margin: 0; display: grid; gap: 2px; }
.maplink { color: var(--champagne); font-size: .9rem; }
.imenu { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.imenu li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.imenu li:has(.nophoto) { grid-template-columns: 1fr; }
.imenu .nophoto { display: none; }
.imenu img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--gold) 14%, transparent); display: block; }
@media (max-width: 360px) { .fact { grid-template-columns: 1fr; gap: 2px; } }

/* Our dishes (Era, 15 Nov): open to everyone */
.hm-link { color: var(--champagne); font-size: .9rem; text-decoration: none; }
.dlink { text-decoration: none; color: inherit; }
.dchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dchips button { flex: none; border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.dchips button[aria-selected="true"] { background: var(--champagne); color: #2a1418; border-color: var(--champagne); }
.dlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dtile { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; width: 100%; font-weight: 400; }
.dtile:has(.nophoto) { grid-template-columns: 1fr; }
.dtile .nophoto { display: none !important; }
.dtile img, .dtile .nophoto { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; display: block; background: color-mix(in srgb, var(--gold) 14%, transparent); }
.dtile .dtxt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
dialog.dview { width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px); align-content: start; overflow: auto; border-radius: 20px; padding: 18px; border: 1px solid var(--line); background: var(--surface, #2a1418); color: inherit; display: grid; gap: 10px; }
dialog.dview::backdrop { background: rgba(0,0,0,.55); }
dialog.dview .dclose { justify-self: end; }
.dpics { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.dpics::-webkit-scrollbar { display: none; }
.dpics img { flex: none; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; scroll-snap-align: center; }
.dpics:empty { display: none; }
/* More than one photo (board 29): the next photo peeks in on phones; count, dots, arrows */
.dpicwrap { position: relative; }
.dpicwrap.many .dpics { margin: 0 -18px; padding: 0 18px; scroll-padding: 0 18px; }
.dpicwrap.many .dpics img { width: 84%; }
.dpcount { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(18,10,12,.72); color: #f3efe4; font-size: .8rem; font-weight: 600; pointer-events: none; }
.dpcount[hidden] { display: none; }
.dstack { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dpdots { display: flex; justify-content: center; gap: 2px; margin-top: -4px; }
.dpdots[hidden] { display: none; }
.dpdots button { width: 22px; min-width: 0; height: 22px; min-height: 0; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 999px; }
.dpdots button::after { content: ""; width: 7px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--champagne) 30%, transparent); transition: width .2s; }
.dpdots button[aria-current="true"] { width: 32px; }
.dpdots button[aria-current="true"]::after { width: 20px; background: var(--champagne); }
.dphint { margin: -6px 0 0; text-align: center; font-size: .8rem; color: var(--muted, #c2ae9f); }
.dphint[hidden] { display: none; }
.dparrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(243,239,228,.35); background: rgba(18,10,12,.72); color: #f3efe4; place-items: center; }
.dparrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dparrow.prev { left: 10px; } .dparrow.next { right: 10px; }
.dparrow:disabled { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .dpicwrap.many .dpics { margin: 0; padding: 0; scroll-padding: 0; }
  .dpicwrap.many .dpics img { width: 100%; }
  .dpicwrap.many .dparrow { display: grid; }
}
.dthumb { position: relative; display: block; width: 84px; height: 84px; }
.dcount { position: absolute; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(18,10,12,.78); color: #f3efe4; font-size: .7rem; font-weight: 600; }
.dcount .dstack { width: 11px; height: 11px; }

/* The app's own confirm / prompt dialogs (audit H5) */
dialog.ttdlg { border: 1px solid var(--line); border-radius: 18px; padding: 20px; width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px); overflow: auto; align-content: start; inset: 0; position: fixed; margin: auto; background: var(--surface); color: var(--ink); display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.ttdlg:not([open]) { display: none; }
dialog.ttdlg::backdrop { background: rgba(20, 8, 10, .5); }
dialog.ttdlg h2 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
dialog.ttdlg p { margin: 0; }
button.danger-fill, button.danger.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }

/* keyboard users keep their place (audit L5): a gold ring on focus-visible, even where the box hides its own outline */
.px-box:focus-within, .px-card-input:focus-within, .chatbox:focus-within { outline: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Skeleton loading screens (Era, 15 Nov) ----------
   Soft shapes where the content will be, with a slow champagne shimmer passing over them. Built by js/skeleton.js.
   The base tint follows --ink and --gold, so it reads on ivory (light), on the burgundy-black (dark) and in the dashboard. */
:root { --sk-base: color-mix(in srgb, var(--gold) 13%, var(--surface)); --sk-glint: color-mix(in srgb, var(--champagne) 34%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sk-base: color-mix(in srgb, var(--ivory) 7%, var(--surface)); --sk-glint: color-mix(in srgb, var(--champagne) 20%, var(--surface)); } }
:root[data-theme="dark"] { --sk-base: color-mix(in srgb, var(--ivory) 7%, var(--surface)); --sk-glint: color-mix(in srgb, var(--champagne) 20%, var(--surface)); }
.skel { display: grid; gap: 18px; }
.sk-body { display: contents; }
.sk-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sk { display: block; flex: none; border-radius: 8px; max-width: 100%;
  background: var(--sk-base) linear-gradient(100deg, transparent 30%, var(--sk-glint) 50%, transparent 70%) no-repeat;
  background-size: 220% 100%; background-position: 160% 0; animation: sk-shimmer 1.6s ease-in-out infinite; }
@keyframes sk-shimmer { to { background-position: -60% 0; } }
.sk-card { gap: 12px; }
.sk-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.sk-row > .sk-stack { flex: 1 1 0; }
.sk-stack { display: grid; gap: 8px; min-width: 0; }
.sk-line { height: .8em; border-radius: 6px; }
.sk-eyebrow { height: .62em; }
.sk-title { height: 2.1em; border-radius: 10px; }
.sk-h3 { height: 1.15em; }
.sk-num { height: 1.9em; width: 46%; border-radius: 10px; }
.sk-pill { height: 32px; border-radius: 999px; }
.sk-btn { height: 44px; width: 9em; border-radius: 999px; }
.sk-field { height: 46px; width: 100%; border-radius: 10px; }
.sk-input { height: 52px; width: 100%; border-radius: 999px; }
.sk-av { width: 40px; height: 40px; border-radius: 50%; }
.sk-av.sm { width: 32px; height: 32px; }
.sk-ico { width: 20px; height: 20px; border-radius: 6px; }
.sk-star { width: 26px; height: 26px; border-radius: 50%; }
.sk-date { width: 56px; height: 64px; border-radius: 12px; align-self: flex-start; }
.sk-photo { width: 84px; height: 84px; border-radius: 12px; }
.sk-map { height: 180px; width: 100%; border-radius: 12px; }
.sk-picker { height: 56px; width: 100%; border-radius: 12px; }
.sk-course { display: grid; grid-template-columns: 3.6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sk-course:last-child { border-bottom: 0; }
.sk-convo { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sk-convo:last-child { border-bottom: 0; }
.sk-convo > .sk-stack { flex: 1 1 0; }
.sk-icard { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sk-icard:last-child { border-bottom: 0; }
.sk-icard .sk-row { flex-wrap: nowrap; justify-content: space-between; }
.sk-icard .sk-row > .sk { flex: 0 1 auto; min-width: 0; }
.sk-tile { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sk-chat { display: grid; gap: 10px; align-content: end; min-height: 42dvh; }
.sk-chat.sm { min-height: 0; padding: 6px 0; }
.sk-bub { height: 44px; border-radius: 16px 16px 16px 4px; }
.sk-bub.me { justify-self: end; border-radius: 16px 16px 4px 16px; --sk-base: color-mix(in srgb, var(--burgundy) 22%, var(--surface)); }
.sk-split { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sk-split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.sk-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* the dashboard's first paint: same frame as .shell / .side / .content, so nothing jumps when the real one arrives */
.sk-shell { display: flex; flex-wrap: wrap; min-height: 100dvh; }
.sk-side { flex: 1 1 240px; max-width: 100%; background: var(--side, var(--surface)); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 18px; }
.sk-main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; background-image: none; } }
/* ---------- Reservations calendar (Era, 15 Nov) ---------- */
.resview { margin-bottom: 4px; width: fit-content; max-width: 100%; }
.calbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.calbar .round { width: 38px; padding: 0; justify-content: center; }
.caltitle { font-size: 1.6rem; margin-left: 6px; white-space: nowrap; }
.calfilters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calfilters .showlbl { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.calfilters button { display: inline-flex; align-items: center; gap: 7px; }
.calfilters button .tk { width: 14px; display: inline-flex; justify-content: center; font-weight: 700; }
.calfilters button.offf { opacity: .55; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; }
.calgrid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.calmain { flex: 3 1 600px; min-width: 0; padding: 0; overflow: hidden; }
.calside { flex: 1 1 280px; min-width: 0; max-width: 440px; display: grid; gap: 12px; }
.calside .gold, .calitem .gold { color: var(--gold); font-weight: 600; }
/* status colours: they differ in lightness, not only hue */
:is(.cchip, .cblock, .cpill, .sw).evhost { background: #d0b781; color: #2a1418; font-weight: 600; }
:is(.cchip, .cblock, .cpill, .sw).evclient { background: #541c27; color: #f3efe4; font-weight: 600; }
:is(.cchip, .cblock, .cpill, .sw).waiting { background: #f2b544; color: #3d2606; }
:is(.cchip, .cblock, .cpill, .sw).confirmed { background: #9fd0a9; color: #173a22; }
:is(.cchip, .cblock, .cpill, .sw).paid { background: #2f6b43; color: #fff; }
:is(.cchip, .cblock, .cpill, .sw).declined { background: #8c8580; color: #fff; }
:is(.cchip, .cblock, .cpill, .sw).cancelled { background: transparent; color: #6f6863; box-shadow: inset 0 0 0 1.5px #8c8580; text-decoration: line-through; }
:is(.cchip, .cblock, .cpill, .sw).request { background: #7b4a8f; color: #fff; }
:is(.cchip, .cblock, .cpill, .sw).deadline { background: transparent; color: #7a4a12; box-shadow: inset 0 0 0 1.5px #c98a3a; border-style: dashed; }
:is(.cchip, .cblock, .cpill, .sw).call { background: #2f6f8a; color: #fff; }
.sw.blocked { background: repeating-linear-gradient(135deg, #b9a98c 0 3px, transparent 3px 6px); }
.cchip.blocked { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.cmonth .cwk, .cmonth .cdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cwk span { padding: 8px 8px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cday { min-height: 118px; padding: 4px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--surface); }
.cday:nth-child(7n+1) { border-left: 0; }
.cday.out { background: var(--bg); }
.cday.out .cnum span:first-child, .cday.past .cnum span:first-child { color: var(--muted); }
.cday.blocked, .ccol.blocked { background-image: repeating-linear-gradient(135deg, rgba(160,140,110,.16) 0 6px, transparent 6px 12px); }
.cday.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cday.over, .ccol.over { box-shadow: inset 0 0 0 2px var(--gold); background-color: rgba(208,183,129,.18); }
.cnum { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 28px; padding: 0 4px; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.cnum:focus-visible, .cchip:focus-visible, .cblock:focus-visible, .crow:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cday.today .cnum span:first-child { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--burgundy); color: var(--ivory); }
.ctag { font-size: .68rem; color: var(--muted); }
.cchip { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; font-size: .74rem; line-height: 1.3; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cchip.drag, .cblock.drag { cursor: grab; }
.cchip.dragging, .cblock.dragging { opacity: .45; }
.cchip.sel, .cblock.sel, .crow.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.cmore { all: unset; cursor: pointer; font-size: .74rem; font-weight: 600; color: var(--accent); padding: 0 6px; }
.cdots { display: none; gap: 3px; flex-wrap: wrap; padding: 0 4px; }
.cdots .sw { width: 7px; height: 7px; border-radius: 99px; }
.ctimedwrap { overflow-x: auto; }
.ctimed { display: grid; }
.chead { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; background: var(--bg); border-left: 1px solid var(--line); cursor: pointer; }
span.chead { cursor: default; border-left: 0; }
.chead b { font-size: 1.1rem; }
.chead.sel { background: rgba(208,183,129,.25); }
.chead.today b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--burgundy); color: var(--ivory); }
.callday { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-height: 32px; min-width: 0; }
span.callday { border-left: 0; padding: 8px 4px; }
.chours { position: relative; border-top: 1px solid var(--line); }
.chours span { position: absolute; right: 6px; font-size: .68rem; color: var(--muted); }
.ccol { position: relative; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 29px, var(--line) 29px 30px); }
.cblock { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; left: 3px; right: 3px; padding: 5px 7px; border-radius: 8px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; font-size: .8rem; line-height: 1.25; }
.cblock.thin { min-height: 26px; padding: 3px 7px; white-space: nowrap; text-overflow: ellipsis; display: block; z-index: 1; }
.crow { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); }
.crow b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.sel { background: rgba(208,183,129,.18); }
.cpill { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.btn.ft { background: #2f6b4a; color: #fff; border-color: #2f6b4a; display: inline-flex; gap: 6px; align-items: center; }
.calitem .btn.ghost { display: inline-flex; gap: 6px; align-items: center; }
.callbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px 12px; border-radius: 12px; background: rgba(63,122,79,.1); }
.calsync { display: flex; flex-wrap: wrap; gap: 16px 24px; border-color: var(--champagne); }
@media (max-width: 639px) {
  .cday { min-height: 58px; padding: 2px; }
  .cday .cchip, .cday .cmore, .ctag { display: none; }
  .cdays .cdots { display: flex; }
  .caltitle { font-size: 1.3rem; }
  .calside { max-width: none; }
}

/* ---------- guest home: quick actions, needs you, my events (Era, 15 Nov; canvas 17 and 17b) ---------- */
.snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hero-chip { background: var(--champagne); color: #2a1418; border-color: var(--champagne); font-weight: 600; }
.hero-chip.off { background: transparent; color: var(--champagne); }
.gh-sec { display: grid; gap: 8px; }
.gh-sec > h2 { font-size: 1.6rem; }
.gh-ic { display: inline-flex; color: var(--accent); }
.gh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gh-tile { position: relative; display: grid; align-content: start; gap: 4px; min-height: 96px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.gh-tile b { font-weight: 600; }
.gh-tile .small { line-height: 1.35; }
.gh-tile:hover, .gh-row:hover, .gh-ev:hover, .gh-act:hover { border-color: var(--gold); }
.gh-badge { position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--burgundy); color: var(--ivory); font-size: .75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.gh-row, .gh-ev { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.gh-row:focus-visible, .gh-ev:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gh-row.hot { border-color: var(--champagne); }
.gh-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; line-height: 1.35; }
.gh-txt b { font-weight: 600; }
.gh-av, .gh-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gh-av { background: var(--burgundy); color: var(--ivory); font-weight: 600; }
.gh-dot { background: color-mix(in srgb, var(--champagne) 30%, var(--surface)); }
.gh-dot .gh-ic { color: var(--gold); }
.gh-dot svg { width: 18px; height: 18px; }
.gh-chev { flex: none; display: inline-flex; color: var(--accent); }
.gh-ev { align-items: stretch; gap: 14px; padding: 14px; border-radius: 16px; }
.gh-ev.current { border-color: var(--champagne); }
.gh-ev.dim { opacity: .75; }
.gh-ev .chip { flex: none; white-space: nowrap; }
.gh-date { flex: none; width: 52px; border-radius: 12px; background: var(--burgundy); color: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; line-height: 1.1; }
.gh-date span { font-size: .7rem; letter-spacing: .12em; color: var(--champagne); }
.gh-date b { font: 600 1.6rem var(--serif); }
.gh-date.own { background: #7d6431; }
.gh-date.own span { color: #f3efe4; }
.seg { display: flex; gap: 6px; background: color-mix(in srgb, var(--line) 60%, var(--bg)); border-radius: 999px; padding: 4px; }
.seg button { flex: 1 1 0; min-height: 36px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; color: var(--accent); font: 500 .9rem var(--sans); cursor: pointer; }
.seg button.on { background: var(--burgundy); color: var(--ivory); font-weight: 600; }
.gh-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); text-decoration: none; font-weight: 500; font-size: .92rem; justify-self: start; }
.gh-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.gh-steps li { display: grid; gap: 6px; font-size: .74rem; color: #b9998f; }
.gh-steps i { height: 4px; border-radius: 2px; background: rgba(243, 239, 228, .22); }
.gh-steps li.done { color: var(--champagne); }
.gh-steps li.done i { background: var(--champagne); }
.gh-steps li.now { color: var(--ivory); font-weight: 600; }
.gh-steps li.now i { background: var(--ivory); }
.gh-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; }
.gh-act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--accent); text-decoration: none; font-size: .8rem; font-weight: 600; }
.gh-new { position: absolute; top: 7px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
/* the event page shows its progress in the top card, so the cards below don't repeat it */
.wrap:has(.gh-steps) .steps3 { display: none; }

/* Text codes (Era, 15 Nov): the boxes rise in when the code is sent, breathe while it's checked, turn green with a tick
   when it's right, and shake gently when it's wrong. Calm, short, and off for people who ask for less motion. */
input.code, .digits { animation: otp-rise .35s ease-out both; transition: border-color .25s, box-shadow .25s, background-color .25s; }
input.code.otp-checking, .digits.otp-checking .digit { animation: otp-breathe 1.1s ease-in-out infinite; border-color: var(--gold, #d0b781); }
input.code.otp-ok, .digits.otp-ok .digit { border-color: var(--gold); box-shadow: none; }
input.code.otp-ok { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23d0b781' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
:root[data-theme="light"] input.code.otp-ok { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237d6431' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) input.code.otp-ok { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237d6431' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; } }
input.code.otp-bad, .digits.otp-bad { animation: otp-shake .42s cubic-bezier(.36, .07, .19, .97) both; }
input.code.otp-bad, .digits.otp-bad .digit { border-color: #d9776f; box-shadow: 0 0 0 3px rgba(217, 119, 111, .2); }
@keyframes otp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes otp-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(208, 183, 129, 0); } 50% { box-shadow: 0 0 0 5px rgba(208, 183, 129, .28); } }
@keyframes otp-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { input.code, .digits, input.code.otp-checking, .digits.otp-checking .digit, input.code.otp-bad, .digits.otp-bad { animation: none; } }

/* ---------- phone canvas (Era, 15 Nov): open-event banner, upcoming events, choices, event cards, menu, tracker ---------- */
.adban { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 18px; background: #2a171c; border: 1px solid #6b5630; color: #f3efe4; text-align: left; }
.adban-img { width: 112px; height: 100%; min-height: 132px; object-fit: cover; border-radius: 12px; display: block; }
.adban:not(:has(.adban-img)) { grid-template-columns: minmax(0, 1fr); }
.adban-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 30px; }
.adban .live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d0b781; }
.adban-t { font: 600 1.35rem/1.15 var(--serif); }
.adban-l { font-size: .85rem; color: #e6dbd3; }
.adban-l.soft { color: #b3a29a; }
.adban-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.adban-act .btn { min-height: 44px; padding: 8px 14px; font-size: .88rem; border-color: #d0b781; color: #f3efe4; }
.adban-act .btn.primary { background: #d0b781; color: #2a0f16; }
.adban-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #b3a29a; }
.adban-x:hover { color: #f3efe4; background: rgba(243,239,228,.08); }
.live i, .glow { width: 8px; height: 8px; border-radius: 50%; background: #d0b781; flex: none; box-shadow: 0 0 0 0 rgba(208,183,129,.7); animation: glow 2s ease-out infinite; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(208,183,129,.65); } 70% { box-shadow: 0 0 0 9px rgba(208,183,129,0); } 100% { box-shadow: 0 0 0 0 rgba(208,183,129,0); } }
@media (prefers-reduced-motion: reduce) { .live i, .glow { animation: none; } }
.upev { display: grid; gap: 10px; }
.upev h2 { font-size: 1.15rem; margin: 0; }
.upev-list { padding: 4px 14px; gap: 0; }
.upev-row { display: flex; align-items: center; gap: 12px; min-height: 60px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.upev-row:last-child { border-bottom: 0; }
.hm-up .card { background: #2a171c; border-color: #4a2a31; color: #f3efe4; }
.hm-up .upev-row { border-color: #3a2328; }
.hm-up .muted { color: #b3a29a; }
.hm-up h2 { color: #f3efe4; }
.choices { gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 1px solid rgba(208,183,129,.45); background: rgba(243,239,228,.04); color: var(--ivory); text-decoration: none; }
.choice b { font-size: 1.02rem; }
.choice .small { color: #d8c8bc; }
.choice-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(208,183,129,.16); color: var(--champagne); display: grid; place-items: center; flex: none; }
.choice-ic svg { width: 24px; height: 24px; }
.evcard { overflow: hidden; }
.evcard-img { width: calc(100% + 36px); margin: -18px -18px 0; height: 168px; object-fit: cover; display: block; }
.evcard .pin { color: var(--gold); display: inline-flex; flex: none; }
.evphotos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
.evphotos img { flex: none; width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }
.evphotos img + img { width: 70%; }
.emenu { list-style: none; margin: 0; padding: 4px 18px; gap: 0; }
.emenu li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.emenu li:last-child { border-bottom: 0; }
.emenu img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.paybar { position: sticky; bottom: calc(68px + var(--safe-b)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.back { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.trk { display: grid; gap: 4px; margin-top: 6px; width: 100%; }
.trk-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.trk-bar i { height: 4px; border-radius: 2px; background: var(--line); }
.trk-bar i.on { background: var(--gold); }
.trk-bar i.bad { background: var(--bad); }
.trk-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: .68rem; color: var(--muted); }
.trk-l .now { color: var(--ink); font-weight: 600; }
.hero .trk-bar i { background: rgba(243,239,228,.25); } .hero .trk-bar i.on { background: #d0b781; }
.hero .trk-l { color: #d8c8bc; } .hero .trk-l .now { color: #f3efe4; }
.youlink { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; flex: none; }
.nextchip { justify-self: center; }
.landing .adban-img { width: 112px; margin: 0; }
.landing .adban { max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; }

/* iPhone gestures (js/gestures.js): grabber on sheets, pull to refresh, swipe actions, long-press action sheet */
dialog.sheet > .ttg-grab { display: block; justify-self: center; width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 2px; flex: none; }
dialog { touch-action: pan-y; }
.ttg-ptr { position: fixed; top: calc(var(--safe-t) + 4px); left: 50%; transform: translate(-50%, 0); z-index: 30; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.ttg-ptr.spin svg { animation: ttg-spin .8s linear infinite; }
@keyframes ttg-spin { to { transform: rotate(360deg); } }
.ttg-swr { position: relative; overflow: hidden; border-radius: 14px; display: grid; }
.ttg-swr > :not(.ttg-tray) { position: relative; z-index: 1; will-change: transform; }
.ttg-tray { position: absolute; inset: 0 0 0 auto; display: flex; z-index: 0; }
.ttg-tray button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; min-width: 84px; padding: 0 14px; font-weight: 600; font-size: .9rem; background: var(--muted); color: #fff; }
.ttg-tray button.danger { background: #b3261e; color: #fff; }
.ttg-pressed { transform: scale(.97); transition: transform .15s; }
dialog.ttg-actions { gap: 8px; }
dialog.ttg-actions .ttg-atitle { margin: 0 0 4px; text-align: center; color: var(--muted); font-size: .85rem; }
dialog.ttg-actions button { width: 100%; min-height: 50px; border-radius: 14px; font-size: 1rem; }
dialog.ttg-actions button.danger { color: var(--bad); }
dialog.ttg-actions .ttg-cancel { font-weight: 600; margin-top: 4px; }
.msg .bub, .bubble { -webkit-touch-callout: none; }
/* event menu page (canvas 17c, Era 15 Nov): burgundy header, details grid, reservation or price card, menu, dietary note */
.em { display: grid; gap: 18px; }
.em-head { margin: -20px calc(50% - 50vw) 0; padding: 14px calc(50vw - 50%) 24px; background: var(--burgundy); color: var(--ivory); display: grid; gap: 14px; }
.em-head .eyebrow { color: var(--champagne); margin: 0; }
.em-head h1 { margin: 0; font-size: clamp(2.1rem, 9vw, 2.6rem); line-height: 1.05; color: var(--ivory); }
.em-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; justify-self: start; color: var(--champagne); text-decoration: none; font-size: .9rem; }
.em-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; font-size: .9rem; line-height: 1.35; }
.em-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-fact b { font-weight: 600; }
.em-lab { font-size: .75rem; color: var(--champagne); }
.em-sub { color: #e6d3a8; }
.em-res { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.em-res.due { border-color: var(--champagne); }
.em-res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.em-res-top b { font-size: 1rem; }
.em-res-top .chip { flex: none; white-space: nowrap; background: transparent; }
.em-rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.em-rows dt { color: var(--muted); }
.em-rows dd { margin: 0; text-align: right; font-weight: 600; }
.em-rows dd.hot { color: var(--warn); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .em-rows dd.hot { color: #f0c27a; } }
:root[data-theme="dark"] .em-rows dd.hot { color: #f0c27a; }
.em-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.em-price b { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--accent); }
.em-wide { width: 100%; justify-content: center; white-space: nowrap; }
.em-mh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.em-mh h2 { margin: 0; font-size: 1.6rem; }
.em-time { flex: none; width: 46px; padding-top: 3px; font-size: .82rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.em-dish { font-size: 1.25rem; line-height: 1.15; }
.em-wait { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 18px; }
.em-wait b { font-style: italic; font-size: 1.4rem; font-weight: 500; }
.em-ring { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--champagne); color: var(--champagne); display: grid; place-items: center; }
.em-skel { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.em-skel i { display: block; height: 12px; border-radius: 4px; background: var(--line); opacity: .7; }
.em-skel i:nth-child(2) { width: 70%; } .em-skel i:nth-child(3) { width: 82%; }
.em-diet { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1px dashed var(--line); }
.em-leaf { flex: none; color: var(--gold); padding-top: 2px; }
.em-link { font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* Touch screens: every tap target is at least 44 px (Apple's minimum; audit S1, 16 Nov). The look stays the same where
   a bigger box would distort it (switches, the remove ×): their tap area grows around them instead. */
@media (pointer: coarse) {
  button:not(.sw):not(.switch):not(.delx):not(.x), .btn, a.btn, button.small, .btn.small, .seg button { min-height: 44px; }
  .delx, button.x { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .hm-link, .hm-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .switch { position: relative; }
  .switch::before { content: ""; position: absolute; inset: -8px -4px; }
}

/* Board 21: changing seats on a paid reservation; board 23: the cancelled card */
.seatchange { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.seatchange[hidden] { display: none; }
.seatchange .center { text-align: center; }
.kv { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.kv.dashed { border-top: 1px dashed var(--line); padding-top: 8px; }
.kv .gold, .seatchange .gold { color: var(--gold); }
.card.hero .kv.dashed { border-color: rgba(208,183,129,.45); }
.cancelcard.fresh { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.cancelcard .cc-tick { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 1.3rem; }
.cancelcard h2 { font-size: 1.75rem; }
/* "+ Invite" in Your party: a 44 px target on the phone (UX audit of PR 105) */
.chip.tap { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 16px; }
/* Send by SMS (Era, 16 Nov, canvas board 22): ticks beside names, search, chips, counts, a last check, results */
.smsinvite { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; min-width: 0; }
.smshead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.smshead b { font-size: 1.05rem; }
.smsx { width: 44px; height: 44px; min-height: 44px; padding: 0; border-color: var(--line); color: var(--muted); flex: none; }
.smsbody { display: grid; gap: 14px; min-width: 0; }
.smsmeta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -8px; }
.smsmeta .over b { color: var(--gold); }
.smsreset { display: flex; justify-content: flex-end; margin-top: -12px; }
.smsreset button { padding-inline: 0; }
.smsok { color: var(--good); }
.smsbad { color: var(--bad); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smsok { color: #a9dcb9; } :root:not([data-theme="light"]) .smsbad { color: #f3c9a4; } }
:root[data-theme="dark"] .smsok { color: #a9dcb9; } :root[data-theme="dark"] .smsbad { color: #f3c9a4; }
.smswarn { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--warn); border-radius: 10px; }
.smsbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.smsfind { position: relative; display: block; }
.smsfind > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.smsfind input { padding-left: 42px; min-height: 46px; }
.smslist { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 336px; display: grid; }
.smsrow, .smsres { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .95rem; cursor: pointer; }
.smsres { cursor: default; }
.smslist > :last-child { border-bottom: 0; }
.smsrow[hidden] { display: none; }
.smsrow:has(input:checked) { background: rgba(208,183,129,.10); }
.smsrow input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; min-width: 22px; margin: 0; padding: 0; border-radius: 6px; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; }
.smsrow input:checked { background: var(--burgundy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23d0b781' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; border-color: var(--champagne); }
.smsrow input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.smswho { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.smstag { flex: none; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.smsnone { padding: 14px; }
.smsnone[hidden] { display: none; }
.smschips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 8px 10px; cursor: text; }
.smschips input { flex: 1; min-width: 150px; border: 0; padding: 4px 2px; background: transparent; min-height: 32px; }
.smschips input:focus { outline: none; }
.smschips:focus-within { border-color: var(--champagne); }
.smschip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--gold); font-size: .9rem; }
.smschip.bad { border-color: var(--bad); color: var(--bad); }
.smschip button { width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; color: inherit; }
.smsfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.smsfoot.end { justify-content: flex-end; }
.smsfoot .primary { min-height: 48px; }
.smsq { font-size: 1.05rem; }
.smsbubble { background: #2a2a2e; color: #f2f2f2; border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 460px; }
.smsfrom { display: block; font-size: .75rem; color: #a8a8ad; margin-bottom: 4px; }
.smsdot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; flex: none; background: #1f3a2a; color: #a9dcb9; }
.smsdot.bad { background: #3a1d14; color: #f3c9a4; }
.smsdot.test { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.smsres.bad { background: rgba(208,183,129,.06); }
@media (max-width: 640px) { .smsfoot { position: sticky; bottom: calc(68px + var(--safe-b)); background: var(--surface); padding-bottom: 8px; z-index: 2; } .smsfoot > .row { flex: 1; justify-content: flex-end; } }
html.kb .smsfoot { bottom: 8px; }
.smsfoot button { white-space: nowrap; }
.smstel { white-space: nowrap; }
@media (max-width: 640px) { .smsbar button.small, .smsreset button, .smswarn button { min-height: 44px; } }

/* Pick from contacts (board 27): a contacts button at the end of a field, a "From contacts" button, and the which-one sheet */
.ctwrap { position: relative; display: block; min-width: 0; }
.ctwrap > input { padding-right: 50px; }
.ctbtn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--accent); }
.ctbtn:hover { background: var(--surface); }
.ctfrom { justify-self: start; align-self: flex-start; gap: 6px; }
.ctfrom svg { width: 18px; height: 18px; flex: none; }
.ttchoice { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ttchoice-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px; color: var(--ink); font-size: 1rem; cursor: pointer; }
.ttchoice-row + .ttchoice-row { border-top: 1px solid var(--line); }
.ttchoice-row:has(input:checked) { background: var(--bg); }
.ttchoice-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

/* Users (board 28): list on the left, the person on the right; on a phone the person replaces the list */
.usr-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.usr-tools .usr-q { flex: 1 1 260px; min-width: 0; min-height: 44px; border-radius: 999px; padding-inline: 16px; }
.usr-sort { display: flex; align-items: center; gap: 8px; }
.usr-sort select { min-height: 44px; }
.usr-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.usr-pills button { min-height: 44px; }
.usr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.usr-list { padding: 0; overflow: hidden; gap: 0; }
.usr-row { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 64px; }
.usr-list > div:last-child .usr-row { border-bottom: 0; }
.usr-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.usr-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.usr-row.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.usr-row.off { opacity: .7; }
.usr-row .usr-sub { overflow-wrap: anywhere; }
/* board 39: a row's own buttons beside it, and the "Remind all" strip */
.usr-li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.usr-li .usr-row { border-bottom: 0; flex: 1; min-width: 0; }
.usr-list > .usr-li:last-child { border-bottom: 0; }
.usr-ra { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; padding: 8px 14px 8px 0; flex: none; max-width: 50%; }
.usr-ra button, .usr-ra .btn { min-height: 40px; white-space: nowrap; }
.usr-ra .chip { white-space: nowrap; }
.usr-li:has(.usr-ra.below) { flex-wrap: wrap; }
.usr-ra.below { max-width: none; width: 100%; padding: 0 14px 12px 68px; justify-content: flex-start; margin-top: -6px; }
.usr-strip { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--gold); border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.usr-strip button { min-height: 44px; }
.dup-dlg { max-width: 640px; width: calc(100% - 32px); }
.dup-group { display: flex; flex-direction: column; gap: 10px; }
.dup-person { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.dup-person input { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.dup-person .stack { flex: 1; overflow-wrap: anywhere; }
.dup-person .dup-keep { visibility: hidden; flex: none; }
.dup-person:has(input:checked) { border-color: var(--gold); }
.dup-person:has(input:checked) .dup-keep { visibility: visible; }
.dup-group button { min-height: 44px; }
@media (max-width: 560px) { .usr-li { flex-wrap: wrap; } .usr-ra { max-width: none; width: 100%; padding: 0 14px 12px 68px; justify-content: flex-start; } }
.usr-chev { color: var(--muted); font-size: 1.3rem; display: none; }
.usr-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; background: #541c27; color: #f3efe4; }
.usr-av.big { width: 56px; height: 56px; font-size: 1.15rem; }
.usr-empty { padding: 28px; text-align: center; }
.usr-detail { gap: 18px; min-width: 0; }
.usr-back { display: none; align-self: flex-start; }
.usr-head { display: flex; gap: 14px; align-items: flex-start; }
.usr-rename { align-self: flex-start; margin-left: -8px; }
.usr-name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.75rem; line-height: 1.1; overflow-wrap: anywhere; }
.usr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.usr-box { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-wrap: anywhere; }
.usr-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.usr-sec h4 { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.usr-item { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px 14px; min-height: 52px; box-sizing: border-box; }
.usr-item .chip { flex: none; white-space: nowrap; }
button.usr-link { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px 14px; min-height: 52px; cursor: pointer; width: 100%; }
button.usr-link:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
button.usr-link:focus-visible { outline: 2px solid var(--gold); }
button.usr-link:disabled { cursor: default; }
.usr-paystats { display: flex; gap: 24px; flex-wrap: wrap; }
.usr-paystats .statn { font-size: 1.4rem; }
.usr-bars { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding: 6px 2px 2px; min-height: 140px; }
.usr-bar { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; }
.usr-bar-f { width: 28px; border-radius: 6px 6px 2px 2px; background: var(--gold); }
.usr-bar-v { font-size: .72rem; color: var(--muted); }
.usr-bar-m { font-size: .75rem; color: var(--muted); }
.usr-acts { gap: 8px; flex-wrap: wrap; }
.usr-acts button, .usr-detail button.small, .usr-tools button { min-height: 44px; }
button.warnb { color: var(--warn); border-color: currentColor; }
.goodt { color: var(--good); }
.warnt { color: var(--warn); }
.badt { color: var(--bad); }
.authbox input.locked { opacity: .85; background-image: none; }
/* Add user (board 32) */
.usr-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: -6px; }
.usr-top > p { flex: 1 1 240px; margin: 0 !important; }
.usr-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 999px; padding-inline: 18px; }
dialog.ttdlg.usr-addsheet { width: min(520px, calc(100vw - 32px)); }
.usr-addsheet input[type="text"], .usr-addsheet input[type="tel"], .usr-addsheet input[type="email"] { min-height: 46px; width: 100%; box-sizing: border-box; font-size: 16px; }
.usr-addsheet .ctwrap { display: flex; gap: 8px; align-items: center; }
.usr-addsheet .ctwrap input { flex: 1; min-width: 0; }
.usr-via { display: flex; gap: 10px; flex-wrap: wrap; }
.usr-via .check { flex: 1 1 140px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.usr-smsprev { display: grid; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.usr-smsprev[hidden] { display: none; }
.usr-cap { letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.usr-invite { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.usr-invgrid { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; align-items: baseline; }
.usr-invgrid > span { overflow-wrap: anywhere; }

.usr-del { max-width: 520px; }
.usr-del ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.usr-del input[type="text"] { min-height: 44px; font-size: 16px; letter-spacing: .08em; }
.usr-del input[aria-invalid] { border-color: var(--bad); }
.usr-danger { margin: 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--bad); color: var(--bad); font-weight: 600; }
@media (max-width: 820px) {
  .usr-layout { grid-template-columns: 1fr; }
  .usr-layout.has-open .usr-list { display: none; }
  .usr-layout:not(.has-open) .usr-empty { display: none; }
  .usr-back { display: inline-flex; }
  .usr-chev { display: inline; }
  .usr-grid { grid-template-columns: 1fr; }
  .usr-hide-open { display: none !important; }
  .usr-name { font-size: 1.45rem; }
  .usr-av.big { width: 44px; height: 44px; font-size: .95rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Your menus (Era, 17 Nov, board 30): Add to your menu in the dish popup, ticks on Our dishes, the bottom bar, the menu pages */
.ym-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 1rem; }
button.linklike { background: transparent; border: 0; box-shadow: none; padding: 4px 2px; min-height: 36px; color: var(--muted); text-decoration: underline; font-weight: 400; justify-self: center; }
.ym-where { margin: 0; text-align: center; overflow-wrap: anywhere; }
.ym-bar { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 4; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 16px; border-radius: 18px; background: var(--burgundy); border: 1px solid var(--burgundy-2); color: var(--ivory); text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.ym-bar .eyebrow { color: var(--champagne); font-size: .68rem; }
.ym-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-open { margin-left: auto; flex: none; padding: 10px 16px; border-radius: 999px; background: var(--champagne); color: #2a1418; font-weight: 600; font-size: .9rem; }
.ym-card { text-decoration: none; color: inherit; gap: 8px; }
.ym-card.sent { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.ym-name { font-size: 1.4rem; font-weight: 600; }
.ym-pics { display: flex; gap: 6px; }
.ym-pics img, .ym-more { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ym-more { display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--muted); font-size: .9rem; }
input.ym-title, input.ym-title:disabled { font-family: var(--serif); font-size: 1.9rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 2px 0; color: inherit; width: 100%; }
.ym-menucard { background: var(--ivory); color: #2a1418; border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.ym-head { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; text-align: center; }
.ym-line { display: grid; grid-template-columns: 1fr 36px; gap: 8px; align-items: center; border-top: 1px solid #d9cfb8; padding-top: 8px; }
.ym-line b { font-size: 1.2rem; font-weight: 600; }
.ym-line.gone b { text-decoration: line-through; opacity: .6; }
.ym-kind { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #7d6431; }
.ym-line .ym-note { color: #6b5b55; justify-self: start; padding: 2px 0; min-height: 28px; text-align: left; }
.ym-x { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #d9cfb8; background: transparent; color: var(--burgundy); font-size: 1.2rem; line-height: 1; }
.dtile.ym-sug { grid-template-columns: 56px 1fr auto; }
.dtile.ym-sug:has(.nophoto) { grid-template-columns: 1fr auto; }
.dtile.ym-sug img { width: 56px; height: 56px; }
.gh-tiles > :nth-child(5):last-child { grid-column: span 2; }

/* Ingredients in the dish popup (Era, 17 Nov) */
.dings { display: grid; gap: 6px; }
.dings[hidden] { display: none; }
.dings .eyebrow { margin: 0; }
.dings ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dings li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; line-height: 1.3; }
.dmethod .dmtxt { margin: 0; white-space: pre-line; line-height: 1.5; }
.dings .dpart { margin: 6px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.2; color: var(--accent); }
.dsteps { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; line-height: 1.5; }
/* Share a menu (Era, 17 Nov) */
.ym-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
img.ym-sharepic { width: min(220px, 60%); justify-self: center; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
/* The code box (canvas board 31, Era 18 Nov): six boxes drawn over one real input (iPhone's "From Messages", Android's fill and
   paste all land in it). The next box glows gold with a blinking line, digits pop in, a gold glow runs across while the code
   is checked, right turns the boxes gold one after another, wrong shakes them in red. Less motion: colours only. */
.otp-box { display: grid; gap: 8px; }
.otp-row { position: relative; width: 100%; max-width: 380px; }
.otp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 10px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.otp-cell { height: 58px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center;
  font: 600 1.6rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink);
  transition: border-color .2s ease-out, box-shadow .2s ease-out, background-color .25s ease-out, color .25s ease-out; }
.otp-dash { height: 2px; border-radius: 2px; background: var(--line); }
.otp-cell.fill { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.otp-cell.on { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(208, 183, 129, .2); }
.otp-cell.on:empty::after { content: ""; width: 2px; height: 26px; border-radius: 2px; background: var(--gold); animation: otp-caret 1.05s steps(1) infinite; }
.otp-d { display: inline-block; animation: otp-pop .32s cubic-bezier(.23, 1, .32, 1) both; }
.otp-box input.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 14px;
  background: transparent; box-shadow: none; outline: none; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
  font-size: 16px !important; letter-spacing: 0; text-align: left; opacity: 1; cursor: text; -webkit-tap-highlight-color: transparent; }
.otp-box input.otp-input::selection { background: transparent; }
.otp-box input.otp-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px transparent inset; transition: background-color 99999s; -webkit-text-fill-color: transparent; }
.otp-note { margin: 0; color: var(--muted); display: flex; gap: 8px; align-items: center; min-height: 0; }
.otp-note:empty { display: none; }
.otp-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; flex: none; animation: otp-pop .4s cubic-bezier(.23, 1, .32, 1) .25s both; }
.otp-box.otp-checking .otp-note { color: var(--gold); }
.otp-box.otp-checking .otp-cell { border-color: var(--gold); animation: otp-breathe 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * 80ms); }
.otp-box.otp-checking input.otp-input, .otp-box.otp-ok input.otp-input { pointer-events: none; }
.otp-box.otp-ok .otp-cell { background: var(--champagne); border-color: var(--champagne); color: #2a1418; animation: otp-gold .45s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 45ms); }
.otp-box.otp-ok .otp-note { color: var(--ink); font-weight: 600; }
.otp-box.otp-bad .otp-cells { animation: otp-shake .42s cubic-bezier(.36, .07, .19, .97) both; }
.otp-box.otp-bad .otp-cell { border-color: #d9776f; box-shadow: 0 0 0 3px rgba(217, 119, 111, .18); color: #d9776f; }
.otp-box.otp-bad .otp-dash { background: #d9776f; }
@keyframes otp-caret { 50% { opacity: 0; } }
@keyframes otp-pop { from { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes otp-gold { 0% { background: var(--surface); color: var(--ink); } 40% { transform: translateY(-3px); } 100% { transform: none; } }
@media (max-width: 360px) { .otp-cells { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)); } .otp-cell { height: 52px; font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .otp-d, .otp-tick, .otp-box.otp-checking .otp-cell, .otp-box.otp-ok .otp-cell, .otp-box.otp-bad .otp-cells, .otp-cell.on:empty::after { animation: none; } }
/* Board 35: the name on a reservation opens the person in Users; "Number not confirmed" asks them to confirm it */
.namelink { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent); text-underline-offset: 6px; text-decoration-thickness: 1px; border-radius: 6px; }
.namelink:hover { text-decoration-color: var(--gold); }
.namelink:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.namelink > span { color: var(--gold); }
button.chip.askconf { min-height: 32px; padding: 0 12px; font: 500 .8rem Figtree, sans-serif; cursor: pointer; }
button.chip.askconf:hover { background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* Kai's favourites on the signed-in Home (Era, 23 Nov): a row of small cards that scrolls sideways */
.gh-favs h2 { margin: 0; font: 600 1.35rem var(--serif); }
.gh-favrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 10px 0 4px; }
.gh-favrow::-webkit-scrollbar { display: none; }
.gh-fav { flex: 0 0 min(78%, 260px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(216, 184, 113, .35); background: rgba(255, 255, 255, .04); color: inherit; text-decoration: none; }
.gh-fav b { font: 600 1.15rem/1.2 var(--serif); }
.gh-fav .eyebrow { margin: 0; }
/* Full-width pages on big screens (Era, 22 Nov): lists spread into more columns instead of stretching one long row */
@media (min-width: 900px) {
  .gh-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .gh-tiles > * { grid-column: auto !important; }
  .cal .d { aspect-ratio: auto; min-height: 64px; }
}

/* Board 19: Reminders inside a confirmed reservation */
.rempanel { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.remrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.remrow > .stack { flex: 1 1 260px; }
.remrow > .stack:only-child { flex-basis: 100%; }
.remrow.off b, .remrow.na b { color: var(--muted); }
.remrow.off b:first-child { text-decoration: line-through; text-decoration-thickness: 1px; }
.remrow textarea { width: 100%; box-sizing: border-box; }
button.pill.remtoggle { min-width: 72px; justify-content: center; }
button.pill.remtoggle[aria-pressed="true"] { background: color-mix(in srgb, var(--good) 18%, var(--surface)); border-color: var(--good); color: var(--good); }
.linkish { all: unset; cursor: pointer; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.linkish:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
/* Passkey first (board 33): one big button on the device where the passkey is saved */
.pkfirst { text-align: center; }
.pkfirst h2 { margin: 4px 0 0; }
.pkfirst button.passkey { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); min-height: 52px; font-weight: 600; margin-top: 8px; }
.pkfirst .row.between { margin-top: 4px; }

/* Sign-in and form pages stay a comfortable centred width on big screens (Era, 22 Nov: a full-width sign-in "is not pleasant");
   every other guest page is a centred column too: 960px for lists and chats, 1200px at most for the dish grid */
#app:is([data-route="signin"], [data-route="verify"], [data-route="mobile"], [data-route="join"], [data-route="welcome"], [data-route="invite"], [data-route="pay"]) > .wrap { max-width: calc(480px + 2 * var(--gut)); }
#app:is([data-route="create-menu"], [data-route="feedback"], [data-route="notes"], [data-route="profile"]) > .wrap { max-width: calc(760px + 2 * var(--gut)); }
/* Menu pages read as one centred column (Era, 22 Nov: "same as menu"); the event menu's burgundy header still runs edge to edge */
#app:is([data-route="menu"], [data-route="eventmenu"], [data-route="menus"], [data-route="event"], [data-route="book"], [data-route="home"], [data-route=""], [data-route="events"], [data-route="inbox"], [data-route="calendar"], [data-route="chat"], [data-route="ask"]) > .wrap { max-width: calc(960px + 2 * var(--gut)); }

/* Sign in, step by step (board 36, 23 Nov): the email or number as a pill with Change, a small heading per step */
.authbox .step-h { margin: 2px 0 0; font-family: var(--serif, "Cormorant Garamond", Georgia, serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.authbox .who-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; min-height: 44px; }
.authbox .who-pill > span { overflow-wrap: anywhere; font-size: .95rem; }
.authbox .who-pill > button { min-height: 36px; padding: 4px 12px; color: var(--accent); font-weight: 600; flex: none; }
.authbox .tt-username { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0; }
.authbox form { position: relative; }
.authbox .ok-line { margin: 0; border-radius: 12px; border: 1px solid #4f6b4a; background: rgba(79, 107, 74, .14); padding: 10px 12px; color: var(--ink); }
.authbox.past-start > button.google, .authbox.past-start > button.passkey, .authbox.past-start > p.or, .authbox.past-start > .signin-help { display: none; }

/* About us (board 37): one centred column, the cover photo on top, the story, the sign-off, then the gallery */
.about { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.about h1 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-weight: 500; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; margin: 0; }
.about > p { margin: 0; line-height: 1.7; }
.about-cover { width: 100%; aspect-ratio: 4/3; max-height: 420px; object-fit: cover; border-radius: 18px; display: block; cursor: zoom-in; }
.about-sign { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-style: italic; font-size: 1.4rem; color: var(--champagne); }
.about .dpics img { cursor: zoom-in; }
/* Menu cards with a cover page (Era, 24 Nov): menu-cover.js. The front of a printed menu card: burgundy, a champagne
   double frame, the monogram (the logo's table and six seats in a ring, with the menu's initials), the name and the count.
   Sizes follow the card's own width (container units), so the same cover works in a grid, beside the editor and on Home. */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px 16px; align-items: start; }
@media (max-width: 520px) { .mc-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }
.mc-item { all: unset; box-sizing: border-box; display: grid; gap: 10px; cursor: pointer; color: var(--ink); text-decoration: none; min-width: 0; -webkit-tap-highlight-color: transparent; }
.mc-item:focus-visible .mcover { outline: 2px solid var(--champagne); outline-offset: 3px; }
.mcover { container-type: inline-size; display: block; aspect-ratio: 3 / 4; border-radius: 6px; padding: 6%; background:
  radial-gradient(120% 80% at 50% 0%, rgba(208,183,129,.10), transparent 60%), var(--burgundy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -14px rgba(42,20,24,.55), 0 2px 6px -2px rgba(42,20,24,.25);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease; }
@media (hover: hover) { .mc-item:hover .mcover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 30px -14px rgba(42,20,24,.6), 0 2px 6px -2px rgba(42,20,24,.25); } }
.mc-item:active .mcover { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .mcover { transition: none; } .mc-item:hover .mcover { transform: none; } }
.mc-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3.5cqw;
  border: 1px solid rgba(208,183,129,.7); outline: 1px solid rgba(208,183,129,.3); outline-offset: -2.6cqw; border-radius: 3px; padding: 8cqw 7cqw; color: var(--ivory); position: relative; }
.mcover .mc-eyebrow { font: 600 max(8px, 4.2cqw)/1.2 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--champagne); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mono { width: auto; max-width: 52cqw; height: 26cqw; flex: none; margin: 2cqw 0 3cqw; }
.mc-ring { fill: none; stroke: var(--champagne); stroke-width: 1.2; }
.mc-ring2 { fill: none; stroke: var(--champagne); stroke-width: .6; opacity: .55; }
.mc-table { fill: none; stroke: var(--ivory); stroke-width: 1.6; }
.mc-seat { fill: var(--champagne); }
.mc-ini { font: 500 30px var(--serif); fill: var(--ivory); letter-spacing: 1px; }
.mc-name { font: 600 max(17px, 12.5cqw)/1.02 var(--serif); letter-spacing: -.005em; color: var(--ivory); text-wrap: balance; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc-rule { width: 14cqw; height: 1px; background: var(--champagne); opacity: .8; flex: none; }
.mc-count { font: italic max(11px, 5.4cqw)/1.2 var(--serif); color: var(--champagne); }
.mc-foot { position: absolute; left: 0; right: 0; bottom: 5cqw; font: italic max(9px, 4.2cqw)/1 var(--serif); color: var(--champagne); opacity: .8; }
.mcover.small .mc-foot { display: none; }
/* cover colours Kai picks per menu (Era, 25 Nov), the same family as the event colours; light ones get dark lettering */
.mcover.mc-emerald { background: radial-gradient(120% 80% at 50% 0%, rgba(208,183,129,.10), transparent 60%), #24453a; }
.mcover.mc-midnight { background: radial-gradient(120% 80% at 50% 0%, rgba(208,183,129,.10), transparent 60%), #1d2740; }
.mcover.mc-terracotta { background: radial-gradient(120% 80% at 50% 0%, rgba(208,183,129,.12), transparent 60%), #8a3f26; }
.mcover.mc-blush, .mcover.mc-ivory { background: radial-gradient(120% 80% at 50% 0%, rgba(84,28,39,.06), transparent 60%), #ecd5cf; }
.mcover.mc-ivory { background: radial-gradient(120% 80% at 50% 0%, rgba(84,28,39,.05), transparent 60%), #f3efe4; }
.mcover.mc-blush .mc-in, .mcover.mc-ivory .mc-in { color: #541c27; border-color: rgba(84,28,39,.45); outline-color: rgba(84,28,39,.2); }
.mcover.mc-blush :is(.mc-name, .mc-ini), .mcover.mc-ivory :is(.mc-name, .mc-ini) { color: #541c27; fill: #541c27; }
.mcover.mc-blush :is(.mc-eyebrow, .mc-count, .mc-foot), .mcover.mc-ivory :is(.mc-eyebrow, .mc-count, .mc-foot) { color: #7d5a25; }
.mcover.mc-blush .mc-rule, .mcover.mc-ivory .mc-rule { background: #7d5a25; }
.mcover.mc-blush .mc-mono *, .mcover.mc-ivory .mc-mono * { stroke: #541c27; }
.mcover.mc-blush .mc-mono [fill="#d0b781"], .mcover.mc-ivory .mc-mono [fill="#d0b781"] { fill: #7d5a25; stroke: none; }
/* Kai's own card for a themed menu fills the cover */
.mcover.mc-own { padding: 0; overflow: hidden; background: var(--surface); }
.mcover.mc-own img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Our menus (Era, 25 Nov, boards 45 and 45e) */
.om-page { display: flex; flex-direction: column; gap: 18px; }
.om-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.om-search { display: grid; gap: 6px; width: min(100%, 320px); }
.om-tools { gap: 12px; flex-wrap: wrap; align-items: center; }
.om-tools select { width: auto; min-height: 40px; }
.om-page, .om-tools { min-width: 0; max-width: 100%; }
.om-chips { margin: 0; flex: 1 1 0; min-width: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
@media (max-width: 1023px) { .om-chips { flex-basis: 100%; } }
@media (min-width: 1024px) { .om-chips { flex-wrap: wrap; overflow: visible; } }
.om-chips button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.om-cov { position: relative; display: block; }
.om-new { position: absolute; top: 8px; right: 8px; background: var(--champagne); color: #2a1418; font: 600 .72rem var(--sans); padding: 3px 9px; border-radius: 99px; }
.om-more { justify-content: center; gap: 12px; align-items: center; }
.om-more:empty { display: none; }
.om-detail { display: grid; grid-template-columns: 1fr; gap: 20px; }
.om-dcov { width: min(240px, 60%); }
.om-dish { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.om-dish:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; border-radius: 6px; }
.om-dish img, .om-dish .nophoto { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.om-dish b { font-size: 1.25rem; font-weight: 500; }
.om-chev { color: var(--champagne); font-size: 1.4rem; }
.om-act { display: flex; flex-direction: column; gap: 10px; }
.om-act .btn, .om-act button { width: 100%; justify-content: center; }
@media (min-width: 1024px) {
  .om-detail { grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
  .om-dcov { width: 100%; }
  .om-act { position: sticky; top: 96px; }
  .om-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
}
.bk-from { display: grid; gap: 6px; margin: 4px 0 12px; }
.bk-from a { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid rgba(208,183,129,.5); border-radius: 10px; color: inherit; text-decoration: none; }
.bk-from a::after { content: "›"; color: var(--champagne); }
.mc-cap { display: grid; gap: 4px; min-width: 0; padding: 0 2px; }
.mc-dishes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-item.sent .mcover { box-shadow: 0 0 0 2px var(--champagne), 0 10px 24px -14px rgba(42,20,24,.55); }
/* the "Create menu" tile: an empty card the same shape, dashed */
.mc-add { aspect-ratio: 3 / 4; border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: 6px; place-items: center; color: var(--accent); }
.mc-add:hover { background: color-mix(in srgb, var(--champagne) 10%, transparent); }
.mc-addin { display: grid; justify-items: center; gap: 6px; }
.mc-plus { font: 300 2.6rem/1 var(--serif); }
/* one menu open: its cover beside the editor (stacked on a phone) */
.mc-edit { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.mc-side { display: grid; gap: 10px; position: sticky; top: 16px; }
@media (max-width: 720px) { .mc-edit { grid-template-columns: 1fr; } .mc-side { position: static; max-width: 220px; margin: 0 auto; width: 100%; } }
/* Kai's favourites on Home: small covers in the sideways row */
.gh-fav.mc-item { flex: 0 0 min(44%, 180px); padding: 0; border: 0; background: none; gap: 8px; }

/* About us beside sign-in (board 37b). Phone: a small card under the sign-in card. Computer: the left half of the page. */
.si-about { display: flex; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; }
.si-cover { width: 112px; flex: none; object-fit: cover; display: block; }
.si-txt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.si-h { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--accent); }
.si-p, .si-sign { display: none; }
.si-snip { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.si-more { font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  #app.with-about[data-route="signin"] > .wrap { margin-left: 50vw; margin-right: 0; width: 50vw; max-width: none; box-sizing: border-box; padding-left: max(var(--gut), calc((50vw - 480px) / 2)); padding-right: max(var(--gut), calc((50vw - 480px) / 2)); min-height: 100dvh; align-content: center; }
  .si-about { position: fixed; inset: var(--guest-preview-height, 0px) 50vw 0 0; z-index: 4; border: 0; border-radius: 0; background: #541c27; color: #f3efe4; }
  .si-about .si-cover { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
  .si-about::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,20,24,.1) 30%, rgba(42,20,24,.92) 100%); }
  .si-about .si-txt { position: absolute; left: 56px; right: 56px; bottom: calc(96px + var(--safe-b)); z-index: 1; gap: 14px; padding: 0; max-width: 520px; }
  .si-about .si-line { color: var(--champagne, #d0b781); }
  .si-about .si-h { font-size: clamp(2.2rem, 3.4vw, 3rem); color: #f3efe4; }
  .si-about .si-p { display: block; font-size: 1rem; line-height: 1.65; color: #efe6d6; }
  .si-about .si-snip { display: none; }
  .si-about .si-sign { display: block; font: italic 1.4rem var(--serif); color: var(--champagne, #d0b781); }
  .si-about .si-more { color: #f3efe4; }
  .si-about:hover .si-more { color: var(--champagne, #d0b781); }
}
/* Our dishes popup: link to the dish's article on dishes.thetable.tz (board 38) */
.dview .dstory{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}

.dview .dphoto-shop {
  justify-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dview .dphoto-shop[hidden] { display: none; }

.shop-product-row { position: relative; }
.shop-product-edit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; cursor: pointer; }

/* Home and sign in as one page (Era, 24 Nov, board 42). Phone: logo, the three choices, the sign-in card, then About.
   Computer: About and the choices on the left half, the sign-in card on the right half. */
.hs-one { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "choices" "sign" "about"; align-content: start; gap: 22px; }
.hs-top { grid-area: top; display: grid; gap: 22px; }
.hs-choices { grid-area: choices; }
.hs-sign { grid-area: sign; width: 100%; max-width: 440px; margin: 0 auto; scroll-margin-top: 24px; }
.hs-about { grid-area: about; display: grid; gap: 10px; max-width: 440px; margin: 0 auto; text-align: left; }
.hs-about .hs-line { color: var(--champagne); }
.hs-about .hs-h { font-size: 1.9rem; color: var(--ivory); }
.hs-about .hs-p { color: #efe6d6; line-height: 1.65; }
.hs-about .hs-signoff { font: italic 1.35rem var(--serif); color: var(--champagne); }
.hs-about .hs-more { display: flex; gap: 18px; flex-wrap: wrap; }
.hs-about .hs-more a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: .92rem; }
/* the card keeps the sign-in page's own colours inside the burgundy home page */
.hs-one .authbox { background: var(--bg); color: var(--ink); text-align: left; border-color: rgba(208,183,129,.28); }
.hs-one .authbox img { width: auto; margin: 0; }
.hs-one .authbox button, .hs-one .authbox .btn { border-color: var(--accent); color: var(--accent); }
.hs-one .authbox button.primary, .hs-one .authbox .btn.primary { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.hs-one .authbox button.ghost { border-color: transparent; }
.hs-one .authbox button.google, .hs-one .authbox button.passkey { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-one .authbox button.primary { background: var(--champagne); color: #2a1418; border-color: var(--champagne); } }
:root[data-theme="dark"] .hs-one .authbox button.primary { background: var(--champagne); color: #2a1418; border-color: var(--champagne); }
@media (min-width: 900px) {
  .home .landing.hs-one { grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); grid-template-areas: "top sign" "about sign" "choices sign"; grid-template-rows: auto auto 1fr;
    align-content: stretch; column-gap: 0; row-gap: 28px; padding: 0; text-align: left; min-height: calc(100svh - var(--safe-t) - 58px); }
  .hs-one > .hs-top, .hs-one > .hs-about, .hs-one > .hs-choices { padding-inline: clamp(32px, 5vw, 80px); max-width: 720px; margin: 0; }
  .hs-one > .hs-top { padding-top: 48px; }
  .hs-one > .hs-top .hs-logo { width: 200px; margin: 0; }
  .hs-one > .hs-about .hs-h { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
  .hs-one > .hs-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: end; padding-bottom: 56px; max-width: 760px; }
  .hs-one > .hs-choices .choice { flex-direction: column; align-items: flex-start; min-height: 0; padding: 16px; }
  .hs-one > .hs-sign { grid-area: sign; max-width: none; margin: 0; background: var(--bg); display: grid; align-content: center; justify-items: center; padding: 48px clamp(24px, 4vw, 64px); }
  .hs-one > .hs-sign .authbox { width: 100%; max-width: 480px; }
}
/* phones: the first page is taller than the screen, so the sign-in card and About are snap points of their own,
   otherwise a swipe jumps from the top straight past the sign-in form */
@media (max-width: 899px) {
  .home .landing.hs-one { padding-bottom: 72px; }
  html.snap .hs-one > .hs-sign { scroll-snap-align: start; scroll-margin-top: 12px; }
  html.snap .hs-one > .hs-about:not([hidden]) { scroll-snap-align: start; scroll-margin-top: 24px; }
}
