/* Base visual (same design system as Convitche) */
:root {
  --bg: #f4f2ef;
  --surface: #ffffff;
  --fill: #f1eeea;          /* inputs, tonal buttons */
  --fill-strong: #e7e2dc;
  --ink: #1d1a17;
  --ink-2: #6d655e;
  --ink-3: #a59d95;
  --brand: #e8452c;
  --brand-2: #ffa62b;
  --on-brand: #ffffff;
  --brand-tint: #fdebe6;
  --ok: #1f9d63; --ok-tint: #e2f6ec;
  --no: #d64545; --no-tint: #fde8e8;
  --wait: #b7791f; --wait-tint: #fdf3dc;
  --wa: #22b35e;
  --shadow: 0 1px 2px rgba(29, 26, 23, .04), 0 8px 24px -12px rgba(29, 26, 23, .12);
  --shadow-up: 0 -8px 30px -12px rgba(29, 26, 23, .18);
  --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --surface: #1d1b19; --fill: #262320; --fill-strong: #322e2a;
    --ink: #f5f1ec; --ink-2: #b2a99f; --ink-3: #7a726a;
    --brand: #ff6b4f; --brand-2: #ff9a55; --on-brand: #1a0f0b; --brand-tint: #3a211a;
    --ok: #4cd18b; --ok-tint: #173226; --no: #ff7b7b; --no-tint: #3a1d1d; --wait: #f0b955; --wait-tint: #382c14;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-up: 0 -10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* The hidden attribute always wins over display rules (sheets, toggles, menus). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
small { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i.chev { width: 18px; height: 18px; color: var(--ink-3); margin-left: auto; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(32px + var(--safe-b)); }

/* ---------- Top bar & brand ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); font-size: 17px; }
.appbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.appbar-title b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-title > span:last-child { min-width: 0; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.iconbtn:active { transform: scale(.94); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; font-weight: 700; font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.btn.tonal { background: var(--fill); }
.btn.tonal.wa, .action.wa { background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); }
.btn.block { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn .i { width: 20px; height: 20px; }
.link { border: 0; background: none; padding: 6px 0; color: var(--brand-ink, var(--brand)); font-weight: 700; font-size: .9rem; cursor: pointer; }
.sticky-cta { position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 5; margin-top: 20px; }
.dash .sticky-cta { bottom: calc(var(--tabbar-h) + 12px + var(--safe-b)); }

/* ---------- Grouped lists & fields ---------- */
.group-title { margin: 28px 4px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.group { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.group + .group { margin-top: 12px; }
.group > * + * { box-shadow: inset 0 1px 0 var(--fill); }  /* hairline made of fill, not a border */
.field { display: block; padding: 12px 16px 14px; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field > span small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
input, select, textarea {
  width: 100%; border: 0; outline: 0; border-radius: var(--r-sm); background: var(--fill); color: var(--ink);
  font: 500 16px/1.4 var(--font); padding: 13px 14px; appearance: none; -webkit-appearance: none;
  transition: box-shadow .15s ease, background .15s ease;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a59d95' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
textarea { resize: vertical; min-height: 52px; }
input:focus, select:focus, textarea:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--brand); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[readonly] { color: var(--ink-2); }
input[type=date], input[type=time] { min-height: 48px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair .field + .field { box-shadow: inset 1px 0 0 var(--fill); }

.row, .info {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; min-height: 60px;
  border: 0; background: none; text-align: left; cursor: pointer;
}
.row:active, .info:active { background: var(--fill); }
.row > span, .info > span { flex: 1; min-width: 0; }
.row b, .info b { display: block; font-weight: 700; }
.row small, .info small { display: block; }
.row > .i:first-child, .info > .i:first-child { color: var(--brand-ink, var(--brand)); }
.row em { font-style: normal; font-weight: 800; font-size: 1.1rem; }
.row.danger, .row.danger .i { color: var(--no); }

.switch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.switch > span { flex: 1; } .switch b { display: block; font-weight: 700; } .switch small { display: block; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--fill-strong); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 2px var(--brand); }

/* Event type carousel */
.typepicker { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.typepicker::after { content: ""; flex: 0 0 6px; }  /* right edge breathing room */
.typepicker::-webkit-scrollbar { display: none; }
.typepicker label { scroll-snap-align: start; flex: none; cursor: pointer; }
.typepicker input { position: absolute; opacity: 0; }
.typepicker span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 92px; height: 92px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); font-size: .75rem; font-weight: 700; text-align: center; padding: 6px; color: var(--ink-2); transition: transform .15s, background .15s; }
.typepicker b { font-size: 1.8rem; line-height: 1; }
.typepicker input:checked + span { background: var(--ink); color: var(--surface); transform: translateY(-2px); }
.typepicker input:focus-visible + span { box-shadow: 0 0 0 2px var(--brand); }

/* Segmented */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--fill); border-radius: 20px; margin-bottom: 12px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.segmented span { display: grid; place-items: center; min-height: 52px; border-radius: 15px; font-weight: 700; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented label:first-child input:checked + span { background: var(--brand); color: var(--on-brand); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 2px var(--brand); }

/* Banners & toast */
.banner { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--fill); font-weight: 600; }
.banner.ok { background: var(--ok-tint); color: var(--ok); }
.banner.no { background: var(--no-tint); color: var(--no); }
.fine { display: flex; gap: 8px; align-items: flex-start; margin: 16px 4px 0; font-size: .82rem; color: var(--ink-2); }
.fine .i { width: 16px; height: 16px; margin-top: 2px; }
.fine.center { justify-content: center; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px + var(--safe-b)); z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: .9rem; transition: all .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dashboard ---------- */
.dash { max-width: none; padding: 0; }
.dash-main { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--tabbar-h) + 32px + var(--safe-b)); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; font-weight: 800; font-size: .85rem; color: hsl(var(--h, 20) 55% 35%); background: hsl(var(--h, 20) 80% 90%); }
@media (prefers-color-scheme: dark) { .avatar { color: hsl(var(--h, 20) 70% 80%); background: hsl(var(--h, 20) 35% 22%); } }
.avatar.emoji { background: var(--surface); box-shadow: var(--shadow); font-size: 1.3rem; border-radius: 14px; }

.tab { display: none; animation: in .22s ease; }
.tab.active { display: block; }
@keyframes in { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: var(--shadow-up);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.tabbar a .i { width: 24px; height: 24px; padding: 0; transition: transform .15s; }
.tabbar a.active { color: var(--brand-ink, var(--brand)); }
.tabbar a.active .i { transform: translateY(-1px); stroke-width: 2.3; }
.rail-brand { display: none; }

.hero-card { margin-top: 8px; padding: 22px; border-radius: var(--r-lg); color: #fff; background: var(--brand); box-shadow: none; }
.hero-card p { margin: 0; font-weight: 700; opacity: .9; }
.hero-card .big { display: block; font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 2px 0 14px; }
.hero-card small { color: rgba(255,255,255,.85); }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; margin-bottom: 8px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { display: block; font-size: .78rem; font-weight: 700; line-height: 1.25; }
.stat.ok span { color: var(--ok); } .stat.no span { color: var(--no); } .stat.wait span { color: var(--wait); }
.stat:active { transform: scale(.97); }

.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 4px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font-size: .75rem; font-weight: 700; cursor: pointer; text-align: center; }
.action .i { width: 26px; height: 26px; }
.action:active { transform: scale(.96); }
.linkbox { display: flex; align-items: center; gap: 14px; padding: 12px; margin-top: 12px; }
.linkbox img { border-radius: 12px; background: #fff; flex: none; }
.linkbox span { min-width: 0; } .linkbox small { display: block; }
.linkbox b { display: block; word-break: break-all; font-size: .9rem; }

.searchbar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 0 0 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-3); }
.searchbar input { background: transparent; padding-left: 4px; min-height: 50px; }
.searchbar input:focus { box-shadow: none; background: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.chip i { font-style: normal; color: var(--ink-3); font-weight: 700; }
.chip .i { width: 15px; height: 15px; }
.chip.on { background: var(--ink); color: var(--surface); }
.chip { font-size: .86rem; font-weight: 700; }
.chip.on i { color: inherit; opacity: .65; }
.listhead { display: flex; align-items: center; gap: 16px; margin: 20px 4px 8px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.listhead span { flex: 1; }

.guests { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.guest { display: flex; align-items: flex-start; }
.guest + .guest { box-shadow: inset 0 1px 0 var(--fill); }
.pick { padding: 12px 0 12px 14px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick .avatar { transition: transform .15s; }
.pick input:checked + .avatar { background: var(--brand); color: var(--on-brand); font-size: 0; }
.pick input:checked + .avatar::after { content: ""; width: 16px; height: 9px; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.pick input:focus-visible + .avatar { box-shadow: 0 0 0 2px var(--brand); }
.guest details { flex: 1; min-width: 0; }
.guest summary { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 16px 10px 12px; cursor: pointer; list-style: none; }
.guest summary::-webkit-details-marker { display: none; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { flex: none; padding: 5px 11px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.pill.ok { background: var(--ok-tint); color: var(--ok); } .pill.no { background: var(--no-tint); color: var(--no); } .pill.wait { background: var(--wait-tint); color: var(--wait); }
.guest-more { padding: 0 16px 16px 12px; }
.guest-more p { margin: 0 0 10px; font-size: .92rem; } .guest-more p small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ink-3); }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-actions .btn { min-height: 40px; padding: 0 14px; font-size: .86rem; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink-2); }
.empty .i { width: 40px; height: 40px; color: var(--ink-3); margin-bottom: 6px; }
.empty b { color: var(--ink); font-size: 1.05rem; }
.empty .btn { margin-top: 12px; }

/* Selection bottom sheet */
.selbar {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 10px + var(--safe-b)); z-index: 40; width: min(100% - 20px, 620px);
  transform: translateX(-50%); padding: 14px 14px 12px; border-radius: 26px; background: var(--surface); box-shadow: 0 20px 50px -12px rgba(0,0,0,.35);
  animation: up .22s ease;
}
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.selbar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.selbar-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sel-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border: 0; border-radius: 14px; background: var(--fill); font-size: .72rem; font-weight: 700; cursor: pointer; }
.sel-act:active { transform: scale(.95); }
.sel-act.danger { color: var(--no); background: var(--no-tint); }
.tagform { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 10px; }
.tagform .btn { min-height: 46px; padding: 0 14px; }

/* ---------- Larger screens ---------- */
@media (min-width: 900px) {
  .home { max-width: 1080px; display: grid; grid-template-columns: 1fr 480px; gap: 56px; padding-bottom: 64px; }
  .home .appbar { grid-column: 1 / -1; }
  .home .hero { position: sticky; top: 120px; align-self: start; padding-top: 40px; }
  .home .hero h1 { font-size: 3.6rem; }
  .home .sheet { margin-top: 0; }

  .dash { display: grid; grid-template-columns: 240px 1fr; }
  .tabbar { position: sticky; top: 0; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 20px 14px; box-shadow: none; background: transparent; backdrop-filter: none; }
  .rail-brand { display: block; padding: 6px 12px 24px; }
  .store-brand { gap: 10px; min-width: 0; font-size: 1.05rem; letter-spacing: -.02em; }
  .store-brand .s-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
  .store-brand span:not(.s-logo) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; overflow-wrap: anywhere; }
  .dash .appbar-title > .s-logo { display: none; }   /* the side menu already shows it */
  .tabbar a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: .95rem; color: var(--ink-2); }
  .tabbar a.active { background: var(--surface); box-shadow: var(--shadow); }
  .dash-main { margin: 0; padding: 0 32px 48px; width: 100%; max-width: none; min-width: 0; }
  .dash-main .appbar { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
  .form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
  .dash .sticky-cta { max-width: 420px; margin-left: auto; }
  .dash .sticky-cta { bottom: 16px; }
  .selbar { bottom: 20px; left: calc(50% + 120px); }
  .toast { bottom: 32px; }
}
.linkbox > * + * { box-shadow: none; }
.row em small { display: block; font-size: .65rem; font-weight: 700; color: var(--ink-3); text-align: center; text-transform: uppercase; }

/* ---------- Photo picker ---------- */
.photo-picker { display: grid; gap: 10px; }
.pp-frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3;
  background:
    var(--surface);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.pp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.has-photo .pp-img { opacity: 1; }
.pp-shade {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 18px 18px;
  background: rgba(0,0,0,.35);
  color: #fff; opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.has-photo .pp-shade { opacity: 1; }
.pp-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700; }
.pp-badge .i { width: 15px; height: 15px; }
.pp-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.pp-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; cursor: pointer; }
.has-photo .pp-empty { display: none; }
.pp-cam { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: none; transition: transform .15s ease; }
.pp-cam .i { width: 30px; height: 30px; }
.pp-empty b { font-size: 1.05rem; }
.pp-formats { margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: var(--fill); font-size: .7rem; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.pp-empty:hover .pp-cam, .photo-picker.drag .pp-cam { transform: scale(1.06); }
.photo-picker.drag .pp-frame { transform: scale(1.01); box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.pp-frame:active { transform: scale(.99); }
.photo-picker input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp-empty:has(input:focus-visible) .pp-cam { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.pp-busy { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 700; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(4px); }
.photo-picker.busy .pp-busy { display: flex; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--fill-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pp-actions { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.has-photo .pp-actions { display: grid; }
.pp-actions .btn { position: relative; min-height: 46px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.pp-actions .btn.danger { color: var(--no); }
.pp-actions .btn:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--brand); }

/* ---------- No text selection / zoom (fields and .copyable stay selectable) ---------- */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
html { touch-action: manipulation; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable], .copyable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
body.locked { overflow: hidden; }

/* ---------- Small shared bits ---------- */
.spacer { flex: 1; }
.muted { color: var(--ink-2); margin: 6px 0 0; }
.mt { margin-top: 20px; }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.userchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font: 700 .88rem var(--font); color: var(--ink); cursor: pointer; }
.userchip.ghost { padding: 10px 16px; }
.appbar form { margin: 0; }
.btn.sm-pill { min-height: 36px; padding: 0 14px; font-size: .85rem; background: var(--ink); color: var(--surface); flex: none; }
.btn.wa-solid { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px var(--wa); }
.btn.tonal.block { margin-top: 10px; }
.group.pad { padding: 22px; }
.group.pad h2 { font-size: 1.4rem; }
.group.pad .btn.primary { margin-top: 18px; }
.iconbtn.back .i { transform: rotate(180deg); }
.actions-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.progress.dark { background: var(--fill); margin-top: 8px; }
.progress.dark i { background: var(--wa); transition: width .3s ease; }

/* ---------- Auth pages ---------- */
.auth-main { padding: 12px 4px 40px; }
.auth-main h1 { font-size: 2rem; margin-top: 12px; }
.auth-main .banner { margin-top: 16px; }
.auth-main form { margin-top: 16px; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; }
.pw-toggle.on { color: var(--brand-ink, var(--brand)); }
.center-link { display: block; text-align: center; margin: 18px 0 0; }
.switch-auth { text-align: center; color: var(--ink-2); margin-top: 22px; font-weight: 600; }
.auth .answer { margin-top: 16px; }
.auth-cta { margin-top: 28px; }

/* ---------- Bottom sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s ease; }
.modal-panel { position: relative; width: min(100%, 560px); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--bg);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { transform: none; }
.grabber { display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--fill-strong); margin: 0 auto 10px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 1.35rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 14px; }
.modal-actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions .two .btn:only-child, .modal-actions .two .btn[hidden] + .btn { grid-column: 1 / -1; }
.msg-field { padding: 0; margin-top: 14px; }
.msg-field textarea { background: var(--surface); box-shadow: var(--shadow); min-height: 150px; line-height: 1.5; }
@media (min-width: 900px) { .modal { align-items: center; } .modal-panel { border-radius: 28px; max-height: 88vh; } }

/* WhatsApp-like preview */
.wa-chat { margin-top: 12px; padding: 16px 14px; border-radius: 20px; background: #efe7dd; }
@media (prefers-color-scheme: dark) { .wa-chat { background: #0b141a; } }
.wa-bubble { margin-left: auto; max-width: 88%; padding: 4px; border-radius: 12px 4px 12px 12px; background: #d9fdd3; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.12); font-size: .9rem; line-height: 1.4; }
@media (prefers-color-scheme: dark) { .wa-bubble { background: #005c4b; color: #e9edef; } }
.wa-card { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; background: rgba(0,0,0,.06); }
.wa-card img, .wa-card-emoji { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; }
.wa-card-emoji { display: grid; place-items: center; font-size: 1.6rem; background: rgba(255,255,255,.6); }
.wa-card span { min-width: 0; } .wa-card b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-card small { display: block; font-size: .72rem; color: inherit; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-text { padding: 6px 6px 4px; word-break: break-word; }
.wa-link { color: #027eb5; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .wa-link { color: #53bdeb; } }

/* Sending queue */
.queue-progress { margin: 14px 2px 0; font-weight: 700; font-size: .9rem; }
.queue { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.queue li + li { box-shadow: inset 0 1px 0 var(--fill); }
.queue .who { flex: 1; min-width: 0; }
.queue .btn { background: var(--wa); color: #fff; }
.queue .btn .i { width: 17px; height: 17px; }
.queue .when-done { display: none; }
.queue li.sent .btn { background: var(--ok-tint); color: var(--ok); }
.queue li.sent .when-todo { display: none; }
.queue li.sent .when-done { display: inline-flex; align-items: center; gap: 4px; }
.queue .when-todo { display: inline-flex; align-items: center; gap: 6px; }
.group.pad > * + * { box-shadow: none; }


/* =====================================================================
   Cardapp
   ===================================================================== */
.mt { margin-top: 24px; } .mt-12 { margin-top: 12px; }
.iconbtn.flat { box-shadow: none; background: transparent; color: var(--ink-3); width: 40px; height: 40px; }
.iconbtn.flat.sm { width: 34px; height: 34px; } .iconbtn.flat.sm .i { width: 18px; height: 18px; }
.iconbtn:disabled { opacity: .3; }
.iconbtn.back .i { transform: rotate(180deg); }
.appbar-name { font-size: 1.1rem; }
.center-form { margin-top: 18px; text-align: center; }
.center-pad { display: grid; place-items: center; padding: 40px; }
.pad-16 { padding: 14px 16px 16px; }
.mini-label { display: block; margin: 0 0 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.link.danger { color: var(--no); display: inline-flex; align-items: center; gap: 6px; }
.btn.tonal.danger { color: var(--no); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.tonal.wa { background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); }
.actions-grid.three { grid-template-columns: repeat(3, 1fr); }
.action.wa { background: var(--surface); color: var(--wa); }

/* Store logo */
.s-logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--brand);
  color: var(--on-brand); font-weight: 800; box-shadow: var(--shadow); }
.s-logo.lg { width: 92px; height: 92px; border-radius: 28px; font-size: 2.2rem; box-shadow: 0 0 0 5px var(--bg), 0 18px 34px -16px rgba(0,0,0,.4); }

/* Landing */
.land-hero { padding: 26px 4px 8px; }
.land-hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); line-height: 1.04; }
.land-hero h1 span { color: var(--brand); }
.land-hero .lead { margin: 14px 0 22px; font-size: 1.05rem; color: var(--ink-2); }
.pill-lead { display: inline-block; margin: 0 0 16px; padding: 7px 13px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); font-size: .82rem; font-weight: 700; }
.land-feats { margin-top: 28px; }

/* ---------- Panel ---------- */
.open-toggle { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--no-tint); color: var(--no); font-weight: 800; font-size: .82rem; cursor: pointer; }
.open-toggle.on { background: var(--ok-tint); color: var(--ok); }
.open-toggle { position: relative; }
.open-toggle input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.open-toggle i { width: 38px; height: 24px; border-radius: 99px; background: var(--fill-strong); position: relative; transition: background .2s; }
.open-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s; }
.open-toggle.on i { background: var(--ok); } .open-toggle.on i::after { transform: translateX(14px); }
.tabbar a { position: relative; }
.tab-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--no); color: #fff;
  font: 800 .66rem/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.sound-tip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--wait-tint); color: var(--wait); font-size: .88rem; font-weight: 700; cursor: pointer; }

.orders { display: grid; gap: 12px; margin-top: 14px; }
.ocard { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ocard.is-new { box-shadow: 0 0 0 2px var(--brand), var(--shadow); animation: pulseNew 1.6s ease-in-out 3; }
@keyframes pulseNew { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow); } }
.ocard-main { display: grid; gap: 6px; width: 100%; padding: 16px 16px 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.ocard-top { display: flex; align-items: center; gap: 8px; } .ocard-top b { font-size: 1.15rem; } .ocard-top em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.ocard-who { display: flex; align-items: center; gap: 8px; } .ocard-who b { font-weight: 700; }
.mode { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--fill); font-size: .74rem; font-weight: 800; color: var(--ink-2); }
.mode .i { width: 14px; height: 14px; }
.ocard-items { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ocard-total { display: flex; align-items: baseline; justify-content: space-between; } .ocard-total b { font-size: 1.1rem; }
.ocard-next { border-radius: 0 !important; min-height: 52px !important; box-shadow: none !important; }
.pill.new { background: var(--brand); color: var(--on-brand); } .pill.done { background: var(--fill); color: var(--ink-2); }
.pill.ok { background: var(--ok-tint); color: var(--ok); } .pill.no { background: var(--no-tint); color: var(--no); } .pill.wait { background: var(--wait-tint); color: var(--wait); }

.od-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.od-head b { display: block; font-size: 1.3rem; } .od-head small { display: block; }
.gd .gd-row { display: grid; gap: 2px; padding: 12px 16px; }
.gd-row > small { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.li { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
.li > b { flex: none; min-width: 28px; color: var(--brand-ink, var(--brand)); }
.li > span { flex: 1; min-width: 0; } .li small { display: block; } .li em { font-style: normal; font-weight: 700; white-space: nowrap; }
.li.tot { padding-top: 8px; padding-bottom: 8px; color: var(--ink-2); }
.li.tot.big { color: var(--ink); font-weight: 800; font-size: 1.1rem; padding-bottom: 14px; }
.group > .li.tot { box-shadow: none; }
.group > .li.tot:first-of-type, .totals > .li:first-child { box-shadow: inset 0 1px 0 var(--fill); }
.od-actions { display: grid; gap: 10px; margin-top: 16px; justify-items: center; }
.od-actions .btn { width: 100%; }

/* Menu tab */
.cat { margin-top: 22px; }
.cat-head { display: flex; align-items: center; gap: 2px; margin: 0 2px 8px 4px; }
.cat-head b { font-size: 1.05rem; } .cat-head small { margin: 0 auto 0 8px; padding: 2px 8px; border-radius: 99px; background: var(--fill); font-weight: 800; }
.prow { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.prow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 12px; }
.prow-main > span { min-width: 0; } .prow-main b { display: flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-main small { display: block; }
.prow.off .prow-main { opacity: .5; }
.thumb { flex: none; width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: var(--fill); }
.empty-thumb { display: grid; place-items: center; color: var(--ink-3); }
.star .i { width: 15px; height: 15px; color: #f5a524; fill: #f5a524; }
.mini-switch { flex: none; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch i { display: block; width: 46px; height: 28px; border-radius: 99px; background: var(--fill-strong); position: relative; transition: background .2s; }
.mini-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s; }
.mini-switch input:checked + i { background: var(--ok); } .mini-switch input:checked + i::after { transform: translateX(18px); }
.add-row { color: var(--brand-ink, var(--brand)); min-height: 52px; }
.add-cat { display: flex; align-items: flex-end; gap: 10px; margin-top: 26px; padding-right: 14px; }
.add-cat .field { flex: 1; } .add-cat .btn { margin-bottom: 14px; }
.admin-form { display: grid; gap: 10px; padding: 14px 16px 16px; } .admin-form .field { padding: 0; }

/* Store tab */
.qr-thumb { padding: 0; border: 0; background: none; cursor: pointer; }
.qr-big { display: grid; place-items: center; padding: 18px; border-radius: var(--r-lg); background: #fff; } .qr-big img { width: min(100%, 280px); }
.img-pair { display: grid; gap: 14px; }
.img-pair > div { min-width: 0; display: grid; gap: 6px; }
.photo-picker.square { grid-template-columns: 112px 1fr; align-items: center; gap: 14px; }
.photo-picker.square .pp-actions { grid-template-columns: 1fr; }
.photo-picker.square .pp-frame { border-radius: 24px; }
.photo-picker.square:not(.has-photo) { grid-template-columns: 112px; }
.photo-picker.square .pp-frame { aspect-ratio: 1; }
.photo-picker.square .pp-empty small, .photo-picker.square .pp-empty b { font-size: .75rem; }
.photo-picker.square .pp-cam { width: 40px; height: 40px; }
.photo-picker .pp-actions .btn { min-height: 38px; padding: 0 12px; font-size: .82rem; }
.palette { display: flex; flex-wrap: wrap; gap: 10px; }
.palette label { position: relative; cursor: pointer; } .palette input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.palette i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow); transition: transform .15s; }
.palette input:checked + i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); transform: scale(1.06); }
.custom-color i { background: var(--fill-strong); color: var(--ink); }
.custom-color input { width: 0; height: 0; }
.slug-field { display: flex; align-items: center; padding: 0 0 0 16px; } .slug-field span { color: var(--ink-3); font-weight: 700; }
.slug-field input { background: none; box-shadow: none !important; font-weight: 700; }
.logout-row { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.prod-tools { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.product-edit .photo-picker .pp-frame { aspect-ratio: 4 / 3; }

/* Preview of the public menu */
.preview-full { position: fixed; inset: 0; z-index: 800; background: #000; opacity: 0; transition: opacity .2s ease; }
.preview-full.open { opacity: 1; }
.preview-frame { position: absolute; inset: 0; } .preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-x { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(10px); cursor: pointer; }
.preview-tag { position: absolute; z-index: 2; top: calc(18px + env(safe-area-inset-top, 0px)); left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; font-weight: 700; pointer-events: none; }
.preview-tag .i { width: 15px; height: 15px; }
@media (min-width: 700px) {
  .preview-full { background: rgba(10,9,8,.82); }
  .preview-frame { inset: 4vh auto 4vh 50%; width: 420px; transform: translateX(-50%); border-radius: 32px; overflow: hidden; }
  .preview-x { top: 4vh; right: calc(50% - 270px); }
}

/* ---------- Public menu ---------- */
.menu-body { background: var(--bg); }
.menu { padding-bottom: calc(110px + var(--safe-b)); }
.m-cover { height: 190px; margin: 0 -16px; background: var(--brand); }
.m-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -48px; position: relative; }
.m-head h1 { margin-top: 12px; font-size: 1.8rem; }
.m-tag { margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }
.m-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 800; }
.m-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.m-status.open { background: var(--ok-tint); color: var(--ok); } .m-status.closed { background: var(--no-tint); color: var(--no); }
.m-status.open i { animation: blinkDot 1.6s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: .3; } }
.m-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.m-info span { display: inline-flex; align-items: center; gap: 5px; } .m-info .i { width: 16px; height: 16px; }
.m-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 700; font-size: .85rem; cursor: pointer; } .m-more .i { width: 16px; height: 16px; } .m-more .chev { margin: 0; }
.closed-banner { background: var(--no-tint); color: var(--no); margin-top: 16px; }
.m-search { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-left: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.m-search .i { color: var(--ink-3); } .m-search input { background: none; box-shadow: none !important; min-height: 50px; }
.m-cats { position: sticky; top: 0; z-index: 15; display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a { flex: none; padding: 9px 15px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .88rem; transition: background .15s, color .15s; }
.m-cats a.on { background: var(--brand); color: var(--on-brand); }
.msec { scroll-margin-top: 70px; } .msec h2 { margin: 26px 4px 10px; font-size: 1.25rem; }
.mitem { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.mitem:active { background: var(--fill); }
.mitem-text { flex: 1; min-width: 0; } .mitem-text b { display: block; font-size: 1rem; }
.mitem-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.mitem-text em { display: block; margin-top: 6px; font-style: normal; font-weight: 800; color: var(--ink); }
.mitem img { flex: none; width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }
.mitem-add { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -6px var(--brand); }
.mitem-add .i { width: 18px; height: 18px; stroke-width: 2.6; }
.mitem:not(:has(img)) .mitem-text { padding-right: 34px; }
.m-feat { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-feat::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 150px; scroll-snap-align: start; display: grid; gap: 4px; padding: 8px 8px 12px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.fcard img, .fcard-ph { width: 100%; aspect-ratio: 1; border-radius: 16px; object-fit: cover; }
.fcard-ph { display: grid; place-items: center; background: var(--brand-tint); font-size: 2.4rem; }
.fcard b { padding: 4px 4px 0; font-size: .92rem; line-height: 1.25; } .fcard em { padding: 0 4px; font-style: normal; font-weight: 800; color: var(--brand-ink, var(--brand)); }
.m-nores { text-align: center; color: var(--ink-2); margin-top: 30px; }
.madewith { margin: 34px 0 0; text-align: center; font-size: .8rem; color: var(--ink-3); }

.cartbar { position: fixed; z-index: 60; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  width: min(100% - 24px, 536px); min-height: 60px; padding: 0 20px 0 10px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: 800 1.02rem var(--font); box-shadow: 0 12px 28px -14px rgba(0,0,0,.45); }
.cartbar b { flex: 1; text-align: left; } .cartbar em { font-style: normal; }
.cart-count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 99px; background: rgba(255,255,255,.22); }
.cartbar.bump { animation: bump .4s cubic-bezier(.2,.9,.3,1.5); }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.05); } }

.pd-sheet .modal-head h2:empty { display: none; }
.pd-sheet .modal-panel { position: relative; }
.pd-sheet .modal-head { position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0; }
.pd-sheet .modal-head .iconbtn { background: rgba(0,0,0,.38); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pd-sheet .grabber { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; background: rgba(255,255,255,.7); margin: 0; }
.pd-photo { margin: -10px -18px 16px; } .pd-photo:empty { height: 56px; }
.pd-photo img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.pd-name { font-size: 1.5rem; } .pd-desc { margin: 8px 0 0; color: var(--ink-2); } .pd-desc:empty { display: none; }
.pd-price { margin: 10px 0 16px; font-size: 1.2rem; font-weight: 800; color: var(--brand-ink, var(--brand)); }
.pd-bar { display: flex; gap: 12px; margin-top: 16px; }
.pd-bar .btn { flex: 1; min-height: 56px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: var(--fill); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--brand-ink, var(--brand)); font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.stepper b { min-width: 26px; text-align: center; font-size: 1.1rem; }
.stepper.sm button { width: 34px; height: 34px; font-size: .95rem; } .stepper.sm b { min-width: 20px; font-size: .95rem; }
.citem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.citem img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.citem > span { flex: 1; min-width: 0; } .citem b { display: block; } .citem small { display: block; } .citem em { display: block; font-style: normal; font-weight: 800; margin-top: 2px; }
.paygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paygrid.n2 { grid-template-columns: 1fr 1fr; } .paygrid.n1 { grid-template-columns: 1fr; }
.paygrid label { display: flex; position: relative; }
.paygrid input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.paygrid span { display: grid; justify-items: center; flex: 1; align-content: center; gap: 2px; padding: 14px 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 1.4rem; cursor: pointer; border: 0; outline: 0; transition: background .15s, color .15s, transform .1s; }
.paygrid span:active { transform: scale(.97); }
.paygrid b { font-size: .88rem; } .paygrid small { font-size: .7rem; }
.paygrid input:checked + span { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.paygrid input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-tint); }
.pickup-addr { display: flex; gap: 8px; margin: 0; font-weight: 600; } .pickup-addr .i { color: var(--brand-ink, var(--brand)); }
.segmented span { gap: 6px; } .segmented .i { width: 18px; height: 18px; }
body.has-cart .madewith { margin-bottom: 20px; }

/* ---------- Customer order page ---------- */
.op-hero { margin-top: 10px; padding: 26px 20px; border-radius: var(--r-lg); text-align: center; color: var(--on-brand);
  background: var(--brand); }
.op-hero.concluido { background: #1f9d63; color: #fff; }
.op-hero.cancelado { background: var(--fill); color: var(--ink); }
.op-emoji { font-size: 3rem; display: block; animation: hopEmoji 1.6s ease-in-out infinite; }
@keyframes hopEmoji { 50% { transform: translateY(-6px); } }
.op-hero h1 { margin-top: 8px; font-size: 1.7rem; } .op-hero p { margin: 6px 0 0; opacity: .9; font-weight: 600; }
.op-steps { list-style: none; margin: 16px 0 0; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 4px; }
.op-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink-3); font-weight: 700; }
.op-steps li i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); font-style: normal; font-size: .85rem; flex: none; }
.op-steps li i .i { width: 18px; height: 18px; stroke-width: 2.6; }
.op-steps li.done { color: var(--ink-2); } .op-steps li.done i { background: var(--ok-tint); color: var(--ok); }
.op-steps li.now { color: var(--ink); } .op-steps li.now i { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.pix-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.pix-card > span:first-child { font-size: 1.6rem; } .pix-card > span:nth-child(2) { flex: 1; min-width: 0; } .pix-card b, .pix-card small { display: block; }
.pix-card .btn { min-height: 40px; padding: 0 14px; }
.img-pair .photo-picker:not(.square) .pp-frame { aspect-ratio: 12 / 5; }
.img-pair + .mini-label { display: block; margin-top: 18px; padding-top: 14px; border-top: 0; }

/* ===== Kanban ===== */
.orders-chips { display:flex; gap:8px; padding:14px 0 0; overflow-x:auto; scrollbar-width:none; }
.orders-chips .chip { flex:0 0 auto; }
.kanban-hint { display:flex; align-items:center; gap:6px; margin:0 0 10px; font-size:.8rem; font-weight:600; color:var(--ink-3); }
.kanban-hint .i { width:16px; height:16px; }
.kanban { display:flex; gap:12px; overflow-x:auto; margin:0 -16px; padding:0 16px 12px; align-items:flex-start; scroll-snap-type:x mandatory; scroll-padding-inline:16px; scrollbar-width:none; overscroll-behavior-x:contain; }
.kanban::-webkit-scrollbar { display:none; }
.kanban.dragging { scroll-snap-type:none; touch-action:none; }
.kol { --kc: var(--ink-3); flex:0 0 min(80vw, 290px); scroll-snap-align:start; display:flex; flex-direction:column; border-radius:var(--r-lg); background:var(--fill); padding:6px; transition:background .15s, box-shadow .15s; }
.kol-novo { --kc: var(--brand); } .kol-preparo { --kc: var(--wait); } .kol-pronto { --kc: var(--ok); } .kol-pendente { --kc: var(--no); } .kol-concluido { --kc: var(--ink-3); }
.kol.drop { background:color-mix(in srgb, var(--kc) 14%, var(--fill)); box-shadow:inset 0 0 0 2px var(--kc); }
.kol-head { display:flex; align-items:center; gap:8px; padding:10px 10px 10px; }
.kol-head b { font-size:.92rem; font-weight:800; }
.kdot { width:10px; height:10px; border-radius:50%; background:var(--kc); flex:none; }
.kcount { margin-left:auto; min-width:24px; height:24px; padding:0 8px; border-radius:99px; background:var(--surface); font-size:.78rem; font-weight:800; line-height:24px; text-align:center; color:var(--ink-2); }
.kol-body { display:grid; gap:8px; min-height:72px; }
.kol-empty { display:none; margin:0; padding:22px 12px; border:2px dashed var(--fill-strong); border-radius:var(--r); text-align:center; font-size:.8rem; font-weight:600; color:var(--ink-3); }
.kol-body > .kol-empty:only-child { display:block; }
.kcard { position:relative; display:grid; gap:6px; padding:12px 14px 0; border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow); cursor:grab; touch-action:pan-x pan-y; transition:transform .12s, box-shadow .12s, opacity .12s; }
.kcard::before { content:""; position:absolute; left:0; top:12px; bottom:12px; width:3px; border-radius:0 3px 3px 0; background:var(--kc); }
.kcard:active { cursor:grabbing; }
.kcard.is-new { box-shadow:0 0 0 2px var(--brand), var(--shadow); animation:pulseNew 1.6s ease-in-out 3; }
.kcard.is-done { opacity:.7; padding-bottom:12px; }
.kcard-top { display:flex; align-items:center; gap:8px; }
.kcard-top b { font-size:1.05rem; font-weight:800; }
.kcard-top em { margin-left:auto; font-style:normal; font-size:.76rem; font-weight:700; color:var(--ink-3); }
.kcard-top .mode { padding:2px 8px; font-size:.7rem; }
.kcard-who { font-weight:700; font-size:.92rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kcard-items { font-size:.8rem; color:var(--ink-2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kcard .pill.sm { justify-self:start; padding:3px 9px; font-size:.7rem; }
.kcard-total { display:flex; align-items:baseline; justify-content:space-between; }
.kcard-total small { font-size:.76rem; font-weight:700; color:var(--ink-3); }
.kcard-total b { font-size:1rem; font-weight:800; }
.kcard-btn { display:flex; align-items:center; justify-content:center; gap:4px; margin:4px -14px 0; min-height:44px; border:0; border-top:1px solid var(--fill); border-radius:0 0 var(--r) var(--r); background:none; font:800 .85rem var(--font); color:var(--brand); cursor:pointer; }
.kcard-btn .i { width:16px; height:16px; }
.kcard-btn:hover, .kcard-btn:focus-visible { background:var(--brand-tint); }
.kcard-btn:disabled { opacity:.5; }
.kplaceholder { opacity:.35; box-shadow:none; }
.kghost { position:fixed; z-index:200; margin:0; pointer-events:none; transform:rotate(2.5deg) scale(1.03); box-shadow:0 18px 40px -12px rgba(0,0,0,.35); cursor:grabbing; }
.list-view { display:grid; gap:12px; }
@media (min-width: 1180px) {
  .kanban { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); overflow:visible; margin:0; padding:0 0 12px; }
  .kol { flex:none; min-height:60vh; }
}

/* ===== Push card ===== */
.push-card { background:var(--surface); box-shadow:var(--shadow); border-radius:var(--r-lg); padding:16px; display:flex; flex-direction:column; gap:12px; }
.push-state { margin:0; font-size:.84rem; font-weight:700; color:var(--ink-2); }
.push-state:empty { display:none; }
.bell-btn { flex:none; }
.push-info { display:flex; align-items:flex-start; gap:10px; }
.push-ico { flex:0 0 40px; height:40px; display:flex; align-items:center; justify-content:center; background:var(--brand-tint); border-radius:12px; color:var(--brand); }
.push-info > span:last-child { flex:1; }
.push-info b { display:block; font-size:.88rem; }
.push-info small { color:var(--ink-2); font-size:.8rem; }
.push-actions { display:flex; gap:8px; flex-wrap:wrap; }
.push-actions .btn { flex:1; }
.push-ios { font-size:.8rem; color:var(--ink-2); background:var(--bg); padding:8px 10px; border-radius:8px; margin:0; }

/* ===== Customer chip on menu ===== */
.m-topbar { display:flex; align-items:center; justify-content:flex-end; padding:6px 12px; background:transparent; position:absolute; top:0; right:0; z-index:10; }
.userchip { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:20px; font-size:.8rem; font-weight:600; background:var(--surface); border:1.5px solid var(--fill-strong); color:var(--ink); text-decoration:none; }
.userchip.ghost { background:rgba(255,255,255,.88); border-color:transparent; }
.userchip .i { width:14px; height:14px; }
.m-cover { position:relative; }

/* ===== Customer checkout ===== */
.link.inline { display:inline; padding:0; font-size:inherit; }
.fine.block { display:block; }
.btn.sm { min-height:42px; padding:0 16px; font-size:.88rem; }

/* ===== Admin ===== */
.admin-app .admin-body { padding:0 16px 32px; max-width:720px; }
.admin-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
.stat-tile { background:var(--surface); box-shadow:var(--shadow); border-radius:12px; padding:12px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.stat-tile b { font-size:1.3rem; }
.stat-tile span { font-size:.75rem; color:var(--ink-2); text-align:center; }
.stat-tile.full { grid-column:1/-1; flex-direction:row; justify-content:center; }
.stat-tile .i { color:var(--brand); }
.searchbar { margin-bottom:12px; }
.searchbar form { display:flex; align-items:center; gap:8px; background:var(--surface); border:1.5px solid var(--fill-strong); border-radius:12px; padding:4px 12px; }
.searchbar input { flex:1; border:none; background:none; padding:6px 0; }
.admin-actions { display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.admin-actions .inline-form { display:flex; gap:8px; align-items:center; }
.admin-actions .inline-form input { flex:1; min-width:0; border:1.5px solid var(--fill-strong); border-radius:8px; padding:7px 10px; background:var(--surface); }
.temp-pass { font-size:1.5rem; font-family:monospace; letter-spacing:.1em; padding:16px; background:var(--brand-tint); border-radius:12px; cursor:pointer; text-align:center; }

/* ===== Customer account page ===== */
.order-li { display:flex; align-items:center; gap:10px; padding:10px 14px; }
.order-li b { flex:0 0 48px; font-size:.85rem; }
.order-li span { flex:1; font-size:.8rem; }
.order-li span small { display:block; color:var(--ink-2); font-size:.75rem; }
.banner.info { background:var(--brand-tint); color:var(--brand-ink); border-color:var(--brand); }
.auth-main .group-title { margin-top:0; }
.auth-main form + .group-title { margin-top:28px; }

/* ===== Icons that replaced emojis ===== */
.logo { color: #fff; } .logo .i { width: 19px; height: 19px; stroke-width: 2.1; }
.pill-lead .i { width: 16px; height: 16px; vertical-align: -3px; }
.paygrid .i { width: 26px; height: 26px; }
.switch b .i { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; color: var(--brand); }
.pill .i, .paytag .i { width: 13px; height: 13px; vertical-align: -2px; }
.m-cats a .i, .msec h2 .i { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand-ink, var(--brand)); }
.fcard-ph .i { width: 34px; height: 34px; color: var(--ink-3); }
.op-emoji .i { width: 54px; height: 54px; stroke-width: 1.7; }
.pix-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-ink, var(--brand)); flex: none; }
.pix-ico .i { width: 24px; height: 24px; }
.stepper button .i { width: 17px; height: 17px; }
.bar-li .i, .li span > .i { width: 17px; height: 17px; vertical-align: -3px; color: var(--ink-2); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--ink-3); vertical-align: 0; }
.dot.ok { background: var(--ok); } .dot.no { background: var(--no); }

/* ===== Payments ===== */
.paytag { display:inline-flex; align-items:center; gap:4px; margin-left:6px; padding:2px 8px; border-radius:99px; background:var(--fill); color:var(--ink-2); font-size:.72rem; font-weight:800; white-space:nowrap; }
.paytag.ok { background:var(--ok-tint); color:var(--ok); } .paytag.no { background:var(--no-tint); color:var(--no); }
.kcard-btn.pay { color:var(--ok); } .kcard-btn.pay:hover { background:var(--ok-tint); }
.ocard .kcard-btn { width:100%; margin:0; border-radius:0; }
.btn.pay { color:var(--ok); }
.list-total { margin:0 4px 10px; font-weight:700; color:var(--ink-2); }
.finish-box { display:grid; gap:4px; padding:16px; border-radius:var(--r-lg); background:var(--fill); }
.finish-box b { font-size:1.15rem; } .finish-box span { color:var(--ink-2); font-weight:600; }
.finish-actions { display:grid; gap:10px; } .finish-actions .btn.tonal.block { margin-top:0; }

/* ===== Summary ===== */
.sum-filter { position:sticky; top:64px; z-index:6; padding:10px 0 6px; background:var(--bg); }
.sum-chips { margin-top:0; }
.sum-dates { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin-top:10px; padding:12px; border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow); }
.sum-dates label { display:grid; gap:4px; flex:1; min-width:140px; font-size:.78rem; font-weight:700; color:var(--ink-2); }
.sum-dates input { min-height:44px; }
[data-summary] { transition:opacity .15s; } [data-summary].loading { opacity:.45; }
.sum-grid { display:grid; gap:12px; margin-top:8px; }
.sum-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sum-stats .stat b { font-size:1.25rem; }
.sum-cols { display:grid; gap:0 24px; }
.bar-li > span { position:relative; }
.bar { display:block; height:6px; margin-top:6px; border-radius:99px; background:linear-gradient(90deg, var(--brand) var(--w), var(--fill) var(--w)); }
.days { padding:8px 16px; }
.day { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:10px; padding:6px 0; }
.day small { font-weight:700; color:var(--ink-2); } .day .bar { margin:0; height:10px; } .day em { font-style:normal; font-weight:800; font-size:.85rem; }
@media (min-width: 900px) {
  .sum-filter { top:72px; }
  .sum-grid { grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr); align-items:stretch; }
  .sum-hero { margin-top:0; display:flex; flex-direction:column; justify-content:center; }
  .sum-cols { grid-template-columns:1fr 1fr; }
}
@media (min-width: 900px) { .list-view { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; } }

/* ---------- Payment received: how it was paid ---------- */
.pay-received span { background: var(--fill); box-shadow: none; font-size: 1.2rem; }
.pay-changed { color: var(--wait); font-weight: 700; }
small.pay-changed { display: block; margin-top: 4px; font-size: .78rem; }
.pay-state { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-lg); font-weight: 600; }
.pay-state > .i { width: 26px; height: 26px; flex: none; }
.pay-state span { display: grid; gap: 2px; } .pay-state b { font-size: 1rem; } .pay-state small { font-weight: 600; opacity: .85; }
.pay-state.ok { background: var(--ok-tint); color: var(--ok); }
.pay-state.wait { background: var(--wait-tint); color: var(--wait); }

