/* iOtomates by Geerho Tech LLC. Black, gold trim, red #FF0000 accent (TJ, 2026-10-26). Always dark. */
:root {
  color-scheme: dark;
  --bg: #000000; --card: #111111; --card2: #1a1a1a; --line: #2a2a2a;
  --gold: #D4AF37; --gold-soft: rgba(212, 175, 55, .35);
  --accent: #FF0000; --accent-dark: #cc0000;
  --text: #FFFFFF; --muted: #BDBDBD; --icon: #FFFFFF; --good: #22c55e; --warn: #f59e0b;
  --bar: rgba(0, 0, 0, .94); --notice: #0d0d0d; --heading-font: inherit;   /* themes (theme.js, M17) change these */
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--gold); }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 120px; }
main.wide { max-width: 1200px; }
h1, h2, h3 { margin: .2em 0 .4em; line-height: 1.2; }
h1 { font-family: var(--heading-font); font-size: 1.8rem; color: var(--gold); letter-spacing: .5px; }
h2 { font-family: var(--heading-font); font-size: 1.25rem; color: var(--gold); border-bottom: 1px solid var(--gold-soft); padding-bottom: 6px; margin-top: 24px; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold { color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

header.top { position: sticky; top: 0; z-index: 10; background: var(--bar); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-soft); }
header.top .inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; }
header.top .brand { color: var(--gold); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
header.top .brand small { color: var(--muted); font-weight: 400; }

.card { background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 14px; }
.cards { display: grid; gap: 12px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.item:hover { border-color: var(--gold); }
.item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); flex: none; }
.item .name { font-weight: 700; }
.item .price { color: var(--gold); font-weight: 700; }
.item.soldout { opacity: .45; cursor: default; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--gold-soft); color: var(--gold); margin-right: 4px; }
.tag.red { border-color: var(--accent); color: #fff; background: var(--accent); }

button, .button { font: inherit; border: 0; border-radius: 12px; padding: 10px 18px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.primary { background: var(--accent); color: #fff; font-weight: 700; }
.primary:hover { background: var(--accent-dark); }
.primary:disabled { background: #555; cursor: default; }
.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.plain { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.block { width: 100%; }

input, select, textarea { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-height: 44px; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 22px; height: 22px; flex: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: .9rem; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.choice input { width: 22px; accent-color: var(--accent); }
.choice.on { border-color: var(--gold); }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; position: sticky; top: 52px; background: var(--bg); z-index: 5; }
.tabs button { background: var(--card2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; padding: 8px 14px; }
.tabs button.on { border-color: var(--gold); color: var(--gold); }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bar); border-top: 1px solid var(--gold); z-index: 20; }
.cartbar .inner { max-width: 760px; margin: 0 auto; }

.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet .panel { width: 100%; max-width: 640px; max-height: 92vh; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow: auto; background: var(--card); border: 1px solid var(--gold); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .panel { border-radius: 18px; border-bottom: 1px solid var(--gold); } }
.sheet img.hero { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--gold); }

.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 6px 0; vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines tr.total td { border-top: 1px solid var(--gold-soft); font-weight: 800; color: var(--gold); padding-top: 10px; }
.lines.prices td:nth-child(2) { text-align: right; white-space: nowrap; padding-left: 12px; }   /* monthly | yearly (M24) */
@media (max-width: 480px) { .lines.prices td { white-space: normal; } .lines.prices td + td { padding-left: 8px; } }

.notice { border: 1px solid var(--gold-soft); background: var(--notice); border-radius: 12px; padding: 10px 12px; margin: 10px 0; color: var(--muted); }
.notice.bad { border-color: var(--accent); color: var(--text); }
.notice.good { border-color: var(--good); color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 16px; z-index: 50; }

/* Order tracker */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.steps div { text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.steps div.done { border-color: var(--gold); color: var(--gold); }
.steps div.now { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.bignum { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }

/* Kitchen screen */
.board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.col h2 { margin-top: 0; }
.ticket { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.ticket.new { border-color: var(--accent); }
.ticket.cooking { border-color: var(--gold); }
.ticket.ready { border-color: var(--good); }
.ticket.late { box-shadow: 0 0 0 3px var(--warn) inset; }
.ticket .num { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.ticket ul { margin: 8px 0; padding-left: 18px; font-size: 1.05rem; }
.ticket .opt { color: var(--muted); font-size: .9rem; }

/* Owner pages */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.menuedit .cat { margin-top: 14px; }
.menuedit .it { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
footer.site { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 16px 60px; line-height: 1.7; }
footer.site strong { color: var(--gold); }
.mt0 { margin-top: 0; }
.mt20 { margin-top: 20px; }

/* Terms, Privacy, FAQ and guides */
.doc h2 { margin-top: 28px; }
.doc p, .doc li { color: #e6e6e6; }
.doc p.muted { color: var(--muted); }
.doc address { font-style: normal; line-height: 1.7; }
.doc details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.doc details summary { cursor: pointer; font-weight: 700; }
.doc nav.toc { columns: 2; font-size: .9rem; }
@media (max-width: 600px) { .doc nav.toc { columns: 1; } }
footer.site nav { margin-top: 8px; }
footer.site nav a { display: inline-block; padding: 10px 6px; white-space: nowrap; }   /* 44px tap targets */
footer.site nav.lang { margin-top: 0; }
.mt10 { margin-top: 10px; }
.truck .stopday { margin: 8px 0; }
.card.stop { margin: 8px 0; background: var(--card2); }
.card.stop input { margin-top: 6px; }

/* Menu photo editor (photo-editor.js, M16) */
dialog.photo-editor { border: 1px solid var(--gold-soft); border-radius: 16px; padding: 20px; background: var(--card); color: var(--text); max-width: calc(100vw - 32px); text-align: center; }
dialog.photo-editor::backdrop { background: rgba(0, 0, 0, .7); }
dialog.photo-editor h2 { margin: 0 0 12px; font-size: 1.1rem; border: 0; }
canvas.crop { display: block; margin: 0 auto; touch-action: none; cursor: grab; border-radius: 4px; }
.zoom-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.zoom-row .grow { flex: 1; accent-color: var(--gold); }
.editor-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

/* Theme picker (owner Setup, M17) */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 8px 0; }
.theme-card { border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; font: inherit; }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-card .swatch { display: flex; gap: 4px; margin: 6px 0; }
.theme-card .swatch span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(128,128,128,.4); }
.theme-card .btn { display: inline-block; border-radius: 8px; padding: 2px 10px; font-size: .8rem; font-weight: 700; color: #fff; }

/* Responsive (M18, TJ 2026-10-29: "make sure … the website [is] responsive"): no sideways scrolling at 360px, and the
   owner pages use a wide screen as two columns instead of a stretched phone. */
img, svg, canvas { max-width: 100%; }
header.top .inner { flex-wrap: wrap; row-gap: 4px; }
header.top a:not(.brand) { display: inline-block; padding: 10px 0; }
#who { display: flex; gap: 8px; align-items: center; }
@media (max-width: 480px) { header.top .brand small { display: none; } }
.cols { display: grid; gap: 16px 24px; align-items: start; }
.cols > section { min-width: 0; }
@media (min-width: 960px) { .cols { grid-template-columns: 1fr 1fr; } .cols > section > h2:first-child, .cols > section > .card:first-child { margin-top: 24px; } }
.break { overflow-wrap: anywhere; }

/* Owner pages: bigger and simpler (M18 item 5). 17px text that grows with the browser's text size, 48px buttons. */
body.owner { font-size: 1.0625rem; }
body.owner main { max-width: 1100px; }
body.owner button, body.owner .button, body.owner input:not([type="checkbox"]):not([type="radio"]), body.owner select { min-height: 48px; }
/* Phones: every owner tab in view (wrapped, not sticky), so nothing hides off the edge. */
@media (max-width: 700px) { body.owner .tabs { flex-wrap: wrap; position: static; } }
body.owner .small { font-size: .9rem; }
body.owner button.small { font-size: .95rem; padding: 8px 14px; }
body.owner label { font-size: 1rem; color: var(--text); font-weight: 600; }
body.owner label.choice { font-weight: 400; }
.hint { color: var(--muted); font-size: .95rem; margin: 4px 0 8px; }
.card + .card { margin-top: 10px; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--gold); } to { box-shadow: 0 0 0 4px transparent; } }

/* Get started checklist */
.getstarted { border-color: var(--gold); }
.progress { height: 12px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 8px; border-top: 1px solid var(--line); }
.checklist li.next { background: var(--card2); border: 1px solid var(--gold); border-radius: 12px; }
.checklist li.done strong { color: var(--muted); }
.checklist .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-weight: 900; }
.checklist li.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.checklist li.next .tick { border-color: var(--gold); }
button.big { display: block; width: 100%; margin-top: 10px; font-size: 1.1rem; min-height: 56px; }
.doneline { color: var(--good); font-weight: 700; margin: 0 0 4px; }

/* Setup */
.hourrow { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 6px 0; }
.hourrow .choice { margin: 0; }
@media (max-width: 480px) { .hourrow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .hourrow .choice { grid-column: 1 / -1; } }
.timerow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 6px 0; }
.card.stop select, .card.stop input { margin-top: 6px; }
.hourrow input, .timerow input { min-width: 0; padding-left: 8px; padding-right: 8px; }
@media (max-width: 420px) { .hourrow input::-webkit-calendar-picker-indicator, .timerow input::-webkit-calendar-picker-indicator { display: none; } }   /* phones open their own picker; the icon only clips "11:00 AM" */

/* Menu editor and starter menus */
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.starter { background: var(--card); color: var(--text); border: 2px solid var(--gold-soft); border-radius: 16px; padding: 18px 10px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.starter:hover { border-color: var(--gold); }
.starter .emoji { font-size: 2.6rem; line-height: 1; }
.catgrid { display: grid; gap: 12px; margin-top: 14px; align-items: start; }
@media (min-width: 960px) { .catgrid { grid-template-columns: 1fr 1fr; } }
.menuedit .cat { margin-top: 0; }
.menuedit .it { width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 2px; }
.menuedit .it:hover { background: var(--card2); }
.optrow input { min-width: 0; }
.qty strong { min-width: 2ch; text-align: center; font-size: 1.2rem; }
.qty button { min-width: 48px; font-size: 1.3rem; }

/* Share */
.card.qr { background: #fff; max-width: 320px; margin-top: 24px; }   /* a QR code must stay dark-on-white in every theme */
@media print { header.top, .tabs, footer.site, button, #page h2, #page p, #page .row { display: none !important; } .card.qr { border: 0; } }

/* Notification bell (bell.js, M21) */
.bell { position: relative; margin-left: 8px; font-size: 1.1rem; line-height: 1; }
.bell-count { position: absolute; top: -4px; right: -6px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: .7rem; font-weight: 700; }
/* Header icons (TJ, 2026-10-30): bell and envelope white (on a light theme, the text colour, so they still show), "?" gold */
.icon { width: 1.2em; height: 1.2em; vertical-align: -.2em; color: var(--icon); }
/* Always iOtomates gold, whatever the restaurant's theme (TJ 2026-10-30: "question mark gold"); a 44px tap target. */
header.top a.help-q { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid #D4AF37; border-radius: 50%;
  color: #D4AF37; font-size: 1.2rem; font-weight: 800; line-height: 1; text-decoration: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }

/* Lists you can delete from (delete-list.js, M23): × per row, swipe left to show Delete, press and hold to select */
.dl-tools { min-height: 44px; margin: 4px 0; }
.dl-row { position: relative; overflow: hidden; border-radius: var(--radius); margin: 8px 0; }
.dl-behind { visibility: hidden; position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border-radius: 0; background: var(--accent); color: #fff; font-weight: 700; }
.dl-front { position: relative; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 6px 10px 12px; touch-action: pan-y; }
.dl-front.dl-snap { transition: transform .16s ease-out; }
.dl-row.dl-moved .dl-behind { visibility: visible; }
.dl-row.on .dl-front { border-color: var(--gold); }
.dl-body { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.dl-x { flex: none; min-height: 44px; min-width: 44px; padding: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.dl-x:hover, .dl-x:focus-visible { color: var(--accent); }
@media (pointer: coarse) { .dl-front { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; } }
.unread { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
img.logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-soft); flex: none; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Messages (messages.js, M23): mine on the right, theirs on the left */
.dl.chat .dl-row { margin: 4px 0; }
.dl.chat .dl-front { background: var(--bg); border: 0; padding: 2px 0; }
.dl.chat .dl-body { flex: 0 1 auto; max-width: 80%; display: block; }
.dl.chat .mine .dl-front { justify-content: flex-end; }
.dl.chat .mine .dl-x { order: -1; }
.dl.chat .dl-row.on .dl-front { background: var(--card2); }
.bubble { background: var(--card2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .bubble { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble time { display: block; font-size: .72rem; opacity: .75; margin-top: 2px; }
.mine .bubble time { text-align: right; }
.composer { position: sticky; bottom: 0; background: var(--bar); border-top: 1px solid var(--gold-soft); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 12px; }
.composer .row { flex-wrap: nowrap; align-items: flex-end; }
.composer textarea { resize: none; min-height: 48px; max-height: 40vh; }

/* Map of restaurants and food trucks on the home page (near-map.js, M27) */
.viewswitch button { min-width: 84px; }
.map { height: 60vh; min-height: 320px; max-height: 560px; margin-top: 10px; border: 1px solid var(--gold-soft); border-radius: var(--radius); background: var(--card2); z-index: 0; }
.pin { background: none; border: 0; }
.pin .pin-body { position: absolute; left: 3px; top: 3px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 2px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.pin .pin-glyph { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.pin.live .pin-body { background: var(--good); border-color: #fff; }
.pin.gray .pin-body { background: #8a8a8a; border-color: #d0d0d0; }
.pin.gray .pin-glyph { filter: grayscale(1); }
.pin .pin-test { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; line-height: 1.4; white-space: nowrap;
  background: var(--card); color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 99px; padding: 0 5px; }
.maplegend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: middle; }
.maplegend .dot:first-child { margin-left: 0; }
.dot.fixed { background: var(--accent); border: 1px solid var(--gold); }
.dot.live { background: var(--good); }
.dot.gray { background: #8a8a8a; }

/* Truck plans, owner (truck-plans.js, M27) */
.plandays { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.planday { display: block; width: 100%; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 10px 12px; font-weight: 400; }
.planday:hover { border-color: var(--gold); }
.planday.off { border-color: var(--accent); }
.struck { text-decoration: line-through; }

/* Smart download buttons (2026-10-30): old-phone.js shows this on phones older than iOS 17 or Android 8.0. */
.old-phone { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.old-phone p { margin: 0 0 6px; }
.old-phone-title { font-weight: 700; }
.old-phone-how { font-weight: 600; margin-top: 10px !important; }
.old-phone-steps { margin: 4px 0 8px; padding-left: 22px; }
.old-phone-needs { color: var(--muted); font-size: .88rem; }
/* Get paid (M33): one card per payment service; the one taking online orders has a gold edge. */
.choice-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.choice-card.on { border-color: var(--gold); }
.choice-card h3 { display: flex; align-items: center; }
ol.howto { padding-left: 20px; margin: 8px 0; }
ol.howto li { margin: 4px 0; }

/* Profile photo (profile-photo.js, M34): the round photo with a camera badge and one menu, as in the apps */
.avatar { display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; border: 1px solid var(--gold); background: var(--card2);
  color: var(--gold); font-weight: 700; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card { margin: 8px 0 14px; }
.photo-control { display: flex; align-items: center; gap: 14px; }
.photo-anchor { position: relative; }
.photo-button { position: relative; display: block; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; min-height: 0; cursor: pointer; }
.photo-button:disabled { cursor: progress; opacity: 0.7; }
.photo-badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #000; border: 2px solid var(--card); }
.photo-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.photo-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 6px; display: grid;
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.photo-menu[hidden] { display: none; }
.photo-menu [role="menuitem"] { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 0; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.photo-menu [role="menuitem"] svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.photo-menu [role="menuitem"]:hover, .photo-menu [role="menuitem"]:focus-visible { background: var(--card2); outline: none; }
.photo-menu [role="menuitem"].danger { color: var(--accent); }
.photo-menu [role="menuitem"].danger svg { stroke: var(--accent); }
.link-button { background: none; border: 0; padding: 0; margin: 0; min-height: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; }
.small.bad { color: var(--accent); }
/* M37: the small Reviewer sign-in link under Continue with Geerho (App Review only). */
details.reviewer { margin-top: 14px; text-align: center; }
details.reviewer summary { cursor: pointer; opacity: .7; font-size: .75rem; list-style: none; }
details.reviewer summary::-webkit-details-marker { display: none; }
details.reviewer .reviewer-form { text-align: left; margin-top: 8px; }

/* Kitchen button in the top bar (owner pages): compact, but clearly a button. */
#who { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#who .kitchen-link { min-height: 36px; padding: 6px 14px; font-weight: 700; }

/* Order and message sounds (order-sound.js): the big "Tap to turn on" banner, the small "tap anywhere" hint and the controls. */
.soundbar { max-width: 1200px; margin: 0 auto; padding: 10px 16px 0; }
.soundbar .row { gap: 8px; }
.soundbar label.choice { margin: 0; display: flex; gap: 6px; align-items: center; }
.soundbanner { display: block; width: 100%; margin-bottom: 8px; min-height: 64px; font-size: 1.2rem; font-weight: 800; color: #fff; background: var(--accent); border: 2px solid var(--gold); border-radius: var(--radius); }
.soundbanner:hover { background: var(--accent-dark); }
.soundhint { display: block; width: 100%; margin-bottom: 8px; min-height: 40px; padding: 6px 12px; color: var(--gold); background: var(--notice); border: 1px dashed var(--gold-soft); border-radius: 12px; }

/* UX review 2026-10-31: a visible × on every sheet, and "Add +" on each dish card. */
.sheet .panel .sheetclose { float: right; position: sticky; top: 0; z-index: 2; min-width: 44px; min-height: 44px; margin: -8px -8px 0 8px;
  font-size: 26px; line-height: 1; padding: 0; border-radius: 50%; }
.item .pricecol { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.item .addpill { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Round 2 (2026-10-31): kitchen, order page, Messages */
/* One small "🔔 Sound" button; its settings in a pop-up under it (order-sound.js). */
.soundrow { display: flex; justify-content: flex-end; }
.soundrow:empty { display: none; }
.soundctl { position: relative; display: inline-block; }
.soundchip { white-space: nowrap; }
.soundpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 260px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 8px;
  background: var(--card); color: var(--text); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); text-align: left; }
.soundpop label { margin: 4px 0 0; }
.soundpop label.choice { margin: 0; display: flex; gap: 8px; align-items: center; }
.soundpop button { width: 100%; }
/* Kitchen tickets: Cancel apart from the main buttons, small and outlined red; orders for later look calm. */
.ticket .cancelrow { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cancel-order { background: transparent; color: #ff5a5a; border: 1px solid #ff5a5a; min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.cancel-order:hover { background: rgba(255, 0, 0, .12); }
.ticket.later { border-color: var(--line); border-style: dashed; }
.ticket .fortime { font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.latergroup { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
/* Messages: your own bubbles in a calm gold tint, the other side neutral (readable in every theme). */
.mine .bubble { background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--card); border-color: var(--gold); color: var(--text); }
.bubble time { opacity: .8; }
/* Round 2 (2026-10-31): setup, cart */
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px max(16px, calc((100vw - 1200px) / 2 + 16px)) calc(12px + env(safe-area-inset-bottom)); background: var(--bar);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 2px solid var(--gold); font-weight: 700; }
.savebar button.plain { background: transparent; border: 1px solid var(--line); color: var(--text); }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.jump a { font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--card2); color: var(--text); }
.jump a:hover, .jump a:focus-visible { border-color: var(--gold); color: var(--gold); }
#page h2[id] { scroll-margin-top: 120px; }
.qtyline { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.qtyline .qtybtn { min-width: 44px; padding: 6px 0; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.qtyline .qtybtn:disabled { opacity: .4; cursor: default; }
.qtyline .qtynum { min-width: 26px; text-align: center; font-weight: 800; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tips .tipbtn { background: var(--card2); color: var(--text); border: 1px solid var(--line); padding: 10px 4px; white-space: nowrap; }
.tips .tipbtn.on { border: 2px solid var(--gold); color: var(--gold); font-weight: 800; }
.allergens { margin-top: 4px; }
@media (max-width: 500px) { .savebar { gap: 8px; } .savebar > span { flex-basis: 100%; font-size: .9rem; } .savebar button { flex: 1; } }

/* Round 2 (2026-10-31): the home page, customers first */
.home-hero h1 { font-size: 2rem; }
.home-actions .button { min-height: 48px; }
.home-owners { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line, rgba(212, 175, 55, .35)); }
#menu-link label { display: block; }
@media (max-width: 480px) { .home-hero h1 { font-size: 1.6rem; } .home-actions .button { flex: 1 1 0; text-align: center; } }

/* Engagement (M39/M40, 2026-10-31): "Your usual" and "People also add" (a sideways row of small cards), and the
   owner's Insights (period picker, tiles, lists). */
.minirow { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.mini { flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 0; }
.mini:hover, .mini:focus-visible { border-color: var(--gold); outline: none; }
.mini img { width: 100%; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); }
.mini .name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.mini .price { color: var(--gold); font-weight: 700; }
.mini .addpill { margin-top: auto; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 3px 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.period { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.period button { background: var(--card2); color: var(--text); border: 1px solid var(--line); padding: 10px 4px; white-space: nowrap; }
.period button.on { border: 2px solid var(--gold); color: var(--gold); font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 12px; min-width: 0; }
.tile .tilenum { font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1.15; overflow-wrap: anywhere; }
.tile .up { color: var(--good); }
.tile .down { color: var(--accent); }
.statlist { list-style: none; margin: 0; padding: 0; }
.statlist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.statlist li:last-child { border-bottom: 0; }

/* Restructure (2026-10-31, M44–M48): business sign-up, invites, My profile, the business dashboard, the menu's profile. */
.lead { font-size: 1.05rem; color: var(--text); }
.strong { font-weight: 700; }
.block-line { display: block; }
.right { text-align: right; }
h2.nobar { border-bottom: 0; padding-bottom: 0; }
a.button.big { display: block; width: 100%; margin-top: 10px; font-size: 1.1rem; min-height: 56px; line-height: 36px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps-list { padding-left: 22px; margin: 10px 0 0; }
.steps-list li { margin: 4px 0; }
.kindpick { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .kindpick { grid-template-columns: 1fr; } }
.kindcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--card2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 12px; }
.kindcard .emoji { font-size: 1.6rem; line-height: 1; }
.kindcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.status-card { border-color: var(--gold); }
.status-card.good { border-color: var(--good); }
.status-card.bad { border-color: var(--accent); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; }
.pill.good { border-color: var(--good); color: var(--good); }
.pill.bad { border-color: var(--accent); color: #ff6b6b; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 14px 0 0; font-size: .92rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 420px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } }
/* Chips: allergies, diet, cuisine */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 99px; background: var(--card2); color: var(--text); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.chip.on { border-color: var(--gold); color: var(--gold); background: rgba(212, 175, 55, .12); }
a.chip.link { text-decoration: none; display: inline-flex; align-items: center; }
.small-chips { margin: 4px 0; }
.addrow { flex-wrap: nowrap; }
.addrow input { flex: 1; min-width: 0; }
.kitchen-preview { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--notice); border: 1px dashed var(--gold-soft); }
.profile-head .big-name { font-size: 1.3rem; font-weight: 800; }
.points { display: flex; align-items: baseline; gap: 6px; }
.points .tilenum { font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.business-cta { border-color: var(--gold); }
.period.two { grid-template-columns: repeat(2, 1fr); }
.period.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .period.four { grid-template-columns: repeat(2, 1fr); } }
/* Header: My profile and My business (bell.js) */
header.top a.me { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 8px; margin-left: 4px; border-radius: 12px; }
header.top a.mybiz { font-weight: 700; margin-left: 8px; }
/* Kitchen: food preferences on the ticket */
.ticket .prefs { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(245, 158, 11, .14); border: 2px solid var(--warn); color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
/* Business dashboard */
.bizhead h1 { margin-bottom: 0; }
.tabs.dash a.tablink { background: var(--card2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; padding: 8px 14px; border-radius: 12px; display: inline-flex; align-items: center; }
.tabselect-wrap { display: none; margin: 8px 0 4px; }
@media (max-width: 700px) { body.owner .tabs.dash { display: none; } .tabselect-wrap { display: block; } .tabselect { font-weight: 700; border-color: var(--gold); } }
a.tile.link { color: inherit; text-decoration: none; display: block; }
a.tile.link:hover, a.tile.link:focus-visible { border-color: var(--gold); }
.tile.neg .tilenum, td.neg { color: #ff6b6b; }
.tile.pos .tilenum { color: var(--good); }
.empty { text-align: center; padding: 22px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.empty p { margin: 6px 0 12px; }
.datebadge { flex: none; width: 48px; text-align: center; border: 1px solid var(--gold-soft); border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; line-height: 1.1; }
.datebadge strong { font-size: 1.2rem; color: var(--gold); }
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.shortcut:hover, .shortcut:focus-visible { border-color: var(--gold); }
.shortcut .emoji { font-size: 1.5rem; line-height: 1; }
.toolbar { flex-wrap: nowrap; }
.toolbar select { width: auto; }
@media (max-width: 480px) { .toolbar { flex-wrap: wrap; } .toolbar select { width: 100%; } }
/* Customers */
.custhead, .custrow { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; }
.custhead { padding: 4px 12px; }
.custrow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.custrow .lbl { display: none; }
.custrow .tagline { margin: 2px 0; }
@media (max-width: 700px) {
  .custhead { display: none; }
  .custrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custrow .who { grid-column: 1 / -1; }
  .custrow .lbl { display: block; }
}
/* Loyalty */
.rewardrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rewardrow:last-child { border-bottom: 0; }
.rewardrow .grow { min-width: 180px; }
.pointsbox { display: flex; align-items: center; gap: 6px; }
.pointsbox input { width: 96px; }
.choice.compact { margin: 0; padding: 6px 10px; }
/* Books */
.customrange { align-items: flex-end; margin-top: 8px; }
.customrange > div { min-width: 140px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table.books { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
table.books th, table.books td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.books th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
table.books thead th { color: var(--muted); font-weight: 600; background: var(--card); }
table.books tfoot td, table.books tfoot th { font-weight: 800; color: var(--gold); border-bottom: 0; border-top: 2px solid var(--gold-soft); }
ul.bars { list-style: none; margin: 0; padding: 0; }
ul.bars li { margin: 8px 0; }
.track { height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.track .bar { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
/* Calendar */
.calnav { flex-wrap: nowrap; }
.calnav .monthname { text-align: center; }
.calnav button.plain { min-width: 48px; font-size: 1.4rem; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.calhead { text-align: center; padding: 4px 0; text-transform: capitalize; }
.calday { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 92px; padding: 6px; text-align: left; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font-weight: 400; overflow: hidden; }
.calday:hover, .calday:focus-visible { border-color: var(--gold); }
.calday .num { font-weight: 800; }
.calday .hrs { font-size: .72rem; color: var(--muted); }
.calday.closed .hrs { color: #ff6b6b; }
.calday.out { opacity: .45; }
.calday.today { border: 2px solid var(--gold); }
.calday.special { background: rgba(212, 175, 55, .08); }
.calday .ev { font-size: .7rem; line-height: 1.2; padding: 1px 4px; border-radius: 4px; background: var(--card2); border-left: 3px solid var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calday .ev.special_day { border-left-color: var(--accent); }
.calday .ev.appointment { border-left-color: var(--good); }
@media (max-width: 600px) {
  .calday { min-height: 54px; padding: 4px; align-items: center; }
  .calday .hrs { display: none; }
  .calday .ev { font-size: 0; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); }
  .calday .ev.special_day { background: var(--accent); }
  .calday .ev.appointment { background: var(--good); }
  .calday .ev.more { display: none; }
}
img.logo.big { width: 64px; height: 64px; }
.goal { margin: 6px 0 12px; }
/* Menu: business profile, fundraiser, rewards */
.menuhead { flex-wrap: nowrap; }
.menuhead h1 { margin-bottom: 0; }
p.about { white-space: pre-line; }
.links a { text-decoration: none; }
.card.fundraiser { border-color: var(--gold); margin: 10px 0; }
.card.fundraiser .cause { font-size: 1.05rem; font-weight: 600; margin: 6px 0; }
.rewards-hint { color: var(--text); }
.points-box { margin: 12px 0; padding: 12px; border: 1px solid var(--gold-soft); border-radius: 12px; background: var(--card2); }
.points-box button.choice { width: 100%; background: var(--card); color: var(--text); text-align: left; font-weight: 400; }
.points-box button.choice:disabled { opacity: .5; cursor: default; }
.prefs-choice strong { overflow-wrap: anywhere; }
tr.reward-line td { color: var(--gold); }
.row.nowrap { flex-wrap: nowrap; }
.nowrap-text { white-space: nowrap; }
.tabs.dash { flex-wrap: wrap; position: static; }
.tabs.dash + .tabselect-wrap + #page, .tabs.dash ~ #page { margin-top: 8px; }
/* Business Books (owner-books.js, M52): period bar, summary card, tabs, profit and loss, entries, forms. */
.bookshead { align-items: center; margin-bottom: 4px; }
.bookswhere-wrap { min-width: 200px; flex: 0 1 280px; }
.periodbar { margin: 6px 0 14px; }
.periodbar .period { margin: 0 0 8px; }
.periodstep { justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.periodstep .stepper { min-width: 48px; font-size: 1.4rem; line-height: 1; padding: 6px 12px; }
.periodstep .stepper:disabled { opacity: .35; cursor: default; }
.periodname { flex: 1; text-align: center; min-width: 0; }
.periodname strong { font-size: 1.05rem; }
.bookssum { margin: 4px 0 12px; display: grid; gap: 10px; }
.bookssum.tappable { cursor: pointer; }
.bookssum.tappable:hover, .bookssum.tappable:focus-visible { border-color: var(--gold); outline: none; }
.bookssum .sumrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bookssum .sumnum { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bookssum .bignum { font-size: 2.4rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bookssum .bignum.pos { color: var(--good); }
.bookssum .bignum.neg, .num.neg { color: #ff6b6b; }
.booksexport { margin: 0 0 14px; }
.booksexport button { flex: 1 1 160px; }
.period.three { grid-template-columns: repeat(3, 1fr); }
.booktabs { position: sticky; top: 52px; z-index: 4; background: var(--bg); padding: 6px 0; margin: 4px 0 6px; }
.booktabs button { white-space: normal; line-height: 1.2; min-height: 44px; }
@media (max-width: 420px) { .booktabs.four { grid-template-columns: repeat(2, 1fr); } .booktabs { position: static; } }
.bookstab h3 { margin: 18px 0 8px; }
.bookstab h4 { margin: 16px 0 6px; color: var(--muted); font-size: .95rem; font-weight: 600; }
table.books.pl th { white-space: normal; font-weight: 400; }
table.books.pl tr.total th, table.books.pl tr.total td { font-weight: 800; border-top: 1px solid var(--gold-soft); }
table.books.pl tr.big th, table.books.pl tr.big td { font-size: 1.1rem; color: var(--gold); }
.statlist.entries li { align-items: center; }
.statlist.entries .right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.statlist.entries .chips { gap: 6px; margin-top: 4px; }
.statlist.entries .chips:empty { display: none; }
.booksloc .right { flex: none; }
.booksloc .num { font-weight: 800; font-size: 1.1rem; }
.sheet .field input[type=file] { display: none; }
.booksexport { align-items: stretch; }
table.books.pl td { background: var(--card); }
.cardfees { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 520px) { .bookshead .bookswhere-wrap { flex: 1 1 100%; } }
a.item.booksloc { text-decoration: none; color: inherit; }
a.item.booksloc .name { color: var(--gold); font-weight: 700; }
.booksbody > h3 { margin: 20px 0 8px; }

/* Utility classes replacing inline style attributes (the pages' CSP allows only this stylesheet; 2026-10-31). */
.u-plain-link { text-decoration: none; color: inherit; }
.u-photo-preview { max-width: 160px; border-radius: 12px; display: block; margin: 8px 0; }
.u-my8 { margin: 8px 0; }
.u-mt14 { margin-top: 14px; }
.u-ml6 { margin: 0 0 0 6px; }
.u-ml8 { margin-left: 8px; }
.u-w76 { width: 76px; }
.u-flex1 { flex: 1; }
.u-flex2 { flex: 2; }
.u-cursor-default { cursor: default; }

/* A business's own domain (M32 white label, TJ 2026-11-01): its logo and name in the header; our parts hidden before any
   script runs (the menu site puts class="own-domain" on <html>; own-domain.js too). */
header.top .brand .brand-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid var(--gold-soft); }
header.top .brand.own-brand { display: inline-flex; align-items: center; min-width: 0; }
header.top .brand.own-brand small { margin-left: .3em; }
header.top .brand.own-brand .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.own-domain [data-platform], html.own-domain [data-app-links], html.own-domain header.top .mybiz, html.own-domain header.top .me { display: none !important; }
footer.site.own nav { margin-top: 0; }

/* Fundraisers and ways to pay (M53–M54, 2026-11-01) */
.u-upper { text-transform: uppercase; }
.u-h12 { height: 12px; }
.u-wauto { width: auto; }
.good-text { color: var(--good); }
.bad-text { color: #ff6b6b; }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.einresult { margin: 8px 0; display: grid; gap: 4px; }
.verified { color: var(--good); font-weight: 700; margin: 4px 0; }
.pickuplist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.pickuplist li { border-left: 3px solid var(--gold-soft); padding-left: 10px; }
.forfeit { color: var(--warn); }
.forfeit-choice { border-color: var(--warn); }
.forfeit-choice.on { border-color: var(--good); }
.countdown { font-size: 1.1rem; margin: 8px 0; }
.checklist.compact li { padding: 6px 0; }
.onbox .primary.big { margin-top: 10px; }
.card.method { margin-bottom: 12px; }
.qrthumb img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; display: block; margin: 6px 0; }
/* The customer's order: amber while waiting for payment, green once paid */
.paybox { border-radius: var(--radius); padding: 16px; margin: 14px 0; border: 2px solid; }
.paybox.waiting { border-color: var(--warn); background: rgba(245, 158, 11, .12); }
.paybox.paid { border-color: var(--good); background: rgba(34, 197, 94, .15); }
.paybig { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.paybox.waiting .paybig { color: var(--warn); }
.paybox.paid .paybig { color: var(--good); font-size: 2.2rem; }
.ordercode { font-size: 2.4rem; font-weight: 900; letter-spacing: 2px; color: var(--gold); margin: 6px 0 10px; }
.payname { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.pickupcard { margin: 10px 0; display: grid; gap: 4px; }
/* The seller's QR screen: bright, so a phone camera reads it */
.qrfull { position: fixed; inset: 0; z-index: 100; background: #fff; color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.qrfull-title { font-size: 1.4rem; font-weight: 800; }
.qrfull-img img { width: min(80vw, 60vh); height: min(80vw, 60vh); object-fit: contain; }
.qrfull-amount { font-size: 3rem; font-weight: 900; }
.qrfull-code { font-size: 1.8rem; font-weight: 800; letter-spacing: 1px; }
.qrfull-handle { font-size: 1.1rem; }
/* Kitchen: waiting for payment and Take an order */
.waiting h2 { color: var(--warn); border-color: var(--warn); }
.waitlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ticket.waitticket { border-color: var(--warn); }
.waitamount { font-weight: 800; margin: 4px 0; }
.paidline { color: var(--good); }
.counteritems { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.counteritem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 64px; }
.counteritem:hover { border-color: var(--gold); }
.sheet .panel.wide-panel { max-width: 860px; }
.qrfull .primary { width: auto; min-width: 220px; }
.mycode-qr { width: 220px; max-width: 70vw; background: #fff; padding: 8px; border-radius: 12px; margin: 8px 0; }
.mycode-qr svg { display: block; width: 100%; height: auto; }
.mycode-text { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: var(--gold); }

/* ---- Branding (owner-branding.js, 2026-11-01): hero, before/after mockups, why cards, brand cards, the domain wizard ---- */
.brand-hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 8px; padding: 22px 18px; border-radius: 18px; border: 1px solid var(--gold-soft);
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, .22), transparent 55%), linear-gradient(160deg, #141414, #050505); overflow: hidden; }
.brand-hero-text { flex: 1; min-width: 0; }
.brand-kicker { margin: 0; color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1.brand-title { font-size: clamp(1.9rem, 7vw, 2.8rem); margin: 4px 0 6px; background: linear-gradient(90deg, #f6e7a6, var(--gold) 45%, #a8841c);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-lead { margin: 0; font-size: 1.08rem; color: var(--text); max-width: 34em; }
.brand-hero-badge { flex: none; width: 92px; height: 92px; border-radius: 24px; padding: 4px; background: conic-gradient(from 210deg, var(--gold), #6b5412, var(--gold), #f6e7a6, var(--gold));
  box-shadow: 0 10px 30px rgba(212, 175, 55, .25); animation: brand-float 5s ease-in-out infinite; }
.brand-hero-logo { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; background: #000; display: flex; align-items: center; justify-content: center; }
@keyframes brand-float { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (max-width: 480px) { .brand-hero { padding: 18px 14px; } .brand-hero-badge { width: 64px; height: 64px; border-radius: 18px; } .brand-hero-logo { border-radius: 14px; } }
.initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #334155; }
.brand-hero-logo.initial { font-size: 2.2rem; color: var(--gold); background: #0b0b0b; }

/* Before / after: two little browser windows (stacked on phones) */
.ba { display: grid; gap: 12px; align-items: start; }
.ba-arrow { align-self: center; }
@media (min-width: 760px) { .ba { grid-template-columns: 1fr auto 1fr; } }
.ba-arrow { text-align: center; color: var(--gold); font-size: 1.6rem; }
@media (max-width: 759px) { .ba-arrow { transform: rotate(90deg); line-height: 1; } }
.mock { margin: 0; min-width: 0; }
.mock-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mock.mine .mock-label { color: var(--gold); }
.mock-window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #f4f4f5; color: #111; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.mock.mine .mock-window { border-color: var(--gold); box-shadow: 0 10px 30px rgba(212, 175, 55, .22); }
.mock-tabbar { background: #d4d4d8; padding: 6px 8px 0; }
.mock-tab { display: flex; align-items: center; gap: 6px; max-width: 75%; background: #f4f4f5; border-radius: 8px 8px 0 0; padding: 5px 8px; font-size: .75rem; }
.mock-tabtitle, .mock-url, .mock-name, .pv-tabtext, .pv-appname, .pv-headname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mock-favicon { width: 14px; height: 14px; border-radius: 3px; flex: none; object-fit: cover; font-size: 9px; }
.mock-favicon.generic, .mock-logo.generic { background: #a1a1aa; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.mock-bar { display: flex; align-items: center; gap: 6px; margin: 6px 8px; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid #e4e4e7; font-size: .78rem; color: #52525b; }
.mock.mine .mock-bar { color: #111; font-weight: 600; }
.mock-lock { font-size: .7rem; flex: none; }
.mock-page { background: #fff; padding: 10px 12px 14px; display: grid; gap: 8px; }
.mock-head { display: flex; align-items: center; gap: 8px; }
.mock-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; font-size: .85rem; }
.mock-name { font-weight: 800; font-size: .95rem; }
.mock:not(.mine) .mock-name { color: #71717a; font-weight: 600; font-size: .8rem; }
.mock-sub { margin: -4px 0 0; font-weight: 700; font-size: .9rem; }
.mock-dish { display: flex; gap: 8px; align-items: center; }
.mock-photo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #f59e0b); flex: none; }
.mock:not(.mine) .mock-photo { background: #e4e4e7; }
.mock-lines { display: grid; gap: 5px; flex: 1; }
.mock-lines i { display: block; height: 7px; border-radius: 4px; background: #e4e4e7; }
.mock-lines .w70 { width: 70%; } .mock-lines .w60 { width: 60%; } .mock-lines .w40 { width: 40%; } .mock-lines .w30 { width: 30%; }
.mock-btn { justify-self: start; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 99px; background: #a1a1aa; color: #fff; }
.mock.mine .mock-btn { background: var(--accent); }

/* Why it matters */
.why { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: linear-gradient(180deg, #151515, #0c0c0c); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .2s, transform .2s; }
.why-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.why-card h3 { margin: 6px 0 4px; color: var(--gold); }
.why-card p { margin: 0; color: var(--muted); }
/* The storefront brand mark (brand-mark.svg): inline in a kicker, 40 px in the why cards and the Share row. */
.brand-mark { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; margin: -.2em .45em 0 0; }
.brand-mark.why-mark, .item img.brand-mark { display: block; width: 40px; height: 40px; margin: 0; flex: none; border: 0; border-radius: 0; object-fit: contain; }
.why-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; font-size: 1.3rem; border-radius: 12px; background: rgba(212, 175, 55, .12); border: 1px solid var(--gold-soft); flex: none; }

/* Logo and name, web address, your brand */
.brand-cols { margin-top: 4px; }
.brand-card .brand-id { align-items: center; }
.brand-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--gold-soft); flex: none; font-size: 1.6rem; }
.brand-logo.xl { width: 96px; height: 96px; border-radius: 22px; font-size: 2.4rem; }
.brand-name { font-size: 1.2rem; font-weight: 800; }
.brand-name.big { font-size: 1.5rem; color: var(--gold); }
.brand-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot.wait { background: var(--warn); animation: pulse 1.6s ease-in-out infinite; }
.dot.live { background: var(--good); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
@keyframes pulse { 50% { opacity: .35; } }
.brand-domain { font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; margin: 6px 0; }
.brand-domain.big { font-size: clamp(1.3rem, 5.5vw, 2rem); }
.brand-domain a { color: var(--gold); text-decoration: none; }
.brand-yourdomain { margin: 8px 0 0; color: var(--muted); }
.brand-card.yours { margin-top: 12px; border-color: var(--gold); background: radial-gradient(120% 100% at 0% 0%, rgba(34, 197, 94, .10), transparent 50%), var(--card); }
.brand-actions .button, .brand-actions button { flex: 1 1 auto; }
.brand-split { display: grid; gap: 16px; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .brand-split { grid-template-columns: auto 1fr; align-items: start; } }
.brand-part { display: grid; gap: 8px; justify-items: start; }
.brand-link { width: 100%; text-align: left; color: var(--text); font: inherit; margin-bottom: 8px; }

/* Previews: browser tab, home screen, menu header */
.pv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pv-item { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.pv-cap { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pv-tab { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px; border-radius: 10px 10px 0 0; background: #2a2a2a; border-bottom: 2px solid var(--gold); font-size: .78rem; }
.pv-fav { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex: none; font-size: 10px; }
.pv-home { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 8px 4px; border-radius: 12px; background: linear-gradient(160deg, #1e3a8a, #0f172a); }
.pv-app { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.pv-appname { font-size: .7rem; max-width: 100%; }
.pv-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px; border-radius: 10px; background: #fff; color: #111; }
.pv-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; font-size: .7rem; }
.pv-headname { font-weight: 800; font-size: .8rem; }
@media (max-width: 420px) { .pv { gap: 6px; } .pv-tab, .pv-head { padding: 6px; } }

/* The wizard */
.wiz { max-width: 640px; margin: 0 auto; }
.wiz-top { margin-bottom: 8px; }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 6px 0 12px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: transform .2s, background .2s; }
.dots span.done { background: var(--gold-soft); }
.dots span.on { background: var(--gold); transform: scale(1.35); }
.wiz-card { padding: 20px 18px; border-color: var(--gold); animation: wiz-in .25s ease-out; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(8px); } }
.wiz-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.wiz-emoji.pulse { animation: pulse 1.6s ease-in-out infinite; }
h2.wiz-title { border: 0; padding: 0; margin: 4px 0 10px; font-size: clamp(1.35rem, 5.5vw, 1.7rem); color: var(--text); outline: none; }
.wiz-kicker { margin: 0; color: var(--gold); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.wiz-line { font-size: 1.08rem; margin: 6px 0; }
.wiz-tips { margin: 8px 0 12px; padding-left: 20px; color: var(--muted); }
.wiz-nav { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.wiz-nav .wiz-next { min-width: 140px; min-height: 52px; font-size: 1.05rem; }
.wiz-nav .wiz-back { min-height: 52px; }
.buy-grid, .reg-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0; }
@media (min-width: 560px) { .reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reg-tile { background: var(--card2); color: var(--text); border: 1px solid var(--line); font-weight: 600; padding: 10px 8px; }
.reg-tile.on { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.rec { display: grid; gap: 8px; margin: 10px 0; }
.rec-row { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.rec-label { color: var(--muted); font-size: .9rem; }
.rec-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--gold); overflow-wrap: anywhere; font-size: 1.02rem; }
.rec-value em { font-family: inherit; color: var(--text); font-weight: 400; }
@media (max-width: 420px) { .rec-row { grid-template-columns: 1fr auto; } .rec-label { grid-column: 1 / -1; } }
.oldrecs { display: grid; gap: 6px; margin: 8px 0; }
.oldrec { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--accent); }
.oldrec .rec-value { color: var(--text); text-decoration: line-through; text-decoration-color: var(--accent); }
.stages { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.stages li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.stage-dot { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid var(--line); }
.stages li.done { color: var(--text); }
.stages li.done .stage-dot { background: var(--gold); border-color: var(--gold); color: #000; }
.stages li.on { color: var(--text); font-weight: 700; }
.stages li.on .stage-dot { border-color: var(--gold); color: var(--gold); animation: stage-ring 1.4s ease-out infinite; }
@keyframes stage-ring { from { box-shadow: 0 0 0 0 rgba(212, 175, 55, .6); } to { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); } }
.choice.attest { align-items: flex-start; }
.choice.attest span { font-size: .95rem; }

/* Live: the check and confetti */
.wiz-card:has(.confetti) { position: relative; overflow: hidden; text-align: center; }
.wiz-card .brand-actions { justify-content: center; }
.live-check { width: 84px; height: 84px; margin: 6px auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800;
  color: #000; background: var(--gold); animation: live-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes live-pop { from { transform: scale(0); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; background: var(--gold); opacity: 0; animation: confetti 2.8s ease-in 1 forwards; }
.confetti i:nth-child(3n) { background: var(--accent); } .confetti i:nth-child(3n+1) { background: #f6e7a6; } .confetti i:nth-child(4n) { background: var(--good); width: 6px; height: 10px; }
.confetti i:nth-child(1) { left: 4%; animation-delay: .05s; } .confetti i:nth-child(2) { left: 9%; animation-delay: .4s; } .confetti i:nth-child(3) { left: 14%; animation-delay: .15s; }
.confetti i:nth-child(4) { left: 19%; animation-delay: .55s; } .confetti i:nth-child(5) { left: 23%; animation-delay: .1s; } .confetti i:nth-child(6) { left: 28%; animation-delay: .35s; }
.confetti i:nth-child(7) { left: 33%; animation-delay: .7s; } .confetti i:nth-child(8) { left: 37%; animation-delay: .2s; } .confetti i:nth-child(9) { left: 42%; animation-delay: .5s; }
.confetti i:nth-child(10) { left: 46%; animation-delay: 0s; } .confetti i:nth-child(11) { left: 51%; animation-delay: .3s; } .confetti i:nth-child(12) { left: 55%; animation-delay: .65s; }
.confetti i:nth-child(13) { left: 60%; animation-delay: .12s; } .confetti i:nth-child(14) { left: 64%; animation-delay: .45s; } .confetti i:nth-child(15) { left: 69%; animation-delay: .25s; }
.confetti i:nth-child(16) { left: 73%; animation-delay: .6s; } .confetti i:nth-child(17) { left: 78%; animation-delay: .08s; } .confetti i:nth-child(18) { left: 82%; animation-delay: .38s; }
.confetti i:nth-child(19) { left: 86%; animation-delay: .75s; } .confetti i:nth-child(20) { left: 90%; animation-delay: .18s; } .confetti i:nth-child(21) { left: 94%; animation-delay: .48s; }
.confetti i:nth-child(22) { left: 97%; animation-delay: .28s; } .confetti i:nth-child(23) { left: 12%; animation-delay: .9s; } .confetti i:nth-child(24) { left: 67%; animation-delay: .85s; }
.confetti i:nth-child(odd) { animation-duration: 3.2s; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand-hero-badge, .dot.wait, .wiz-emoji.pulse, .stages li.on .stage-dot, .live-check, .wiz-card { animation: none; }
  .confetti { display: none; }
}

/* ---- M58 brands (docs/branding-spec.md §9): Your brand cards in My restaurant, the guide's bar, the brand home ---- */
.yourbrands { display: grid; gap: 12px; margin: 8px 0 4px; }
.card.yourbrand { cursor: pointer; border-color: var(--gold); margin: 0; background: radial-gradient(120% 120% at 0% 0%, rgba(212, 175, 55, .14), transparent 55%), var(--card); }
.card.yourbrand:hover, .card.yourbrand:focus-visible { box-shadow: 0 0 0 2px var(--gold-soft); outline: none; }
.card.yourbrand.live { background: radial-gradient(120% 120% at 0% 0%, rgba(34, 197, 94, .12), transparent 55%), var(--card); }
.yourbrand-head { align-items: center; gap: 12px; flex-wrap: nowrap; }
.yourbrand-head .grow { min-width: 0; }
h2.yourbrand-name { border: 0; padding: 0; margin: 2px 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.yourbrand .button.big { display: block; width: 100%; text-align: center; margin-top: 10px; box-sizing: border-box; white-space: normal; }
.yourbrand .brand-status { margin: 10px 0 0; overflow-wrap: anywhere; }
.yourbrand.compact { margin-bottom: 4px; }
.yourbrand.compact .brand-logo { width: 48px; height: 48px; font-size: 1.3rem; }
.addbrand { margin: 0; }
.guide-cta { border-color: var(--gold); text-align: center; margin-top: 12px; }
.guide-cta .button, .guide-cta button { display: block; width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.guide-cta-line { font-size: 1.05rem; }
.brand-address { margin-bottom: 4px; }
.loc-row { gap: 8px; flex-wrap: wrap; }
.wiz-step { margin: 4px 0 6px; font-weight: 800; color: var(--gold); font-size: 1rem; }
progress.wiz-progress { display: block; width: 100%; height: 10px; margin: 0 0 14px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden;
  -webkit-appearance: none; appearance: none; accent-color: var(--gold); }
progress.wiz-progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.wiz-progress::-webkit-progress-value { background: var(--gold); border-radius: 99px; transition: width .3s; }
progress.wiz-progress::-moz-progress-bar { background: var(--gold); border-radius: 99px; }
.wiz-nav { position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); }
.wiz-nav button:disabled { opacity: .35; cursor: default; }
/* The brand home (brand.html; redesign TJ 2026-11-01 "can you make this better"): white label, phone first. A hero with
   the brand's logo, name and tagline; "N locations · M open now"; a card per location with an SVG-icon where/hours
   block and Order now (full width) beside Directions/Call icon buttons. Colours are the theme's variables. */
.bh-hero { text-align: center; padding: 28px 8px 22px; margin: -16px -16px 0; background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--gold-soft) 0%, transparent 70%); }
.bh-logo { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--gold-soft); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); color: var(--gold); font-size: 2.4rem; font-weight: 800; }
h1.bh-name { margin: 14px 0 4px; font-size: 1.9rem; line-height: 1.15; letter-spacing: .2px; overflow-wrap: anywhere; }
.bh-tagline { margin: 0 auto; max-width: 34ch; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.bh-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 2px 10px; }
h2.bh-count { margin: 0; padding: 0; border: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.bh-opencount { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--good); white-space: nowrap; }
.bh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.bh-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .bh-list { grid-template-columns: 1fr 1fr; } }
.bh-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bh-card.is-open { border-color: var(--gold-soft); }
.bh-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bh-loc-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card2); border: 1px solid var(--line); color: var(--gold); font-size: 1.25rem; font-weight: 800; }
.bh-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
h3.bh-loc-name { margin: 0; flex: 0 1 auto; max-width: 100%; font-family: var(--heading-font); font-size: 1.12rem; line-height: 1.25; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh-status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.bh-status.open { color: var(--good); background: rgba(34, 197, 94, .12); }
.bh-status.closed { color: var(--muted); background: var(--card2); }
.bh-chip { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.bh-details { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.bh-line { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: .95rem; }
.bh-line-body { display: flex; flex-direction: column; min-width: 0; }
.bh-icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold); }
.bh-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-label.live { color: var(--good); }
.bh-actions { display: flex; align-items: center; gap: 8px; }
.bh-order { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; border-radius: 12px; }
.bh-order .bh-arrow { margin: 0; color: currentColor; }
.bh-iconbtn { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card2); color: var(--gold); text-decoration: none; }
.bh-iconbtn:hover, .bh-iconbtn:focus-visible { border-color: var(--gold); }
.bh-iconbtn .bh-icon { width: 20px; height: 20px; margin: 0; }
@media (min-width: 720px) { .bh-order { flex: 0 1 auto; padding: 10px 22px; } .bh-actions .bh-order { margin-right: auto; } }
.bh-empty { text-align: center; margin: 24px 0; }
/* The header shows the brand only after the hero (which already does) scrolls away. */
body.brandhome header.top .brand { transition: opacity .2s; }
body.brandhome.bh-hero-visible header.top .brand { opacity: 0; visibility: hidden; }
/* The brand home has no icon buttons, so its header is one row: the brand (after the hero) left, My orders right. The
   height never changes while scrolling (the hero watcher can't flicker). */
body.brandhome header.top { display: flex; align-items: center; }
body.brandhome header.top .inner { flex: 1; min-width: 0; margin: 0; max-width: none; }
body.brandhome header.top .subnav { flex: none; margin: 0; padding: 10px 16px; }
.pill.muted { border-color: var(--line); color: var(--muted); }

/* Sheets on iPhone Safari: 92vh counted the space under the browser's toolbars, so the top of a tall sheet (the
   Notifications header) slid under the address bar (TJ 2026-11-01). dvh is the visible height. */
.sheet { padding-top: env(safe-area-inset-top); }

/* Header: text links on their own row under the brand; the right side keeps the profile and bell buttons. */
header.top .subnav { max-width: 1200px; margin: 0 auto; padding: 0 16px 8px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
header.top .subnav a { padding: 6px 0; font-size: 0.95rem; }
header.top .subnav a.mybiz { margin-left: 0; }

/* ── M65: the brand's own website as an app (site.js; docs/brand-site-spec.md). Only on a business's own domain
   (html.site): a warm dark look made for food, big photos, the fixed tab bar. resto.iotomates.com is unchanged. ── */
html.site {
  --bg: #120C08; --card: #1D140E; --card2: #2A1D14; --line: #3B2A1E; --text: #FFF8F0; --muted: #C9B8A6;
  --gold: #F2B84B; --gold-soft: rgba(242, 184, 75, .32); --bar: rgba(18, 12, 8, .92); --notice: #22170F; --good: #4ADE80;
  --s-warm: linear-gradient(135deg, #3A1C0C 0%, #1D110A 55%, #120C08 100%); --s-tab-h: 64px; --radius: 16px; --accent: #E8542B; --accent-dark: #C9441F;
}
html.site body { background: var(--bg); }
html.site main { padding-bottom: calc(var(--s-tab-h) + 110px + env(safe-area-inset-bottom)); }
html.site h2 { border-bottom: 0; padding-bottom: 0; color: var(--text); font-size: 1.3rem; letter-spacing: .1px; }
html.site h1 { color: var(--text); }
html.site .primary { background: var(--accent); }
html.site .ghost { color: var(--gold); border-color: var(--gold-soft); }
html.site .notice { border-radius: 14px; }
html.site header.top { border-bottom-color: rgba(242, 184, 75, .18); }
.si { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.si.tiny { width: 15px; height: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; justify-content: center; }
.linkish { background: none; border: 0; padding: 0; min-height: 0; color: var(--gold); font-weight: 600; cursor: pointer; }
.iconbtn { width: 44px; height: 44px; min-height: 44px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; color: var(--text); border: 0; }
.iconbtn:hover, .iconbtn:focus-visible { background: var(--card2); }
html.site a:focus-visible, html.site button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The tab bar (fixed, safe-area aware) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--s-tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(18, 12, 8, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(242, 184, 75, .16); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; min-width: 0; }
.tab .si { width: 25px; height: 25px; }
.tab.on { color: var(--gold); }
.tab.on .tab-label { font-weight: 800; }
.tab-icon { position: relative; display: inline-flex; }
.tab-badge { position: absolute; top: -5px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.tab-badge.inline { position: static; margin-left: 6px; display: inline-block; box-shadow: none; }
html.site .cartbar { bottom: calc(var(--s-tab-h) + env(safe-area-inset-bottom)); padding: 10px 16px; background: transparent; border: 0; pointer-events: none; }
html.site .cartbar .inner { pointer-events: auto; }
html.site .cartbar .primary { border-radius: 99px; min-height: 54px; font-size: 1.02rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
html.site .toast { bottom: calc(var(--s-tab-h) + 84px + env(safe-area-inset-bottom)); }
html.site .sheet { z-index: 40; }

/* Loading and the sign-in card */
.site-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 28px 4px; justify-content: center; }
.site-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: site-spin .8s linear infinite; }
@keyframes site-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .site-spinner { animation: none; } }
.site-signin { text-align: center; background: var(--s-warm); border: 1px solid var(--line); border-radius: 22px; padding: 28px 20px; margin: 8px 0 18px; }
.site-signin h2 { margin: 10px 0 6px; }
.site-signin-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 184, 75, .14); color: var(--gold); }
.site-signin-icon .si { width: 32px; height: 32px; }
.site-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.site-head h1 { flex: 1; margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.3px; }

/* Home: the hero */
.sh-hero { position: relative; margin: -16px -16px 0; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--s-warm); }
.sh-cover { position: absolute; inset: 0; }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #120C08 4%, rgba(18, 12, 8, .82) 34%, rgba(40, 18, 6, .35) 66%, rgba(18, 12, 8, .25) 100%); }
.sh-cover.plain { background: radial-gradient(ellipse 80% 70% at 70% 10%, rgba(232, 84, 43, .45), transparent 70%), radial-gradient(ellipse 70% 60% at 10% 30%, rgba(242, 184, 75, .3), transparent 70%), var(--s-warm); }
.sh-hero-body { position: relative; padding: 120px 16px 18px; display: grid; gap: 10px; }
.sh-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sh-logo { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); background: #fff; }
.sh-names { min-width: 0; }
h1.sh-title { margin: 0; font-size: 2.1rem; line-height: 1.05; font-weight: 800; letter-spacing: -.4px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.sh-loc { display: flex; align-items: center; gap: 4px; color: #FBE3C2; font-weight: 600; margin-top: 4px; }
.sh-tagline { margin: 0; color: #F4E6D6; font-size: 1.02rem; max-width: 40ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.sh-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sh-open, .sh-hours, .sh-rating { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: .84rem; font-weight: 700;
  background: rgba(18, 12, 8, .66); color: #fff; border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-height: 32px; }
.sh-open .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sh-open.on { color: #6EF0A0; }
.sh-open.off { color: #F4C9A8; }
.sh-rating { cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; }
.sh-where { margin: 0; color: #F4E6D6; }
.sh-others { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 16px; min-height: 52px;
  background: rgba(255, 248, 240, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; text-align: left; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sh-others .si:first-child { color: var(--gold); }
.sh-count { min-width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--gold); color: #1a0f05; font-size: .8rem; font-weight: 800; }
.sh-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.sh-section { margin: 18px 0 6px; }
.sh-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sh-sechead h2 { margin: 0 0 10px; }

/* Rewards strip */
.sh-rewards { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, rgba(242, 184, 75, .22), rgba(232, 84, 43, .16)); border: 1px solid var(--gold-soft); }
.sh-rewards .grow { display: grid; }
.sh-rewards-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: #1a0f05; flex: none; }

/* Popular */
.sh-popular { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.sh-popular::-webkit-scrollbar { display: none; }
.sh-pop { position: relative; flex: 0 0 min(72vw, 260px); scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.sh-pop-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: inherit; text-align: left; min-height: 0; }
.sh-pop img, .sh-pop-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sh-pop-ph { display: grid; place-items: center; background: var(--s-warm); color: var(--gold); }
.sh-pop-text { display: grid; gap: 2px; padding: 10px 56px 12px 12px; }
.sh-pop-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-price { color: var(--gold); font-weight: 800; }
.sh-plus { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.sh-plus .si { width: 22px; height: 22px; stroke-width: 2.6; }

/* Sticky category chips */
.sh-chips { position: sticky; top: 52px; z-index: 8; display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 10px 16px; background: rgba(18, 12, 8, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chip { flex: none; padding: 8px 15px; border-radius: 99px; background: var(--card2); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); min-height: 38px; display: inline-flex; align-items: center; }
.sh-chip.on { background: var(--gold); color: #1a0f05; border-color: var(--gold); }

/* The menu */
.sh-cat { scroll-margin-top: 112px; margin-top: 18px; }
.sh-cat h2 { margin: 0 0 8px; font-size: 1.35rem; }
.sh-dishes { display: grid; gap: 10px; }
@media (min-width: 720px) { .sh-dishes { grid-template-columns: 1fr 1fr; } }
.sh-dish { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sh-dish:hover { border-color: var(--gold-soft); }
.sh-dish-open { display: flex; gap: 12px; align-items: stretch; width: 100%; padding: 12px; margin: 0; border: 0; border-radius: 0; background: none; color: inherit; text-align: left; min-height: 0; }
.sh-dish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.sh-dish-name { font-weight: 800; font-size: 1.04rem; line-height: 1.25; }
.sh-dish-desc { color: var(--muted); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-dish-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.sh-dish-photo { flex: none; width: 116px; height: 116px; border-radius: 14px; overflow: hidden; }
.sh-dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-dish .sh-plus.small { width: 38px; height: 38px; min-height: 38px; right: 8px; bottom: 8px; }
.sh-dish .allergens { padding: 0 12px 12px; margin-top: -4px; }
.sh-dish.soldout { opacity: .5; }
.sh-dish.soldout .sh-dish-open { cursor: default; }
.tag.hot { border-color: var(--accent); color: #FFB59C; }

/* "Our other locations" */
.sh-locs { display: grid; gap: 12px; margin-top: 12px; }
.sh-locard { display: flex; gap: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.sh-locard.current { border-color: var(--gold-soft); }
.sh-locphoto { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.sh-locbody { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sh-locbody h3 { margin: 0; }
.sh-locard .sh-open { background: transparent; border: 0; padding: 0; min-height: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sh-locard .sh-open.on { color: var(--good); }
.sh-locard .sh-open.off { color: var(--muted); }
.sh-contact .button { display: inline-flex; align-items: center; gap: 6px; }

/* Stars and reviews */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { display: inline-flex; color: #5A4636; position: relative; }
.star .si { width: 18px; height: 18px; }
.stars-sm .star .si { width: 14px; height: 14px; }
.star.full { color: var(--gold); }
.star.half { color: var(--gold); opacity: .55; }
.rv-summary { display: grid; gap: 12px; margin: 4px 0 12px; }
.rv-big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-big strong { font-size: 2.2rem; line-height: 1; font-weight: 800; }
.rv-bars { display: grid; gap: 4px; }
.rv-bar { display: grid; grid-template-columns: 12px 14px 1fr 28px; align-items: center; gap: 6px; }
.rv-bar .si.tiny { color: var(--gold); width: 13px; height: 13px; }
.rv-track { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.rv-track span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rv-row { display: flex; gap: 12px; overflow-x: auto; scroll-padding-inline: 16px; margin: 0 -16px 12px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rv-row::-webkit-scrollbar { display: none; }
.rv-row .rv-card { flex: 0 0 min(82vw, 320px); scroll-snap-align: start; }
.rv-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.rv-card.compact .rv-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-avatar { padding: 0; min-height: 0; background: none; border: 0; border-radius: 50%; }
.rv-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rv-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-name { color: var(--text); font-weight: 800; }
.lvl { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: rgba(242, 184, 75, .16); color: var(--gold); border: 1px solid var(--gold-soft); }
.lvl.big { font-size: .8rem; padding: 3px 10px; }
.rv-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-size: .78rem; font-weight: 700; }
.rv-verified .si { width: 15px; height: 15px; stroke-width: 2.6; }
.rv-body { margin: 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-photo { position: relative; width: 76px; height: 76px; padding: 0; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); color: var(--muted); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-photo.add { display: grid; place-items: center; align-content: center; gap: 2px; border-style: dashed; color: var(--gold); }
.rv-x { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; min-height: 26px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; }
.rv-full { width: 100%; border-radius: 14px; display: block; }
.rv-reply { background: var(--card2); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 8px 12px; }
.rv-reply p { margin: 4px 0 0; white-space: pre-wrap; }
.rv-reply-head { display: flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: .84rem; }
.rv-reply-head .si { width: 16px; height: 16px; }
.rv-actions { display: flex; gap: 8px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 99px; background: var(--card2); color: var(--text); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; }
.chipbtn .si { width: 16px; height: 16px; }
.starpick { display: flex; gap: 6px; }
.starbtn { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 12px; background: var(--card2); color: #5A4636; border: 1px solid var(--line); display: grid; place-items: center; }
.starbtn .si { width: 30px; height: 30px; }
.starbtn.on { color: var(--gold); border-color: var(--gold-soft); }
.person { text-align: center; display: grid; justify-items: center; }
.person-counts { display: flex; justify-content: center; gap: 28px; margin: 12px 0; }
.person-counts div { display: grid; text-align: center; }
.person-counts strong { font-size: 1.3rem; }

/* My orders tab */
.so-list { display: grid; gap: 10px; }
.so-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.so-main { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.so-top { display: flex; gap: 8px; align-items: baseline; }
.so-total { color: var(--gold); font-weight: 800; }
.so-status { justify-self: start; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; background: var(--card2); color: var(--muted); }
.so-status.live { background: rgba(232, 84, 43, .2); color: #FFB59C; }
.so-status.done { background: rgba(74, 222, 128, .12); color: var(--good); }
.so-again { justify-self: start; }

/* Profile tab */
.ac-me { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: var(--s-warm); border: 1px solid var(--line); }
.ac-who { display: grid; gap: 6px; min-width: 0; }
.ac-who .button { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.ac-section { margin-top: 22px; }
.ac-points { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(120deg, rgba(242, 184, 75, .2), rgba(232, 84, 43, .12)); border: 1px solid var(--gold-soft); }
.ac-points-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold); color: #1a0f05; flex: none; }
.ac-points-icon .si { width: 28px; height: 28px; }
.ac-balance { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.ac-rewards { display: grid; gap: 10px; }
.ac-reward { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.ac-reward.can { border-color: var(--gold-soft); }
.ac-reward img, .ac-reward-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--card2); color: var(--gold); }
.ac-reward .progress { margin: 6px 0; height: 8px; }
.ac-reward .progress span { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.ac-reward .good { color: var(--good); font-weight: 700; }
.ac-history { margin-top: 12px; }
.ac-history summary { cursor: pointer; color: var(--gold); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ac-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-hist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ac-hist .good { color: var(--good); font-weight: 800; }
.ac-hist .bad { color: #FF8A73; font-weight: 800; }
.ac-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-count { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: center; }
.ac-count strong { font-size: 1.5rem; }
.ac-people { display: grid; gap: 8px; }
.ac-person { display: flex; align-items: center; gap: 10px; }
.ac-person-open { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; padding: 4px 0; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ac-row .row { gap: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); gap: 2px; }
.seg button { min-height: 36px; padding: 6px 14px; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.seg button.on { background: var(--gold); color: #1a0f05; }
html.site .plain.block { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.myrv { display: grid; gap: 6px; }
.myrv-where { display: flex; align-items: center; gap: 8px; }
.myrv-where img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }

/* Messages (iMessage style) */
.im-seg { display: flex; margin-bottom: 12px; }
.im-seg button { flex: 1; }
.im-group { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.im-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 6px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.im-row:last-child { border-bottom: 0; }
.im-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.im-row.im-unread .im-dot { background: #0A84FF; }
.im-pic { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.im-pic.sm { width: 32px; height: 32px; }
.im-rowtext { flex: 1; min-width: 0; display: grid; gap: 2px; }
.im-rowtop { display: flex; align-items: center; gap: 6px; }
.im-rowtop strong { flex: 1; }
.im-preview { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.im-row.im-unread .im-preview { color: var(--text); }
.im-starters { display: grid; gap: 8px; margin-top: 12px; }
.im-start { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card2); color: var(--text); text-decoration: none; font-weight: 700; border: 1px dashed var(--gold-soft); }
.im-start .si { color: var(--gold); }
.im-note { margin-top: 14px; }
body.im-thread-open .tabbar { display: none; }
body.im-thread-open main { padding-bottom: 120px; }
body.im-thread-open header.top { display: none; }
.im-head { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 -16px; padding: calc(6px + env(safe-area-inset-top)) 10px 8px;
  background: rgba(29, 20, 14, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.im-back { display: inline-flex; align-items: center; color: #0A84FF; text-decoration: none; font-size: 1rem; min-height: 44px; }
.im-back .si { width: 26px; height: 26px; stroke-width: 2.4; }
.im-who { display: grid; justify-items: center; gap: 2px; min-width: 0; max-width: 60vw; font-size: .86rem; }
.im-head > :last-child { justify-self: end; }
.im-bubbles { display: grid; gap: 2px; padding: 12px 0; }
.im-group-t { display: grid; gap: 2px; }
.im-time { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 600; margin: 14px 0 6px; }
.im-b { display: flex; max-width: 78%; }
.im-b.me { justify-self: end; }
.im-b.them { justify-self: start; }
.im-text { padding: 8px 13px; border-radius: 19px; font-size: 1rem; line-height: 1.32; white-space: pre-wrap; overflow-wrap: anywhere; }
.im-b.me .im-text { background: var(--gold); color: #1a0f05; }
.im-b.them .im-text { background: #3A3A3C; color: #fff; }
.im-b.me.first .im-text { border-bottom-right-radius: 6px; }
.im-b.me.middle .im-text { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.im-b.me.last .im-text { border-top-right-radius: 6px; }
.im-b.them.first .im-text { border-bottom-left-radius: 6px; }
.im-b.them.middle .im-text { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.im-b.them.last .im-text { border-top-left-radius: 6px; }
.im-b.single + .im-b, .im-b.last + .im-b { margin-top: 6px; }
.im-receipt { justify-self: end; color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: 2px; padding-right: 4px; }
.im-composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(29, 20, 14, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.im-inputrow { display: flex; align-items: flex-end; gap: 8px; max-width: 760px; margin: 0 auto; }
.im-inputrow textarea { flex: 1; resize: none; min-height: 40px; border-radius: 20px; padding: 9px 14px; line-height: 1.3; background: var(--bg); border-color: var(--line); }
.im-send { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1a0f05; flex: none; }
.im-send:disabled { background: var(--card2); color: var(--muted); }
.im-send .si { stroke-width: 2.6; }
.im-composer .notice { max-width: 760px; margin: 0 auto 6px; }

/* Owner: Reviews (My business) and Your website (Branding) */
.or-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.or-card.hidden-review { opacity: .6; }
.cover-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; display: block; background: var(--card2); border: 1px solid var(--line); }
html.site header.top .subnav { display: none; }   /* the tab bar has My orders */
.sh-locbody .row { gap: 8px; }
.sh-locbody .row .button, .sh-locbody .row button { padding: 8px 12px; font-size: .9rem; min-height: 40px; }
.sh-locbody .row .tag { padding: 6px 10px; }