/* ---------- Mercado Pago ---------- */
.mp-box { display: grid; gap: 10px; padding: 14px 16px 16px; background: var(--fill); }
.group:has(input[name="accepts_pix"]:not(:checked)) .mp-box { display: none; }
.mp-head { display: flex; gap: 12px; align-items: center; }
.mp-head span:last-child { display: grid; gap: 2px; } .mp-head small { color: var(--ink-2); font-weight: 600; }
.mp-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #e6f6fd; color: #009ee3; flex: none; }
.mp-box .switch { background: var(--surface); border-radius: 14px; }
.mp-box .fine { display: block; margin: 0; overflow-wrap: anywhere; }
.mp-box, .mp-box > * { min-width: 0; }
.mp-remove { display: flex; gap: 8px; align-items: center; justify-content: flex-start; width: 100%; text-align: left; font-size: .85rem; color: var(--no); font-weight: 600; }
.mp-remove input { position: static; opacity: 1; width: 18px; height: 18px; margin: 0; flex: none; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--no); }
input.secret { -webkit-text-security: disc; text-security: disc; font-family: monospace; }
.mp-pix { display: grid; justify-items: center; gap: 12px; margin-top: 12px; padding: 18px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.mp-pix b { font-size: 1.1rem; } .mp-pix small { color: var(--ink-2); font-weight: 600; }
.mp-qr { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; background: #fff; padding: 8px; }
small.mp-tag { display: block; margin-top: 4px; font-size: .75rem; color: #009ee3; font-weight: 700; }
.mp-error { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--no-tint); color: var(--no); font-size: .85rem; font-weight: 600; }
.mp-error > .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.mp-error span { display: grid; gap: 4px; } .mp-error b { font-size: .92rem; } .mp-error small { color: var(--ink-2); font-weight: 600; }
